/* ==========================================================================
   DESIGN SYSTEM — Premium SaaS (Stripe / Notion / Vercel inspired)
   ========================================================================== */

:root {
    /* ── Color Palette ── */
    --color-primary: #673de6;
    --color-secondary: #5025d1;
    --color-accent: #a78bfa;
    /* Soft violet for highlights */
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fc;
    --color-bg-dark: #0f172a;
    --color-white: #ffffff;
    --color-border: #e5e7eb;

    /* ── Legacy aliases (JS compatibility) ── */
    --color-primario: var(--color-text);
    --color-secundario: var(--color-primary);
    --color-acentuado: var(--color-accent);
    --color-fondo: var(--color-bg);
    --color-fondo-alterno: var(--color-bg-alt);
    --color-texto: var(--color-text);
    --color-texto-claro: var(--color-text-light);
    --color-blanco: var(--color-white);

    /* ── Typography ── */
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --fuente-principal: var(--font-body);
    --fuente-titulos: var(--font-heading);

    /* ── Spacing (8px multiples) ── */
    --espaciado-xs: 0.5rem;
    /*  8px */
    --espaciado-sm: 1rem;
    /* 16px */
    --espaciado-md: 1.5rem;
    /* 24px */
    --espaciado-lg: 3rem;
    /* 48px */
    --espaciado-xl: 5rem;
    /* 80px */

    /* ── Shadows ── */
    --sombra-suave: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --sombra-media: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --sombra-fuerte: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    --sombra-card: 0 0 0 1px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.04);
    --sombra-card-hover: 0 0 0 1px rgba(103, 61, 230, 0.1), 0 12px 24px -4px rgba(103, 61, 230, 0.12);
    --sombra-header: 0 1px 0 rgba(0, 0, 0, 0.06);

    /* ── Effects ── */
    --transicion: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --radio-borde: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}


/* ==========================================================================
   RESET & BASE
   ========================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--color-bg);
    letter-spacing: -0.01em;
    padding-top: 85px;
    /* ESPACIO PARA HEADER SOLO (sin topbar) */
}

@media (min-width: 1024px) {
    body {
        padding-top: 95px;
    }
}

/* Con topbar: body paga topbar + header
   Mobile: topbar ~56px (2 líneas) + header 85px = 141px */
body.has-topbar {
    padding-top: 120px;
}

@media (min-width: 768px) {

    /* Tablet: topbar una fila 36px + header 85px = 121px */
    body.has-topbar {
        padding-top: 120px;
    }

    body.has-topbar header {
        top: 36px;
    }
}

@media (min-width: 1024px) {
    body.has-topbar {
        padding-top: 131px;
        /* 36px topbar + 95px header */
    }

    body.has-topbar header {
        top: 36px;
    }
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar {
    /* Fijo en la parte superior, por encima del header */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    /* mayor que el header (z-index: 1000) */
    /* Mobile: altura automática para que el contenido en columna no se corte */
    height: auto;
    min-height: 36px;
    background-color: var(--topbar-bg, #1f2937);
    color: var(--topbar-text, #ffffff);
    padding: 0.25rem 1.25rem;
}

.topbar-contenido {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    min-height: 36px;
    font-size: 0.8rem;
}

.topbar-izq,
.topbar-der {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.topbar i {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Tablet y desktop: fila horizontal */
@media (min-width: 768px) {
    .topbar {
        height: 36px;
        min-height: 36px;
        padding: 0 1.25rem;
    }

    .topbar-contenido {
        flex-direction: row;
        justify-content: space-between;
        min-height: 36px;
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
    line-height: 1.15;
    letter-spacing: -0.025em;
    font-weight: 700;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.25rem;
    }

    h3 {
        font-size: 1.375rem;
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

p {
    color: var(--color-text-light);
    line-height: 1.7;
    font-size: 1.0625rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transicion);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


/* ==========================================================================
   LAYOUT
   ========================================================================== */

.contenedor {
    width: 100%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

@media (min-width: 768px) {
    .contenedor {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.seccion {
    padding: 4rem 0;
}

@media (min-width: 1024px) {
    .seccion {
        padding: 6rem 0;
    }

    :root {
        --espaciado-md: 2rem;
        --espaciado-lg: 4rem;
        --espaciado-xl: 6rem;
    }
}

/* Grid */
.grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid {
        gap: 2rem;
    }

    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        gap: 2rem;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.flex {
    display: flex;
    flex-direction: column;
    gap: var(--espaciado-md);
}

@media (min-width: 768px) {
    .flex {
        flex-direction: row;
    }
}

.alinear-centro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* ==========================================================================
   BUTTONS
   ========================================================================== */

.boton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border-radius: var(--radio-borde);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    border: none;
    transition: var(--transicion);
    text-align: center;
    width: 100%;
    font-family: var(--font-body);
    letter-spacing: -0.01em;
    line-height: 1;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .boton {
        width: auto;
        padding: 0.875rem 2.25rem;
    }
}

.boton-primario {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 1px 2px rgba(103, 61, 230, 0.3), 0 0 0 0 rgba(103, 61, 230, 0);
}

.boton-primario:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(103, 61, 230, 0.35), 0 0 0 0 rgba(103, 61, 230, 0);
}

.boton-primario:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(103, 61, 230, 0.3);
}

.boton-acentuado {
    background-color: var(--color-white);
    color: var(--color-text);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.boton-acentuado:hover {
    background-color: var(--color-bg-alt);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


/* ==========================================================================
   HEADER
   ========================================================================== */

header {
    background-color: var(--color-white);
    height: 85px;
    display: flex;
    align-items: center;
    position: fixed;
    /* Mobile sin topbar: top 0 */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: top var(--transicion), var(--transicion);
    border-bottom: 1px solid transparent;
}

/* Cuando hay topbar, el header baja para no tapar el topbar */
body.has-topbar header {
    /* Mobile: topbar ocupa ~56px en columna (2 líneas × 28px) */
    top: 36px;
}

@media (min-width: 1024px) {
    header {
        height: 95px;
        border-bottom: 1px solid var(--color-border);
        box-shadow: none;
    }

    header.header-active {
        height: 95px;
        background-color: rgba(255, 255, 255, 0.92);
        backdrop-filter: saturate(180%) blur(20px);
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        border-bottom-color: rgba(0, 0, 0, 0.06);
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }
}

.flex-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo .logo-img {
    max-height: 60px;
}

@media (min-width: 768px) {
    .logo .logo-img {
        max-height: 70px;
    }
}

@media (min-width: 1024px) {
    .logo .logo-img {
        max-height: 75px;
    }
}

.logo span {
    color: var(--color-primary);
}


.img-thumb {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}


/* ── Navigation Menu ── */
.menu-navegacion {
    position: fixed;
    top: 64px;
    right: -100%;
    width: 300px;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    background-color: var(--color-white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem 1.5rem;
    align-items: stretch;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.08);
    display: flex;
    gap: 0.25rem;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    border-left: 1px solid var(--color-border);
}

.menu-navegacion.active {
    right: 0;
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 1024px) {
    .menu-navegacion {
        position: static;
        width: auto;
        height: auto;
        background-color: transparent;
        flex-direction: row;
        box-shadow: none;
        gap: 2rem;
        padding: 0;
        opacity: 1;
        pointer-events: auto;
        border-left: none;
    }
}

.menu-navegacion a {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--color-text-light);
    position: relative;
    padding: 0.75rem 0;
    display: block;
    letter-spacing: -0.01em;
}

@media (min-width: 1024px) {
    .menu-navegacion a {
        font-size: 1.05rem;
        padding: 0.375rem 0;
    }
}

.menu-navegacion a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    transition: width 0.3s ease;
}

.menu-navegacion a:hover {
    color: var(--color-text);
}

.menu-navegacion a:hover::after {
    width: 100%;
}

/* ── Hamburger Toggle ── */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 32px;
    height: 32px;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1002;
    padding: 4px;
    border-radius: 6px;
    transition: var(--transicion);
}

.menu-toggle:hover {
    background-color: var(--color-bg-alt);
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
    transition: var(--transicion);
    transform-origin: left center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    width: 20px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    width: 20px;
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

/* ── CTA in Header ── */
.cta-header {
    display: none;
}

@media (min-width: 1024px) {
    .cta-header {
        display: block;
    }

    .cta-header .boton {
        padding: 0.625rem 1.5rem;
        font-size: 0.8125rem;
        border-radius: 8px;
    }
}


/* ==========================================================================
   HERO / BANNER SLIDER
   ========================================================================== */

.hero {
    margin-top: 0px;
    height: calc(100vh - 0px);
    max-height: 600px;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-dark);
}

@media (min-width: 1024px) {
    .hero {
        margin-top: 0px;
        height: calc(100vh - 72px);
    }

    .header-active~main .hero {
        margin-top: 0px;
    }
}

.hero-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-slide .slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.05);
    filter: brightness(0.85);
}

.hero-slide.active .slide-bg {
    animation: heroKenBurns 12s linear forwards;
}

@keyframes heroKenBurns {
    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1);
    }
}

/* Gradient overlay — lighter, more refined */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(15, 23, 42, 0.82) 0%,
            rgba(103, 61, 230, 0.25) 50%,
            rgba(15, 23, 42, 0.6) 100%);
    z-index: -1;
}

@media (min-width: 1024px) {
    .hero-slide {
        text-align: left;
    }
}

.hero-content {
    max-width: 100%;
    color: var(--color-white);
    padding: 0 var(--espaciado-sm);
    opacity: 0;
    transform: translateY(24px);
}

.hero-slide.active .hero-content {
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards 0.3s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 768px) {
    .hero-content {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        max-width: 600px;
        margin: 0;
        padding: 0;
    }
}

/* Glassmorphism & Video Background */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
}

.glass-hero-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    z-index: 2;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(103, 61, 230, 0.15) 0%, rgba(103, 61, 230, 0) 70%);
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

.subtitulo-hero {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    padding: 0.375rem 1rem;
    background: rgba(167, 139, 250, 0.12);
    border-radius: var(--radius-full);
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.hero-content h1 {
    color: var(--color-white);
    font-size: 2.25rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
        margin-bottom: 1.5rem;
    }
}

.hero-content p {
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    line-height: 1.7;
    max-width: 520px;
}

@media (min-width: 768px) {
    .hero-content p {
        font-size: 1.125rem;
        margin-bottom: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-content p {
        max-width: 480px;
    }
}

/* ── Hero Controls ── */
.hero-controls {
    position: absolute;
    bottom: 2rem;
    right: 1.25rem;
    z-index: 9999;
    display: flex;
    gap: 0.625rem;
}

@media (min-width: 1024px) {
    .hero-controls {
        bottom: 2.5rem;
        right: 3rem;
    }
}

.hero-controls svg {
    stroke: white;
    width: 20px;
    height: 20px;
}


.hero-controls button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-white);
    cursor: pointer;

    /* CENTRADO PERFECTO */
    display: flex;
    align-items: center;
    justify-content: center;

    /* MEJORAS */
    padding: 0;
    line-height: 1;
    transition: var(--transicion);
}

/* SVG dentro del botón */
.hero-controls button svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

/* Hover */
.hero-controls button:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    transform: scale(1.06);
}

/* Click (feedback táctil pro) */
.hero-controls button:active {
    transform: scale(0.95);
}

/* Opcional: mejorar accesibilidad en focus */
.hero-controls button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.6);
}

/* ── Hero Track (contenedor absoluto de slides) ── */
.hero-track {
    position: relative;
    height: 100%;
    width: 100%;
}

/* ── Alias para los botones con el nuevo renderer ── */
.hero-btn-prev,
.hero-btn-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: var(--transicion);
}

.hero-btn-prev svg,
.hero-btn-next svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.hero-btn-prev:hover,
.hero-btn-next:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.45);
    transform: scale(1.06);
}

.hero-btn-prev:active,
.hero-btn-next:active {
    transform: scale(0.95);
}

.hero-btn-prev:focus,
.hero-btn-next:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(167, 139, 250, 0.6);
}

/* ── Puntos de navegación (dots) ── */
.hero-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

@media (min-width: 1024px) {
    .hero-dots {
        bottom: 2rem;
    }
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.35);
    transition: background 0.3s ease, transform 0.3s ease, width 0.3s ease;
    padding: 0;
}

.hero-dot.active {
    background: var(--color-white);
    transform: scale(1.2);
    width: 20px;
    border-radius: 4px;
}

.hero-dot:hover:not(.active) {
    background: rgba(255, 255, 255, 0.6);
}

/* ── Barra de progreso de autoplay ── */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 10;
    overflow: hidden;
}

.hero-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 0 2px 2px 0;
}

/* ── Soporte de fondo tipo "imagen" via background-image ── */
.hero-slide[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ── Soporte de fondo tipo "gradiente" via inline style background ── */
.hero-slide[style*="background:"] {
    background-size: cover;
}

/* ── Soporte de fondo tipo "css" — clase dinámica ── */
/* Ejemplo: clase css-bg-aurora para un fondo animado */
.css-bg-aurora {
    background: linear-gradient(-45deg, #0f172a, #1e3a8a, #312e81, #4c1d95);
    background-size: 400% 400%;
    animation: auroraShift 12s ease infinite;
}

@keyframes auroraShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.css-bg-sunset {
    background: linear-gradient(-45deg, #7c3aed, #db2777, #f97316, #1e3a8a);
    background-size: 400% 400%;
    animation: auroraShift 14s ease infinite;
}

/* ── Fallback cuando no hay banners configurados ── */
.hero-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 420px;
    background: #1e293b;
    color: #fff;
}

/* ── Transición de salida del slide (clase "leaving") ── */
.hero-slide.leaving {
    opacity: 0;
    z-index: 3;
    transition: opacity 0.6s ease-in-out;
}


/* ==========================================================================
   SECTION HEADERS & SUBTITLES
   ========================================================================== */

.seccion-encabezado {
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .seccion-encabezado {
        margin-bottom: 3rem;
    }
}

.subtitulo {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 2.5px;
    display: inline-block;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .subtitulo {
        font-size: 0.8125rem;
    }
}

.fondo-alterno {
    background-color: var(--color-bg-alt);
}


/* ==========================================================================
   ABOUT / NOSOTROS
   ========================================================================== */

.nosotros-imagen img {
    border-radius: var(--radius-lg);
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
}

.nosotros-texto {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
}

.nosotros-texto h2 {
    margin-bottom: 1.25rem;
}

.nosotros-texto p {
    margin-bottom: 1rem;
}

.nosotros-texto p:last-of-type {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    #nosotros .grid-2 {
        gap: 3rem;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    #nosotros .grid-2 {
        gap: 4rem;
    }
}


/* ==========================================================================
   CARDS (Portfolio, Catálogo)
   ========================================================================== */

.card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--sombra-card);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sombra-card-hover);
}

@media (min-width: 1024px) {
    .card:hover {
        transform: translateY(-6px);
    }
}

/* Portfolio items */
.portfolio-item img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover img {
    transform: scale(1.04);
}

@media (min-width: 768px) {
    .portfolio-item img {
        height: 220px;
    }
}

@media (min-width: 1024px) {
    .portfolio-item img {
        height: 240px;
    }
}

.card-content {
    padding: 1.25rem 1.5rem;
    text-align: center;
}

@media (min-width: 768px) {
    .card-content {
        padding: 1.5rem;
    }
}

.card-content h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text);
}

@media (min-width: 768px) {
    .card-content h3 {
        font-size: 1.125rem;
    }
}


/* ==========================================================================
   CATALOG
   ========================================================================== */

.p-small {
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

@media (min-width: 768px) {
    .p-small {
        padding: 2rem 1.5rem;
    }
}

.catalogo-item i {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(103, 61, 230, 0.08), rgba(103, 61, 230, 0.04));
    border-radius: var(--radio-borde);
}

@media (min-width: 768px) {
    .catalogo-item i {
        font-size: 2rem;
        width: 64px;
        height: 64px;
    }
}

.catalogo-item h3 {
    font-size: 1.0625rem;
    margin-bottom: 0.5rem;
}

.catalogo-item p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

.enlace-externo {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 1rem;
    transition: var(--transicion);
}

.enlace-externo:hover {
    color: var(--color-secondary);
    gap: 0.625rem;
}


/* ==========================================================================
   SERVICES
   ========================================================================== */

.fondo-oscuro {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
}

.servicio-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transicion);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.servicio-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(103, 61, 230, 0.3);
    transform: translateY(-4px);
}

@media (min-width: 768px) {
    .servicio-card {
        padding: 2.5rem 1.5rem;
    }
}

.servicio-card h3 {
    color: var(--color-white);
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.servicio-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.icono-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(103, 61, 230, 0.2), rgba(167, 139, 250, 0.15));
    border-radius: var(--radio-borde);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.375rem;
    color: var(--color-accent);
    border: 1px solid rgba(103, 61, 230, 0.15);
}

@media (min-width: 768px) {
    .icono-box {
        width: 64px;
        height: 64px;
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

.boton-link {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
    border-bottom: 1px solid transparent;
    transition: var(--transicion);
}

.boton-link:hover {
    border-bottom-color: var(--color-accent);
    color: var(--color-white);
}


/* ==========================================================================
   SCHEDULE / HORARIOS
   ========================================================================== */

.horarios-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.horarios-info h2 {
    margin-bottom: 1rem;
}

.horarios-info p {
    line-height: 1.7;
}

.horarios-tabla {
    padding: 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    #horarios .grid-2 {
        gap: 3rem;
        align-items: center;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 280px;
}

th,
td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.9375rem;
}

@media (min-width: 768px) {

    th,
    td {
        padding: 1.125rem 1.5rem;
    }
}

th {
    font-family: var(--font-heading);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: var(--color-bg-alt);
}

td {
    color: var(--color-text-light);
    font-weight: 500;
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: var(--transicion);
}

tbody tr:hover {
    background-color: rgba(103, 61, 230, 0.02);
}

.cerrado td {
    color: #ef4444;
    font-weight: 600;
}


/* ==========================================================================
   MAP
   ========================================================================== */

.secion-mapa {
    overflow: hidden;
    line-height: 0;
}

.secion-mapa iframe {
    display: block;
    width: 100%;
    filter: saturate(0.9) contrast(1.05);
}


/* ==========================================================================
   CONTACT
   ========================================================================== */

.contacto-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contacto-info h2 {
    margin-bottom: 1rem;
}

.contacto-lista {
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .contacto-lista {
        margin-top: 2rem;
    }
}

.contacto-lista li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

@media (min-width: 768px) {
    .contacto-lista li {
        font-size: 1rem;
    }
}

.contacto-lista i {
    color: var(--color-primary);
    font-size: 1.125rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(103, 61, 230, 0.06);
    border-radius: 10px;
    flex-shrink: 0;
}

/* ── Contact Form ── */
.contacto-formulario {
    padding: 2rem;
}

@media (min-width: 768px) {
    .contacto-formulario {
        padding: 2.5rem;
    }

    #contacto .grid-2 {
        gap: 3rem;
        align-items: start;
    }
}

.form-grupo {
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .form-grupo {
        margin-bottom: 1.5rem;
    }
}

.form-grupo label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.form-grupo input,
.form-grupo textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    color: var(--color-text);
    background-color: var(--color-bg);
    transition: var(--transicion);
    outline: none;
}

.form-grupo input::placeholder,
.form-grupo textarea::placeholder {
    color: #9ca3af;
}

.form-grupo input:focus,
.form-grupo textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(103, 61, 230, 0.08);
}

.form-grupo textarea {
    resize: vertical;
    min-height: 120px;
}

.w-full {
    width: 100%;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background-color: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3.5rem 0 1.5rem;
}

@media (min-width: 1024px) {
    .footer {
        padding: 5rem 0 2rem;
    }
}

.footer h3 {
    color: var(--color-white);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .footer h3 {
        margin-bottom: 1.5rem;
    }
}

.footer-col {
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-col {
        margin-bottom: 0;
    }
}

.footer-col p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.footer-col ul li {
    margin-bottom: 0.625rem;
}

@media (min-width: 768px) {
    .footer-col ul li {
        margin-bottom: 0.75rem;
    }
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9375rem;
    transition: var(--transicion);
}

.footer-col ul li a:hover {
    color: var(--color-white);
    padding-left: 4px;
}

.logo-footer {
    margin-bottom: 1rem;
}

.logo-footer a {
    color: var(--color-white);
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

@media (min-width: 768px) {
    .logo-footer a {
        font-size: 1.375rem;
    }
}

.logo-footer span {
    color: var(--color-primary);
}

/* Social Icons */
.redes-sociales {
    display: flex;
    gap: 0.625rem;
    margin-top: 1.25rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .redes-sociales {
        justify-content: flex-start;
    }
}

.redes-sociales a {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transicion);
}

.redes-sociales a:hover {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

/* Footer contact list */
.contacto-footer li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9375rem;
}

.contacto-footer i {
    font-size: 0.9375rem;
    color: var(--color-primary);
}

/* Footer bottom bar */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

@media (min-width: 1024px) {
    .footer-bottom {
        margin-top: 4rem;
        padding-top: 2rem;
        font-size: 0.875rem;
    }
}


/* ==========================================================================
   FOOTER BOTTOM BAR
   ========================================================================== */

/* Barra de fondo del footer (3 columnas) */
.footer-bottom-bar {
    background-color: var(--footer-bottom-bg, #0f172a);
    color: var(--footer-bottom-text, rgba(255, 255, 255, 0.5));
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
}

.footer-bottom-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Móvil: una sola columna */
    gap: 1rem;
    align-items: center;
}

.col-left {
    text-align: center;
}

.col-right {
    text-align: center;
}

/* Escritorio: 50% | 25% | 25% */
@media (min-width: 768px) {
    .footer-bottom-grid {
        grid-template-columns: 2fr 1fr 1fr;
        /* Reparto 50% - 25% - 25% */
        gap: 0;
    }

    .col-left {
        text-align: left;
    }

    .col-right {
        text-align: right;
    }
}

.footer-bottom-grid a {
    color: inherit;
    transition: color 0.2s ease;
}

.footer-bottom-grid a:hover {
    color: #fff;
}




/* ==========================================================================
   UTILITIES
   ========================================================================== */

.contenedor-full {
    width: 100%;
}

.radio-borde {
    border-radius: var(--radius-lg);
}

.sombra-suave {
    box-shadow: var(--sombra-media);
}


/* ==========================================================================
   SELECTION & SCROLLBAR
   ========================================================================== */

::selection {
    background-color: rgba(103, 61, 230, 0.15);
    color: var(--color-text);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
    background: #c4b5fd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* ============================================================
     Botón WhatsApp flotante
     Estilos 100% inline con IDs únicos — no afecta el CSS del sitio
     ============================================================ */

#wa-float-wrap {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#wa-float-tooltip {
    background: #1f2937;
    color: #f9fafb;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateX(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

#wa-float-wrap:hover #wa-float-tooltip {
    opacity: 1;
    transform: translateX(0);
}

#wa-float-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

#wa-float-link:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

#wa-float-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: wa-pulse 2s ease-out infinite;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.6);
        opacity: 0;
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* ============================================================
   GLASSMORPHISM & GLOWS (Windows 11)
   ============================================================ */
.glass-hero-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px) saturate(150%);
    -webkit-backdrop-filter: blur(15px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    padding: 2.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
}

/* Punto de luz de acento detrás del texto */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 60%);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}

/* Optimización para videos de fondo */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}