/* ============================================
   RESET Y ESTILOS BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4CAF50;
    --primary-light: #81C784;
    --primary-dark: #388E3C;
    --secondary-color: #2196F3;
    --secondary-light: #64B5F6;
    --secondary-dark: #1976D2;
    --accent-color: #FF9800;
    --accent-light: #FFB74D;
    --accent-dark: #F57C00;
    --danger-color: #F44336;
    --success-color: #4CAF50;
    --warning-color: #FFC107;
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --gray-color: #666666;
    --gray-light: #e0e0e0;
    --border-radius: 8px;
    --box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    --box-shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: white;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-primary {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo-secondary {
    font-size: 14px;
    font-weight: 300;
    color: var(--dark-color);
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.user-dropdown {
    position: relative;
}

.user-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    color: var(--dark-color);
}

.user-dropdown-toggle:hover {
    background: var(--light-color);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: var(--box-shadow-lg);
    border-radius: var(--border-radius);
    padding: 10px 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    font-size: 14px;
}

.dropdown-item:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    background: var(--gray-light);
    margin: 10px 0;
}

.logout {
    color: var(--danger-color);
}

.logout:hover {
    color: white;
    background: var(--danger-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-color);
    cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 150px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 70px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/trebol-pattern.png') center/contain repeat;
    opacity: 0.05;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(255,255,255,0.2);
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-guarantees {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.guarantee-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.sorteo-countdown-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto;
    max-width: 900px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.sorteo-countdown-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #FFD700;
}

.sorteo-countdown-card h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: 700;
}

.sorteo-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.sorteo-stat {
    text-align: center;
    min-width: 150px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.9;
}

.countdown-timer {
    margin-top: 30px;
}

.timer-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
    opacity: 0.9;
}

.countdown-display {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
    min-width: 100px;
    padding: 20px 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
}

.countdown-value {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.countdown-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-actions {
    margin-top: 40px;
}

.hero-actions .btn {
    margin: 0 10px;
}

.no-sorteo {
    padding: 50px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.no-sorteo h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.no-sorteo p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* ============================================
   SECTIONS GENERALES
   ============================================ */
.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-color);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.mt-2 { margin-top: 20px; }
.mt-4 { margin-top: 40px; }

/* ============================================
   FEATURES / CÓMO FUNCIONA
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--gray-color);
    line-height: 1.6;
}

/* ============================================
   SORTEO ACTIVO
   ============================================ */
.sorteo-details-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: var(--box-shadow-lg);
    margin-bottom: 40px;
}

.sorteo-details-content {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.sorteo-info {
    flex: 1;
    min-width: 300px;
}

.sorteo-info h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.sorteo-description {
    color: var(--gray-color);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.sorteo-stats-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.sorteo-stat-detailed {
    text-align: center;
    padding: 25px 15px;
    background: var(--light-color);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: var(--transition);
}

.sorteo-stat-detailed:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.sorteo-progress {
    margin-top: 40px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 600;
}

.progress-bar {
    height: 12px;
    background: var(--gray-light);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 6px;
    transition: width 1s ease-in-out;
}

.progress-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--gray-color);
}

.sorteo-image {
    flex: 1;
    min-width: 300px;
}

.sorteo-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
}

/* ============================================
   TABLA DE NÚMEROS
   ============================================ */
.tabla-numeros-section {
    margin-top: 60px;
}

.tabla-controls {
    background: var(--light-color);
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: var(--box-shadow);
}

.controls-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.controls-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.control-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-item label {
    font-weight: 600;
    color: var(--dark-color);
    font-size: 14px;
}

.form-control {
    padding: 12px 15px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.controls-actions {
    display: flex;
    gap: 12px;
}

.btn-accent {
    background: var(--accent-color);
    color: white;
}

.btn-accent:hover {
    background: var(--accent-dark);
}

.seleccion-info {
    display: none;
    background: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;
    animation: fadeIn 0.3s ease;
}

.seleccion-info-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seleccion-count {
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.seleccion-limit {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-left: 15px;
}

.seleccion-total {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

#tabla-numeros-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading {
    text-align: center;
    color: var(--gray-color);
}

.loading i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.loading p {
    font-size: 1.1rem;
}

.tabla-paginacion {
    margin-top: 30px;
}

/* ============================================
   CARRITO DE COMPRAS
   ============================================ */
.carrito-compras {
    margin-top: 50px;
}

.carrito-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--box-shadow-lg);
}

.carrito-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: var(--dark-color);
}

.carrito-title i {
    color: var(--primary-color);
}

.carrito-vacio {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-color);
}

.carrito-vacio i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.2;
}

.carrito-vacio p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.carrito-vacio small {
    font-size: 0.9rem;
}

.carrito-total-card {
    background: var(--light-color);
    padding: 25px 30px;
    border-radius: 15px;
    margin: 30px 0;
}

.carrito-total-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.carrito-info .carrito-label {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.carrito-price-label {
    font-size: 0.9rem;
    color: var(--gray-color);
}

.carrito-amount {
    text-align: right;
}

.carrito-total-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.carrito-total-count {
    font-size: 1rem;
    color: var(--gray-color);
}

.carrito-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

/* ============================================
   GANADORES
   ============================================ */
.ganadores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.ganador-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    position: relative;
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
}

.ganador-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-lg);
}

.ganador-badge {
    position: absolute;
    top: -15px;
    right: 25px;
    background: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.ganador-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.ganador-avatar {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.ganador-info h4 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--dark-color);
}

.ganador-location {
    color: var(--gray-color);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.ganador-premio-card {
    background: var(--light-color);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.premio-info, .numero-info {
    text-align: center;
}

.premio-label, .numero-label {
    font-size: 0.85rem;
    color: var(--gray-color);
    margin-bottom: 5px;
}

.premio-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.numero-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-color);
}

.ganador-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ganador-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

.detail-value {
    font-weight: 600;
    color: var(--dark-color);
}

.no-ganadores {
    text-align: center;
    padding: 80px 20px;
}

.no-ganadores i {
    font-size: 4rem;
    color: var(--gray-light);
    margin-bottom: 25px;
}

.no-ganadores h3 {
    font-size: 1.8rem;
    color: var(--gray-color);
    margin-bottom: 15px;
}

.no-ganadores p {
    color: var(--gray-color);
    max-width: 500px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

/* ============================================
   TESTIMONIOS
   ============================================ */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--primary-color);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 80px;
    color: var(--primary-color);
    opacity: 0.1;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 22px;
    margin-right: 15px;
}

.testimonial-header h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.testimonial-location {
    font-size: 0.85rem;
    color: var(--gray-color);
}

.testimonial-text {
    color: var(--gray-color);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 20px;
    font-size: 1rem;
}

.testimonial-rating {
    color: #FFD700;
    font-size: 1rem;
}

/* ============================================
   ESTADÍSTICAS
   ============================================ */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.stats-section .section-title,
.stats-section .section-subtitle {
    color: white;
}

.stats-section .section-subtitle {
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.stat-item {
    text-align: center;
    padding: 30px 20px;
}

.stat-item .stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.stat-item .stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: var(--light-color);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 40px;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.cta-guarantees p {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.cta-guarantees i {
    margin: 0 5px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo span {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.footer-description {
    opacity: 0.8;
    margin-bottom: 25px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-section h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    opacity: 0.8;
}

.contact-info i {
    color: var(--primary-color);
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    margin-bottom: 10px;
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-disclaimer {
    font-size: 0.8rem;
    opacity: 0.6;
    max-width: 800px;
    margin: 0 auto;
}

/* ============================================
   MODALES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 20px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
}

.modal-md {
    max-width: 500px;
    width: 100%;
}

.modal-sm {
    max-width: 400px;
    width: 100%;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 10;
}

.close-modal:hover {
    background: var(--light-color);
    color: var(--dark-color);
}

.modal-header {
    text-align: center;
    padding: 40px 40px 20px;
}

.modal-header img {
    width: 70px;
    height: auto;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.modal-header p {
    color: var(--gray-color);
}

.modal-tabs {
    display: flex;
    margin: 0 40px;
    border-bottom: 2px solid var(--gray-light);
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-color);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    padding: 30px 40px;
}

.tab-content:not(.active) {
    display: none;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
    z-index: 1;
}

.input-with-icon input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background: white;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.help-text {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--gray-color);
}

.codigo-input {
    font-size: 32px !important;
    text-align: center;
    letter-spacing: 15px;
    font-weight: 700;
    padding: 20px !important;
}

.login-alt {
    margin-top: 25px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-light);
}

.login-alt p {
    color: var(--gray-color);
    font-size: 0.95rem;
}

.login-alt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.login-alt a:hover {
    text-decoration: underline;
}

.whatsapp-icon {
    width: 100px;
    height: 100px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 48px;
}

.reenviar-codigo {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 20px;
}

.reenviar-codigo a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.reenviar-codigo a:hover {
    text-decoration: underline;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
}

.whatsapp-float span {
    position: absolute;
    right: 80px;
    background: white;
    color: #25D366;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    font-size: 14px;
}

.whatsapp-float:hover span {
    opacity: 1;
    transform: translateX(0);
}

/* ============================================
   ANIMACIONES
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
    
    .sorteo-details-content {
        flex-direction: column;
    }
    
    .sorteo-stats-detailed {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 15px;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        gap: 0;
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-link {
        padding: 15px 0;
        border-bottom: 1px solid var(--gray-light);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .user-menu {
        gap: 10px;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .sorteo-countdown-card {
        padding: 30px 20px;
    }
    
    .sorteo-countdown-card h2 {
        font-size: 1.8rem;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 15px 10px;
    }
    
    .countdown-value {
        font-size: 2.2rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .modal-content {
        margin: 20px;
    }
    
    .modal-header,
    .tab-content {
        padding: 30px 20px;
    }
    
    .modal-tabs {
        margin: 0 20px;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    .whatsapp-float span {
        display: none;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .sorteo-stats {
        gap: 20px;
    }
    
    .sorteo-stat {
        min-width: 120px;
    }
    
    .stat-value {
        font-size: 1.8rem;
    }
    
    .countdown-display {
        gap: 15px;
    }
    
    .countdown-item {
        min-width: 70px;
    }
    
    .countdown-value {
        font-size: 1.8rem;
    }
    
    .features-grid,
    .ganadores-grid,
    .testimonios-grid {
        grid-template-columns: 1fr;
    }
    
    .controls-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .controls-group {
        flex-direction: column;
    }
    
    .controls-actions {
        justify-content: stretch;
    }
    
    .controls-actions .btn {
        flex: 1;
    }
    
    .seleccion-info-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .carrito-actions {
        flex-direction: column;
    }
    
    .carrito-actions .btn {
        width: 100%;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================
   UTILIDADES
   ============================================ */
.text-accent {
    color: var(--accent-color) !important;
}

.mt-0 { margin-top: 0; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mt-50 { margin-top: 50px; }

.mb-0 { margin-bottom: 0; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }
.mb-50 { margin-bottom: 50px; }

.p-0 { padding: 0; }
.p-10 { padding: 10px; }
.p-20 { padding: 20px; }
.p-30 { padding: 30px; }

.d-none { display: none; }
.d-flex { display: flex; }
.d-block { display: block; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.gap-30 { gap: 30px; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--border-radius); }
.rounded-lg { border-radius: 15px; }
.rounded-circle { border-radius: 50%; }

.shadow { box-shadow: var(--box-shadow); }
.shadow-lg { box-shadow: var(--box-shadow-lg); }

.text-white { color: white; }
.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-accent { color: var(--accent-color); }
.text-danger { color: var(--danger-color); }
.text-success { color: var(--success-color); }
.text-muted { color: var(--gray-color); }

.bg-white { background: white; }
.bg-light { background: var(--light-color); }
.bg-primary { background: var(--primary-color); }
.bg-secondary { background: var(--secondary-color); }

.fw-light { font-weight: 300; }
.fw-normal { font-weight: 400; }
.fw-medium { font-weight: 500; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }

.fs-sm { font-size: 0.875rem; }
.fs-base { font-size: 1rem; }
.fs-lg { font-size: 1.125rem; }
.fs-xl { font-size: 1.25rem; }
.fs-2xl { font-size: 1.5rem; }
.fs-3xl { font-size: 1.875rem; }
.fs-4xl { font-size: 2.25rem; }

/* ============================================
   ESTADOS DE VALIDACIÓN
   ============================================ */
input.valid {
    border-color: var(--success-color) !important;
    background-color: rgba(76, 175, 80, 0.05);
}

input.invalid {
    border-color: var(--danger-color) !important;
    background-color: rgba(244, 67, 54, 0.05);
}

.error-message {
    color: var(--danger-color);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

input.invalid + .error-message {
    display: block;
}

/* ============================================
   DEBUG MODE (para desarrollo)
   ============================================ */
.debug-mode {
    outline: 1px solid red;
}

.debug-mode * {
    outline: 1px solid rgba(255,0,0,0.1);
}