@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

html {
    scroll-behavior: smooth;
}

:root {
    /* Color Palette - Identidad de Marca (Cyan / Navy) */
    --color-cyan: #00AEEF;
    --color-cyan-dark: #0089C0;
    --color-navy: #1A1A2E;
    --color-black: #0A0A0A;
    --color-gray: #475569;
    --color-gray-light: #F8FAFC;
    --color-white: #FFFFFF;

    --bg-color: var(--color-white);
    --bg-alt: var(--color-gray-light);
    --text-main: var(--color-navy);
    --text-heading: var(--color-navy);
    --text-body: var(--color-gray);
    --text-muted: var(--color-gray);
    --primary: var(--color-cyan);
    --secondary: var(--color-cyan-dark);
    --primary-glow: rgba(0, 174, 239, 0.05);
    --border-color: rgba(0, 0, 0, 0.08);
    /* Hairline Ultra-Thin */
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(0, 0, 0, 0.05);

    /* Typography - Maestro.dev System - Refined for Cleanliness */
    --font-display: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-size-h1: 3.25rem;
    /* 52px */
    --font-size-h2: 2rem;
    /* 32px */
    --font-size-h3: 1.25rem;
    /* 20px */
    --font-size-p: 0.95rem;
    /* 15.2px - Elite Small Feel */
    --font-size-btn: 0.85rem;
    /* 13.6px */

    /* Spacing Refined */
    --section-padding: 95px; /* Reducido de 140px a 95px para compactar el espaciado y evitar scrolls excesivos */

    /* Gradients */
    --brand-gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --surface-gradient: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, transparent 100%);

    /* Accents */
    --acc-green: #10b981;
    --acc-orange: #f59e0b;
    --acc-purple: #8b5cf6;
    --acc-pink: #ec4899;
    --acc-red: #ef4444;
    --current-acc: var(--primary);
    --current-glow: var(--primary-glow);

    /* Geometry Tokens (Architectural Curves) */
    --radius-strict: 4px;
    /* Precise/Technical */
    --radius-soft: 8px;
    /* Interactive elements */
    --radius-pro: 12px;
    /* Standard card/module radius */
    --radius-premium: 20px;
    /* Hero/Main containers */
    --radius-pill: 100px;
    /* Capsule buttons */
    --radius-circle: 50%;
    /* Avatars/Dots */
}

@media (max-width: 1400px) {
    :root {
        --section-padding: 70px; /* Compactación para pantallas estándar como 1366x768 */
    }
}
@media (max-width: 768px) {
    :root {
        --section-padding: 50px; /* Compactación para móviles */
    }
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

li,
ul,
ol {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

li::marker {
    display: none !important;
    content: none !important;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: var(--font-size-p);
    line-height: 1.625;
    /* Maestro Flow */
    background-image:
        radial-gradient(circle at 2px 2px, rgba(0, 0, 0, 0.03) 1px, transparent 0);
    background-size: 32px 32px;
}

/* Premium Noise Grain Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    z-index: 1000;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3BaseFilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/feTurbulence%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Mesh Gradient Backgrounds */
body::after {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(58, 140, 246, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}


/* Utilities */
.container {
    max-width: 980px;
    /* Reducción a estándar ultra-seguro para evitar desbordes */
    margin: 0 auto;
    padding: 0 25px;
}

.text-gradient {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-purple {
    background: linear-gradient(135deg, var(--acc-purple), #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge-tech {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: var(--radius-pill);
    color: var(--primary);
    font-size: 0.68rem;
    font-family: var(--font-mono);
    /* Bimodal Accent */
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.badge-purple {
    border-color: var(--acc-purple);
    color: var(--acc-purple);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 4px;
    /* Minimalist Square */
    font-weight: 500;
    font-family: var(--font-body);
    font-size: var(--font-size-btn);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    border: none;
    line-height: 1.25;
}

.btn-primary {
    background: var(--primary);
    color: var(--color-white);
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--color-cyan-dark);
    color: white;
    box-shadow: 0 8px 25px rgba(0, 174, 239, 0.25), 0 0 15px rgba(0, 174, 239, 0.1);
}

.btn-primary:hover::after {
    left: 130%;
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(0, 174, 239, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--color-navy);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
    transform: translateY(-4px);
    color: var(--primary);
}

.btn-srv-details {
    margin-top: 24px;
    border-color: var(--acc-green);
    color: var(--acc-green);
}

/* Navbar */
.section-divider {
    width: 45px;
    height: 4px;
    background: var(--brand-gradient);
    margin: 0 auto 24px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(41, 151, 255, 0.25);
}

section {
    padding: var(--section-padding) 0;
    position: relative;
}

.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 980px;
    /* Reducido de 1200px para un look más compacto y Elite */
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Sombra más sutil y profunda */
    border-radius: 6px;
    /* Revertido a 6px por petición del usuario */
    padding: 0 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-content {
    height: 60px;
    /* Reducido de 70px para look más compacto */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    /* Reducido de 1.25rem para limpieza */
    color: var(--color-navy);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
}

.logo-text-introspectiva {
    color: var(--color-navy);
}

.logo-text-studio {
    color: var(--primary);
}

.logo-dot {
    width: 12px;
    height: 12px;
    background: var(--brand-gradient);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--primary);
}

.nav-links {
    display: flex;
    gap: 24px;
    /* Reducido de 32px para look compacto */
    list-style: none;
    align-items: center;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: var(--font-size-btn);
    /* 14px Maestro */
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 2.2rem;
    color: var(--color-navy);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
}

@media (max-width: 1023px) {
    .menu-toggle {
        display: block;
    }
}

/* Eliminada redundancia de .btn para usar definición unificada en utilidades */

/* Nota: .btn-primary consolidado arriba en la sección de botones */

.btn-outline {
    background: transparent;
    color: var(--color-navy);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--color-gray-light);
}

/* Nav Contacto Button - Premium Pill */
.btn-nav {
    padding: 10px 22px;
    font-size: 0.875rem;
    background: rgba(56, 189, 248, 0.08);
    color: var(--primary) !important;
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12), rgba(58, 140, 246, 0.08));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-nav:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: var(--primary);
    box-shadow: 0 0 32px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    color: white !important;
}

.btn-nav:hover::before {
    opacity: 1;
}

section {
    padding: var(--section-padding) 0;
}

.hero {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 65vw;
    height: 65vw;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: soft-light;
    opacity: 0.4;
    will-change: transform, opacity;
}

.aura-1 {
    top: -10%;
    right: -5%;
    background: radial-gradient(circle, rgba(0, 174, 239, 0.4) 0%, transparent 60%);
    animation: auraFloat 20s infinite alternate ease-in-out;
}

.aura-2 {
    bottom: -15%;
    left: -10%;
    background: radial-gradient(circle, rgba(130, 219, 255, 0.3) 0%, transparent 60%);
    animation: auraFloat 25s infinite alternate-reverse ease-in-out;
    animation-delay: -5s;
}


@keyframes auraFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(5%, 10%) scale(1.1);
    }

    66% {
        transform: translate(-5%, 5%) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

.hero-text {
    animation: floatAmbient 6s infinite ease-in-out;
}

@keyframes floatAmbient {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Neon & Heartbeat Enhancements */
@keyframes heartbeat {
    0% {
        transform: scale(1);
    }

    15% {
        transform: scale(1.05);
    }

    30% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.15);
    }

    60% {
        transform: scale(1);
    }

    100% {
        transform: scale(1);
    }
}

.icon-heartbeat {
    animation: heartbeat 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    display: inline-block;
    will-change: transform;
}

.neon-shadow-cyan {
    filter: drop-shadow(0 0 10px rgba(0, 174, 239, 0.6));
}

.neon-shadow-green {
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.6));
}

.neon-shadow-purple {
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6));
}

.neon-shadow-orange {
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6));
}

.hero:hover .hero-glow {
    opacity: 0.6;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    /* Rebalanceado para que el texto mande */
    gap: 60px;
    /* Reducido para cohesión */
    align-items: center;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: var(--font-size-h1);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
}

.hero-title-line {
    display: block;
    overflow: hidden;
}

.hero-title-line-inner {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) rotateX(15deg);
    transform-origin: top center;
    animation: heroTextReveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

@keyframes heroTextReveal {
    0% {
        opacity: 0;
        transform: translateY(60px) rotateX(15deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.hero p {
    font-size: var(--font-size-p);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.625;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.stat-number {
    font-family: var(--font-mono);
    /* Bimodal Data */
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 2px;
    color: var(--color-navy);
}

.stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-mono);
    /* Bimodal Sub-text */
    font-weight: 600;
}

/* Bento Cards (Gexus Architecture) */
.bento-card,
.bento-card-v3,
.visual-card-glow,
.hero-card-form {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease-out;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.bento-card,
.bento-card-v3 {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.bento-card-v3 {
    min-height: 480px;
}

.bento-card:hover,
.bento-card-v3:hover,
.hero-card-form:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.1);
}

/* Mouse Follow Glow */
.bento-card::after,
.bento-card-v3::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0), var(--current-glow, var(--primary-glow)), transparent 40%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 1;
}

.bento-card:hover::after,
.bento-card-v3:hover::after {
    opacity: 1;
}

/* Hero Form */
.hero-card-form {
    padding: 24px;
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: none;
}

.hero-card-form h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    /* Reducido para compactar el form */
}

.form-group {
    margin-bottom: 16px;
    /* Reducido de 20px para limpieza */
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    /* Reducido de 14/18 para look limpio */
    border-radius: 8px;
    background: var(--color-gray-light);
    border: 1px solid var(--border-color);
    color: var(--color-navy);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}

.form-group textarea {
    resize: vertical;
    /* Límite: solo redimensionar verticalmente */
    min-height: 100px;
    max-height: 300px;
    /* Límite: altura máxima */
}

.char-counter {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-align: right;
    margin-top: 5px;
    font-weight: 600;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.service-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.service-pill {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-soft);
    /* Squarer look */
    font-size: 0.72rem;
    font-family: var(--font-mono);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: var(--color-gray-light);
    color: var(--text-muted);
}

.service-pill:hover {
    border-color: var(--primary);
    background: white;
}

.service-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* Tech Ticker */
.ticker-wrap {
    background: var(--color-white);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ticker {
    display: flex;
    width: fit-content;
    animation: ticker 25s linear infinite;
}

.ticker-item {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-navy);
    opacity: 0.15;
    padding: 0 40px;
    white-space: nowrap;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Services Grid (Bento) */
#services {
    scroll-margin-top: 100px;
    padding: 60px 0;
}

#services .container {
    max-width: 980px; /* Alineado con el estándar global del sitio */
}

/* Compact Selection Grid */
.selection-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-bottom: 2rem;
}

.compact-card {
    background: var(--color-white);
    border-radius: var(--radius-premium);
    padding: 2.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
}

.compact-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color) !important;
    box-shadow: 0 15px 30px color-mix(in srgb, var(--accent-color) 22%, transparent), 
                0 0 15px color-mix(in srgb, var(--accent-color) 12%, transparent) !important;
}

.compact-card .badge-category {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.compact-card .card-icon {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.compact-card h3 {
    font-size: 1.8rem;
    color: var(--color-navy);
    margin-bottom: 1rem;
    font-weight: 700;
}

.compact-card .desc {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.compact-card .stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.compact-card .stat-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-navy);
}

.compact-card .stat-value {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid;
    text-transform: uppercase;
}

/* Animación del icono de ver detalles en hover */
.compact-card:hover .card-footer-action ion-icon {
    transform: translateX(6px);
}

/* Ribbon Oferta */
.ribbon.svc-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Flechas para el carrusel de fotos superior */
.svc-nav-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
    z-index: 10;
}

.svc-nav-arrows .nav-btn {
    pointer-events: auto;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 36px;
    height: 36px;
}

.svc-nav-arrows .nav-btn:hover {
    background: white;
    color: var(--color-navy);
}

.ribbon-wrapper {
    width: 85px;
    height: 88px;
    overflow: hidden;
    position: absolute;
    top: -3px;
    right: -3px;
}

.ribbon-oferta {
    font: bold 12px var(--font-body);
    color: #fff;
    text-align: center;
    transform: rotate(45deg);
    position: relative;
    padding: 7px 0;
    left: -5px;
    top: 15px;
    width: 120px;
    background-color: #ef4444;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hidden Full Grid View */
.service-full-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-full-section.is-active {
    display: block;
    opacity: 1;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--color-white);
    border: 1.5px solid var(--border-color);
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-navy);
    cursor: pointer;
    margin-bottom: 2.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.btn-back ion-icon {
    font-size: 1.25rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.btn-back:hover {
    background: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
    box-shadow: 0 8px 25px rgba(26, 26, 46, 0.2);
    transform: translateY(-2px);
}

.btn-back:hover ion-icon {
    transform: translateX(-5px);
    color: var(--color-cyan);
}

/* Bento Grid — EXCLUSIVO para la sección de servicios expandida */
#services .bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 212px;
    gap: 20px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    margin-bottom: 2rem;
}

/* Base Bento Card */
.bento-card {
    background: var(--color-white);
    border-radius: var(--radius-premium);
    padding: 2rem;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.1);
}

/* 1. Main Hero Card 2x2 */
.main-hero {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: flex-end;
    z-index: 10;
    padding: 2.5rem; 
    background: var(--color-white) !important;
}

/* Sobreescribir font-size inline del PHP para que siempre quepa en el card */
.main-hero .hero-content h3 {
    font-size: 2rem !important;    /* Reducido de 2.8rem */
    margin-bottom: 0.6rem !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    color: var(--color-navy);
}

.main-hero .hero-content p {
    font-size: 0.9rem !important;  /* Reducido de 1.1rem */
    line-height: 1.5 !important;
    opacity: 0.75;
    max-width: 100% !important;
}

.main-hero .badge-premium {
    margin-bottom: 1rem; /* Reducido de 2rem */
    font-size: 0.7rem;
    padding: 6px 12px;
}

.main-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    opacity: 0.5;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.8;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    overflow: hidden; /* Evitar desborde vertical */
}

.badge-premium {
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2rem;
    width: fit-content;
}

/* 2. Visual Card 1x2 (Carousel) */
.visual-card {
    padding: 0;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
    animation: kenBurns 15s infinite alternate ease-in-out;
}

@keyframes kenBurns {
    0% { transform: scale(1.2) translate(0, 0); }
    100% { transform: scale(1.4) translate(-3%, -3%); }
}

.carousel-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 5;
}

/* 3. Price Card 1x1 */
.price-card {
    justify-content: center;
    align-items: center;
    text-align: center;
    border-width: 2px;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.price-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bonus-tag {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-top: 8px;
    border: 1px solid;
}

/* 4. Dark CTA Card 1x1 */
.dark-cta {
    text-decoration: none;
}

.elite-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.elite-box h3 {
    font-size: 1.4rem;
    line-height: 1.1;
}

.elite-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
}

.cta-icon-wrapper {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    align-self: flex-end;
    aspect-ratio: 1 / 1;
}

/* 5. Services Bento Carousel 3x1 */
.services-card {
    grid-column: span 4;
    flex-direction: row;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    background: white; /* Forzamos fondo claro para estilo editorial */
}

.carousel-nav-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    z-index: 100; /* Prioridad máxima */
}

.nav-btn {
    width: 42px; /* Un poco más grandes para mobile/touch */
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px); /* Efecto Glass */
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: var(--color-navy);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.nav-btn ion-icon {
    pointer-events: none;
    font-size: 1.4rem;
}

.nav-btn:hover {
    background: var(--acc-cyan);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0,174,239,0.4);
}

.nav-btn.prev:hover { transform: scale(1.1) translateX(-5px); }
.nav-btn.next:hover { transform: scale(1.1) translateX(5px); }

.nav-btn:active {
    transform: scale(0.9);
}

/* --- Responsive Mobile Bento --- */
@media (max-width: 768px) {
    .bento-slide {
        flex-direction: column !important;
        padding: 20px 16px 36px !important; /* Reservamos 36px de padding inferior para no solapar los indicadores */
        gap: 12px;
        box-sizing: border-box;
    }

    .bento-slide .services-header {
        width: 100% !important;
        text-align: center;
        border-right: none;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding-bottom: 10px;
        margin-top: 15px; /* Deja espacio para las flechas superiores */
    }

    .bento-slide .services-header h3 {
        font-size: 1.15rem;
    }

    /* Flechas arriba a la derecha en el header para que nunca solapen el contenido inferior */
    .carousel-nav-btn {
        top: 12px;
        bottom: auto;
        right: 12px;
        gap: 6px;
    }

    .nav-btn {
        width: 34px;
        height: 34px;
    }

    .nav-btn ion-icon {
        font-size: 1.1rem;
    }

    /* Lo que recibes: 1 columna vertical para que no se corten los textos en mobile */
    .bento-slide .p-card-features {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
        width: 100%;
        display: grid !important;
        padding: 0;
    }

    .p-feat-row {
        border-bottom: 1px solid rgba(0,0,0,0.05);
        padding-bottom: 6px;
    }

    .p-feat-label {
        font-size: 0.8rem !important;
    }

    /* ADN Tecnológico: Envolver y dar distribución limpia */
    .tech-dna-container {
        flex-wrap: wrap !important;
        gap: 14px 10px !important;
        justify-content: center !important;
        width: 100%;
        padding: 0;
    }

    .tech-dna-item {
        flex: 0 0 21%;
        min-width: 55px;
    }

    .tech-dna-item ion-icon {
        font-size: 1.7rem !important;
    }

    .tech-dna-item span {
        font-size: 0.68rem !important;
    }

    /* Línea de tiempo responsiva */
    .timeline-container {
        width: 100%;
        padding: 0 5px !important;
    }

    .timeline-step:not(:last-child)::after {
        top: 12px !important;
    }

    .step-dot {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.75rem !important;
    }

    /* Métricas en Mobile: 3 columnas horizontales compactas */
    .bento-slide[data-slide-type="metrics"] .attributes-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
        width: 100%;
    }

    /* Características Clave (Atributos) en Mobile: 2 columnas balanceadas (2x2) */
    .bento-slide[data-slide-type="grid"] .attributes-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        width: 100%;
    }

    .p-card-metric {
        padding: 8px 5px !important;
        border-radius: 12px !important;
    }

    .p-metric-val {
        font-size: 1.1rem !important;
    }

    .p-metric-lbl {
        font-size: 0.6rem !important;
    }
}

.bento-carousel {
    width: 100%;
    height: 100%;
    position: relative;
}

.bento-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s;
    display: flex;
    align-items: center;
    padding: 2.5rem;
    gap: 2.5rem;
}

.bento-slide.active {
    opacity: 1;
    visibility: visible;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator-bar {
    width: 30px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.indicator-progress {
    height: 100%;
    width: 0%;
    background: var(--acc-cyan);
    box-shadow: 0 0 10px rgba(0, 174, 239, 0.4);
    transition: width 0.1s linear;
}

.indicator-bar.active .indicator-progress {
    width: 100%;
    transition: width 6s linear; /* Sincronizado con el timer de 6s */
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: 100%; }
}

/* Nuevos Estilos para Slides Técnicos (Métricas y Entregables) */
.p-card-metric {
    padding: 1.2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.3s ease;
}

.p-card-metric:hover {
    transform: scale(1.05);
}

.p-metric-val {
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
}

.p-metric-lbl {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
}

.p-card-features {
    padding: 0.5rem;
}

.p-feat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.p-feat-pill {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* Grid Slide Content */
.attributes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    flex: 1;
}

.attr-item {
    background: rgba(255,255,255,0.03);
    padding: 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.attr-item ion-icon {
    font-size: 1.4rem;
    color: var(--acc-cyan);
}

.attr-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
}

/* Tech DNA Slide Content */
.tech-dna-container {
    display: flex;
    gap: 20px;
    flex: 1;
    justify-content: space-around;
}

.tech-dna-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.tech-dna-item ion-icon {
    font-size: 2rem;
    color: var(--acc-cyan);
    filter: drop-shadow(0 0 4px rgba(0,174,239,0.2));
}

.tech-dna-item span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-navy);
    opacity: 0.8;
}

.timeline-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    padding: 0 1rem;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    flex: 1;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: var(--border-color);
    z-index: 1;
}

.step-dot {
    width: 32px;
    height: 32px;
    background: var(--color-white);
    border-width: 2px;
    border-style: solid;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-size: 0.9rem;
    font-weight: 700;
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-navy);
    text-align: center;
}

/* 6. Feature Score Card 1x1 */
.feature-card {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.8rem;
    font-weight: 800;
}

.feature-card p {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Responsive Overrides — Bento de servicios */
@media (max-width: 992px) {
    .selection-grid {
        grid-template-columns: 1fr;
    }
    #services .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 200px;
    }
    .main-hero, .services-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    #services .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .main-hero, .visual-card, .price-card, .dark-cta, .services-card, .feature-card {
        grid-column: span 1;
        grid-row: span 1;
        min-height: 200px;
    }
    .services-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        align-items: center;
        justify-content: center;
        min-height: 330px !important; /* Altura ideal sumamente amplia para que los slides quepan holgadamente */
        height: 330px !important;
        position: relative;
    }
}

.service-card-interactive {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ecosystem-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Maestro Modular Cards */
.db-card {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pro);
    padding: 24px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    /* Sutil profundidad inicial */
}

.db-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(0, 174, 239, 0.05);
}

.db-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-gradient);
    z-index: 10;
}



.db-card-content {
    flex: 1;
}

.db-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 12px;
}

.db-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* UI Simulation Components */
.ui-mock {
    background: #f1f5f9;
    border-radius: var(--radius-pro);
    padding: 16px;
    margin-top: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-mini {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid rgba(0, 174, 239, 0.05);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02);
}

.ui-metric-simple {
    text-align: center;
    padding: 15px 0;
}

.ui-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.ui-row:last-child {
    border-bottom: none;
}

.ui-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.7rem;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--color-navy);
}

.ui-status {
    font-size: 0.6rem;
    font-family: var(--font-mono);
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-strict);
    text-transform: uppercase;
}

.status-passed {
    background: rgba(34, 197, 94, 0.1);
    color: #166534;
    border: 1px solid rgba(22, 101, 52, 0.1);
}

.status-process {
    background: rgba(56, 189, 248, 0.1);
    color: #0369a1;
    border: 1px solid rgba(3, 105, 161, 0.1);
}

.ui-metric {
    font-size: 1.15rem;
    font-family: var(--font-mono);
    font-weight: 800;
    color: var(--color-navy);
    display: block;
    margin-bottom: 2px;
}

.ui-metric-label {
    font-size: 0.6rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.ui-chart-sim {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 40px;
    margin-top: 12px;
    overflow: hidden;
    /* Asegurar que las barras no empujen el ancho */
}

.chart-bar {
    flex: 1;
    background: var(--primary);
    border-radius: var(--radius-strict) var(--radius-strict) 0 0;
    opacity: 0.2;
    transition: 0.3s;
}

.db-card:hover .chart-bar {
    opacity: 0.6;
}


.bento-card-v3:hover .card-image-context {
    transform: scale(1.05);
}

.card-text-area-v3 {
    padding: 32px;
    background: var(--color-white);
    z-index: 10;
}

.card-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-title-main {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.card-desc-main {
    max-width: 400px;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-main);
    opacity: 0.9;
}

.card-infra-content {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-title-sub {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.card-desc-sub {
    max-width: 350px;
    color: var(--text-main);
    opacity: 0.9;
}

.badge-uptime {
    border-radius: var(--radius-pill);
    padding: 10px 20px;
    border-color: var(--acc-pink);
    color: var(--acc-pink);
}

.card-icon {
    width: 44px;
    /* Reducido de 52px */
    height: 44px;
    background: rgba(56, 189, 248, 0.1);
    border-radius: var(--radius-pro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-color) 0%, transparent 100%);
    z-index: 2;
}

.section-title {
    font-family: var(--font-display);
    font-size: var(--font-size-h2);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 60px;
    /* Separación Editorial Elite */
    letter-spacing: -0.02em;
    /* Maestro Inspired Tracking */
}

/* bento-grid global para otras secciones — sin restricción de filas */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.span-2 {
    grid-column: span 2;
}

.row-2 {
    grid-row: span 2;
}

/* Estilos unificados para textos en tarjetas restructuradas */
.card-title-main,
.bento-card .card-content h3 {
    font-size: var(--font-size-h3);
    font-weight: 600;
    /* Maestro Semibold */
    color: var(--color-navy);
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 8px;
}

.card-desc-main,
.bento-card .card-content p {
    font-size: var(--font-size-p);
    color: var(--text-muted);
    line-height: 1.625;
}

.bento-card {
    position: relative;
    border-radius: var(--radius-premium);
    background: var(--color-white);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
}

.bento-card .card-image-bg {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    opacity: 1;
    filter: none;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .card-image-bg {
    transform: scale(1.05);
}

.bento-card .card-content {
    padding: 32px;
    background: var(--color-white);
    flex: 1;
}

/* Multicolor Accent System */
.card-green {
    --current-acc: var(--acc-green);
    --current-glow: rgba(16, 185, 129, 0.2);
}

.card-orange {
    --current-acc: var(--acc-orange);
    --current-glow: rgba(245, 158, 11, 0.2);
}

.card-purple {
    --current-acc: var(--acc-purple);
    --current-glow: rgba(139, 92, 246, 0.2);
}

.card-pink {
    --current-acc: var(--acc-pink);
    --current-glow: rgba(236, 72, 153, 0.2);
}

.card-red {
    --current-acc: var(--acc-red);
    --current-glow: rgba(239, 68, 68, 0.2);
}

[class*="card-"] .card-icon {
    color: var(--current-acc);
    background: var(--current-glow);
}

[class*="card-"]:hover {
    border-color: var(--current-acc);
}

/* ── HOSTING REDESIGN PREMIUM ──────────────────── */
.hosting-metrics-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.hosting-metric-pill {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-premium);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.hosting-metric-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.hosting-metric-icon {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.hosting-metric-num {
    font-size: 1.5rem;
    font-weight: 900;
    font-family: var(--font-display);
}

.hosting-metric-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hosting-main-card {
    background: var(--color-navy);
    border-radius: var(--radius-premium);
    padding: 56px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 60px;
    align-items: start;
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow: 0 0 60px rgba(168, 85, 247, 0.08);
}

.hosting-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.hosting-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.hosting-feature-item strong {
    display: block;
    color: white;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.hosting-feature-item p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
}

.hosting-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-pro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.hosting-price-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-premium);
    padding: 36px 28px;
    backdrop-filter: blur(10px);
}

/* ── PARTNERS REDESIGN PREMIUM ─────────────────── */
/* Partners & Studio Duo Refined */
.partners-section {
    background: var(--bg-alt);

    padding: 120px 0;
    border-top: 1px solid var(--border-color);
}

.partners-section .grid-services {
    align-items: flex-start;
}

.partners-section .section-title {
    font-size: clamp(3rem, 7vw, 4rem);
    line-height: 0.95;
    margin-bottom: 32px;
}

.badge-group {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.partner-card {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 992px) {
    .partner-card {
        flex-direction: row;
    }
}

/* Partners Duo Layout */
.partners-duo-section {
    padding: 120px 0;
    background: var(--color-white);
    border-top: 1px solid var(--border-color);
}

.partners-duo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.partners-capability {
    display: flex;
    align-items: center;
    gap: 16px;
}

.partners-cap-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-pro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    flex-shrink: 0;
}

/* Partner profile card */
.partner-profile-card {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-premium);
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}

.partner-profile-orb {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 240px;
    height: 240px;
    border-radius: var(--radius-circle);
    background: linear-gradient(135deg, var(--acc-pink), var(--acc-orange));
    opacity: 0.08;
    pointer-events: none;
}

.partner-avatar-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.partner-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-circle);
    background: linear-gradient(135deg, var(--acc-pink), var(--acc-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.partner-available-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.1);
    color: var(--acc-green);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.partner-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-circle);
    background: var(--acc-green);
    display: inline-block;
    animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.7);
    }
}

/* Mobile responsive for new sections */
@media (max-width: 768px) {
    .hosting-metrics-row {
        grid-template-columns: 1fr 1fr;
    }

    .hosting-main-card {
        grid-template-columns: 1fr;
        padding: 30px 24px;
        gap: 32px;
    }

    .hosting-features-grid {
        grid-template-columns: 1fr;
    }

    .partners-duo-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pro);
    margin-bottom: 12px;
    overflow: hidden;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    color: var(--color-navy);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: 0.4s ease;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.faq-item.active {
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.03);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg) !important;
    color: var(--primary);
}

.faq-item.active .faq-answer {
    padding-bottom: 24px;
    max-height: 300px;
}

/* CTA Final Section Refined */
.cta-container-v3 {
    padding: 80px 40px;
    text-align: center;
    background: var(--color-navy) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: var(--radius-premium);
    position: relative;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
}

.cta-title-v3 {
    color: var(--color-white) !important;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-bottom: 24px;
}

.cta-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-pill);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}

.cta-desc-v3 {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Work Section - Maestro Dynamic Carousel */
.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 20px;
    flex-wrap: wrap;
}

.work-header .section-title {
    margin-bottom: 0 !important;
}

.work-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--color-gray-light);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--color-navy);
    color: var(--color-white);
    border-color: var(--color-navy);
    transform: translateY(-2px);
}

.work-carousel-viewport {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0;
    overflow: visible;
    /* Permite ver los lados */
}

.work-track {
    display: flex;
    gap: 32px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: grab;
    padding: 0 15%;
    /* Espacio para que asomen los costados */
}

.work-slide {
    min-width: 70%;
    /* El central es grande */
    opacity: 0.4;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    filter: grayscale(1);
}

.work-slide.active {
    opacity: 1;
    transform: scale(1);
    filter: none;
    z-index: 10;
}

/* ═══════════════════════════════════════════════
   PORTFOLIO ECOSYSTEM GRID (estilo servicios)
   ═══════════════════════════════════════════════ */
.portfolio-ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* Tamaños de la grilla (spans) */
.portfolio-item.span-2 {
    grid-column: span 2;
}
.portfolio-item.span-4 {
    grid-column: span 4;
}

@media (max-width: 900px) {
    .portfolio-item.span-2 {
        grid-column: span 1;
    }
    .portfolio-item.span-4 {
        grid-column: span 2;
    }
}
@media (max-width: 560px) {
    .portfolio-item.span-2,
    .portfolio-item.span-4 {
        grid-column: span 1;
    }
}

/* Colores de tarjetas de proyecto (Acentos dinámicos) */
.portfolio-card.card-blue {
    --card-accent: #3b82f6;
    --card-accent-bg: rgba(59, 130, 246, 0.08);
}
.portfolio-card.card-green {
    --card-accent: #22c55e;
    --card-accent-bg: rgba(34, 197, 94, 0.08);
}
.portfolio-card.card-orange {
    --card-accent: #f97316;
    --card-accent-bg: rgba(249, 115, 22, 0.08);
}
.portfolio-card.card-purple {
    --card-accent: #a855f7;
    --card-accent-bg: rgba(168, 85, 247, 0.08);
}
.portfolio-card.card-pink {
    --card-accent: #ec4899;
    --card-accent-bg: rgba(236, 72, 153, 0.08);
}
.portfolio-card.card-cyan {
    --card-accent: #00aeef;
    --card-accent-bg: rgba(0, 174, 239, 0.08);
}

.portfolio-card {
    --card-accent: var(--primary);
    --card-accent-bg: rgba(0, 174, 239, 0.08);
    
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.06));
    position: relative;
    overflow: hidden;
}

/* Aplicación de las variables en los elementos de la tarjeta */
.portfolio-card .p-card-icon {
    background: var(--card-accent-bg) !important;
    color: var(--card-accent) !important;
    overflow: hidden; /* Fix desborde logo */
}

.portfolio-card .p-card-type {
    color: var(--card-accent) !important;
}

.portfolio-card .p-metric-val {
    color: var(--card-accent) !important;
}

/* Asegurar que la imagen del logo ocupe exactamente el espacio del icono */
.p-card-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

@media (max-width: 900px) {
    .portfolio-ecosystem-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 560px) {
    .portfolio-ecosystem-grid {
        grid-template-columns: 1fr;
    }
}

/* Ocultar items filtrados */
.portfolio-item.hide {
    display: none;
}

/* Tarjeta de Proyecto */
.portfolio-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-accent) !important;
    box-shadow: 0 15px 30px color-mix(in srgb, var(--card-accent) 22%, transparent), 
                0 0 15px color-mix(in srgb, var(--card-accent) 12%, transparent) !important;
}

/* Barra superior desactivada para mantener el grosor de borde 100% uniforme en hover */
.portfolio-card::before,
.portfolio-card:hover::before {
    display: none !important;
}

/* Header: ícono + nombre */
.p-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.p-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-pro);
    background: rgba(0, 174, 239, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
    flex-shrink: 0;
}

.p-card-type {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.p-card-name {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-navy);
    line-height: 1.2;
}

/* Descripción */
.p-card-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Métrica principal */
.p-card-metric {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 14px 16px;
    background: var(--bg-alt);
    border-radius: var(--radius-pro);
}

.p-metric-val {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}

.p-metric-lbl {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

/* Features con pills (estilo servicios) */
.p-card-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.p-feat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-navy);
}

.p-feat-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.p-feat-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.4;
    flex-shrink: 0;
}

.p-feat-pill {
    font-size: 0.6rem;
    font-weight: 800;
    color: #15803d;
    background: #dcfce7;
    border-radius: 4px;
    padding: 2px 7px;
    letter-spacing: 0.05em;
}

/* CTA */
.p-card-cta {
    margin-top: auto;
    width: 100%;
    text-align: center;
}

/* Benefit/Checklist Refined */
.benefit-list {
    list-style-type: none !important;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
    padding: 0;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
    list-style: none !important;
    flex: 1;
}

/* Hosting stats utility */
.hosting-invest-grid {
    display: flex;
    gap: 60px;
    margin-top: 48px;
}

.hosting-stat-block {
    display: flex;
    flex-direction: column;
}

.hosting-stat-label {
    color: var(--acc-purple);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.hosting-price {
    font-size: 2rem;
    font-weight: 800;
}

.hosting-period {
    font-size: 1rem;
    opacity: 0.6;
}

.hosting-email-feature {
    font-size: 1.2rem;
    font-weight: 600;
}

.icon-feature {
    color: var(--acc-purple);
    vertical-align: middle;
}

/* Hosting Section Specifics */
.hosting-card {
    border: 2px solid var(--acc-purple);
    padding: 60px;
}

.hosting-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.hosting-content-main {
    flex: 1;
}

.hosting-main-title {
    font-size: 3.5rem;
    margin-top: 24px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.hosting-main-desc {
    font-size: 1.25rem;
    margin-top: 24px;
    color: var(--text-main);
    line-height: 1.7;
    opacity: 0.9;
}

.hosting-sidebar {
    flex: 0 0 320px;
}

.hosting-cta-card {
    padding: 40px;
    text-align: center;
    border: 1px dashed var(--acc-purple) !important;
    background: rgba(168, 85, 247, 0.05) !important;
}

.hosting-cta-icon {
    font-size: 3rem;
    color: var(--acc-purple);
    margin-bottom: 20px;
}

.btn-hosting-cta {
    width: 100%;
    justify-content: center;
    background: var(--acc-purple);
}

/* ─── TESTIMONIOS (Master Engine Style) ─── */
.testimonials-section {
    padding: 100px 0;
    background: var(--color-white);
    overflow: hidden;
}

.carousel-container {
    max-width: 800px;
    margin: 60px auto 0;
    position: relative;
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
    margin: 0;
}

.carousel-slide {
    min-width: 100%;
    padding: 20px;
}

.testimonial-card {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    padding: 60px 40px;
    border-radius: var(--radius-pro);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    text-align: center;
}

.testimonial-text {
    font-size: 1.4rem;
    font-weight: 500;
    font-style: italic;
    color: var(--color-navy);
    line-height: 1.6;
    margin-bottom: 30px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.testimonial-company {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e2e8f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--primary) !important; /* Azul original */
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* Barra de Progreso Testimonios */
.testimonial-progress-container {
    width: 100%;
    height: 4px;
    background: #f1f5f9;
    margin-top: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.carousel-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #25D366; /* Verde WhatsApp solo en la línea */
    width: 0%;
    transition: width 5s linear;
}

.benefit-item::marker {
    display: none;
    content: none;
}

.benefit-item ion-icon {
    color: var(--acc-green);
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
    background: var(--color-white);
    border-top: 1px solid var(--border-color);
    padding: 100px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.footer-brand .logo {
    margin-bottom: 0;
}

.footer-tagline {
    margin-top: 24px;
    max-width: 300px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--color-gray-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-4px);
}

.footer-terminal-col {
    grid-column: span 1;
}

.terminal-widget {
    background: #0d0d0d;
    border-radius: var(--radius-pro);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Más sutil */
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    /* Sombra dramática para el widget */
}

.terminal-header {
    background: #1e1e1e;
    /* Modo Oscuro Pro */
    padding: 8px 15px;
    border-radius: var(--radius-pro) var(--radius-pro) 0 0;
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.8;
}

.terminal-dot.red {
    background: #ff5f56;
}

.terminal-dot.yellow {
    background: #ffbd2e;
}

.terminal-dot.green {
    background: #27c93f;
}

.terminal-id {
    text-align: center;
    font-size: 0.62rem;
    color: #888;
    /* Texto suavizado para modo oscuro */
    font-family: var(--font-mono), monospace;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.terminal-body {
    padding: 16px;
    min-height: 100px;
}

.terminal-line {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: #e0e0e0;
    line-height: 1.5;
}

.terminal-prompt {
    color: var(--primary);
    margin-right: 6px;
    font-weight: 700;
}

.terminal-cursor {
    display: inline-block;
    width: 6px;
    height: 14px;
    background: var(--primary);
    margin-left: 2px;
    vertical-align: middle;
    animation: terminal-blink 1s infinite steps(1);
    box-shadow: 0 0 10px var(--primary);
    /* Terminal glow effect */
}

@keyframes terminal-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.footer-nav-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    margin-bottom: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-icon {
    display: none;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a,
.footer-links span {
    color: var(--text-muted);
    text-decoration: none;
    font-size: var(--font-size-btn);
    /* 14px Maestro */
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    padding: 24px 0;
    text-align: center;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* WhatsApp Float - Premium & Compact v2 */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border-radius: 100px;
    padding: 6px 20px 6px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.wa-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border-radius: 50%;
}

.wa-icon-wrapper ion-icon {
    font-size: 1.7rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.wa-status-dot {
    position: absolute;
    top: 3px;
    right: -1px;
    width: 9px;
    height: 9px;
    background: #ef4444; /* Rojo vibrante según screenshot */
    border-radius: 50%;
    border: 2px solid #25d366; /* Borde del mismo color del botón */
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
    animation: pulse-dot 2s infinite;
}

.wa-text-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wa-label {
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    opacity: 0.9;
    text-transform: uppercase;
    line-height: 1.1;
}

.wa-main-text {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

@keyframes pulse-dot {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 75, 43, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(255, 75, 43, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(255, 75, 43, 0);
    }
}

.btn-whatsapp:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
    background: #20ba5a;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

/* Form Utilities & Global Grids */
.fields-grid {
    display: grid;
    gap: 20px;
}

.fields-grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.f-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.f-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.f-input,
.f-textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: white;
    font-family: inherit;
    outline: none;
    transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.f-input:focus,
.f-textarea:focus {
    border-color: var(--primary);
    background: rgba(56, 189, 248, 0.05);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.1);
}

/* Responsive System & Optimized Mobile Layouts */
/* ─── MODERN RESPONSIVE SYSTEM (Standard CSS - No Nesting) ─── */
@media (max-width: 1024px) {
    .container {
        padding: 0 32px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 40px;
    }

    .hero h1 {
        font-size: clamp(2.2rem, 10vw, 3.8rem);
    }

    .hero p {
        max-width: 600px;
        margin: 24px auto;
    }

    .hero-stats {
        justify-content: center;
        margin-top: 40px;
    }

    .grid-services,
    .bento-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 20px;
    }

    .span-4,
    .span-5,
    .span-7,
    .span-8,
    .span-2,
    .span-12 {
        grid-column: span 12 !important;
    }

    .row-2 {
        grid-row: auto !important;
    }

    .bento-card-v3,
    .bento-card {
        min-height: auto !important;
    }

    .navbar {
        top: 20px;
        left: 4%;
        right: 4%;
        width: auto;
        transform: none;
        max-width: none;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border-color);
        background: var(--glass-bg);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
    }

    .nav-links {
        display: none !important;
    }

    /* Hide old links on mobile */
    .menu-toggle {
        display: none !important;
    }

    /* Hide toggle, dock handles nav */

    /* The following rules were removed as per instruction to hide nav-links and menu-toggle */
    /*
    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-alt);
        flex-direction: column;
        padding: 40px 20px;
        border-radius: 20px;
        border: 1px solid var(--border-color);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
        text-align: center;
        z-index: 2000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 20px 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        display: block;
        width: 100%;
    }

    .menu-toggle {
        display: block;
        font-size: 2rem;
    }
    */
    .fields-grid.cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Mobile Dock Style - Light Glassmorphism Premium */
.mobile-dock {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 6%;
    right: 6%;
    width: auto;
    background: rgba(255, 255, 255, 0.75); /* Premium Light Glass */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 100px;
    padding: 8px 16px;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.06); /* Sombra suave y prolija */
}

.dock-item {
    color: var(--text-muted);
    font-size: 1.45rem;
    display: flex;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.dock-item.active {
    color: var(--primary) !important;
    background: rgba(0, 174, 239, 0.08); /* Fondo azul sutil */
    box-shadow: 0 0 10px rgba(0, 174, 239, 0.1);
}

.dock-item:active {
    transform: scale(0.85);
}

@media (max-width: 1024px) {
    .mobile-dock {
        display: flex;
    }

    /* Navbar flotante Premium con Light Glassmorphism en Mobile */
    .navbar {
        top: 12px !important;
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
        border-radius: 14px !important; /* Esquinas suavizadas, fin del marco cuadrado */
        transform: none !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
        background: rgba(255, 255, 255, 0.75) !important; /* Efecto Light Glass */
        backdrop-filter: blur(20px) saturate(180%) !important;
        -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
        padding: 0 16px !important;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .mobile-dock {
        display: flex;
    }

    section {
        padding: 80px 0 !important;
        max-width: 100%;
        overflow: hidden;
    }

    .section-title {
        font-size: 2.5rem;
        text-align: center;
    }

    .benefit-list {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
        margin-top: 40px;
    }

    .benefit-item {
        width: 100%;
        padding-left: 10px;
    }

    .hosting-invest-grid {
        flex-direction: column;
        gap: 32px;
        margin-top: 32px;
        align-items: center;
        /* Center on mobile */
    }

    .hosting-card {
        padding: 40px 24px !important;
        text-align: center;
    }

    .hosting-wrapper {
        flex-direction: column !important;
        gap: 40px !important;
        text-align: center;
    }

    .hosting-main-title {
        font-size: 2.2rem;
    }

    .hosting-main-desc {
        font-size: 1.1rem;
        margin-bottom: 32px;
    }

    .hosting-metric-pill,
    .hosting-price-card {
        border-radius: var(--radius-premium);
        padding: 24px;
    }

    .hosting-cta-card {
        padding: 30px !important;
    }

    .hosting-content-main {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Footer Accordion Mobile */
    .accordion-header {
        cursor: pointer;
        padding: 15px 0;
        margin-bottom: 0;
        border-bottom: 1px solid var(--border-color);
    }

    .accordion-icon {
        display: block;
    }

    .footer-nav.active .accordion-icon {
        transform: rotate(180deg);
    }

    .accordion-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        padding-left: 10px;
    }

    .footer-nav.active .accordion-content {
        max-height: 300px;
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .card-content-wrapper {
        padding: 30px !important;
    }

    .work-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 32px;
        margin-bottom: 48px;
    }

    .work-btn-all {
        width: 100%;
        justify-content: center;
    }

    .bento-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px !important;
    }

    .bento-card {
        min-height: 240px !important;
        grid-column: auto !important;
        grid-row: auto !important;
    }

    .bento-card .card-content {
        padding: 20px;
    }

    .bento-card .card-content h3 {
        font-size: 1.1rem;
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .bento-card .card-content p {
        font-size: 0.75rem;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        /* Estándar */
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .bento-card .card-content h3 {
        font-size: 1.25rem;
        margin-bottom: 4px;
        line-height: 1.2;
    }

    .bento-card .card-content p {
        font-size: 0.85rem;
    }

    .grid-services,
    .bento-grid {
        gap: 16px !important;
    }

    .hero-card-form {
        padding: 30px !important;
    }

    .card-red.span-12 {
        padding: 60px 30px !important;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0 16px;
        left: 4%;
        right: 4%;
        width: auto;
    }

    .nav-content {
        height: 60px;
        justify-content: center;
    }

    .nav-links {
        top: 70px;
        padding: 30px 20px;
        left: 0;
        transform: none;
        width: 100%;
    }

    .logo {
        font-size: 1.1rem;
        gap: 8px;
    }

    .logo-dot {
        width: 8px;
        height: 8px;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-container-v3 {
        padding: 50px 20px !important;
        text-align: center;
        border-radius: var(--radius-premium, 20px) !important;
    }

    .cta-badge {
        display: inline-block;
        padding: 6px 12px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: var(--radius-pill);
        font-size: 0.75rem;
        letter-spacing: 1px;
        margin-bottom: 16px;
        text-transform: uppercase;
        color: var(--primary);
    }

    .cta-title-v3 {
        font-size: 1.8rem !important;
        margin-bottom: 14px;
        line-height: 1.15;
    }

    .cta-desc-v3 {
        font-size: 1.05rem;
        margin-bottom: 28px;
    }

    .cta-actions-v3 {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .cta-actions-v3 .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .footer-brand {
        grid-column: auto !important;
        align-items: center;
    }

    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 2rem;
    }

    .badge-tech {
        font-size: 0.65rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    /* WhatsApp Mobile Optimization */
    .whatsapp-float {
        bottom: 100px;
        right: 15px;
    }

    .btn-whatsapp {
        padding: 6px 16px 6px 10px;
        gap: 8px;
    }

    .wa-icon-wrapper {
        width: 32px;
        height: 32px;
    }

    .wa-icon-wrapper ion-icon {
        font-size: 1.3rem;
    }

    .wa-label {
        font-size: 0.55rem;
    }

    .wa-main-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 1.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cta-title-v3 {
        font-size: 1.8rem !important;
    }

    .cta-container-v3 {
        border-radius: var(--radius-premium, 20px) !important;
    }

    .problem-grid {
        display: flex !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 16px;
        padding-top: 20px;
        padding-bottom: 40px;
        /* Aire para las sombras de las tarjetas */
        margin-left: -20px;
        /* Para que el scroll toque los bordes */
        margin-right: -20px;
        padding-left: 20px;
        padding-right: 20px;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }

    .problem-grid::-webkit-scrollbar {
        display: none;
        /* Carrusel sin barra de scroll para look premium */
    }

    .problem-card {
        flex: 0 0 85% !important;
        /* Efecto Peeking: asoma la siguiente tarjeta */
        scroll-snap-align: center !important;
        height: auto !important;
    }
}

/* ── REFINED ANIMATIONS ───────────────────────── */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease-out;
    /* Velocidad extrema Vercel-style */
    will-change: transform, opacity;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delay Classes */
.stagger-1 {
    transition-delay: 0.05s;
}

.stagger-2 {
    transition-delay: 0.10s;
}

.stagger-3 {
    transition-delay: 0.15s;
}

.stagger-4 {
    transition-delay: 0.20s;
}

.stagger-5 {
    transition-delay: 0.25s;
}

/* ── CMS SECTION STYLES ───────────────────────── */
.section-light {
    background: var(--color-white) !important;
    color: var(--color-navy);
}

.section-smoke {
    background: var(--color-gray-light) !important;
    color: var(--color-navy);
}

.section-dark {
    background: var(--color-navy) !important;
    color: var(--color-white);
}

.section-light .section-title,
.section-smoke .section-title {
    color: var(--color-navy);
}

.section-light .benefit-item,
.section-smoke .benefit-item {
    color: var(--color-gray);
}

.section-light .card-title-main,
.section-smoke .card-title-main {
    color: var(--color-navy);
}

.section-light .badge-tech,
.section-smoke .badge-tech {
    border-color: var(--border-color);
    color: var(--primary);
}

/* ── PROBLEM SECTION ─────────────────────────── */
#problem {
    padding: 60px 0;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    /* Reducido mínimamente para seguridad de encaje */
    margin-top: 60px;
}

.problem-card {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-pro);
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    min-width: 0;
    /* Evita que el contenido interno empuje el ancho de la columna */
    overflow: hidden;
}

.problem-card:hover {
    border-color: var(--acc-red);
    transform: translateY(-5px);
}

.problem-icon {
    font-size: 1.75rem;
    /* Reducido de 2.5rem */
    color: var(--acc-red);
    margin-bottom: 16px;
    /* Reducido de 24px */
}

.problem-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    /* Reducido de 1.5rem */
    margin-bottom: 12px;
}

.problem-card p {
    color: var(--text-muted);
    font-size: var(--font-size-p);
    /* Ajustado a escala global 15.2px */
    line-height: 1.6;
}

/* ── ANIMACIONES DE CONVERSIÓN ──────────────── */
@keyframes pulse-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

    50% {
        transform: scale(1.03);
        box-shadow: 0 25px 50px rgba(0, 174, 239, 0.3);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }
}

.service-price-tag {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Elite Sale Ribbon - Diagonal Corner (Restored Cyan) */
.service-card-interactive {
    position: relative;
    overflow: hidden;
}

.sale-ribbon {
    position: absolute;
    top: 5px;
    right: -35px;
    width: 120px;
    background: var(--brand-gradient);
    color: #fff;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 850;
    padding: 8px 0;
    transform: rotate(45deg);
    box-shadow: 0 4px 15px rgba(0, 174, 239, 0.4);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
    animation: ribbon-glow 3s infinite ease-in-out;
}

@keyframes ribbon-glow {

    0%,
    100% {
        filter: brightness(1) drop-shadow(0 0 5px rgba(0, 174, 239, 0.4));
    }

    50% {
        filter: brightness(1.2) drop-shadow(0 0 15px rgba(0, 174, 239, 0.7));
    }
}

.fire-glow-active {
    border: 1px solid rgba(0, 174, 239, 0.3) !important;
    animation: perimetral-glow-cyan 4s infinite ease-in-out;
}

@keyframes perimetral-glow-cyan {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    50% {
        box-shadow: 0 0 35px rgba(0, 174, 239, 0.1);
    }
}

/* Glass Countdown Styles (Web Aligned) */
.service-countdown-container {
    background: rgba(0, 174, 239, 0.05);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: var(--radius-pro);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    margin-top: 15px;
    border: 1px solid rgba(0, 174, 239, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-val {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 174, 239, 0.3);
}

.countdown-label {
    font-size: 0.5rem;
    text-transform: uppercase;
    opacity: 0.6;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* Neon Price Tags */
.service-price-tag.sale-active {
    background: #00aeef !important;
    box-shadow: 0 0 15px rgba(0, 174, 239, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.price-container-expanded {
    background: rgba(0, 174, 239, 0.03);
    padding: 8px 16px;
    border-radius: var(--radius-strict);
    border: 1px solid rgba(0, 174, 239, 0.1);
}

@keyframes perimetral-glow {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 174, 239, 0.15);
    }
}

@keyframes float-badge {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.08);
    }
}

/* Technical Strikethrough */
.price-strikethrough {
    font-family: var(--font-mono);
    position: relative;
    color: var(--text-muted);
    font-weight: 500;
}

.price-strikethrough::after {
    content: '';
    position: absolute;
    left: -4px;
    right: -4px;
    top: 50%;
    height: 1.5px;
    background: var(--acc-red);
    opacity: 0.4;
    transform: rotate(-8deg);
    border-radius: 2px;
}

/* Premium Conversion Footer */
.conversion-trust-box {
    margin-top: 24px;
    padding: 15px;
    background: rgba(16, 185, 129, 0.03);
    border: 1px solid rgba(16, 185, 129, 0.08);
    border-radius: var(--radius-md);
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    backdrop-filter: blur(5px);
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
}

.trust-item.scarcity {
    color: #10b981;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-cta-expanded {
    letter-spacing: 0.05em;
    font-weight: 800;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── PROCESS SECTION ─────────────────────────── */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 80px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .process-grid::before {
        top: 0;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 1px;
        height: 100%;
    }
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--color-white);
    border: 2px solid var(--primary);
    border-radius: var(--radius-circle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 10px 20px var(--primary-glow);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.process-step h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 12px;
    transition: color 0.4s ease;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    transition: opacity 0.4s ease;
}

/* ══ PROCESS STEP SEQUENTIAL LOOP ═════════ */

/* Paso completado (ya pasó en la secuencia) */
.process-step.step-done .step-number {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.35);
    color: rgba(56, 189, 248, 0.55);
    box-shadow: none;
}

.process-step.step-done h3 {
    color: rgba(56, 189, 248, 0.45);
}

.process-step.step-done p {
    opacity: 0.35;
}

/* Paso activo (el que brilla ahora) */
.process-step.step-active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.18), 0 12px 30px rgba(56, 189, 248, 0.35);
    transform: scale(1.12);
}

.process-step.step-active h3 {
    color: var(--primary);
}

.process-step.step-active p {
    opacity: 1;
}

/* Barra de progreso bajo el número */
.process-step .step-progress {
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: var(--radius-pill);
    margin: 6px auto 0;
}

.indicator-progress {
    height: 100%;
    width: 0%;
    background: #25D366; /* Verde WhatsApp */
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.4);
    transition: width 0.1s linear;
}

.indicator-bar.active .indicator-progress {
    width: 100%;
    transition: width 6s linear;
}

.process-step.step-active .step-progress {
    width: 44px;
    transition: width 1.4s linear;
}

/* ── TESTIMONIALS CAROUSEL ────────────────── */
.testimonials-section {
    overflow: hidden;
}

.carousel-container {
    max-width: 780px;
    margin: 32px auto 0;
    position: relative;
}

.testimonial-progress-container {
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    /* Fondo ultra-sutil */
    margin-top: 40px;
    border-radius: var(--radius-pill);
    overflow: hidden;
    position: relative;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.carousel-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--primary);
    transition: width linear;
    /* Controlado por JS */
}

.carousel-track-container {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    list-style: none;
    padding: 0;
    margin: 0;
}

.carousel-slide {
    min-width: 100%;
    padding: 20px;
}

.testimonial-card {
    background: var(--color-white);
    border: 1px solid var(--border-color);
    padding: 32px 40px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.report-card {
    background: white;
    border-radius: var(--radius-pro);
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.testimonial-text {
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-style: italic;
    color: var(--color-navy);
}

.testimonial-author {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
}

.testimonial-company {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: 0.3s;
}

.carousel-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: 10px;
}

/* ── NEW ELITE VIEW SWAPPING SYSTEM ─────────────────── */
.ecosystem-grid,
.portfolio-ecosystem-grid {
    transition: all 0.5s ease;
    position: relative;
    box-sizing: border-box;
}

/* Estado Maestro Expansion */
.ecosystem-grid.is-view-expanded,
.portfolio-ecosystem-grid.is-view-expanded {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    /* Lock content inside */
}

.services,
.work-section {
    overflow-x: hidden;
    /* Prevent shadow bleed overflow */
}

.is-view-expanded .service-card-interactive.is-hidden,
.is-view-expanded .portfolio-item.is-hidden {
    display: none !important;
}

.is-view-expanded .service-card-interactive:not(.is-hidden),
.is-view-expanded .portfolio-item:not(.is-hidden) {
    display: block !important;
    grid-column: span 12 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    /* Eliminado padding: 0 !important para permitir el clamp del modo activo */
    min-width: 0;
    animation: smoothFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.service-card-interactive,
.portfolio-card-interactive {
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.service-card-interactive.is-active,
.portfolio-card-interactive.is-active {
    width: 100% !important;
    max-width: 100% !important;
    cursor: default;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    z-index: 1000;
    overflow: visible !important;
    box-sizing: border-box !important;
}

/* Hover effect para indicar que es clickeable */
.service-card-interactive:not(.is-active) {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
}

.service-card-interactive:not(.is-active):hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 174, 239, 0.15);
    border-color: var(--primary);
}

.service-card-interactive:not(.is-active):hover .card-hint {
    opacity: 1;
    transform: translateX(0);
}

.card-hint {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 15px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Contenedor de Bloques (Dashboard) */
.db-card-detailed {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    min-width: 0;
}

/* Mini Metrics in Collapsed View (Resumen de Calidad) */
.card-mini-metrics {
    margin-top: 15px;
    margin-bottom: 20px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Transformación: Ocultar el resumen cuando se expande el detalle */
.is-active .db-card-content,
.is-active .card-mini-metrics {
    display: none !important;
    opacity: 0;
    pointer-events: none;
    margin: 0;
    height: 0;
    overflow: hidden;
}

.mini-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.mini-metric-row:last-child {
    border-bottom: none;
}

.mini-metric-row .m-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-navy);
}

.mini-metric-row .m-value {
    font-size: 0.7rem;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    /* Background sutil Image 1 style */
    padding: 3px 12px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: 1px solid rgba(16, 185, 129, 0.1);
}

.is-active .db-card-detailed {
    max-height: 2000px;
    opacity: 1;
    margin-top: 10px;
    /* Reducido drásticamente para máxima conexión visual */
}

/* Standarized Detailed Header - Dashboard Look */
.db-detailed-header {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 20px;
    padding: 24px 32px;
    /* Reducido para look más compacto */
    margin-bottom: 32px;
    /* Reducido de 40px */
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(0, 174, 239, 0.1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.ui-row-wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Espaciado interno mejorado */
    gap: 15px;
    flex: 1;
    padding: 12px 15px;
    /* Padding interno para las píldoras de métricas */
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    min-width: 0;
}

.ui-row-wide .ui-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.ui-row-wide .ui-status {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

@media (max-width: 992px) {
    .db-detailed-header {
        flex-direction: column;
        gap: 10px;
    }
}

.detailed-blocks-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    /* Reducido de 24px para compacidad */
    margin-bottom: 30px;
    /* Reducido de 40px */
    animation: fadeInBlocks 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.btn-cta-expanded {
    background: var(--color-navy);
    /* Base oscura para máximo contraste */
    background-image: linear-gradient(135deg, var(--color-navy) 0%, #2a2a4e 100%);
    color: #ffffff !important;
    padding: 18px 44px;
    /* Reducido para proporcionalidad */
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.95rem;
    /* Un poco más elegante */
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 2px solid rgba(0, 174, 239, 0.3);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-decoration: none !important;
    animation: pulse-glow 3s infinite ease-in-out;
    /* Conversión Activa */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-cta-expanded::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 100px;
    background: var(--primary);
    opacity: 0;
    z-index: -1;
    transition: 0.4s;
    filter: blur(20px);
}

.btn-cta-expanded:hover::after {
    opacity: 0.3;
}

.btn-cta-expanded ion-icon {
    font-size: 1.6rem;
    color: var(--primary);
    /* Icono en Cyan para acento */
    transition: transform 0.4s ease;
}

.btn-cta-expanded:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 174, 239, 0.25);
    border-color: var(--primary);
    background-image: linear-gradient(135deg, #2a2a4e 0%, var(--color-navy) 100%);
}

.btn-cta-expanded:hover ion-icon {
    transform: rotate(15deg) scale(1.2);
}

/* Efecto Brillo Maestro */
.btn-cta-expanded::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.6s;
}

.btn-cta-expanded:hover::before {
    left: 100%;
}

@media (max-width: 1024px) {
    .detailed-blocks-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .detailed-blocks-container {
        grid-template-columns: 1fr;
    }
}

.detailed-block {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 22px 22px 22px 28px;
    border-radius: 12px;
    position: relative;
    overflow: hidden; /* Recorta el pseudoelemento lateral siguiendo la curva perfecta de 12px */
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.detailed-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--card-accent, var(--primary));
    transition: background 0.4s ease;
}

.detailed-block:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px var(--card-accent-bg, rgba(0, 174, 239, 0.1));
    border-color: var(--card-accent, var(--primary));
}

.detailed-block h4 {
    font-size: 0.8rem;
    color: var(--card-accent, var(--primary));
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    /* Reducido de 15px */
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.detailed-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.detailed-list li {
    font-size: 0.95rem;
    color: var(--color-navy);
    line-height: 1.4;
    position: relative;
    padding-left: 0;
}

/* Dashboard Stat Circle Embebido */
.dashboard-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.stat-circle {
    width: 90px;
    height: 90px;
    position: relative;
    margin-bottom: 10px;
}

.stat-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 5px rgba(0, 174, 239, 0.2));
}

.stat-val {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--color-navy);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Pie de Tarjeta con Botón Regresar */
.detail-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.btn-back-grid {
    padding: 14px 32px;
    border-radius: 100px;
    color: var(--text-muted);
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.btn-back-grid:hover {
    background: var(--color-navy);
    color: #ffffff;
    border-color: var(--color-navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(10, 15, 30, 0.15);
}

@keyframes fadeInBlocks {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Portfolio Refinements */
.is-active .p-card-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-gray-light);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 30px;
}

.is-active .p-card-desc {
    font-size: 1.1rem;
    max-width: 60%;
}

.p-card-cta-simple {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: gap 0.3s ease;
}

.portfolio-card:hover .p-card-cta-simple {
    gap: 12px;
}

.is-active .p-card-cta-simple {
    display: none;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Botón Regresar */
.btn-back-grid {
    animation: slideInLeft 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Project Logos (Frontend) */
.p-card-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.db-card:hover .p-card-logo-img {
    transform: scale(1.1);
}

/* Admin Logo Preview */
.admin-logo-preview-container {
    margin-top: 10px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.admin-logo-preview {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 174, 239, 0.2));
    background: #fff;
    /* Fondo blanco para logos transparentes en el admin */
    padding: 5px;
    border-radius: 4px;
}

.admin-logo-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════
   BENTO 2.0 — Service Detail View
   Reemplaza el desplegable antiguo cuando el usuario
   hace clic en una tarjeta de servicio.
═══════════════════════════════════════════════════════ */

/* Contenedor principal: Sin bordes ni fondos para total independencia */
.svc-bento-wrap {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* ── ESTRUCTURA BENTO 2.0 ─────────────────────── */
.svc-bento-wrap {
    display: none;
    width: 100%;
    margin-top: 0;
    animation: smoothFadeIn 0.5s ease forwards;
}

/* Independencia Total: Al expandir, la tarjeta padre desaparece visualmente */
.service-card-interactive.is-active {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    transform: none !important;
    cursor: default;
}

.service-card-interactive.is-active .svc-bento-wrap {
    display: block;
}

/* Ocultar contenido de resumen al expandir */
.service-card-interactive.is-active .db-card-content {
    display: none !important;
}

/* Grid de 4 columnas × 2 filas (igual que el prototipo) */
.svc-bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto auto;
    gap: 24px; /* Más aire */
    padding: 24px 0; /* Padding lateral fuera para que el grid mande */
}

/* Tarjeta base Bento */
.svc-bento-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.02);
}

.svc-bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.06);
    border-color: rgba(0,174,239,0.2);
}

/* ── MÓDULO 1: Hero (2 cols × 2 filas) ─────────── */
.svc-hero-card {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: flex-end;
    min-height: 260px;
    background: #fff;
}

.svc-hero-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    opacity: 0.85;
    pointer-events: none;
}

.svc-hero-content {
    position: relative;
    z-index: 2;
}

.svc-badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.svc-hero-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-navy, #1a1a2e);
    margin-bottom: 10px;
}

.svc-hero-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #6b7280;
    margin: 0;
}

/* ── MÓDULO 2: Carrusel Visual (1 col × 2 filas) ── */
.svc-visual-card {
    position: relative;
    overflow: hidden;
    grid-row: span 2;
    padding: 0 !important;
}

.visual-nav-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 15px;
    pointer-events: none;
    z-index: 10;
}

.visual-nav-arrows .nav-btn {
    pointer-events: auto;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 36px;
    height: 36px;
}

.visual-nav-arrows .nav-btn:hover {
    background: white;
    color: var(--color-navy);
    transform: scale(1.1);
}

.svc-carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1);
}

.svc-carousel-slide {
    flex: 0 0 100%;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.svc-carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.svc-carousel-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    color: #fff;
    padding: 12px 16px;
    font-size: 0.75rem;
    font-weight: 700;
}

.svc-carousel-placeholder {
    background: #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #9ca3af;
    font-size: 3rem;
}

.svc-carousel-placeholder span {
    font-size: 0.85rem;
    font-weight: 600;
}

/* ── MÓDULO 3: Precio ──────────────────────────── */
.svc-price-card {
    border-width: 2px;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.svc-price-value {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
}

.svc-price-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin: 0;
}

.svc-bonus-tag {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    color: #374151;
    margin-top: 4px;
}

/* ── MÓDULO 4: CTA WhatsApp ────────────────────── */
.svc-cta-card {
    text-decoration: none;
    justify-content: space-between;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.svc-cta-card:hover {
    opacity: 0.92;
    transform: translateY(-3px);
}

.svc-elite-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.svc-elite-title {
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1.2;
    color: #fff;
}

.svc-elite-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
}

.svc-cta-wa-icon {
    font-size: 2rem;
    color: rgba(255,255,255,0.9);
    align-self: flex-end;
}

/* ── MÓDULO 5: Timeline ────────────────────────── */
.svc-timeline-card {
    justify-content: space-between;
}

.svc-timeline-header h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-navy, #1a1a2e);
    margin-bottom: 2px;
}

.svc-timeline-header p {
    font-size: 0.72rem;
    color: #9ca3af;
    margin: 0;
}

.svc-timeline-wrapper {
    position: relative;
    width: 100%;
    margin-top: 10px;
    padding-bottom: 5px;
}

.svc-timeline-line {
    position: absolute;
    top: 14px;
    left: 15%;
    right: 15%;
    height: 1px;
    background: #e5e7eb;
    z-index: 1;
}

.svc-timeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.svc-timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.svc-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 900;
    background: #fff;
    position: relative;
    z-index: 1;
}

.svc-step-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-top: 6px;
    text-align: center;
}

/* ── MÓDULO 6: Score ───────────────────────────── */
.svc-score-card {
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
}

.svc-score-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.svc-score-value {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    margin: 0;
}

.svc-score-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    margin: 0;
}

/* ── Footer Bento ──────────────────────────────── */
.svc-bento-footer {
    margin-top: 48px;
    padding: 40px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
}

.btn-return-global {
    background: var(--color-white);
    color: var(--color-navy);
    border: 1px solid var(--border-color);
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

.btn-return-global:hover {
    background: var(--color-navy);
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.btn-return-global ion-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn-return-global:hover ion-icon {
    transform: translateX(-4px);
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 900px) {
    .svc-bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .svc-hero-card {
        grid-column: span 2;
        min-height: 200px;
    }
    .svc-visual-card {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 180px;
    }
}

@media (max-width: 600px) {
    .svc-bento-grid {
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 12px;
    }
    .svc-hero-card,
    .svc-visual-card {
        grid-column: span 1;
        grid-row: span 1;
    }
    .svc-hero-title { font-size: 1.5rem; }
}

/* ==========================================================================
   ESTILOS DE ANIMACIÓN Y DISEÑOS ESTRUCTURALES DEL HERO (CMS v4.2)
   ========================================================================== */

/* ── 1. Estilos de Animación Dinámicos (Controlados desde Admin) ── */

/* Smooth / Cinematic Style (0.8s) */
body.anim-style-smooth section,
body.anim-style-smooth .reveal-on-scroll,
body.anim-style-smooth .bento-card,
body.anim-style-smooth .bento-card-v3,
body.anim-style-smooth .portfolio-item {
    transition-duration: 0.8s !important;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important; /* easeOutExpo */
}

/* Snappy / Instant Style (0.15s) */
body.anim-style-snappy section,
body.anim-style-snappy .reveal-on-scroll,
body.anim-style-snappy .bento-card,
body.anim-style-snappy .bento-card-v3,
body.anim-style-snappy .portfolio-item {
    transition-duration: 0.15s !important;
    transition-timing-function: cubic-bezier(0.25, 1, 0.5, 1) !important; /* easeOutQuad */
}

/* None / No Animations Style (Instant Load) */
body.anim-style-none *,
body.anim-style-none section,
body.anim-style-none .reveal-on-scroll,
body.anim-style-none .bento-card,
body.anim-style-none .bento-card-v3,
body.anim-style-none .portfolio-item {
    transition: none !important;
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
}

/* ── 2. Diseños de Estructura / Layouts del Hero (Controlados desde Admin) ── */

/* --- A. DISEÑO CENTRADO PRO (Centered Focus) --- */
.hero.hero-layout-centered .hero-grid {
    grid-template-columns: 1fr !important;
    text-align: center !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    justify-items: center !important;
    gap: 40px !important;
}

.hero.hero-layout-centered .hero-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    animation: floatAmbientCentered 6s infinite ease-in-out !important;
}

.hero.hero-layout-centered .hero-text h1 {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.hero.hero-layout-centered .hero-text p {
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
}

.hero.hero-layout-centered .hero-actions {
    justify-content: center !important;
    width: 100% !important;
}

.hero.hero-layout-centered .hero-stats {
    justify-content: center !important;
    width: 100% !important;
    gap: 50px !important;
}

.hero.hero-layout-centered .hero-card-form {
    margin-top: 20px !important;
    width: 100% !important;
    max-width: 520px !important;
    border-color: rgba(56, 189, 248, 0.15) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

@keyframes floatAmbientCentered {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* --- B. ESTRUCTURA TARJETA GLASSMORPHIC (Glassmorphism Core) --- */
.hero.hero-layout-glassmorphic {
    background-color: var(--color-navy) !important;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(0, 174, 239, 0.12), transparent 45%),
        radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.12), transparent 45%) !important;
}

.hero.hero-layout-glassmorphic::before {
    opacity: 0.12 !important;
    background: radial-gradient(circle at 50% 50%, rgba(0, 174, 239, 0.05), transparent 60%) !important;
}

.hero.hero-layout-glassmorphic .hero-grid {
    grid-template-columns: 1.15fr 0.85fr !important;
    gap: 60px !important;
    align-items: center !important;
}

.hero.hero-layout-glassmorphic .hero-text h1 {
    font-family: var(--font-display) !important;
    letter-spacing: -0.03em !important;
    font-weight: 800 !important;
    color: #fff !important;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero.hero-layout-glassmorphic .hero-text p {
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    color: var(--text-muted) !important;
    line-height: 1.6 !important;
}

.hero.hero-layout-glassmorphic .badge-tech {
    background: rgba(0, 174, 239, 0.08) !important;
    border: 1px solid rgba(0, 174, 239, 0.25) !important;
    color: #00aeef !important;
    text-shadow: 0 0 10px rgba(0, 174, 239, 0.2);
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.05);
}

.hero.hero-layout-glassmorphic .hero-card-form {
    background: rgba(24, 24, 27, 0.45) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.1) !important;
    padding: 35px !important;
}

.hero.hero-layout-glassmorphic .hero-card-form h3 {
    font-family: var(--font-display) !important;
    color: #fff !important;
    font-size: 1.25rem !important;
    letter-spacing: -0.02em !important;
    font-weight: 700 !important;
}

.hero.hero-layout-glassmorphic .hero-card-form input,
.hero.hero-layout-glassmorphic .hero-card-form select,
.hero.hero-layout-glassmorphic .hero-card-form textarea {
    background: rgba(9, 9, 11, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-size: 0.9rem !important;
    padding: 12px 14px !important;
}

.hero.hero-layout-glassmorphic .hero-card-form input:focus,
.hero.hero-layout-glassmorphic .hero-card-form textarea:focus {
    border-color: #00aeef !important;
    box-shadow: 0 0 15px rgba(0, 174, 239, 0.25) !important;
    background: rgba(9, 9, 11, 0.6) !important;
}

.hero.hero-layout-glassmorphic .hero-card-form button {
    background: linear-gradient(135deg, #00aeef, #0089C0) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 20px rgba(0, 174, 239, 0.25) !important;
    transition: all 0.3s ease !important;
}

.hero.hero-layout-glassmorphic .hero-card-form button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 25px rgba(0, 174, 239, 0.35) !important;
}

.hero.hero-layout-glassmorphic .service-pill {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    font-size: 0.8rem !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
}

.hero.hero-layout-glassmorphic .service-pill.active {
    background: rgba(0, 174, 239, 0.15) !important;
    color: #00aeef !important;
    border-color: #00aeef !important;
    box-shadow: 0 0 15px rgba(0, 174, 239, 0.15) !important;
}

.hero.hero-layout-glassmorphic .char-counter {
    color: rgba(255, 255, 255, 0.4) !important;
}

@media (max-width: 1023px) {
    .hero.hero-layout-centered .hero-grid,
    .hero.hero-layout-glassmorphic .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}

/* ==========================================================================
   PORTFOLIO REINVENTADO: CONSOLA BENTO INMERSIVA (MODAL CLARO - LIGHT GLASS)
   ========================================================================== */

#project-details-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 100000;
    background: rgba(241, 245, 249, 0.45); /* Soft light gray tint */
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity;
}

#project-details-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.project-bento-console {
    background: rgba(255, 255, 255, 0.72); /* Premium light glass */
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 24px;
    width: 100%;
    max-width: 1100px;
    max-height: 90vh;
    box-sizing: border-box;
    box-shadow: 0 40px 100px rgba(15, 23, 42, 0.12), 
                inset 0 1px 1px rgba(255, 255, 255, 0.8);
    position: relative;
    overflow-y: auto;
    padding: 40px;
    transform: scale(0.94);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    color: var(--text-main);
}

#project-details-overlay.active .project-bento-console {
    transform: scale(1);
}

.project-bento-console::-webkit-scrollbar {
    width: 6px;
}
.project-bento-console::-webkit-scrollbar-track {
    background: transparent;
}
.project-bento-console::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

/* Botón flotante para cerrar */
.console-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.07);
    color: rgba(15, 23, 42, 0.6);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    z-index: 10;
}
.console-close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.25);
    color: #ef4444;
    transform: rotate(90deg) scale(1.05);
}

/* Estructura Bento */
#project-console-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    box-sizing: border-box;
}

/* Bento Boxes individuales */
.bento-console-box {
    background: rgba(255, 255, 255, 0.45); /* Light translucent background */
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 24px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.bento-console-box:hover {
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

/* Lado Izquierdo: Identidad */
.bento-console-identity {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.2) 100%);
}

.console-badge {
    align-self: flex-start;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.console-logo-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 8px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.console-proj-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-heading);
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.02em;
}

.console-proj-desc {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.55;
    margin: 0 0 8px 0;
}

.console-metric-box {
    margin-top: auto;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.console-metric-val {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
}

.console-metric-lbl {
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-top: 4px;
    text-transform: uppercase;
}

/* Bloques Técnicos */
.console-right-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.console-box-wide {
    grid-column: span 2;
}

.bento-console-box h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.bento-console-box.accented-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 4px;
    background: var(--console-accent, var(--primary));
}

.console-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.console-feat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-radius: 8px;
    padding: 10px 14px;
}

.console-feat-label {
    display: flex;
    align-items: center;
    gap: 8px;
}
.console-feat-label::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--console-accent, var(--primary));
}

.console-feat-pill {
    font-size: 0.58rem;
    font-weight: 800;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.15);
    border-radius: 4px;
    padding: 2px 6px;
}

.console-seo-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.console-seo-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-body);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding-bottom: 10px;
}
.console-seo-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.console-seo-status {
    font-size: 0.6rem;
    font-weight: 800;
    background: rgba(0, 174, 239, 0.08);
    color: #0284c7;
    border: 1px solid rgba(0, 174, 239, 0.12);
    border-radius: 4px;
    padding: 2px 8px;
}

.console-score-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.console-stat-circle {
    width: 100px;
    height: 100px;
    position: relative;
    margin-bottom: 14px;
}
.console-stat-circle svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 10px rgba(var(--console-accent-rgb, 0, 174, 239), 0.12));
}

.console-stat-val {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-heading);
}

.console-score-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.console-actions-box {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, rgba(0,0,0,0.01) 0%, rgba(0,0,0,0) 100%);
    padding: 20px 24px;
}

.btn-console-action {
    background: var(--console-accent, var(--primary));
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 12px 28px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--console-accent-rgb, 59, 130, 246), 0.25);
}
.btn-console-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(var(--console-accent-rgb, 59, 130, 246), 0.4);
}

.btn-console-back {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-body) !important;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}
.btn-console-back:hover {
    background: rgba(0, 0, 0, 0.06);
    color: var(--text-heading) !important;
}

/* Colores de Acentos de Consola */
.project-bento-console.card-blue {
    --console-accent: #2563eb;
    --console-accent-rgb: 37, 99, 235;
}
.project-bento-console.card-green {
    --console-accent: #16a34a;
    --console-accent-rgb: 22, 163, 74;
}
.project-bento-console.card-orange {
    --console-accent: #ea580c;
    --console-accent-rgb: 234, 88, 12;
}
.project-bento-console.card-purple {
    --console-accent: #9333ea;
    --console-accent-rgb: 147, 51, 234;
}
.project-bento-console.card-pink {
    --console-accent: #db2777;
    --console-accent-rgb: 219, 39, 119;
}
.project-bento-console.card-cyan {
    --console-accent: #0284c7;
    --console-accent-rgb: 2, 132, 199;
}

/* Animaciones */
.animate-in {
    animation: consoleScaleUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes consoleScaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   PORTFOLIO REINVENTADO: OPTIMIZACIÓN RESPONSIVE MOBILE-FIRST
   ========================================================================== */

@media (max-width: 900px) {
    #project-details-overlay {
        padding: 12px; /* Margen mínimo en tablets para expandir el Bento */
    }
    
    .project-bento-console {
        padding: 20px;
        max-height: 96vh;
        border-radius: 20px;
    }

    #project-console-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .bento-console-identity {
        grid-row: span 1;
        background: linear-gradient(180deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.4) 100%);
    }
    
    .console-metric-box {
        margin-top: 16px;
    }
}

@media (max-width: 600px) {
    .project-bento-console {
        padding: 16px; /* Más compacto en pantallas pequeñas móviles */
    }

    .console-right-column {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .console-box-wide {
        grid-column: span 1;
    }
    
    .console-features-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .console-stat-circle {
        width: 80px; /* Reducción de tamaño del score radial */
        height: 80px;
    }
    
    .console-stat-val {
        font-size: 1.5rem;
    }
    
    .console-actions-box {
        grid-column: span 1;
        flex-direction: column-reverse; /* Ergonomía táctil: Acción arriba, Volver abajo */
        gap: 12px;
        align-items: stretch;
        text-align: center;
        padding: 16px;
    }
    
    .btn-console-action, .btn-console-back {
        justify-content: center;
        width: 100%;
    }
    
    .console-proj-title {
        font-size: 1.5rem;
    }
    
    .console-logo-box {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
}

/* Optimización de la Consola Bento para Pantallas Cortas (Ej: Laptops 1366x768) */
@media (max-height: 800px) and (min-width: 901px) {
    #project-details-overlay {
        padding: 15px;
    }
    
    .project-bento-console {
        padding: 24px;
        max-height: 94vh;
        border-radius: 20px;
    }
    
    .console-close-btn {
        top: 15px;
        right: 15px;
        width: 34px;
        height: 34px;
        font-size: 1.25rem;
    }
    
    #project-console-grid {
        gap: 14px;
    }
    
    .bento-console-box {
        padding: 18px;
    }
    
    .console-right-column {
        gap: 14px;
    }
    
    .console-proj-title {
        font-size: 1.45rem;
    }
    
    .console-proj-desc {
        font-size: 0.82rem;
        margin-bottom: 4px;
    }
    
    .console-logo-box {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        margin-bottom: 4px;
    }
    
    .console-metric-box {
        padding: 12px;
    }
    
    .console-metric-val {
        font-size: 1.6rem;
    }
    
    .console-features-list {
        gap: 8px;
    }
    
    .console-feat-row {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .console-seo-item {
        font-size: 0.76rem;
        padding-bottom: 8px;
    }
    
    .console-stat-circle {
        width: 75px;
        height: 75px;
        margin-bottom: 8px;
    }
    
    .console-stat-val {
        font-size: 1.4rem;
    }
    
    .console-actions-box {
        padding: 14px 18px;
    }
    
    .btn-console-action {
        padding: 10px 22px;
        font-size: 0.8rem;
    }
    
    .btn-console-back {
        padding: 8px 18px;
        font-size: 0.75rem;
    }
}

