:root {
    --azul-claro: #4A90E2;
    --azul-oscuro: #2C3E50;
    --blanco: #FFFFFF;
    --gris-claro: #F5F7FA;
    --gris: #7F8C8D;
    --verde-whatsapp: #25D366;
    --rojo-error: #e74c3c;
    --verde-exito: #2ecc71;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--gris-claro);
    color: var(--azul-oscuro);
    line-height: 1.6;
    padding-top: 80px; /* Altura del header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== HEADER ========== */
header {
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-oscuro));
    color: var(--blanco);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    transform: translateY(0);
}

/* Clase para ocultar el header */
header.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* Clase para hacer el header más pequeño al hacer scroll */
header.scrolled {
    padding: 0.5rem 0;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    gap: 3rem;
    position: relative;
}

/* Logos en Header */
.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-ads, .logo-siigo {
    display: flex;
    align-items: center;
}

.logo-siigo {
    padding-left: 1rem;
    border-left: 2px solid rgba(255,255,255,0.3);
}

.logo-img {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo-ads:hover .logo-img,
.logo-siigo:hover .logo-img {
    transform: scale(1.05);
}

.logo-text {
    color: var(--blanco);
    font-size: 1.2rem;
    font-weight: 600;
}

/* Header right para el botón de menú */
.header-right {
    display: flex;
    align-items: center;
}

/* Botón menú hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background-color: var(--blanco);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Animación del botón cuando está activo */
.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Navegación */
nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1.1rem;
}

nav a:hover {
    color: var(--azul-claro);
    background: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}

/* Botones de Auth - Versión desktop */
.auth-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Botones de Auth - Versión móvil */
.auth-buttons-mobile {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(255,255,255,0.2);
}

.btn {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    min-width: 120px;
}

.btn-login {
    background: transparent;
    color: var(--blanco);
    border: 2px solid var(--blanco);
}

.btn-login:hover {
    background: var(--blanco);
    color: var(--azul-claro);
    transform: translateY(-2px);
}

.btn-register {
    background: var(--blanco);
    color: var(--azul-claro);
}

.btn-register:hover {
    background: var(--azul-claro);
    color: var(--blanco);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.btn-carrito {
    background: var(--verde-whatsapp);
    color: var(--blanco);
    position: relative;
}

.btn-carrito:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.carrito-count {
    background: var(--azul-oscuro);
    color: var(--blanco);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    position: absolute;
    top: -8px;
    right: -8px;
}

/* Overlay para menú móvil */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
        gap: 2rem;
    }
    
    nav ul {
        gap: 2rem;
    }
    
    nav a {
        padding: 0.6rem 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .logo-container {
        margin-left: 0;
        gap: 0.8rem;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .logo-siigo {
        padding-left: 0.8rem;
    }
    
    /* Ocultar navegación y botones de auth en desktop */
    nav ul {
        display: none;
    }
    
    .auth-buttons {
        display: none;
    }
    
    /* Mostrar botón hamburguesa */
    .menu-toggle {
        display: flex;
    }
    
    /* Mostrar botones de auth móvil */
    .auth-buttons-mobile {
        display: flex;
    }
    
    /* Estilos del menú móvil */
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 80%;
        max-width: 350px;
        height: calc(100vh - 80px);
        background: linear-gradient(135deg, var(--azul-oscuro), var(--azul-claro));
        padding: 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
        box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu ul {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
        border-radius: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-menu a:hover {
        background: rgba(255,255,255,0.15);
        transform: translateX(-10px);
    }
    
    /* Estilos para botones en móvil */
    .auth-buttons-mobile .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
        justify-content: flex-start;
    }
    
    .auth-buttons-mobile .btn i {
        width: 24px;
        text-align: center;
    }
    
    .auth-buttons-mobile .btn-carrito {
        justify-content: space-between;
    }
    
    .auth-buttons-mobile .carrito-count {
        position: relative;
        top: 0;
        right: 0;
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
    }
    
    .logo-container {
        gap: 0.5rem;
    }
    
    .logo-siigo {
        padding-left: 0.5rem;
    }
    
    .nav-menu {
        width: 85%;
        padding: 1.5rem;
    }
    
    .nav-menu a {
        padding: 0.8rem;
        font-size: 1.1rem;
    }
    
    .auth-buttons-mobile .btn {
        padding: 0.8rem;
        font-size: 1rem;
    }
}


/* ========== HERO SECTION ========== */
.hero {
    margin-top: 0;
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-oscuro));
    color: var(--blanco);
    padding: 8rem 2rem 4rem;
    transition: all 0.3s ease;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Título con logo al final */
.hero-title-wrapper {
    margin-bottom: 1rem;
    width: 100%;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 1rem;
}

.title-text {
    white-space: nowrap;
}

.title-logo {
    height: 4rem; /* Logo más grande para que destaque */
    width: auto;
    object-fit: contain;
    flex-shrink: 0; /* Evita que el logo se encogga */
}

/* Logo para móvil (oculto en desktop) */
.hero-logo-mobile {
    display: none;
}

/* Descripción a lo ancho */
.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 100%;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-hero {
    background: var(--blanco);
    color: var(--azul-oscuro);
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(255,255,255,0.3);
}

.btn-hero:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255,255,255,0.4);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--blanco);
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: 2px solid var(--blanco);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-hero-secondary:hover {
    background: var(--blanco);
    color: var(--azul-oscuro);
    transform: translateY(-5px);
}

/* Estilos para la imagen del hero (desktop) */
.hero-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-left: 2rem;
}

.hero-img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.hero-img:hover {
    transform: scale(1.05);
}

/* Media query para dispositivos móviles */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .title-logo {
        height: 3.5rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Ocultar la imagen del lado derecho en móvil */
    .hero-image {
        display: none;
    }
    
    /* Reorganizar el título en móvil */
    .hero-text h1 {
        font-size: 2.5rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .title-text {
        white-space: normal;
        text-align: center;
    }
    
    /* Ocultar el logo del título en móvil */
    .title-logo {
        display: none;
    }
    
    /* Mostrar el logo móvil aparte */
    .hero-logo-mobile {
        display: flex;
        justify-content: center;
        margin: 0.5rem 0 1.5rem 0;
    }
    
    .hero-logo-img {
        height: 60px;
        width: auto;
        object-fit: contain;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-hero, .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 1rem 2rem;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 480px) {
    .hero {
        padding: 5rem 1rem 2.5rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-logo-img {
        height: 50px;
    }
    
    .btn-hero, .btn-hero-secondary {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }
}

/* Ocultar hero section cuando el carrito está abierto */
body.carrito-open .hero {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease, height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
}

/* Versión alternativa usando clase .hidden directamente en el hero */
.hero.hidden {
    display: none;
}

/* ========== PRODUCTOS ========== */
.productos {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--azul-oscuro);
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.3rem;
    color: var(--gris);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-oscuro));
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 8px;
    background: var(--azul-claro);
    border-radius: 4px;
}

/* Categorías */
.categorias-productos {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.categoria-btn {
    background: var(--blanco);
    color: var(--azul-oscuro);
    border: 2px solid var(--gris-claro);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.categoria-btn:hover {
    border-color: var(--azul-claro);
    color: var(--azul-claro);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.1);
}

.categoria-btn.active {
    background: var(--azul-claro);
    color: var(--blanco);
    border-color: var(--azul-claro);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
}

/* Grid de Productos Mejorado - 3 COLUMNAS */
.productos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas fijas */
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Tarjeta de Producto Mejorada */
.producto-card {
    background: var(--blanco);
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.6s ease forwards;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.producto-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-oscuro));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.producto-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(74, 144, 226, 0.15);
    border-color: var(--azul-claro);
}

.producto-card:hover::before {
    transform: scaleX(1);
}

.producto-card:hover .producto-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--azul-claro);
}

.producto-card:hover .producto-content h3 {
    color: var(--azul-claro);
    transition: color 0.3s ease;
}

.producto-card:hover .precio {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

/* Badges de Producto */
.producto-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

.producto-badge.nuevo {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 3px 10px rgba(46, 204, 113, 0.3);
}

.producto-badge.popular {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.3);
}

/* Icono del Producto */
.producto-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
    font-size: 2.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.producto-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 10px;
}

/* Contenido del Producto */
.producto-content {
    padding: 0 1.5rem 2rem;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.producto-content h3 {
    color: var(--azul-oscuro);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.producto-descripcion {
    color: var(--gris);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Características del Producto */
.producto-features {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--azul-oscuro);
    font-size: 0.85rem;
    font-weight: 500;
    text-align: left;
    padding: 0 0.5rem;
}

.feature i {
    color: var(--azul-claro);
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Precio del Producto */
.producto-precio {
    margin-bottom: 1.5rem;
    padding: 0.8rem;
    background: rgba(74, 144, 226, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.precio {
    font-size: 2rem;
    font-weight: 700;
    color: var(--azul-claro);
    margin-bottom: 0.3rem;
}

.precio::before {
    content: '$';
    font-size: 1.1rem;
    vertical-align: super;
    margin-right: 2px;
}

.precio-periodo {
    color: var(--gris);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Botón de Producto Mejorado */
.btn-producto {
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-oscuro));
    color: var(--blanco);
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.btn-producto::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-producto:hover::before {
    left: 100%;
}

.btn-producto:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.4);
}

.btn-producto:active {
    transform: translateY(-1px);
}

/* CTA de Productos */
.productos-cta {
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-oscuro));
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    color: white;
    margin-top: 2rem;
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.2);
}

.cta-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cta {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    backdrop-filter: blur(10px);
}

.btn-cta:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}

/* ========== MEDIA QUERIES PARA PRODUCTOS ========== */

/* Tablets (2 columnas) */
@media (max-width: 992px) {
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
}

/* Móviles grandes (2 columnas ajustadas) */
@media (max-width: 768px) {
    .productos {
        padding: 4rem 1rem;
    }
    
    .productos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .producto-content {
        padding: 0 1rem 1.5rem;
    }
    
    .producto-content h3 {
        font-size: 1.2rem;
    }
    
    .producto-descripcion {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .producto-features {
        gap: 0.3rem;
        margin-bottom: 1rem;
    }
    
    .feature {
        font-size: 0.8rem;
        padding: 0 0.2rem;
    }
    
    .producto-icon {
        width: 60px;
        height: 60px;
        margin: 1.5rem auto 1rem;
    }
    
    .producto-icon img {
        width: 45px;
        height: 45px;
    }
    
    .producto-precio {
        margin-bottom: 1rem;
        padding: 0.6rem;
    }
    
    .precio {
        font-size: 1.6rem;
    }
    
    .btn-producto {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .productos-cta {
        padding: 2rem;
    }
    
    .cta-content h3 {
        font-size: 1.6rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
}

/* Móviles pequeños (1 columna) */
@media (max-width: 480px) {
    .productos-grid {
        grid-template-columns: 1fr; /* 1 columna en móviles muy pequeños */
        max-width: 350px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .categorias-productos {
        gap: 0.5rem;
    }
    
    .categoria-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* ========== CARRITO ========== */
.carrito-sidebar {
    position: fixed;
    right: -450px;
    top: 0;
    width: 450px;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: -5px 0 25px rgba(0,0,0,0.3);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999; /* Aumentado de 1001 a 9999 */
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.carrito-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9998; /* Aumentado de 1000 a 9998 (un nivel menos que el carrito) */
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.carrito-overlay.active {
    display: block;
}

.carrito-sidebar.active {
    right: 0;
}

/* Asegurar que el carrito esté siempre visible cuando esté activo */
.carrito-sidebar.active {
    right: 0;
    display: flex !important;
}

.carrito-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.carrito-overlay.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header del Carrito */
.carrito-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.carrito-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
}

.carrito-title i {
    font-size: 1.5rem;
    color: #FFD700;
}

.carrito-title h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.close-carrito {
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-carrito:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg) scale(1.1);
}

/* Cuerpo del Carrito */
.carrito-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow: hidden;
}

.carrito-items {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    margin-bottom: 1rem;
}

/* Scrollbar personalizado */
.carrito-items::-webkit-scrollbar {
    width: 6px;
}

.carrito-items::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
}

.carrito-items::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
}

.carrito-items::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.5);
}

/* Carrito Vacío */
.carrito-vacio {
    text-align: center;
    color: rgba(255,255,255,0.8);
    padding: 3rem 2rem;
    animation: fadeInUp 0.5s ease;
}

.carrito-vacio i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.5);
    animation: bounce 2s infinite;
}

.carrito-vacio p {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.carrito-vacio small {
    font-size: 0.9rem;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Items del Carrito - Diseño Mejorado */
.carrito-item {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideInRight 0.4s ease;
    position: relative;
    overflow: hidden;
}

.carrito-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.carrito-item:hover {
    transform: translateX(-8px) translateY(-5px);
    border-color: #667eea;
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
}

.carrito-item:hover::before {
    transform: scaleY(1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carrito-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.carrito-item-info {
    flex: 1;
    min-width: 0;
}

.carrito-item-nombre {
    font-weight: 700;
    color: #2C3E50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.carrito-item-precio {
    color: #667eea;
    font-weight: 600;
    font-size: 1.1rem;
}

.carrito-item-precio-unit {
    font-size: 0.9rem;
    color: #7F8C8D;
    margin-left: 0.3rem;
}

.carrito-item-subtotal {
    color: #27ae60;
    font-weight: 700;
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.carrito-item-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.cantidad-control {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 25px;
    padding: 0.5rem;
    border: 2px solid rgba(102, 126, 234, 0.2);
}

.btn-cantidad {
    background: #667eea;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.btn-cantidad:hover {
    background: #5a6fd8;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-cantidad:active {
    transform: scale(0.95);
}

.cantidad-number {
    font-weight: 700;
    min-width: 30px;
    text-align: center;
    color: #2C3E50;
    font-size: 1.1rem;
}

.btn-remover {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.3);
}

.btn-remover:hover {
    background: linear-gradient(135deg, #ff5252, #e74c3c);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

/* Resumen del Carrito */
.carrito-summary {
    background: rgba(255,255,255,0.95);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    animation: fadeInUp 0.5s ease;
}

.carrito-subtotal,
.carrito-iva,
.carrito-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.carrito-subtotal span:first-child,
.carrito-iva span:first-child,
.carrito-total span:first-child {
    color: #7F8C8D;
    font-weight: 500;
}

.carrito-subtotal span:last-child,
.carrito-iva span:last-child {
    color: #2C3E50;
    font-weight: 600;
}

.carrito-total {
    border-bottom: none;
    border-top: 2px solid #667eea;
    margin-top: 0.5rem;
    padding-top: 1rem;
}

.carrito-total span:last-child {
    color: #667eea;
    font-weight: 700;
    font-size: 1.3rem;
}

/* Footer del Carrito */
.carrito-footer {
    padding: 1.5rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,0.2);
    animation: fadeInUp 0.5s ease;
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    width: 100%;
    padding: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:active {
    transform: translateY(-1px);
}

.btn-limpiar {
    background: rgba(255,255,255,0.2);
    color: white;
    width: 100%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-limpiar:hover {
    background: rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

/* Animaciones para agregar/remover items */
@keyframes itemAdded {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes itemRemoved {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    100% {
        transform: translateX(100px);
        opacity: 0;
    }
}

.carrito-item.added {
    animation: itemAdded 0.5s ease;
}

.carrito-item.removing {
    animation: itemRemoved 0.4s ease forwards;
}

/* ========== FORMULARIO DE CONTACTO ========== */
.form-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 6rem 0;
    position: relative;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-oscuro));
}

#contactForm {
    max-width: 800px;
    margin: 0 auto;
    background: var(--blanco);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(74, 144, 226, 0.1);
    border: 1px solid rgba(74, 144, 226, 0.1);
    position: relative;
    overflow: hidden;
}

#contactForm::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-oscuro));
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--azul-oscuro);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.form-group label::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--azul-claro);
    margin-top: 0.2rem;
    transition: width 0.3s ease;
}

.form-group:focus-within label {
    color: var(--azul-claro);
}

.form-group:focus-within label::after {
    width: 60px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    color: var(--azul-oscuro);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--azul-claro);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    background: var(--blanco);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(127, 140, 141, 0.7);
    font-weight: 400;
}

.form-group input:valid:not(:placeholder-shown),
.form-group select:valid,
.form-group textarea:valid:not(:placeholder-shown) {
    border-color: var(--verde-exito);
    background: rgba(46, 204, 113, 0.05);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid,
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: var(--rojo-error);
    background: rgba(231, 76, 60, 0.05);
}

/* Estilos específicos para cada tipo de input */
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"] {
    padding-left: 3rem;
    position: relative;
}

.form-group input[type="text"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234A90E2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 1rem center;
    background-size: 1.2rem;
}

.form-group input[type="email"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234A90E2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 1rem center;
    background-size: 1.2rem;
}

.form-group input[type="tel"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234A90E2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 1rem center;
    background-size: 1.2rem;
}

/* Select personalizado */
.form-group select {
    appearance: none;
    padding-right: 3rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234A90E2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    cursor: pointer;
}

.form-group select option {
    padding: 1rem;
    background: var(--blanco);
    color: var(--azul-oscuro);
}

.form-group select option:hover {
    background: var(--azul-claro);
    color: var(--blanco);
}

/* Textarea personalizado */
.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234A90E2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 1rem 1rem;
    background-size: 1.2rem;
    padding-top: 2.5rem;
}

/* Mensajes de error mejorados */
.error-message {
    color: var(--rojo-error);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-height: 1.5rem;
}

.error-message::before {
    content: '⚠';
    font-size: 0.9rem;
}

.form-group input:invalid:not(:placeholder-shown) ~ .error-message,
.form-group input:invalid:focus ~ .error-message {
    opacity: 1;
    transform: translateY(0);
}

/* Contador de caracteres para textarea */
.char-counter {
    position: absolute;
    bottom: 0.5rem;
    right: 1rem;
    font-size: 0.8rem;
    color: var(--gris);
    background: var(--blanco);
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.form-group textarea:focus ~ .char-counter {
    opacity: 1;
}

/* Botón de envío mejorado */
.btn-submit {
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-oscuro));
    color: var(--blanco);
    width: 100%;
    padding: 1.3rem;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
    box-shadow: 0 10px 20px rgba(74, 144, 226, 0.2);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(74, 144, 226, 0.3);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit:disabled {
    background: var(--gris);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-submit:disabled:hover::before {
    left: -100%;
}

/* Loading animation para el botón */
.btn-submit.loading {
    position: relative;
    color: transparent;
}

.btn-submit.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--blanco);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mensaje de éxito */
.success-message {
    text-align: center;
    padding: 2rem;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 15px;
    border: 2px solid var(--verde-exito);
    margin-top: 2rem;
    animation: fadeIn 0.5s ease;
}

.success-message i {
    font-size: 3rem;
    color: var(--verde-exito);
    margin-bottom: 1rem;
}

.success-message h3 {
    color: var(--azul-oscuro);
    margin-bottom: 0.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive para formulario */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #contactForm {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.9rem 1rem 0.9rem 2.8rem;
    }
    
    .form-group textarea {
        padding-top: 2.2rem;
    }
    
    .btn-submit {
        padding: 1.1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #contactForm {
        padding: 1.5rem;
    }
    
    .form-section {
        padding: 4rem 0;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="tel"] {
        background-position: 0.8rem center;
        background-size: 1rem;
        padding-left: 2.5rem;
    }
    
    .form-group select {
        background-position: right 0.8rem center;
        background-size: 1rem;
        padding-right: 2.5rem;
    }
    
    .form-group textarea {
        background-position: 0.8rem 0.8rem;
        background-size: 1rem;
        padding-top: 2rem;
    }
}

/* Animación de entrada para los campos */
.form-group {
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }
.form-group:nth-child(7) { animation-delay: 0.7s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== NOTIFICACIONES ========== */
.notificacion {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1.2rem 2rem;
    border-radius: 10px;
    z-index: 10000;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.notificacion-success {
    background: var(--verde-exito);
    color: var(--blanco);
}

.notificacion-error {
    background: var(--rojo-error);
    color: var(--blanco);
}

/* ========== FOOTER MEJORADO ========== */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23667eea" fill-opacity="0.03" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Contenido Principal del Footer */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

/* Secciones */
.footer-section {
    animation: fadeInUp 0.6s ease;
}

/* Logo y Descripción */
.footer-section.about {
    animation-delay: 0.1s;
}

.footer-logo-container {
    margin-bottom: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
    transform: scale(1.05);
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.footer-logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.footer-logo-subtext {
    font-size: 1rem;
    color: #b0b7ff;
    font-weight: 500;
    letter-spacing: 1px;
}

.certification-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(102, 126, 234, 0.15);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.3);
    font-size: 0.85rem;
    color: #b0b7ff;
}

.certification-badge i {
    color: #667eea;
}

.footer-description {
    color: #a0a7cc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-description strong {
    color: #fff;
    font-weight: 600;
}

/* Redes Sociales */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.social-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2c3e50;
}

.social-link:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Colores de redes sociales */
.facebook { background: #3b5998; }
.twitter { background: #1da1f2; }
.linkedin { background: #0077b5; }
.instagram { background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d); }
.whatsapp { background: #25d366; }

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* Títulos de sección */
.section-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.section-title i {
    color: #667eea;
}

/* Información de Contacto */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-label {
    font-size: 0.8rem;
    color: #a0a7cc;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: #667eea;
}

/* Enlaces Rápidos */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #a0a7cc;
    text-decoration: none;
    padding: 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.link-hover {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.footer-link:hover .link-hover {
    left: 100%;
}

.footer-link i {
    color: #667eea;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.footer-link:hover {
    background: rgba(102, 126, 234, 0.05);
    color: #fff;
    transform: translateX(5px);
}

.footer-link:hover i {
    transform: rotate(90deg);
}

/* Horario de Atención */
.business-hours {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.day-schedule {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.day-schedule:hover {
    background: rgba(102, 126, 234, 0.05);
    border-left-color: #667eea;
    transform: translateX(5px);
}

.day-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1rem;
}

.day-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.day-name {
    font-weight: 500;
    color: #fff;
}

.day-hours {
    font-size: 0.9rem;
    color: #a0a7cc;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-indicator.active {
    background: #4CAF50;
    box-shadow: 0 0 10px #4CAF50;
}

.status-indicator.limited {
    background: #FF9800;
    box-shadow: 0 0 10px #FF9800;
}

.status-indicator.inactive {
    background: #f44336;
    box-shadow: 0 0 10px #f44336;
}

.timezone-info,
.emergency-contact {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #a0a7cc;
    font-size: 0.85rem;
    padding: 0.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 0.5rem;
}

.timezone-info i {
    color: #667eea;
}

.emergency-contact i {
    color: #FF9800;
}

/* Separador */
.footer-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
}

.divider-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
}

/* Pie Inferior */
.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    flex: 1;
    min-width: 300px;
}

.copyright p {
    color: #a0a7cc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.copyright strong {
    color: #fff;
    font-weight: 600;
}

.tech-stack {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.tech-item {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 12px;
    color: #b0b7ff;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.legal-link {
    color: #a0a7cc;
    text-decoration: none;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s ease;
}

.legal-link:hover {
    color: #667eea;
}

.legal-link i {
    font-size: 0.8rem;
}

.back-to-top {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #a0a7cc;
    cursor: pointer;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.back-to-top:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .copyright {
        min-width: 100%;
    }
    
    .legal-links {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .footer-logo {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tech-stack {
        justify-content: center;
    }
}

/* Efecto de partículas en hover */
.footer-section:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* Efecto de brillo en elementos interactivos */
.footer-link:hover,
.contact-value:hover,
.legal-link:hover,
.social-link:hover {
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
        gap: 2rem;
    }
    
    nav ul {
        gap: 2rem;
    }
    
    .auth-buttons {
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 2rem;
    }
    
    nav ul {
        gap: 1rem;
        justify-content: center;
    }
    
    nav a {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
    
    .auth-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .btn {
        min-width: 110px;
        padding: 0.7rem 1.5rem;
    }
    
    .carrito-sidebar {
        width: 100%;
        right: -100%;
        padding: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .categorias-productos {
        gap: 0.5rem;
    }
    
    .categoria-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .productos-cta {
        padding: 2rem;
        margin: 1rem;
    }
    
    .cta-content h3 {
        font-size: 1.6rem;
    }
    
    .logo-container {
        gap: 1rem;
    }
    
    .logo-siigo {
        padding-left: 1rem;
    }
    
    .logo-img {
        height: 35px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .carrito-item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .carrito-item-controls {
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
    }
    
    .cantidad-control {
        order: 1;
    }
    
    .btn-remover {
        order: 2;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    nav ul {
        gap: 0.5rem;
    }
    
    nav a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero {
        padding: 7rem 1rem 2rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    section {
        padding: 2rem 0;
    }
    
    .productos-grid,
    .cursos-grid,
    .soporte-grid {
        grid-template-columns: 1fr;
    }
    
    .carrito-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .carrito-item-controls {
        justify-content: center;
    }
    
    .carrito-header {
        padding: 1.5rem;
    }
    
    .carrito-body {
        padding: 1rem;
    }
    
    .carrito-item {
        padding: 1.2rem;
    }
    
    .producto-content {
        padding: 0 1.5rem 1.5rem;
    }
    
    .producto-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .precio {
        font-size: 1.8rem;
    }
    
    .logo-container {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .logo-siigo {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.3);
        padding-top: 0.5rem;
    }
    
    .logo-img {
        height: 30px;
    }
    
    .logo-text {
        font-size: 0.9rem;
    }
}
/* ========== CURSOS ========== */
.cursos-adicionales {
    background: linear-gradient(135deg, #ffffff 0%, #f0f7ff 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cursos-adicionales::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-oscuro));
}

.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.curso-card {
    background: var(--blanco);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 15px 35px rgba(74, 144, 226, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(74, 144, 226, 0.1);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--i) * 0.1s);
}

.curso-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(74, 144, 226, 0.15);
    border-color: var(--azul-claro);
}

.curso-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-oscuro));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.curso-card:hover::before {
    transform: scaleX(1);
}

.curso-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.curso-card:hover .curso-icon {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-oscuro));
}

.curso-card h3 {
    color: var(--azul-oscuro);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.curso-card:hover h3 {
    color: var(--azul-claro);
}

.curso-card > p {
    color: var(--gris);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    min-height: 48px;
}

.curso-duracion {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(74, 144, 226, 0.1);
    color: var(--azul-oscuro);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.curso-card:hover .curso-duracion {
    background: rgba(74, 144, 226, 0.2);
    transform: scale(1.05);
}

.curso-duracion i {
    color: var(--azul-claro);
}

.curso-card .precio {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--azul-claro);
    margin: 1.5rem 0;
    transition: all 0.3s ease;
}

.curso-card:hover .precio {
    transform: scale(1.05);
}

.curso-card .precio::before {
    content: '$';
    font-size: 1.2rem;
    vertical-align: super;
    margin-right: 2px;
}

.curso-card .btn-producto {
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-oscuro));
    color: var(--blanco);
    width: 100%;
    padding: 1.1rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    position: relative;
    overflow: hidden;
}

.curso-card .btn-producto::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.curso-card .btn-producto:hover::before {
    left: 100%;
}

.curso-card .btn-producto:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.4);
}

.curso-card .btn-producto:active {
    transform: translateY(-1px);
}

/* Badge para cursos destacados */
.curso-destacado {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 3px 10px rgba(243, 156, 18, 0.3);
    transform: rotate(5deg);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: rotate(5deg) scale(1);
    }
    50% {
        transform: rotate(5deg) scale(1.05);
    }
    100% {
        transform: rotate(5deg) scale(1);
    }
}

/* Animación escalonada para las tarjetas */
.curso-card:nth-child(1) { --i: 1; }
.curso-card:nth-child(2) { --i: 2; }
.curso-card:nth-child(3) { --i: 3; }
.curso-card:nth-child(4) { --i: 4; }

/* Responsive para cursos */
@media (max-width: 768px) {
    .cursos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .curso-card {
        padding: 2rem;
    }
    
    .curso-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .curso-card h3 {
        font-size: 1.4rem;
    }
    
    .curso-card .precio {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .curso-card {
        padding: 1.5rem;
    }
    
    .curso-card > p {
        min-height: auto;
    }
    
    .curso-duracion {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
/* ========== FAQ ========== */
.faq {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-oscuro));
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.faq-item {
    background: var(--blanco);
    border-radius: 15px;
    margin-bottom: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(74, 144, 226, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }
.faq-item:nth-child(6) { animation-delay: 0.6s; }

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.15);
    border-color: var(--azul-claro);
}

.faq-pregunta {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05), rgba(44, 62, 80, 0.05));
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--azul-oscuro);
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
}

.faq-pregunta:hover {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1), rgba(44, 62, 80, 0.1));
    color: var(--azul-claro);
}

.faq-pregunta::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, var(--azul-claro), var(--azul-oscuro));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-pregunta:hover::before {
    opacity: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--azul-claro);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.1);
    flex-shrink: 0;
}

.faq-pregunta:hover .faq-toggle {
    background: rgba(74, 144, 226, 0.2);
    transform: scale(1.1);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background: var(--azul-claro);
    color: white;
}

.faq-respuesta {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.6;
    color: var(--gris);
    position: relative;
}

.faq-item.active .faq-respuesta {
    padding: 1.5rem 2rem 2rem;
    max-height: 500px;
    opacity: 1;
}

.faq-respuesta::before {
    content: '';
    position: absolute;
    left: 2rem;
    right: 2rem;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item.active .faq-respuesta::before {
    opacity: 1;
}

.faq-respuesta p {
    margin-bottom: 1rem;
}

.faq-respuesta p:last-child {
    margin-bottom: 0;
}

/* Íconos decorativos para FAQ */
.faq-pregunta::after {
    content: '';
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.1;
    font-size: 3rem;
    transition: opacity 0.3s ease;
}

.faq-item:hover .faq-pregunta::after {
    opacity: 0.2;
}

/* Lista de características en respuestas */
.faq-respuesta ul,
.faq-respuesta ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-respuesta li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 0.5rem;
}

.faq-respuesta li::before {
    content: '✓';
    position: absolute;
    left: -1.5rem;
    color: var(--azul-claro);
    font-weight: bold;
}

/* Resaltado de texto importante en respuestas */
.faq-respuesta strong {
    color: var(--azul-oscuro);
    font-weight: 600;
}

.faq-respuesta em {
    color: var(--azul-claro);
    font-style: italic;
}

/* Badge para preguntas populares */
.faq-popular {
    position: absolute;
    top: 1rem;
    right: 4rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Barra de búsqueda para FAQ */
.faq-search {
    max-width: 500px;
    margin: 0 auto 3rem;
    position: relative;
}

.faq-search input {
    width: 100%;
    padding: 1rem 1.5rem 1rem 3rem;
    border: 2px solid rgba(74, 144, 226, 0.2);
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--blanco);
    color: var(--azul-oscuro);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-search input:focus {
    outline: none;
    border-color: var(--azul-claro);
    box-shadow: 0 10px 25px rgba(74, 144, 226, 0.15);
    transform: translateY(-2px);
}

.faq-search input::placeholder {
    color: rgba(127, 140, 141, 0.7);
}

.faq-search::before {
    content: '🔍';
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: var(--azul-claro);
    z-index: 2;
}

/* Contador de preguntas encontradas */
.faq-counter {
    text-align: center;
    margin-top: 2rem;
    color: var(--gris);
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-counter.show {
    opacity: 1;
}

/* Mensaje cuando no hay resultados */
.faq-no-results {
    text-align: center;
    padding: 3rem;
    color: var(--gris);
    display: none;
}

.faq-no-results.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

.faq-no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: rgba(74, 144, 226, 0.3);
}

.faq-no-results h3 {
    color: var(--azul-oscuro);
    margin-bottom: 0.5rem;
}

/* Categorías de FAQ */
.faq-categorias {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.faq-categoria-btn {
    background: var(--blanco);
    color: var(--azul-oscuro);
    border: 2px solid rgba(74, 144, 226, 0.2);
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.faq-categoria-btn:hover {
    border-color: var(--azul-claro);
    color: var(--azul-claro);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.1);
}

.faq-categoria-btn.active {
    background: var(--azul-claro);
    color: var(--blanco);
    border-color: var(--azul-claro);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.2);
}

.faq-categoria-btn i {
    font-size: 1rem;
}

/* Animación para abrir/cerrar preguntas */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item.active {
    animation: slideDown 0.3s ease forwards;
}

/* Responsive para FAQ */
@media (max-width: 768px) {
    .faq-pregunta {
        padding: 1.2rem 1.5rem;
        font-size: 1rem;
    }
    
    .faq-item.active .faq-respuesta {
        padding: 1.2rem 1.5rem 1.5rem;
    }
    
    .faq-pregunta::after {
        display: none;
    }
    
    .faq-search {
        margin: 0 1rem 2rem;
    }
    
    .faq-search input {
        padding: 0.9rem 1.2rem 0.9rem 2.5rem;
    }
    
    .faq-search::before {
        left: 1rem;
    }
    
    .faq-categorias {
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .faq-categoria-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .faq-pregunta {
        padding: 1rem 1.2rem;
    }
    
    .faq-item.active .faq-respuesta {
        padding: 1rem 1.2rem 1.2rem;
    }
    
    .faq-toggle {
        width: 20px;
        height: 20px;
        font-size: 1.2rem;
    }
    
    .faq-respuesta {
        font-size: 0.95rem;
    }
    
    .faq-popular {
        top: 0.8rem;
        right: 3.5rem;
        font-size: 0.65rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Efecto de acordeón suave */
.faq-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:not(.active) {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Decoración de fondo para FAQ */
.faq::after {
    content: '?';
    position: absolute;
    right: -50px;
    bottom: -50px;
    font-size: 20rem;
    color: rgba(74, 144, 226, 0.03);
    font-weight: bold;
    z-index: 0;
    pointer-events: none;
}

/* Icono del Producto */
.producto-icon {
    background: transparent;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem auto 1.5rem;
    font-size: 2.5rem;
    transition: all 0.4s ease;
    box-shadow: none;
}

.producto-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
