/* =====================================================
   AJOTORO - SALSAS GOURMET
   Sistema de Diseño Premium Gourmet
   ===================================================== */

/* =====================================================
   VARIABLES CSS - PALETA AJOTORO
   ===================================================== */
:root {
    /* Colores Principales */
    --oro-vibrante: #E7C24F;
    --oro-vibrante-rgb: 231, 194, 79;

    --rojo-bravo: #E11C23;
    --rojo-bravo-rgb: 225, 28, 35;

    --negro-carbonizado: #1A1A1A;
    --negro-carbonizado-rgb: 26, 26, 26;

    --crema-pergamino: #F5EEDC;
    --crema-pergamino-rgb: 245, 238, 220;

    --dorado-oscuro: #B18D34;
    --dorado-oscuro-rgb: 177, 141, 52;

    /* Escala de Oro (Primary) */
    --primary-50: #FEF9E7;
    --primary-100: #FDF3CF;
    --primary-200: #FCE79F;
    --primary-300: #F0D56F;
    --primary-400: #E7C24F;
    /* Oro Vibrante - hover */
    --primary-500: #E7C24F;
    /* Oro Vibrante - base */
    --primary-600: #D4AF3F;
    --primary-700: #B18D34;
    /* Dorado Oscuro */
    --primary-800: #8E6F2A;
    --primary-900: #6B5320;

    /* Textos */
    --text-primary: #000000;
    /* Negro puro para contraste */
    --text-secondary: #1A1A1A;
    /* Negro carbonizado */
    --text-tertiary: #3D3D3D;
    /* Gris oscuro */
    --text-light: #FFFFFF;
    /* Blanco puro */

    /* Fondos */
    --bg-primary: #FFFFFF;
    /* Blanco puro */
    --bg-secondary: #F8F8F8;
    /* Gris muy claro */
    --bg-dark: #000000;
    /* Negro puro para cards */
    --bg-overlay: rgba(0, 0, 0, 0.85);

    /* Tipografía */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    /* Espaciado */
    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 24px;
    --spacing-lg: 32px;
    --spacing-xl: 48px;
    --spacing-2xl: 64px;
    --spacing-3xl: 96px;

    /* Bordes */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.1);
    --shadow-md: 0 4px 16px rgba(26, 26, 26, 0.15);
    --shadow-lg: 0 8px 32px rgba(26, 26, 26, 0.2);
    --shadow-glow-gold: 0 0 30px rgba(231, 194, 79, 0.4);
    --shadow-glow-red: 0 0 30px rgba(225, 28, 35, 0.4);

    /* Transiciones */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* =====================================================
   RESET Y BASE
   ===================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: #FFFFFF;
    /* Blanco puro */
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Remover textura de fondo */
body::before {
    display: none;
}

/* =====================================================
   TIPOGRAFÍA
   ===================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.5rem;
}

p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

strong {
    color: var(--oro-vibrante);
    font-weight: 700;
}

/* =====================================================
   UTILIDADES
   ===================================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    margin-bottom: var(--spacing-sm);
    position: relative;
    display: inline-block;
    font-size: 1.5rem;
    /* Reducido de tamaño base para todas las secciones */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--oro-vibrante), var(--dorado-oscuro));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 0.95rem;
    /* Reducido para ser sutil */
    color: var(--text-tertiary);
    max-width: 600px;
    margin: 0 auto;
}

/* =====================================================
   PARTÍCULAS DE FONDO
   ===================================================== */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    font-size: 12px;
    animation: float-particle 20s infinite ease-in-out;
    opacity: 0.6;
    filter: drop-shadow(0 0 3px rgba(225, 28, 35, 0.5));
}

.particle::before {
    content: '🌶️';
}

@keyframes float-particle {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.4;
    }

    25% {
        transform: translate(100px, -100px) rotate(90deg);
        opacity: 0.7;
    }

    50% {
        transform: translate(-50px, -200px) rotate(180deg);
        opacity: 0.5;
    }

    75% {
        transform: translate(-100px, -100px) rotate(270deg);
        opacity: 0.7;
    }
}

/* =====================================================
   BOTONES
   ===================================================== */
.btn-primary {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    background: linear-gradient(135deg,
            var(--primary-600) 0%,
            var(--primary-500) 30%,
            var(--primary-400) 60%,
            var(--primary-500) 100%);
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
    color: var(--negro-carbonizado);
    font-weight: 700;
    font-family: var(--font-body);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    border: none;
    box-shadow:
        0 0 0 1px rgba(231, 194, 79, 0.5),
        0 4px 24px rgba(231, 194, 79, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all var(--transition-normal);
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 0 0 2px rgba(231, 194, 79, 0.8),
        0 8px 40px rgba(231, 194, 79, 0.6);
    filter: brightness(1.1);
    color: var(--negro-carbonizado);
    /* Asegurar color en hover para links */
}

.btn-secondary {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    font-family: var(--font-body);
    padding: 16px 32px;
    border-radius: var(--radius-md);
    border: 2px solid var(--dorado-oscuro);
    transition: all var(--transition-normal);
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: var(--dorado-oscuro);
    color: var(--crema-pergamino);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(177, 141, 52, 0.3);
}

.btn-small {
    padding: 6px 14px;
    /* Botón mucho más pequeño */
    font-size: 0.75rem;
    /* Texto pequeño */
    border-radius: var(--radius-sm);
    /* Bordes menos redondeados */
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.125rem;
}

.btn-pulse {
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow:
            0 0 0 1px rgba(231, 194, 79, 0.5),
            0 4px 24px rgba(231, 194, 79, 0.4),
            0 0 60px rgba(231, 194, 79, 0.3);
    }

    50% {
        box-shadow:
            0 0 0 2px rgba(231, 194, 79, 0.8),
            0 8px 40px rgba(231, 194, 79, 0.6),
            0 0 80px rgba(231, 194, 79, 0.5);
    }
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    position: absolute;
    /* Cambiado de fixed para que no flote sobre el logo del hero */
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    transition: all var(--transition-normal);
    background: transparent;
}


.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    /* Blanco puro con transparencia mínima */
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(231, 194, 79, 0.2);
    box-shadow: 0 4px 24px rgba(26, 26, 26, 0.1);
    padding: var(--spacing-sm) 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centrar todo ahora que no hay logo */
    position: relative;
}



.logo-text {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 900;
}

.logo-ajo {
    color: var(--oro-vibrante);
}

.logo-toro {
    color: var(--rojo-bravo);
    display: inline-flex;
    align-items: center;
}

.logo-toro-img {
    height: 1em;
    width: auto;
    margin-right: -0.05em;
    vertical-align: middle;
}


.nav-links {
    display: flex;
    /* Restaurado */
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    /* Color oscuro para legibilidad */
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    position: relative;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-link:hover {
    background: linear-gradient(135deg, var(--oro-vibrante), var(--dorado-oscuro));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--oro-vibrante);
    /* Fallback */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--oro-vibrante);
    transition: width var(--transition-normal);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    white-space: nowrap;
    margin-left: var(--spacing-xl);
    margin-right: var(--spacing-xl);
    /* Espacio aumentado en el lado derecho */
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* =====================================================
   HERO SECTION
   ===================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl) 0 80px;
    /* Más espacio al final */
    position: relative;
    overflow: hidden;
}

.hero::before {
    display: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.hero-content {
    animation: fade-in-up 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-brand-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    /* Espacio mínimo entre elementos */
    margin-bottom: var(--spacing-sm);
    /* Acercar descripción */
}


.hero-label {
    display: inline-block;
    background: #FFFFFF;
    border: 2px solid var(--oro-vibrante);
    padding: 10px 24px;
    /* Proporcional al nuevo tamaño del logo */
    border-radius: 50px;
    font-size: 0.875rem;
    /* Un poco más legible */
    font-weight: 800;
    color: var(--dorado-oscuro);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 4px 15px rgba(231, 194, 79, 0.1);
    margin-bottom: 0 !important;
}


.hero-logo-text {
    max-width: 240px;
    height: auto;
    margin-bottom: 0;
    mix-blend-mode: multiply;
    /* Funde el fondo blanco de la imagen */
    filter: brightness(1.05) contrast(1.02);
    /* Optimiza la integración */
}

.hero-brand-image {
    max-width: 280px;
    width: 100%;
    height: auto;
    object-fit: contain;
    min-height: auto;
    mix-blend-mode: multiply;
    /* Funde el fondo blanco de la imagen */
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.05)) brightness(1.05);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-bottom: -15px;
    margin-top: 0;
}

.hero-subtitle {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    font-family: var(--font-body);
    margin-bottom: 0;
    /* Sin margen inferior */
    letter-spacing: 1px;
    margin-top: 10px;
    /* Separación para que no choque */
}

.hero-brand-image:hover {
    transform: scale(1.02);
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    /* Un poco más compacto */
    margin-top: var(--spacing-xs);
    /* Muy cerca del subtítulo */
    margin-bottom: var(--spacing-lg);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}


.text-gold {
    background: linear-gradient(135deg, var(--oro-vibrante), var(--dorado-oscuro));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--oro-vibrante);
    font-weight: 800;
}

.text-red-gradient {
    background: linear-gradient(135deg, var(--rojo-bravo), #8B0000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--rojo-bravo);
    font-weight: 800;
    text-transform: uppercase;
}

.hero-ctas {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
    justify-content: center;
    /* Centrar botones */
}

.hero-stats {
    display: flex;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
    justify-content: center;
    /* Centrar estadísticas */
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--oro-vibrante);
    line-height: 1;
    text-shadow: 0 0 20px rgba(231, 194, 79, 0.3);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-container {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.hero-image {
    width: 100%;
    max-width: 800px;
    /* Aumentado para mayor impacto visual */
    height: auto;
    object-fit: contain;
    /* Muestra el video completo sin recortar */
    border-radius: var(--radius-xl);
    border: 3px solid var(--oro-vibrante);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(231, 194, 79, 0.3);
    transition: all 0.3s ease;
    background: #000;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle,
            rgba(231, 194, 79, 0.3) 0%,
            transparent 70%);
    filter: blur(40px);
    z-index: -1;
    animation: pulse-glow-bg 4s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    25% {
        transform: translateY(-20px) rotate(2deg);
    }

    50% {
        transform: translateY(-10px) rotate(-2deg);
    }

    75% {
        transform: translateY(-30px) rotate(1deg);
    }
}

@keyframes pulse-glow-bg {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 5px;
    /* Al límite inferior absoluto */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--oro-vibrante);
    margin-top: 4px;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* =====================================================
   SOCIAL PROOF
   ===================================================== */
.social-proof {
    padding: var(--spacing-xl) 0;
    background: #FFFFFF;
    /* Blanco puro */
    border-top: 1px solid rgba(231, 194, 79, 0.2);
    border-bottom: 1px solid rgba(231, 194, 79, 0.2);
}

.social-proof-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-proof-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-xl);
    flex-wrap: wrap;
}

.proof-item {
    font-size: 1.5rem;
    opacity: 0.7;
    transition: all var(--transition-normal);
}

.proof-item:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* =====================================================
   GLASS CARD (PARA FLIP CARDS) - NEGRO PURO
   ===================================================== */
.glass-card {
    /* Glassmorphism Legacy (si se usa en otro lado) */
    background: linear-gradient(135deg,
            rgba(255, 250, 240, 0.95) 0%,
            rgba(245, 238, 220, 0.98) 100%);
    /* Fondo CREMA CLARO para mejor proyección */
    border: 2px solid var(--dorado-oscuro);
    /* Borde dorado más oscuro para contraste */
    border-radius: var(--radius-xl);
    padding: var(--spacing-lg);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15),
        /* Sombra suave */
        inset 0 0 20px rgba(231, 194, 79, 0.1);
    color: var(--text-primary);
    /* Texto oscuro */
}

/* Hover eliminado para evitar conflictos con el flip */
.glass-card:hover {
    border-color: var(--oro-vibrante);
}

/* =====================================================
   SERVICIOS / SALSAS (FLIP CARDS)
   ===================================================== */
.services {
    padding: var(--spacing-3xl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

/* Card Container - Sin 3D */
/* Card Container - Con Borde de Luz Estelar */
.service-card-flip {
    position: relative;
    height: 450px;
    border-radius: var(--radius-md);
    overflow: hidden;
    padding: 3px;
    /* Espacio para el borde de luz */
    background: #000;
    /* Fondo base */
    box-shadow: 0 0 20px rgba(231, 194, 79, 0.1);
    /* Glow sutil externo */
    z-index: 1;
    /* Necesario para contexto de apilamiento */
}

/* Luz Estelar Rotativa */
.service-card-flip::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            transparent,
            transparent,
            var(--oro-vibrante),
            #FFF);
    animation: rotate-border 4s linear infinite;
    z-index: -1;
    /* Detrás del inner */
    filter: blur(8px);
    /* Efecto glow difuso */
}

/* Capa secundaria para definir el borde nítido si se desea */
.service-card-flip::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            transparent,
            transparent,
            var(--oro-vibrante),
            #FFF);
    animation: rotate-border 4s linear infinite;
    z-index: -2;
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: #111;
    /* Fondo oscuro interno */
    border-radius: calc(var(--radius-md) - 3px);
    /* Ajuste para encajar */
    overflow: hidden;
    z-index: 2;
    /* Sobre la luz */
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Eliminamos la rotación del flip */
.service-card-flip:hover .service-card-inner,
.service-card-flip.flipped .service-card-inner {
    transform: none;
}

/* Front & Back común */
/* Front & Back común */
.service-card-front,
.service-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-md);
    /* Reducido de xl a md */
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Front (Imagen) */
/* Front (Imagen) - Siempre visible al fondo */
.service-card-front {
    background: var(--negro-carbonizado);
    z-index: 1;
}

.service-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Mostrar imagen COMPLETA */
    object-position: center top;
    /* Alinear arriba */
    padding: 0 10px 10px 10px;
    /* Padding ligero */
    background-color: #151515;
    /* Fondo oscuro uniforme */
    filter: brightness(1.1) contrast(1.05);
    /* Luminosidad */
    transition: transform 0.6s ease;
}

.service-card-flip:hover .service-image {
    transform: scale(1.05);
}


.service-overlay {
    display: none;
    /* Oculto permanentemente */
}

/* Ocultar overlay original al hacer hover para limpiar la vista */
/* Mantener título frontal visible pero subirlo o desvanecerlo si se desea */
/* Ocultar overlay original al hacer hover para limpiar la vista */
/* Mantener título frontal visible pero suave */
.service-card-flip:hover .service-overlay {
    opacity: 0.8;
    transform: translateY(-5px);
    /* Movimiento mínimo */
}

/* Ocultar overlay al hacer hover para que no se superponga con la info */
.service-card-flip:hover .service-overlay {
    opacity: 0;
}

.service-title-front {
    /* Rojo Gradiente */
    background: linear-gradient(135deg, var(--rojo-bravo), #8B0000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--rojo-bravo);
    /* Fallback */

    font-size: 1rem;
    /* Aún más pequeño */
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Sombra suave para separar del fondo */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Back (Información) - Slide Up desde abajo */
.service-card-back {
    top: auto;
    bottom: 0;
    height: auto;
    width: 100%;
    transform: translateY(100%);
    /* Oculto inicialmente */

    /* Fondo degradado suave solo para legibilidad */
    /* Glassmorphism Dark Luminous */
    background: rgba(20, 20, 20, 0.4);
    /* Oscuro translúcido */
    backdrop-filter: blur(12px) saturate(180%);
    /* Desenfoque fuerte y saturación */
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    /* Sombra suave arriba */
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Borde de luz sutil */

    border: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    /* Espacio consistente entre elementos */
    padding: 24px 24px 60px;
    /* Elevar significativamente el contenido */
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Efecto Hover: Sube la info */
/* Efecto Hover: Sube la info */
.service-card-flip:hover .service-card-back {
    transform: translateY(0);
}

.service-title-back {
    color: var(--oro-vibrante);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.1rem;
    /* Restaurar un poco de presencia */
    margin: 0;
    /* Controlado por gap */
    font-weight: 700;
    letter-spacing: 0.5px;
}

.service-description {
    color: #FFFFFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 0.8rem;
    /* Un poco más legible */
    line-height: 1.4;
    margin: 0;
    /* Controlado por gap */
    flex-grow: 0;
    font-weight: 400;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: 0;
    /* Sin margen abajo para que toque el borde */
}

.feature-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 3px 8px;
    /* Padding micro */
    border-radius: 50px;
    font-size: 0.65rem;
    /* Texto tamaño caption */
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* =====================================================
   ABOUT / TRADICIÓN
   ===================================================== */
.about {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, rgba(231, 194, 79, 0.03), rgba(177, 141, 52, 0.03));
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

/* Glassmorphism & Motion for About Image */
.about-image {
    position: relative;
    animation: float-image 6s ease-in-out infinite;
    /* Movimiento flotante */
    z-index: 1;
}

/* Efecto Brillo Cristalino sobre la imagen */
.about-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0.05) 40%,
            transparent 50%,
            rgba(255, 255, 255, 0.05) 60%,
            rgba(255, 255, 255, 0.1) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Borde de cristal */
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.05);
    /* Reflejo interno */
    pointer-events: none;
    /* Dejar clickear imagen si fuera necesario */
}

.about-img-file {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    /* Sombra profunda para levantar la imagen */
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    /* Borde sutil extra */
    filter: brightness(1.05) contrast(1.05);
    /* Mejorar imagen */
    display: block;
}

@keyframes float-image {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.about-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle,
            rgba(231, 194, 79, 0.2) 0%,
            transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

.about-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
    /* Para estar sobre el glow */
}

.about-text {
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-values {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
    flex-wrap: wrap;
}

.value-item {
    text-align: center;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-xs);
}

.value-text {
    font-weight: 700;
    color: var(--oro-vibrante);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
}

/* =====================================================
   TESTIMONIOS
   ===================================================== */
.testimonials {
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    /* Reducido fondo */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

/* Card Testimonio - Estilo Estelar Rotativo Premium */
.testimonial-card {
    position: relative;
    padding: var(--spacing-xl);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: transparent;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    z-index: 1;
    margin-bottom: var(--spacing-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(231, 194, 79, 0.2);
}

/* Luz Láser Oro Rutilante */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            transparent,
            transparent,
            var(--oro-vibrante),
            #fff,
            var(--oro-vibrante));
    animation: rotate-border 3s linear infinite;
    /* Un poco más rápido para efecto láser */
    z-index: -2;
    filter: blur(5px);
    /* Menos blur para que el borde se vea más "afilado" */
}

/* Fondo Interno Negro Super Premium */
.testimonial-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    /* Borde más fino para el efecto láser */
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #050505 100%);
    border-radius: calc(var(--radius-md) - 2px);
    z-index: -1;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8);
}

.testimonial-rating {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #E0E0E0;
    /* Texto claro para fondo oscuro */
    margin-bottom: var(--spacing-md);
    font-style: italic;
    position: relative;
    padding-left: var(--spacing-md);
}

.testimonial-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: var(--oro-vibrante);
    opacity: 0.3;
    font-family: var(--font-display);
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--oro-vibrante), var(--dorado-oscuro));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    border: 2px solid rgba(231, 194, 79, 0.3);
}

.author-name {
    font-weight: 700;
    color: var(--oro-vibrante);
    /* Dorado para el nombre */
}

.author-role {
    font-size: 0.875rem;
    color: rgba(245, 238, 220, 0.7);
    /* Crema translúcido */
}

/* =====================================================
   CTA FINAL
   ===================================================== */
.cta-final {
    padding: var(--spacing-xl) 0;
    /* Reducido de 3xl para menos espacio */
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(231, 194, 79, 0.1);
}

.cta-final::before {
    display: none;
    /* Quitamos el brillo amarillo de fondo */
}


.cta-container {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.cta-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-note {
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--rojo-bravo);
    font-weight: 600;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: #FFFFFF;
    color: var(--text-primary);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
    border-top: 1px solid rgba(231, 194, 79, 0.2);
}

.footer-tagline,
.footer-section-title,
.footer-contact-item,
.social-link,
.footer-bottom p {
    color: var(--text-secondary) !important;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Dos columnas iguales: Marca y Contacto */
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
    align-items: center;
    /* Alinear verticalmente */
}

.footer-column:first-child {
    text-align: center;
    /* Marca centrada internamente */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-column:last-child {
    text-align: center;
    /* Contacto centrado */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Asegurar que los hijos flexibles también se centren */
}

.footer-brand {
    margin-bottom: var(--spacing-sm);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.footer-logo {
    height: 90px;
    /* Un poco más grande para destacar */
    width: auto;
    display: block;
}

.footer-tagline {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--oro-vibrante);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    text-align: center;
    /* Texto centrado */
}

.footer-description {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    line-height: 1.6;
    text-align: center;
    /* Texto centrado */
    max-width: 300px;
    /* Limitar ancho para que se vea mejor */
}

.footer-title {
    color: var(--rojo-bravo);
    font-size: 1.5rem;
    /* Título más grande */
    margin-bottom: var(--spacing-md);
    font-family: var(--font-display);
    font-weight: 700;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 1.1rem;
    /* Texto de contacto más grande */
    font-weight: 500;
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
    /* Más espacio entre iconos */
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    /* Iconos más grandes */
    transition: all var(--transition-fast);
}

.social-link:hover {
    color: var(--oro-vibrante);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(231, 194, 79, 0.2);
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-bottom: 4px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Tablet */
@media (max-width: 1023px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-visual {
        order: 1;
        margin-bottom: var(--spacing-lg);
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .about-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-values {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .navbar {
        position: fixed !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px);
        padding: 10px 0 !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links {
        display: none;
        /* Oculto por defecto en móvil */
    }

    .nav-cta {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        z-index: 1002;
    }

    .mobile-menu-toggle span {
        background: var(--text-primary) !important;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        padding: 100px 20px 20px;
        gap: 25px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1001;
        transition: all 0.3s ease;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 60px !important;
        /* Más espacio arriba */
        display: flex;
        flex-direction: column;
    }

    .hero-content {
        order: 1 !important;
        /* Texto primero */
        margin-bottom: 40px;
    }

    .hero-visual {
        order: 2 !important;
        /* Video después */
        width: 100%;
    }

    .hero-image {
        max-width: 100% !important;
    }

    .hero-brand-image {
        max-width: 90%;
        /* Ajuste para móviles */
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: var(--spacing-md);
    }

    .hero-ctas button {
        width: 100%;
    }

    .hero-stats {
        gap: var(--spacing-md);
    }

    .stat-number {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card-flip {
        height: 400px;
    }

    .service-card-flip {
        cursor: pointer;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center !important;
        /* Forzar centrado en mobile */
    }

    .footer-brand {
        display: flex;
        justify-content: center;
        /* Centrar logo en mobile */
        width: 100%;
    }

    .footer-tagline,
    .footer-description {
        text-align: center;
        /* Centrar textos en mobile */
    }

    .footer-social {
        justify-content: center;
    }

    .particle:nth-child(n+20) {
        display: none;
    }
}

/* Desktop XL */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
}

/* =====================================================
   WHATSAPP BUTTON
   ===================================================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: all 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    /* Borde blanco para resaltar */
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: #FFF;
    /* Icono blanco */
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    /* Glow verde al hover */
    background-color: #20b957;
    /* Verde un poco más oscuro */
}

.whatsapp-float:active {
    transform: scale(0.95);
}

/* Animación de pulso sutil para llamar la atención */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float {
    animation: pulse-green 2s infinite;
}

/* Ajuste para móvil para que no tape contenido importante si es necesario */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
}

/* =====================================================
   FRIENDS MOMENT (SCROLL REVEAL)
   ===================================================== */
.friends-moment {
    padding: var(--spacing-xl) 0 60px;
    /* Reducido de 3xl */
    text-align: center;
    background: #000;
    position: relative;
    overflow: hidden;
}

.friends-container {
    max-width: 1200px;
    /* Aumentado para permitir fotos grandes */
    margin: 0 auto;
    width: 90%;
}

/* =====================================================
   GOPRO CAMERA STYLE FOR FRIENDS TITLE
   ===================================================== */
.gopro-camera {
    background: #000;
    border: 15px solid #1a1a1a;
    /* Marco de la cámara */
    border-radius: 25px;
    padding: 30px 20px;
    margin: 0 auto var(--spacing-xl);
    max-width: 600px;
    /* Reducido para que se vea más pequeño que las fotos */
    position: relative;
    box-shadow:
        0 0 0 2px #333,
        /* Borde fino exterior */
        0 20px 60px rgba(0, 0, 0, 0.8),
        /* Sombra profunda */
        inset 0 0 100px rgba(0, 0, 0, 0.9);
    /* Vignette interno */
    overflow: hidden;
    font-family: 'Roboto', sans-serif;
    /* Fuente técnica para UI */
}

/* UI Header (REC + Battery) */
.gopro-ui-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1rem;
    font-weight: 700;
    font-family: monospace;
    /* Look digital */
    color: #fff;
    opacity: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 5;
}

.gopro-rec {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.rec-dot {
    width: 14px;
    height: 14px;
    background: #FF0000;
    border-radius: 50%;
    box-shadow: 0 0 10px #FF0000;
    animation: blink-rec 1s infinite alternate;
}

.rec-text {
    letter-spacing: 1px;
}

.gopro-battery {
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* UI Footer (Mode) */
.gopro-ui-footer {
    margin-top: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 5;
}

/* Title (Inside Camera) */
.friends-title {
    font-family: 'Playfair Display', serif;
    /* Reducido para encajar, pero manteniendo impacto */
    font-size: clamp(1.8rem, 5vw, 3.5rem) !important;
    font-style: italic;
    font-weight: 900;
    line-height: 1.1;
    margin: 0;
    padding: 0;

    /* Rojo Metálico Perfecto */
    background: linear-gradient(to bottom,
            #ffffff 0%,
            #ff4d4d 30%,
            #e60000 60%,
            #800000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;

    filter: drop-shadow(0 4px 0 #330000) drop-shadow(0 0 30px rgba(255, 0, 0, 0.4));
    transform: perspective(500px) rotateX(2deg);
    /* Sutil 3D */
    z-index: 2;
    position: relative;
}

/* Lens Flare Effect (Optional) */
.gopro-lens-flash {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
}

@keyframes blink-rec {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

@media (max-width: 767px) {
    .friends-moment {
        padding-top: 80px !important;
        /* Asegurar que no lo tape la navbar */
    }

    .gopro-camera {
        border-width: 8px;
        /* Borde más fino en móvil */
        padding: 20px 15px;
        border-radius: 15px;
        margin-bottom: 30px;
        display: block !important;
        visibility: visible !important;
        z-index: 10;
    }

    .friends-title {
        font-size: 1.8rem !important;
        letter-spacing: 1px;
        color: #ffffff !important;
        background: transparent !important;
        -webkit-background-clip: border-box !important;
        background-clip: border-box !important;
        -webkit-text-fill-color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .gopro-ui-header,
    .gopro-ui-footer,
    .gopro-rec,
    .gopro-battery,
    .gopro-mode {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8) !important;
    }

    .gopro-ui-header {
        font-size: 0.75rem;
        justify-content: space-between;
        width: 100%;
    }

    .gopro-ui-footer {
        font-size: 0.75rem;
        justify-content: center;
        margin-top: 15px;
    }

    .rec-dot {
        width: 10px;
        height: 10px;
    }
}

/* ... existing scroll reveal styles ... */

.scroll-reveal-wrapper {
    position: relative;
    padding: 20px;
    background: radial-gradient(circle, rgba(231, 194, 79, 0.1) 0%, transparent 70%);
    display: block;
    /* Cambiado de inline-block para manejar el ancho */
    max-width: 1000px;
    /* Amplificado para que sea más grande que la GoPro */
    margin: 0 auto;
    border-radius: var(--radius-xl);
}

/* ... existing wrapper styles ... */

.carousel-track {
    display: grid;
    grid-template-areas: "stack";
    position: relative;
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.carousel-slide {
    grid-area: stack;
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 0 10px rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(231, 194, 79, 0.3);

    opacity: 0;
    transition: opacity 1s ease-in-out;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

/* Efecto Hover container */
.scroll-reveal-wrapper:hover .carousel-slide.active {
    transform: scale(1.02);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.9),
        0 0 0 10px rgba(255, 255, 255, 0.1),
        0 0 30px rgba(231, 194, 79, 0.2);
    transition: all 0.5s ease;
}

/* =====================================================
   AI CHEF WIDGET (INTEGRADO EN FOTOS)
   ===================================================== */
.chef-floating-btn {
    position: absolute;
    /* Relativo al wrapper local de fotos */
    top: -45px;
    /* Mucho más arriba, sobresaliendo */
    left: 50%;
    transform: translateX(-50%);
    width: 85px;
    /* Más grande */
    height: 85px;
    /* Más grande */
    background: rgba(0, 0, 0, 0.8);
    /* Más oscuro para contraste */
    border: 3px solid var(--oro-vibrante);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(231, 194, 79, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    /* Asegurar que esté encima de todo */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chef-floating-btn:hover {
    transform: translateX(-50%) scale(1.1);
    background: var(--oro-vibrante);
    box-shadow: 0 0 30px rgba(231, 194, 79, 0.8);
}

.chef-icon {
    font-size: 45px;
    /* Icono más grande */
}

.chef-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.chef-tooltip {
    position: absolute;
    top: 95px;
    /* Debajo del botón grande */
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: var(--oro-vibrante);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    white-space: nowrap;
    border: 1px solid var(--oro-vibrante);
}

.chef-floating-btn:hover .chef-tooltip {
    opacity: 1;
}

/* Ventana de Chat (Flotante Global Centrada) */
.chef-chat-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%) scale(0.9);
    /* Inicio un poco desplazado */
    width: 350px;
    height: 500px;
    background: #1a1a1a;
    border: 1px solid var(--dorado-oscuro);
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    display: flex;
    flex-direction: column;
    z-index: 2000;
    overflow: hidden;

    /* Estado oculto */
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chef-chat-window.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
    /* Centro exacto */
}

/* Header */
.chef-header {
    background: linear-gradient(135deg, var(--oro-vibrante), #B18D34);
    padding: 15px;
    display: flex;
    align-items: center;
    color: #000;
}

.chef-avatar-small {
    font-size: 24px;
    margin-right: 10px;
    background: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chef-title h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 800;
}

.chef-title span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.chef-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
    opacity: 0.6;
}

.chef-close:hover {
    opacity: 1;
}

/* Mensajes */
.chef-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #111;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 0.9rem;
}

.chef-message {
    padding: 10px 15px;
    border-radius: 10px;
    max-width: 85%;
    line-height: 1.5;
}

.chef-message.chef {
    background: #2a2a2a;
    color: #e0e0e0;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    border: 1px solid #333;
}

.chef-message.user {
    background: var(--dorado-oscuro);
    color: #000;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

/* Input Area */
.chef-input-area {
    padding: 15px;
    background: #222;
    display: flex;
    gap: 10px;
    border-top: 1px solid #333;
}

#chef-input {
    flex: 1;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #444;
    background: #333;
    color: white;
    outline: none;
}

#chef-input:focus {
    border-color: var(--oro-vibrante);
}

#chef-send-btn {
    background: var(--oro-vibrante);
    border: none;
    padding: 0 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
    color: #000;
    transition: transform 0.2s;
}

#chef-send-btn:hover {
    transform: scale(1.05);
}

/* Animación de carga */
.chef.loading span {
    display: inline-block;
    animation: bounce-dots 1.4s infinite ease-in-out both;
    margin: 0 2px;
    font-size: 20px;
}

.chef.loading span:nth-child(1) {
    animation-delay: -0.32s;
}

.chef.loading span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce-dots {

    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Media Query Mobile */
/* Media Query Mobile para el Chat */
/* MÓVIL: CORRECCIONES FINALES DE LAYOUT Y CHAT */
@media (max-width: 767px) {

    /* 1. NAVBAR Y MENU */
    .navbar {
        position: fixed !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(10px);
        padding: 10px 0 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        z-index: 9999 !important;
        /* Por encima de todo */
    }

    .mobile-menu-toggle {
        display: flex !important;
        z-index: 10000 !important;
        /* Botón hamburguesa visible siempre */
    }

    .nav-links {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        padding-top: 100px;
        /* Espacio para no chocar con logo */
        padding-left: 20px;
        padding-right: 20px;
        z-index: 9998;
        overflow-y: auto;
    }

    /* 2. HERO SECTION - VIDEO QUE NO TOCA EL MENU */
    .hero {
        padding-top: 160px !important;
        /* MUCHO espacio arriba */
        padding-bottom: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        min-height: auto;
    }

    .hero-content {
        order: 1 !important;
        /* Texto va primero */
        margin-bottom: 40px;
        width: 100%;
    }

    .hero-visual {
        order: 2 !important;
        /* Video va despues */
        width: 100%;
        margin-top: 20px;
        margin-bottom: 40px;
    }

    .hero-image {
        max-width: 90% !important;
        /* Un poco más pequeño para que no se vea gigante */
        height: auto;
        margin: 0 auto;
        display: block;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    /* 3. CHAT IA - TAMAÑO CONTROLADO Y CENTRADO */
    .chef-chat-window {
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        /* Centrado perfecto */
        width: 85vw !important;
        /* 85% del ancho de pantalla */
        max-width: 350px !important;
        /* Nunca más ancho que esto */
        height: 70vh !important;
        /* 70% del alto de pantalla */
        max-height: 550px !important;
        border-radius: 20px;
        z-index: 99999 !important;
        /* Encima de absolutamente todo */
        box-shadow: 0 0 100px rgba(0, 0, 0, 0.8);
        /* Sombra intensa para destacar */
        bottom: auto !important;
        right: auto !important;
    }

    .chef-chat-window.active {
        opacity: 1;
        pointer-events: all;
    }

    .chef-floating-btn.integrated {
        position: fixed;
        bottom: 100px;
        right: 20px;
        width: 60px;
        /* Un poco más discreto */
        height: 60px;
        z-index: 9990;
    }

    /* 4. TESTIMONIOS/CASOS DE ÉXITO EN MÓVIL (MÁS COMPACTOS) */
    .testimonial-card {
        padding: 15px !important;
        margin-bottom: 20px !important;
        background: #000 !important;
        /* Fondo negro sólido para mejor rendimiento */
        border: 1px solid var(--dorado-oscuro);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    }

    .testimonial-card::before,
    .testimonial-card::after {
        display: none !important;
        /* Quitar efectos pesados en móvil */
    }

    .testimonial-text {
        font-size: 0.9rem !important;
        /* Texto más pequeño */
        line-height: 1.4 !important;
        padding-left: 15px !important;
        margin-bottom: 15px !important;
        color: #f0f0f0 !important;
        /* Mayor contraste */
    }

    .testimonial-text::before {
        font-size: 2.5rem !important;
        /* Comilla más pequeña */
        top: -5px !important;
    }

    .testimonial-author {
        gap: 10px !important;
    }

    .author-avatar {
        width: 35px !important;
        /* Avatar más chico */
        height: 35px !important;
        font-size: 1rem !important;
    }

    .author-name {
        font-size: 0.9rem !important;
    }

    .author-role {
        font-size: 0.75rem !important;
    }

    /* Ajustes internos del chat */
    .chef-input-area {
        padding: 10px;
        padding-bottom: env(safe-area-inset-bottom, 10px);
    }

    #chef-input {
        font-size: 16px !important;
    }
}