/* ========================================
   EGOH CLINIC - OPTIMIZED STYLES
   ======================================== */

/* ========================================
   1. RESET AND BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Termina', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   2. TYPOGRAPHY SYSTEM
   ======================================== */
@font-face {
    font-family: 'Termina';
    src: url('./TerminaTest-Regular.otf') format('opentype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Termina';
    src: url('./TerminaTest-Medium.otf') format('opentype');
    font-weight: 500;
    font-display: swap;
}

:root {
    --color-primary: #1a1a1a;
    --color-accent: #A75FFF;
    --color-secondary: #4abbf6;
    --color-text: #ffffff;
    --color-muted: rgba(255, 255, 255, 0.7);
    --color-border: rgba(255, 255, 255, 0.1);
    --font-primary: 'Termina', sans-serif;
    --transition-base: all 0.3s ease;
    --border-radius: 0.5rem;
    --shadow-base: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.termina-regular {
    font-family: var(--font-primary);
    font-weight: 400;
}

.termina-medium {
    font-family: var(--font-primary);
    font-weight: 500;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

/* ========================================
   TIPOGRAFÍA CONSISTENTE PARA H1 CON TERMINA MEDIUM
   ======================================== */

/* Estilo base para todos los elementos h1 con TerminaTest-Medium */
h1 {
    font-family: 'Termina', var(--font-primary) !important;
    font-weight: 500 !important; /* Peso específico para TerminaTest-Medium.otf */
    font-size: clamp(2rem, 5vw, 4rem) !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 1rem !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5) !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    font-display: swap !important; /* Optimización de carga */
}

/* Efectos especiales para spans dentro de h1 */
h1 .resaltado-morado,
h1 .accent-text,
h1 .texto-morado {
    color: var(--color-accent) !important;
    font-weight: 500 !important; /* Mantener TerminaTest-Medium */
    text-shadow: 0 2px 4px rgba(167, 95, 255, 0.3) !important;
}

/* Spans con color blanco específico */
h1 span[style*="color: white"],
h1 span[style*="color:#ffffff"],
h1 span[style*="color: #ffffff"] {
    color: white !important;
    font-weight: 500 !important; /* Mantener TerminaTest-Medium */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7) !important;
}

/* Asegurar que los saltos de línea funcionen correctamente */
h1 br {
    display: block !important;
    content: "" !important;
    margin-top: 0.3em !important;
}

h3 {
    color: #b5aff7;
    font-size: clamp(1rem, 4vw, 1.5rem); /* Tamaño responsivo */
    line-height: 1.3;
    word-wrap: break-word;
    hyphens: auto;
}

p, li {
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Typography Utilities */
.display-xl {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
}

.heading-xl {
    font-size: clamp(1.5rem, 4vw, 2.5rem); /* Ajustado para mejor responsividad */
    font-weight: 600;
    line-height: 1.2;
    word-wrap: break-word;
}

.heading-lg {
    font-size: clamp(1.25rem, 3vw, 2rem); /* Ajustado para mejor responsividad */
    font-weight: 600;
    line-height: 1.2;
    word-wrap: break-word;
}

.body-lg {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.body-sm {
    font-size: 0.875rem;
}

.titulo-seccion {
    font-size: 1.8em;
    text-transform: uppercase;
    font-weight: 600;
    color: #EAEAEA;
    margin-bottom: 0.5em;
    text-align: center;
}

/* ========================================
   3. LAYOUT SYSTEM
   ======================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
    contain: layout style paint;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.divider {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), #A855F7);
    margin: 3rem auto;
    border-radius: 2px;
}

/* ========================================
   4. NAVIGATION SYSTEM
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.nav-scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-base);
}

.logo-container:hover {
    transform: scale(1.05);
}

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: var(--color-muted);
    text-decoration: none;
    transition: var(--transition-base);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    min-height: 44px;
    min-width: 44px;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.mobile-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

.hamburger-line {
    width: 1.5rem;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition-base);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 50;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-close {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
}

.mobile-menu-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
    transition: var(--transition-base);
}

.mobile-menu-link:hover {
    color: var(--color-accent);
}

/* ========================================
   5. HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    contain: layout style paint;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(167, 95, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

/* ========================================
   6. BUTTON SYSTEM
   ======================================== */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 44px;
    text-align: center;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.btn-primary {
    background-color: transparent;
    border-color: var(--color-text);
    color: var(--color-text);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(168, 85, 247, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.boton-izquierdo-transparente {
    background-color: transparent;
    border: 2px solid var(--color-text);
    color: var(--color-text);
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition-base);
}

.boton-derecho-blanco {
    color: var(--color-text);
    border: 2px solid var(--color-text);
    background: transparent;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: var(--transition-base);
}

/* ========================================
   7. CARD SYSTEM - OPTIMIZED TYPOGRAPHY
   ======================================== */

/* Base Card Styles with Uniform Heights */
.service-card,
.beast-card,
.tarjeta-version {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 420px; /* Altura uniforme base */
    padding: 2rem;
    border-radius: 1rem;
    transition: var(--transition-base);
    border: 1px solid var(--color-border);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    min-height: 600px; /* Altura específica para service cards */
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(168, 85, 247, 0.3);
}

/* Beast Cards */
.beast-card {
    background: rgba(255, 255, 255, 0.05);
    min-height: 420px; /* Altura uniforme para beast cards */
}

.beast-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-base);
    border-color: rgba(74, 187, 246, 0.3);
}

/* Version Cards */
.tarjeta-version {
    background: rgba(255, 255, 255, 0.05);
    min-height: 380px; /* Altura optimizada para version cards */
}



/* ========================================
   OPTIMIZED TYPOGRAPHY SYSTEM
   ======================================== */

/* Card Titles - Tamaño optimizado para centrado perfecto */
.card-title,
.beast-titulo,
.titulo-version {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem); /* Responsive y optimizado */
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text);
    line-height: 1.3; /* Optimizado para centrado */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 2.5rem; /* Altura mínima para consistencia */
}

/* Card Subtitles - Tamaño calculado para equilibrio visual */
.card-subtitle,
.beast-subtitulo,
.subtitulo-version {
    font-size: clamp(0.875rem, 1.8vw, 1rem); /* Tamaño responsive optimizado */
    opacity: 0.9;
    font-weight: 500;
    color: var(--color-muted);
    margin-bottom: 1rem;
    line-height: 1.5; /* Optimizado para legibilidad */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 0.5rem; /* Padding interno para mejor centrado */
}

/* Card Descriptions - Tamaño balanceado */
.card-description {
    font-size: clamp(0.875rem, 1.6vw, 0.95rem); /* Tamaño optimizado */
    color: var(--color-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1rem; /* Padding para mejor distribución */
}

/* ========================================
   CIRCULAR NUMBERS - OPTIMIZED
   ======================================== */
.beast-circulo-numero,
.circulo-numero {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
    font-size: clamp(1.75rem, 3vw, 2rem); /* Tamaño responsive del número */
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.beast-circulo-numero {
    background: var(--color-secondary);
    color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(74, 187, 246, 0.4);
}

.circulo-numero {
    background: var(--color-accent);
    color: var(--color-primary);
    box-shadow: 0 8px 25px rgba(167, 95, 255, 0.4);
}



/* ========================================
   RESPONSIVE TYPOGRAPHY OPTIMIZATIONS
   ======================================== */

/* Tablet Adaptations */
@media (min-width: 768px) and (max-width: 1023px) {
    .service-card,
    .beast-card,
    .tarjeta-version {
        min-height: 380px;
        padding: 1.75rem;
    }
    
    .service-card {
        min-height: 520px;
    }
    
    .card-title,
    .beast-titulo,
    .titulo-version {
        font-size: clamp(1.125rem, 2.2vw, 1.375rem);
        min-height: 2.25rem;
    }
    
    .card-subtitle,
    .beast-subtitulo,
    .subtitulo-version {
        font-size: clamp(0.8rem, 1.6vw, 0.925rem);
    }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .service-card,
    .beast-card,
    .tarjeta-version {
        min-height: 320px;
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-card {
        min-height: 420px;
    }
    
    .card-title,
    .beast-titulo,
    .titulo-version {
        font-size: clamp(1rem, 4vw, 1.25rem);
        min-height: 2rem;
        margin-bottom: 0.75rem;
    }
    
    .card-subtitle,
    .beast-subtitulo,
    .subtitulo-version {
        font-size: clamp(0.75rem, 3.2vw, 0.875rem);
        margin-bottom: 0.75rem;
        padding: 0 0.25rem;
    }
    
    .card-description {
        font-size: clamp(0.8rem, 3vw, 0.875rem);
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .beast-circulo-numero,
    .circulo-numero {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
        font-size: clamp(1.5rem, 4vw, 1.75rem);
    }
}

/* Ultra-small devices */
@media (max-width: 480px) {
    .service-card,
    .beast-card,
    .tarjeta-version {
        min-height: 280px;
        padding: 1.25rem;
    }
    
    .service-card {
        min-height: 360px;
    }
    
    .card-title,
    .beast-titulo,
    .titulo-version {
        font-size: clamp(0.95rem, 4.5vw, 1.125rem);
        min-height: 1.75rem;
    }
    
    .card-subtitle,
    .beast-subtitulo,
    .subtitulo-version {
        font-size: clamp(0.7rem, 3.5vw, 0.8rem);
    }
    
    .beast-circulo-numero,
    .circulo-numero {
        width: 60px;
        height: 60px;
        font-size: clamp(1.25rem, 4.5vw, 1.5rem);
    }
}

/* ========================================
   SPECIAL COLOR VARIANTS
   ======================================== */
.beast-titulo {
    color: var(--color-secondary);
    line-height: 1.3 !important;
    display: block !important;
}

.beast-titulo span[style*="color: white"] {
    color: white !important;
}

/* Ensure proper line breaks in beast-titulo */
.beast-titulo br {
    display: block !important;
    content: "";
    margin-top: 0.5em;
}

.titulo-version {
    color: var(--color-accent);
}



/* ========================================
*/

/* ========================================
   8. COMPARISON SECTION
   ======================================== */
#comparacion h1,
#comparacion h2 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: #F8F8F8;
    line-height: 1.2;
    text-align: center;
    margin-bottom: 0.2em;
}

#comparacion .resaltado-morado {
    color: var(--color-accent);
}

#comparacion .separador-linea {
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 1em auto 2.5em auto;
    border-radius: 2px;
    display: block;
}

#comparacion .descripcion-texto {
    font-family: 'Inter', sans-serif;
    font-size: 1.1em;
    font-weight: 400;
    color: #CCCCCC;
    line-height: 1.6;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ========================================
   9. UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-white { color: var(--color-text); }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.muted-text { color: var(--color-muted); }
.accent-text { color: var(--color-accent) !important; }
.texto-morado { color: var(--color-accent); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.object-cover { object-fit: cover; }
.object-center { object-position: center; }
.absolute { position: absolute; }
.relative { 
    position: relative; 
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
}
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.opacity-5 { opacity: 0.05; }

/* Spacing */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Layout */
.flex { 
    display: flex; 
    background: transparent !important;
    background-color: transparent !important;
}
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { 
    justify-content: center; 
    background: transparent !important;
    background-color: transparent !important;
}
.justify-between { justify-content: space-between; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hidden { display: none; }

/* Sizing */
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-sm { max-width: 24rem; }

/* Colors and Effects */
.bg-accent { background-color: var(--color-accent); }
.bg-black { background-color: #000000; }
.text-black { color: #000000; }
.text-2xl { font-size: 1.5rem; }
.text-4xl { font-size: 2.25rem; }
.text-6xl { font-size: 3.75rem; }
.text-xl { font-size: 1.25rem; }
.font-light { font-weight: 300; }
.tracking-wider { letter-spacing: 0.05em; }
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-2xl { border-radius: 1rem; }
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-accent { border-color: var(--color-accent); }
.border-black { border-color: #000000; }

/* Padding */
.p-8 { padding: 2rem; }
.mr-4 { margin-right: 1rem; }
.flex-shrink-0 { flex-shrink: 0; }
.mt-3 { margin-top: 0.75rem; }

/* Aspect Ratios */
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-square { aspect-ratio: 1 / 1; }

/* Transitions */
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Scrolling */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.snap-x { scroll-snap-type: x mandatory; }
.snap-mandatory { scroll-snap-type: x mandatory; }
.snap-center { scroll-snap-align: center; }
.overflow-x-auto { overflow-x: auto; }

/* ========================================
   10. ANIMATION SYSTEM
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    will-change: transform, opacity;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

.reveal-fade {
    opacity: 0;
    transition: opacity 0.6s ease;
    will-change: opacity;
}

.reveal-fade.in-view {
    opacity: 1;
    will-change: auto;
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s ease;
    will-change: transform, opacity;
    background: transparent;
    box-shadow: none;
    border: none;
}

.reveal-scale.in-view {
    opacity: 1;
    transform: scale(1);
    will-change: auto;
    background: transparent;
    box-shadow: none;
    border: none;
}

/* ========================================
   11. ACCESSIBILITY
   ======================================== */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

*:focus {
    outline: 2px solid #4abbf6;
    outline-offset: 2px;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   12. RESPONSIVE DESIGN
   ======================================== */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .mobile-menu-button {
        display: none;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .section {
        padding: 6rem 0;
    }
    
    .card-title {
        font-size: 2rem;
    }
    
    .card-subtitle {
        font-size: 1.125rem;
    }
    
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
    
    .section {
        padding: 8rem 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary, .btn-secondary {
        border: 2px solid currentColor;
    }
    
    .nav-link:hover, .nav-link:focus {
        background-color: rgba(255, 255, 255, 0.2);
        outline: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal, .reveal-fade, .reveal-scale {
        animation: none !important;
        transition: none !important;
    }
    
    .service-card:hover,
    .beast-card:hover {
        transform: none !important;
    }
}

/* ========================================
   13. FOOTER
   ======================================== */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

/* ========================================
   14. IMAGE OPTIMIZATION
   ======================================== */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Beast Version Image Styles */
.beast-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
}

.beast-version-image {
    max-width: 100%;
    height: auto;
    background: transparent;
    border: none;
    outline: none;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Responsive sizing for beast version image */
@media (max-width: 640px) {
    .beast-version-image {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .beast-image-container {
        padding: 0 0.5rem;
        margin-top: 1.5rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .beast-version-image {
        max-width: 80%;
    }
    
    .beast-image-container {
        margin-top: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .beast-version-image {
        max-width: 70%;
    }
    
    .beast-image-container {
        margin-top: 2.5rem;
    }
}

@media (min-width: 1025px) {
    .beast-version-image {
        max-width: 60%;
    }
    
    .beast-image-container {
        margin-top: 3rem;
    }
}

/* Hover effect for desktop */
@media (hover: hover) {
    .beast-version-image:hover {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

/* Accessibility and motion preferences */
@media (prefers-reduced-motion: reduce) {
    .beast-version-image {
        transition: none;
    }
}

/* Focus states for accessibility */
.beast-version-image:focus {
    outline: 2px solid #4abbf6;
    outline-offset: 4px;
    border-radius: 4px;
}

/* Premium Version Image Styles - Identical to Beast */
.premium-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 1rem;
}

.premium-version-image {
    max-width: 100%;
    height: auto;
    background: transparent;
    border: none;
    outline: none;
    display: block;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Responsive sizing for premium version image */
@media (max-width: 640px) {
    .premium-version-image {
        max-width: 90%;
        margin: 0 auto;
    }
    
    .premium-image-container {
        padding: 0 0.5rem;
        margin-top: 1.5rem;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    .premium-version-image {
        max-width: 80%;
    }
    
    .premium-image-container {
        margin-top: 2rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .premium-version-image {
        max-width: 70%;
    }
    
    .premium-image-container {
        margin-top: 2.5rem;
    }
}

@media (min-width: 1025px) {
    .premium-version-image {
        max-width: 60%;
    }
    
    .premium-image-container {
        margin-top: 3rem;
    }
}

/* Hover effect for desktop */
@media (hover: hover) {
    .premium-version-image:hover {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

/* Accessibility and motion preferences */
@media (prefers-reduced-motion: reduce) {
    .premium-version-image {
        transition: none;
    }
}

/* Focus states for accessibility */
.premium-version-image:focus {
    outline: 2px solid #8B5CF6;
    outline-offset: 4px;
    border-radius: 4px;
}

/* ===== PREMIUM MOBILE CAROUSEL STYLES ===== */

/* Carousel Container */
.premium-carousel-container {
    width: 100%;
    position: relative;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

/* Carousel Track */
.premium-carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Individual Carousel Slides */
.premium-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Smooth transitions for touch interactions */
.premium-carousel-track.dragging {
    transition: none;
}

/* Carousel Indicators */
.premium-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.premium-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #8B5CF6, #A855F7);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.premium-indicator.active::before {
    transform: scale(1);
}

.premium-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.premium-indicator.active {
    background: transparent;
}

/* Mobile-specific optimizations */
@media (max-width: 767px) {
    .premium-carousel-container {
        margin: 0 -16px;
        padding: 0 16px;
    }
    
    .premium-carousel-slide {
        padding: 0 12px;
    }
    
    /* Enhanced touch targets for indicators */
    .premium-indicator {
        width: 14px;
        height: 14px;
        margin: 0 4px;
    }
}

/* Small mobile optimizations */
@media (max-width: 479px) {
    .premium-carousel-slide {
        padding: 0 8px;
    }
    
    .premium-indicator {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}

/* Very small screens */
@media (max-width: 359px) {
    .premium-carousel-container {
        margin: 0 -12px;
        padding: 0 12px;
    }
    
    .premium-carousel-slide {
        padding: 0 6px;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .premium-carousel-track {
        transition: none;
    }
    
    .premium-indicator {
        transition: none;
    }
}

/* Focus states for keyboard navigation */
.premium-indicator:focus {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

/* Swipe gesture visual feedback */
.premium-carousel-track.swiping {
    cursor: grabbing;
}

/* ========================================
   BEAST CAROUSEL STYLES (identical to premium)
   ======================================== */

/* Beast Carousel Container */
.beast-carousel-container {
    width: 100%;
    position: relative;
    touch-action: pan-x;
    -webkit-overflow-scrolling: touch;
}

/* Beast Carousel Track */
.beast-carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* Individual Beast Carousel Slides */
.beast-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 16px;
    box-sizing: border-box;
}

/* Smooth transitions for touch interactions */
.beast-carousel-track.dragging {
    transition: none;
}

/* Beast Carousel Indicators */
.beast-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.beast-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4abbf6, #5bc5f7);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.beast-indicator.active::before {
    transform: scale(1);
}

.beast-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.beast-indicator.active {
    background: transparent;
}

/* Mobile-specific optimizations for Beast */
@media (max-width: 767px) {
    .beast-carousel-container {
        margin: 0 -16px;
        padding: 0 16px;
    }
    
    .beast-carousel-slide {
        padding: 0 12px;
    }
    
    /* Enhanced touch targets for indicators */
    .beast-indicator {
        width: 14px;
        height: 14px;
        margin: 0 4px;
    }
}

/* Small mobile optimizations for Beast */
@media (max-width: 479px) {
    .beast-carousel-slide {
        padding: 0 8px;
    }
    
    .beast-indicator {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
}

/* Very small screens for Beast */
@media (max-width: 359px) {
    .beast-carousel-container {
        margin: 0 -12px;
        padding: 0 12px;
    }
    
    .beast-carousel-slide {
        padding: 0 6px;
    }
}

/* Accessibility improvements for Beast */
@media (prefers-reduced-motion: reduce) {
    .beast-carousel-track {
        transition: none;
    }
    
    .beast-indicator {
        transition: none;
    }
}

/* Focus states for keyboard navigation */
.beast-indicator:focus {
    outline: 2px solid #4abbf6;
    outline-offset: 2px;
}

/* Swipe gesture visual feedback for Beast */
.beast-carousel-track.swiping {
    cursor: grabbing;
}

/* ========================================
   SALTOS DE LÍNEA RESPONSIVOS PARA H1 "AGRANDAMIENTOS PERMANENTES"
   ======================================== */

/* Configuración base para el h1 específico */
.hero h1.text-2xl,
h1.text-2xl.sm\:text-3xl.md\:text-4xl.lg\:text-5xl.xl\:text-6xl {
    /* Permitir ajuste natural del texto */
    font-size: clamp(2.5rem, 6vw, 4.5rem) !important;
    line-height: 1.2 !important;
    letter-spacing: 0.02em !important;
    hyphens: none !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

/* OPTIMIZACIÓN ESPECÍFICA PARA DESKTOP (1025px en adelante) */
@media (min-width: 1025px) {
    .hero h1.text-2xl,
    h1.text-2xl.sm\:text-3xl.md\:text-4xl.lg\:text-5xl.xl\:text-6xl {
        font-size: clamp(2.2rem, 4.5vw, 3.5rem) !important;
        line-height: 1.15 !important;
        max-width: 90% !important;
    }
}

/* Spans para control individual de palabras */
.hero h1 .mobile-word {
    display: inline !important;
    white-space: nowrap !important;
}

/* Salto de línea para desktop */
.hero h1 .desktop-break {
    display: block !important;
}

/* OPTIMIZACIÓN PARA TABLETS (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero h1.text-2xl,
    h1.text-2xl.sm\:text-3xl.md\:text-4xl.lg\:text-5xl.xl\:text-6xl {
        font-size: clamp(2.2rem, 5.5vw, 3.8rem) !important;
        line-height: 1.15 !important;
        text-align: center !important;
    }
    
    .hero h1 .desktop-break {
        display: block !important;
    }
}

/* OPTIMIZACIÓN PARA MÓVILES (481px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .hero h1.text-2xl,
    h1.text-2xl.sm\:text-3xl.md\:text-4xl.lg\:text-5xl.xl\:text-6xl {
        font-size: clamp(1.8rem, 4.5vw, 2.8rem) !important;
        line-height: 1.3 !important;
        text-align: center !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
    
    /* Mantener salto de línea entre palabras */
    .hero h1 .desktop-break {
        display: block !important;
        margin: 0.2em 0 !important;
    }
    
    .hero h1 .mobile-word {
        display: block !important;
        white-space: nowrap !important;
        text-align: center !important;
    }
}

/* OPTIMIZACIÓN PARA MÓVILES PEQUEÑOS (320px - 480px) */
@media (max-width: 480px) {
    .hero h1.text-2xl,
    h1.text-2xl.sm\:text-3xl.md\:text-4xl.lg\:text-5xl.xl\:text-6xl {
        font-size: clamp(1.4rem, 4vw, 2.2rem) !important;
        line-height: 1.35 !important;
        text-align: center !important;
        max-width: 100% !important;
        padding: 0 0.5rem !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Cada palabra en su propia línea */
    .hero h1 .mobile-word {
        display: block !important;
        white-space: nowrap !important;
        text-align: center !important;
        margin: 0.1em 0 !important;
    }
    
    .hero h1 .desktop-break {
        display: none !important; /* Ocultar el br original */
    }
    
    /* Ajustar contenedor padre */
    .hero .text-center.lg\:text-left.px-4 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
}

/* OPTIMIZACIÓN PARA PANTALLAS MUY PEQUEÑAS (menos de 320px) */
@media (max-width: 319px) {
    .hero h1.text-2xl,
    h1.text-2xl.sm\:text-3xl.md\:text-4xl.lg\:text-5xl.xl\:text-6xl {
        font-size: clamp(1.2rem, 3.8vw, 1.8rem) !important;
        line-height: 1.4 !important;
        text-align: center !important;
        padding: 0 0.25rem !important;
    }
    
    .hero h1 .mobile-word {
        display: block !important;
        text-align: center !important;
        margin: 0.15em 0 !important;
        font-size: inherit !important;
    }
    
    .hero h1 .desktop-break {
        display: none !important;
    }
    
    /* Contenedor más compacto */
    .hero .container.mx-5 {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
    }
}

/* Asegurar que no haya desbordamiento horizontal */
@media (max-width: 768px) {
    .hero .container,
    .hero .grid,
    .hero .text-center.lg\:text-left {
        overflow-x: hidden !important;
        max-width: 100% !important;
    }
    
    /* Centrar contenido en móviles */
    .hero .text-center.lg\:text-left {
        text-align: center !important;
    }
}

/* Animaciones suaves para transiciones */
.hero h1 .mobile-word {
    transition: all 0.3s ease-in-out !important;
}

@media (prefers-reduced-motion: reduce) {
    .hero h1 .mobile-word {
        transition: none !important;
    }
}

/* Alternativa más específica para hero-content */
.hero-content h1 {
    hyphens: none !important;
    word-break: keep-all !important;
    line-height: 1.1 !important;
}

/* ========================================
   LIMPIEZA: ELIMINANDO CÓDIGO DE REORDENAMIENTO INNECESARIO
   ======================================== */

/* Ya no necesitamos el reordenamiento con flexbox y order porque 
   ahora tienes dos imágenes separadas con clases de visibilidad de Tailwind */

/* Mantenemos solo los estilos básicos para las imágenes */

/* Imagen móvil optimizada */
.lg\:hidden.reveal-scale {
    margin: 2rem 0;
    max-width: 85%;
    align-self: center;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.lg\:hidden.reveal-scale img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    border: none;
}

/* Imagen desktop optimizada */
.hidden.lg\:flex.reveal-scale .relative.max-w-lg {
    max-width: 100%;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.hidden.lg\:flex.reveal-scale img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    border: none;
}

/* Badge de experiencia para desktop */
.hidden.lg\:flex.reveal-scale .absolute.bottom-4.right-4 {
    background: rgba(0, 0, 0, 0.85);
    border-radius: 20px;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

/* Ajustes responsivos para móviles */
@media (max-width: 479px) {
    .lg\:hidden.reveal-scale {
        max-width: 90%;
        margin: 1.5rem 0;
    }
}

@media (max-width: 359px) {
    .lg\:hidden.reveal-scale {
        max-width: 95%;
        margin: 1rem 0;
    }
}

/* Transiciones suaves */
.reveal-scale {
    transition: all 0.3s ease-in-out;
}

/* Optimización para accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .reveal-scale {
        transition: none;
    }
}

/* ========================================
   ELIMINACIÓN DE RECTÁNGULO/FONDO DE IMAGEN
   ======================================== */

/* Eliminar fondos y bordes del contenedor de imagen */
.hero .reveal-scale {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
}

/* Eliminar fondos del contenedor relativo */
.hero .reveal-scale .relative.max-w-lg {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

/* Asegurar que la imagen no tenga fondos ni bordes */
.hero .reveal-scale img {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    border-radius: 0 !important;
    outline: none !important;
}

/* Eliminar cualquier pseudo-elemento que pueda crear rectángulos */
.hero .reveal-scale::before,
.hero .reveal-scale::after,
.hero .reveal-scale .relative::before,
.hero .reveal-scale .relative::after {
    display: none !important;
    content: none !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Mantener solo el badge de experiencia con su estilo */
.hero .reveal-scale .absolute.bottom-4.right-4 {
    background: rgba(0, 0, 0, 0.8) !important;
    border-radius: 9999px !important;
    /* Mantener estilos del badge intactos */
}

/* Asegurar transparencia en móviles también */
@media (max-width: 767px) {
    .hero .reveal-scale {
        background: none !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
    }
    
    .hero .reveal-scale .relative.max-w-lg {
        background: none !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
    }
    
    .hero .reveal-scale img {
        background: none !important;
        background-color: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        border-radius: 0 !important;
    }
}

/* Eliminar cualquier estilo de contenedor que pueda crear rectángulos */
.hero .grid.grid-cols-1.lg\:grid-cols-2 > div:last-child {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

/* Asegurar que no haya estilos heredados creando rectángulos */
.hero .reveal-scale,
.hero .reveal-scale * {
    box-sizing: border-box;
}

/* Eliminar cualquier transformación que pueda crear efectos visuales no deseados */
.hero .reveal-scale {
    transform: none !important;
    filter: none !important;
}

/* Solo en caso de que haya estilos globales aplicando fondos a divs */
.hero div.reveal-scale,
.hero div.relative {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Optimización para accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .hero .text-center.lg\:text-left.px-4,
    .hero .reveal-scale {
        transition: none;
    }
}

/* ======================================== 
   PREMIUM SECTION SPECIFIC STYLES
   ======================================== */
/* Tarjetas PREMIUM con efecto Glass */
.premium-card {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(15px) !important;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
    box-shadow: none !important; /* Removido el halo púrpura */
    padding: 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* ===== PREMIUM REDESIGNED CARDS STYLES ===== */
.premium-card-redesigned {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(139, 92, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.premium-card-redesigned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(168, 85, 247, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.premium-card-redesigned:hover::before {
    opacity: 1;
}

.premium-card-redesigned:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.premium-circulo-numero-redesigned {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.premium-card-redesigned:hover .premium-circulo-numero-redesigned {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.premium-card-content {
    flex: 1;
}

.premium-titulo-redesigned {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #C084FC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.375rem;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.premium-titulo-redesigned span[style*="color: white"] {
    color: white !important;
    -webkit-text-fill-color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.premium-subtitulo-redesigned {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* ===== PREMIUM REDESIGNED IMAGE STYLES (OPTIMIZED HEIGHT MATCHING) ===== */
.premium-image-container-redesigned {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center; /* Centrado vertical */
    height: 100%;
    /* Calculate total height: 3 cards + spacing */
    /* Each card: padding(48px) + content(~120px) + margin(24px) = ~192px per card */
    /* Total: 192px * 3 + gap between cards (48px) = ~624px */
    min-height: 624px;
}

.premium-version-image-redesigned {
    width: auto;
    max-width: 500px;
    /* Set height to match the calculated total height of 3 cards */
    height: 624px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
    object-position: center top;
    /* Maintain aspect ratio while fitting exact height */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.premium-version-image-redesigned:hover {
    transform: translateY(-8px) scale(1.03);
}

/* ===== BEAST REDESIGNED CARDS STYLES ===== */
.beast-card-redesigned {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(139, 92, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    min-height: 180px; /* Ensuring consistent card height */
}

.beast-card-redesigned::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(168, 85, 247, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.beast-card-redesigned:hover::before {
    opacity: 1;
}

.beast-card-redesigned:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

.beast-circulo-numero-redesigned {
    background: linear-gradient(135deg, #4abbf6 0%, #4abbf6 100%);
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.beast-card-redesigned:hover .beast-circulo-numero-redesigned {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.beast-card-content {
    flex: 1;
}

.beast-titulo-redesigned {
    background: linear-gradient(135deg, #4abbf6 0%, #4abbf6 50%, #4abbf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.375rem;
    font-weight: bold;
    margin-bottom: 12px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
}

.beast-titulo-redesigned span[style*="color: white"] {
    color: white !important;
    -webkit-text-fill-color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.beast-subtitulo-redesigned {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0;
}

/* ===== BEAST REDESIGNED IMAGE STYLES (OPTIMIZED HEIGHT MATCHING) ===== */
.beast-image-container-redesigned {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center; /* Centrado vertical */
    height: 100%;
    /* Calculate total height: 3 cards + spacing */
    /* Each card: padding(48px) + content(~120px) + margin(24px) = ~192px per card */
    /* Total: 192px * 3 + gap between cards (48px) = ~624px */
    min-height: 624px;
}

.beast-version-image-redesigned {
    width: auto;
    max-width: 500px;
    /* Set height to match the calculated total height of 3 cards */
    height: 624px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
    object-position: center top;
    /* Maintain aspect ratio while fitting exact height */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.beast-version-image-redesigned:hover {
    transform: translateY(-8px) scale(1.03);
}

/* ===== BEAST REDESIGNED RESPONSIVE DESIGN ===== */
@media (max-width: 767px) {
    .beast-card-redesigned {
        display: none; /* Hide redesigned cards on mobile */
    }
    
    .beast-image-container-redesigned {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 90%;
        margin: auto;
        padding: 0;
        min-height: auto;
    }
    
    .beast-version-image-redesigned {
        max-width: 90%;
        height: auto;
        background: transparent;
        border: none;
        outline: none;
        display: block;
        object-fit: contain;
        margin: 0 auto;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .beast-version-image-redesigned:hover {
        transform: scale(1.02);
        opacity: 0.95;
    }

    .beast-version-image-redesigned:focus {
        outline: 2px solid #4abbf6;
        outline-offset: 4px;
        border-radius: 4px;
    }
}

/* Tablet adjustments - Optimized height matching */
@media (min-width: 768px) and (max-width: 1023px) {
    .beast-card-redesigned {
        padding: 20px;
        gap: 16px;
        margin-bottom: 20px;
    }
    
    .beast-circulo-numero-redesigned {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .beast-titulo-redesigned {
        font-size: 1.25rem;
    }
    
    .beast-subtitulo-redesigned {
        font-size: 0.9rem;
    }
    
    .beast-image-container-redesigned {
        /* Recalculate for tablet: smaller cards = ~520px total */
        min-height: 520px;
    }
    
    .beast-version-image-redesigned {
        max-width: 400px;
        height: 520px;
    }
}

/* Large desktop optimizations - Optimized height matching */
@media (min-width: 1400px) {
    .beast-card-redesigned {
        padding: 28px;
        gap: 24px;
        margin-bottom: 28px;
    }
    
    .beast-circulo-numero-redesigned {
        width: 64px;
        height: 64px;
        font-size: 1.4rem;
    }
    
    .beast-titulo-redesigned {
        font-size: 1.5rem;
    }
    
    .beast-subtitulo-redesigned {
        font-size: 1rem;
    }
    
    .beast-image-container-redesigned {
        /* Recalculate for large desktop: bigger cards = ~720px total */
        min-height: 720px;
    }
    
    .beast-version-image-redesigned {
        max-width: 600px;
        height: 720px;
    }
}

/* ===== RESPONSIVE DESIGN FOR PREMIUM REDESIGNED (CLEAN - NO EFFECTS) ===== */
@media (max-width: 767px) {
    .premium-card-redesigned {
        display: none; /* Hide redesigned cards on mobile */
    }
    
    .premium-image-container-redesigned {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 90%;
        margin: auto;
        padding: 0;
        min-height: auto;
    }
    
    .premium-version-image-redesigned {
        max-width: 90%;
        height: auto;
        background: transparent;
        border: none;
        outline: none;
        display: block;
        object-fit: contain;
        margin: 0 auto;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .premium-version-image-redesigned:hover {
        transform: scale(1.02);
        opacity: 0.95;
    }

    .premium-version-image-redesigned:focus {
        outline: 2px solid #4abbf6;
        outline-offset: 4px;
        border-radius: 4px;
    }
}

/* Tablet adjustments - Optimized height matching */
@media (min-width: 768px) and (max-width: 1023px) {
    .premium-card-redesigned {
        padding: 20px;
        gap: 16px;
        margin-bottom: 20px;
    }
    
    .premium-circulo-numero-redesigned {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    
    .premium-titulo-redesigned {
        font-size: 1.25rem;
    }
    
    .premium-subtitulo-redesigned {
        font-size: 0.9rem;
    }
    
    .premium-image-container-redesigned {
        /* Recalculate for tablet: smaller cards = ~520px total */
        min-height: 520px;
    }
    
    .premium-version-image-redesigned {
        max-width: 400px;
        height: 520px;
    }
}

/* Large desktop optimizations - Optimized height matching */
@media (min-width: 1200px) {
    .premium-card-redesigned {
        padding: 28px;
        gap: 24px;
    }
    
    .premium-circulo-numero-redesigned {
        width: 64px;
        height: 64px;
        font-size: 1.375rem;
    }
    
    .premium-titulo-redesigned {
        font-size: 1.5rem;
    }
    
    .premium-image-container-redesigned {
        /* Recalculate for large desktop: larger cards = ~720px total */
        min-height: 720px;
    }
    
    .premium-version-image-redesigned {
        max-width: 550px;
        height: 720px;
    }
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .premium-card-redesigned,
    .premium-circulo-numero-redesigned,
    .premium-version-image-redesigned {
        transition: none;
    }
    
    .premium-card-redesigned:hover,
    .premium-card-redesigned:hover .premium-circulo-numero-redesigned,
    .premium-version-image-redesigned:hover {
        transform: none;
    }
}

/* ===== PREMIUM SECTION IMAGE STYLES ===== */
.premium-section-image {
    /* Base responsive sizing */
    width: 100%;
    max-width: 400px;
    height: auto;
    
    /* Visual enhancements */
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    
    /* Performance optimizations */
    object-fit: cover;
    object-position: center;
}

/* Mobile optimizations (≤767px) */
@media (max-width: 767px) {
    .premium-section-image {
        max-width: 280px;
        border-radius: 8px;
        box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
    }
}

/* Small mobile optimizations (≤479px) */
@media (max-width: 479px) {
    .premium-section-image {
        max-width: 240px;
        border-radius: 6px;
        box-shadow: 0 15px 30px -8px rgba(0, 0, 0, 0.3);
    }
}

/* Very small screens (≤359px) */
@media (max-width: 359px) {
    .premium-section-image {
        max-width: 200px;
        border-radius: 4px;
    }
}

/* Tablet and desktop hover effects */
@media (min-width: 768px) {
    .premium-section-image:hover {
        transform: translateY(-4px) scale(1.02);
        box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.6);
    }
}

/* Accessibility: Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .premium-section-image {
        transition: none;
    }
    
    .premium-section-image:hover {
        transform: none;
    }
}

/* Círculos numerados PREMIUM con efecto glass */
.premium-circulo-numero {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 100%) !important;
    color: white !important;
    box-shadow: none !important; /* Removido el halo púrpura */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1.5rem auto;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Títulos PREMIUM con efecto degradado */
.premium-titulo {
    background: linear-gradient(135deg, #8B5CF6 0%, #A855F7 50%, #C084FC 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    font-size: clamp(1.1rem, 3.5vw, 1.5rem) !important; /* Tamaño responsivo */
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(139, 92, 246, 0.3);
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Subtítulos PREMIUM con mejor contraste */
.premium-subtitulo {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Hover effects mejorados para tarjetas PREMIUM */
.premium-card:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
    transform: translateY(-8px) scale(1.02) !important;
}

/* Asegurar que los spans en títulos PREMIUM mantengan el color blanco */
.premium-titulo span[style*="color: white"] {
    color: white !important;
    -webkit-text-fill-color: white !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* ========================================
   BEAST TITULO SPECIFIC FIXES
   ======================================== */
.beast-titulo span[style*="color: white"] {
    color: white !important;
}

.beast-titulo {
    line-height: 1.3 !important;
    display: block !important;
    font-size: clamp(1.1rem, 3.5vw, 1.5rem) !important; /* Tamaño responsivo */
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* Ensure proper line breaks in beast-titulo */
.beast-titulo br {
    display: block !important;
    content: "";
    margin-top: 0.5em;
}




/* ========================================
   15. FORMULARIO DE CONTACTO
   ======================================== */
#formulario-contacto {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 50%, #1a1a1a 100%);
    padding: 80px 0;
}

#formulario-contacto .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
}

#formulario-contacto .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

#formulario-contacto .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

#formulario-contacto .reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.6s ease;
}

#formulario-contacto .reveal-scale.in-view {
    opacity: 1;
    transform: scale(1);
}

/* Formulario Container */
.form-container {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.8) 0%, rgba(31, 41, 55, 0.9) 100%);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(107, 114, 128, 0.3);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
}

/* Form Elements */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(55, 65, 81, 0.8);
    border: 1px solid rgba(107, 114, 128, 0.4);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    font-family: var(--font-primary);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(156, 163, 175, 0.7);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
    background: rgba(55, 65, 81, 0.9);
}

.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

.form-textarea {
    resize: none;
    min-height: 100px;
}

/* Radio Buttons */
.radio-group {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.radio-option {
    display: flex;
    align-items: center;
    padding: 0.875rem 1rem;
    background: rgba(55, 65, 81, 0.6);
    border: 1px solid rgba(107, 114, 128, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.radio-option:hover {
    background: rgba(55, 65, 81, 0.8);
    border-color: rgba(139, 92, 246, 0.4);
}

.radio-option input[type="radio"] {
    width: 1rem;
    height: 1rem;
    margin-right: 0.75rem;
    accent-color: var(--color-accent);
    cursor: pointer;
}

.radio-option input[type="radio"]:checked + span {
    color: var(--color-accent);
    font-weight: 500;
}

.radio-option span {
    color: #ffffff;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

/* Submit Button */
.form-submit {
    background: linear-gradient(135deg, var(--color-accent) 0%, #3b82f6 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 3rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(139, 92, 246, 0.4);
}

.form-submit:active {
    transform: translateY(0);
}

.form-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;
}

.form-submit:hover::before {
    left: 100%;
}

/* Security Badge */
.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    color: rgba(156, 163, 175, 0.8);
    font-size: 0.875rem;
}

.security-badge span:first-child {
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Responsive Design */
@media (min-width: 768px) {
    #formulario-contacto .container {
        padding: 0 2rem;
    }
    
    .form-container {
        padding: 4rem;
    }
    
    .radio-group {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .form-submit {
        width: auto;
        padding: 1.25rem 4rem;
        font-size: 1.125rem;
    }
}

@media (max-width: 767px) {
    #formulario-contacto {
        padding: 60px 0;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .form-submit {
        width: 100%;
        padding: 1rem 2rem;
    }
    
    .radio-group {
        gap: 0.5rem;
    }
    
    .radio-option {
        padding: 0.75rem;
    }
    
    .radio-option span {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .form-input,
    .form-select,
    .form-textarea {
        padding: 0.75rem;
        font-size: 0.8rem;
    }
    
    .form-label {
        font-size: 0.8rem;
    }
}

/* Loading State */
.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.form-submit:disabled:hover {
    transform: none;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
}

/* Focus Indicators for Accessibility */
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.radio-option:focus-within {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .form-input,
    .form-select,
    .form-textarea {
        border-width: 2px;
    }
    
    .radio-option {
        border-width: 2px;
    }
}

/* ========================================
   12. RESPONSIVE DESIGN
   ======================================== */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    
    .mobile-menu-button {
        display: none;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .section {
        padding: 6rem 0;
    }
    
    .card-title {
        font-size: 2rem;
    }
    
    .card-subtitle {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 5rem;
    }
    
    .section {
        padding: 8rem 0;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary, .btn-secondary {
        border: 2px solid currentColor;
    }
    
    .nav-link:hover, .nav-link:focus {
        background-color: rgba(255, 255, 255, 0.2);
        outline: 2px solid currentColor;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal, .reveal-fade, .reveal-scale {
        animation: none !important;
        transition: none !important;
    }
    
    .service-card:hover,
    .beast-card:hover {
        transform: none !important;
    }
}

/* ========================================
   13. FOOTER
   ======================================== */
footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

/* ========================================
   14. IMAGE OPTIMIZATION
   ======================================== */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}