/* ═══════════════════════════════════════════════════════════════
   Ana Bosch — Corporate Finance & Admin Consulting
   Enhanced Stylesheet v6.0
   ═══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────
   § 1  DESIGN TOKENS
   ────────────────────────────────────────────── */
:root {
    /* ── Colour palette ── */
    --color-navy: #11283e;
    --color-navy-rgb: 17, 40, 62;
    --color-navy-soft: #1a3a54;
    --color-accent: #e4e5e7;
    --color-accent-hover: #d4d5d7;
    --color-accent-soft: rgba(228, 229, 231, 0.12);
    --color-accent-glow: rgba(228, 229, 231, 0.4);
    --color-accent-rgb: 228, 229, 231;
    /* RGB para --color-accent */
    --color-text-on-dark-rgb: 234, 234, 234;
    /* RGB para --color-text-on-dark */
    --color-radial-glow-rgb: 50, 100, 150;
    /* RGB para el resplandor radial azulado */
    --color-glass-rgb: 255, 255, 255;
    /* RGB para --color-glass */
    --color-pink-accent: #d43076;
    /* Nuevo color de acento rosa/rojo */
    --bg-glow-opacity: 0.12;
    /* Controla la intensidad del resplandor de fondo */
    --color-pink-accent-glow: rgba(212, 48, 118, 0.4);
    /* Resplandor para el acento rosa/rojo */
    --color-footer: #0f1f33;
    --color-menu: rgba(17, 40, 62, 0.97);
    --color-surface: #eaeaea;
    --color-about: #e8eaef;
    --color-card: #ffffff;
    --color-text: #444;
    --color-text-muted: #5c6478;
    --color-text-on-dark: #ffffff;
    --color-glass: rgba(255, 255, 255, 0.06);
    --color-glass-border: rgba(255, 255, 255, 0.12);

    /* ── Typography ── */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', 'Open Sans', sans-serif;
    --font-brand: 'Gotham-Book', var(--font-body);

    /* ── Radii ── */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    /* ── Shadows (layered, realistic) ── */
    --shadow-sm: 0 1px 2px rgba(var(--color-navy-rgb), 0.04),
        0 2px 8px rgba(var(--color-navy-rgb), 0.06);
    --shadow-md: 0 2px 4px rgba(var(--color-navy-rgb), 0.04),
        0 8px 24px rgba(var(--color-navy-rgb), 0.10);
    --shadow-lg: 0 4px 8px rgba(var(--color-navy-rgb), 0.05),
        0 16px 40px rgba(var(--color-navy-rgb), 0.14);
    --shadow-menu: 0 4px 12px rgba(0, 0, 0, 0.12),
        0 12px 32px rgba(0, 0, 0, 0.28);

    /* ── Motion ── */
    --transition: 0.3s ease;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

    /* ── Layout ── */
    --scroll-offset: 8rem;
    /* Adjusted for fixed header height and smooth scrolling */
    --content-max: 52rem;
    /* Header heights */
    --header-height-desktop: 88px;
    --header-height-mobile: 64px;
    --header-height: var(--header-height-desktop);
}


/* ──────────────────────────────────────────────
   § 2  FONT FACES
   ────────────────────────────────────────────── */
@font-face {
    font-family: "Gotham-Book";
    src: url("../font/GothamBook/GothamBook.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Gotham-Medium";
    src: url("../font/GothamMedium/Gotham-Medium.ttf") format("truetype");
    font-display: swap;
}


/* ──────────────────────────────────────────────
   § 3  KEYFRAME ANIMATIONS
   ────────────────────────────────────────────── */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kenBurns {
    from {
        transform: scale(1.1) translateY(3%);
    }

    to {
        transform: scale(1.2) translateY(-3%);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--color-pink-accent-glow);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(212, 48, 118, 0);
    }
}

@keyframes shimmer {
    from {
        left: -100%;
    }

    to {
        left: 200%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1.15);
    }

    50% {
        transform: scale(1.2);
    }
}


/* ──────────────────────────────────────────────
   § 4  RESETS & GLOBAL
   ────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

/* — Reduced‑motion — */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    margin: 0;
    background: var(--color-navy);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

#main section[id],
#hero {
    scroll-margin-top: var(--header-height);
}

/* — Custom scrollbar (WebKit) — */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-navy);
}

::-webkit-scrollbar-thumb {
    background: var(--color-navy-soft);
    border-radius: 4px;
    border: 2px solid var(--color-navy);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent);
}

/* — Selection — */
::selection {
    background: var(--color-accent);
    color: #fff;
}

::-moz-selection {
    background: var(--color-accent);
    color: #fff;
}

/* — Focus — */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* — Base elements — */
img {
    max-width: 100%;
    height: auto;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #0b6bd3;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 1rem;
    line-height: 1.25;
    font-family: var(--font-heading);
}

p {
    margin: 0 0 1rem;
}

ul,
ol {
    margin: 0 0 1.25rem;
    padding-left: 1.25rem;
}


/* ══════════════════════════════════════════════════════════════
   § 5  HEADER & NAVIGATION
   ══════════════════════════════════════════════════════════════ */
.site-header {
    --header-height: var(--header-height-desktop);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 997;
    pointer-events: auto;
    height: var(--header-height);
    background: rgba(var(--color-navy-rgb), 0.92);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
    padding: 0.75rem 0;
}

/* — Scrolled compact state (JS adds .scrolled) — */
.site-header.scrolled {
    background: rgba(var(--color-navy-rgb), 0.92);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.18);
    padding: 0.75rem 0;
}

/* — Header wrapper — */
.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    max-width: 100%;
    margin: 0 auto;
}

/* — Header brand (Logo and title) — */
.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
}

/* Estilos para el enlace del logo */
.header-brand-link {
    display: flex;
    /* Para que el h1 y el p se alineen como antes */
    flex-direction: column;
    /* Para que el h1 y el p se apilen verticalmente */
    text-decoration: none;
    /* Eliminar el subrayado por defecto */
    color: inherit;
    /* Heredar el color del texto */
}

.hero-brand {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
}

.hero-brand__tagline {
    display: inline-block;
    margin: 0.5rem 0 0;
    padding: 0;
    border-left: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(var(--color-text-on-dark-rgb), 0.75);
    max-width: 100%;
    line-height: 1.55;
    letter-spacing: 0.01em;
}

/* — Menu wrapper — */
.menu-wrapper {
    position: static;
    top: auto;
    right: auto;
    z-index: 1001;
    pointer-events: auto;
    height: 100%;
}

/* — Menu toggle button — */
.menu-toggle {
    display: none;
    /* Oculto en desktop */
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(var(--color-accent-rgb), 0.1);
    border: 1px solid rgba(var(--color-accent-rgb), 0.2);
    border-radius: var(--radius-sm);
    color: var(--color-accent);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition);
}

.menu-toggle:hover {
    background: rgba(var(--color-accent-rgb), 0.2);
    color: #fff;
}

.menu-toggle[aria-expanded="true"] {
    color: var(--color-accent);
}

/* — Dropdown menu container — */
.menu-container {
    position: static;
    top: auto;
    right: auto;
    min-width: auto;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transform-origin: unset;
    transition: none;
    height: 100%;
    display: flex;
}

.menu-container.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* — Menu list — */
.menu-list {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu-list li:last-child a {
    border-bottom: none;
}

.menu-list a {
    display: inline-block;
    padding: 0.65rem 0;
    border-bottom: none;
    border-radius: 0;
    font-weight: bold;
    color: #ffffff;
    font-family: var(--font-brand);
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    transition: background var(--transition),
        color var(--transition),
        padding-left var(--transition);
}

.menu-list a:hover,
.menu-list a.active {
    color: #ffffff;
    background: transparent;
    padding-left: 0;
}

.menu-list a.active {
    background: transparent;
    font-weight: 400;
}

/* ──────────────────────────────────────────────
   Responsive: Mobile menu (hamburger)
   ────────────────────────────────────────────── */
@media (max-width: 767.98px) {
    .header-wrapper {
        padding: 0.75rem 1rem;
        align-items: center;
        gap: 0.5rem;
    }

    /* Mostrar el botón de menú en móvil */
    .menu-toggle {
        display: flex;
    }

    /* Hacer que el contenedor del menú sea un panel desplegable debajo del header */
    .menu-container {
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: linear-gradient(180deg, var(--color-menu) 0%, rgba(var(--color-navy-rgb), 0.95) 100%);
        padding: 1rem 0;
        border-radius: 0;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity 250ms var(--ease-out), transform 250ms var(--ease-out), visibility 250ms;
        height: auto;
        display: block;
        align-items: unset;
        z-index: 999;
        pointer-events: none;
    }

    .menu-container.show {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    /* Lista vertical para móvil */
    .menu-list {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.5rem 0;
        margin: 0;
    }

    .menu-list li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .menu-list li:last-child {
        border-bottom: none;
    }

    .menu-list a {
        padding: 1rem 1.25rem;
        color: var(--color-text-on-dark);
        border-radius: 0;
        display: block;
        font-size: 0.95rem;
        font-weight: 500;
        transition: background var(--transition), color var(--transition);
    }

    .menu-list a:hover,
    .menu-list a.active {
        background: rgba(255, 255, 255, 0.08);
        color: var(--color-accent);
        padding-left: 1.25rem;
    }

    /* Alineación del brand para ahorrar espacio */
    .header-brand-link {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .hero-brand {
        font-size: 2rem;
    }

    .hero-brand__tagline {
        display: none;
    }
}


/* ══════════════════════════════════════════════════════════════
   § 6  HERO / CAROUSEL
   ══════════════════════════════════════════════════════════════ */
.hero {
    margin-top: var(--header-height);
    height: calc(100vh - var(--header-height));
    /* Header + hero = 100vh on desktop */
    overflow: hidden;
}

/* Mobile overrides: header sticky and hero fills viewport */
@media (max-width: 767.98px) {
    .site-header {
        position: sticky;
        top: 0;
        --header-height: var(--header-height-mobile);
        height: auto;
        background: var(--color-navy);
        z-index: 998;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    }

    .header-wrapper {
        padding: 0.75rem 1rem;
    }

    .hero {
        margin-top: 0;
        height: calc(100vh - var(--header-height-mobile));
        /* On mobile the hero occupies the remaining viewport height below the sticky header */
    }
}

.hero-container {
    width: 100%;
    height: 100%;
    /* Make the container fill the hero section */
    position: relative;
}

.hero .carousel {
    width: 100%;
    height: 100%;
    background: var(--color-navy);
}

.hero .carousel-inner,
.hero .carousel-item {
    height: 100%;
    /* Ensure carousel items fill the container */
}

.hero .carousel-item {
    position: relative;
    overflow: hidden;
}

/* — Warm gradient overlay — */
.hero .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
            rgba(var(--color-navy-rgb), 0.62) 0%,
            rgba(var(--color-navy-rgb), 0.20) 40%,
            rgba(20, 10, 30, 0.30) 100%);
    z-index: 1;
    pointer-events: none;
}

/* — Carousel image + Ken Burns effect — */
.hero-carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    animation: kenBurns 20s ease-in-out infinite alternate;
    will-change: transform;
}

/* — Smooth carousel cross-fade transition — */
.hero .carousel-item {
    transition: opacity 1.2s ease-in-out;
}

.hero .carousel.slide .carousel-item {
    transition: opacity 1.2s ease-in-out;
}

/* — Logo sidebar container — */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-brand-logo {
    width: min(9rem, 80%);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.25));
    transition: transform 0.5s var(--ease-out);
}

.logo-container:hover .hero-brand-logo {
    transform: scale(1.03);
}

/* — Hero text overlay — */
.hero-overlay {
    display: none;
}

/* — Carousel controls — */
.hero .carousel-control-prev,
.hero .carousel-control-next {
    width: auto;
    padding: 0 1.25rem;
    opacity: 0;
    z-index: 4;
    transition: opacity 0.4s var(--ease-out);
}

.hero .carousel-control-prev-icon,
.hero .carousel-control-next-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: rgba(255, 255, 255, 0.92) !important;
    border-radius: 50%;
    color: var(--color-navy);
    font-size: 1.35rem;
    line-height: 1;
    box-shadow: var(--shadow-md);
    transition: background var(--transition),
        color var(--transition),
        transform var(--transition);
}

.hero:hover .carousel-control-prev,
.hero:hover .carousel-control-next {
    opacity: 1;
}

.hero .carousel-control-prev:hover .carousel-control-prev-icon,
.hero .carousel-control-next:hover .carousel-control-next-icon {
    background: var(--color-navy) !important;
    color: #fff;
    transform: scale(1.08);
}

/* — Carousel indicators — */
.hero .carousel-indicators {
    z-index: 4;
    margin-bottom: 1.5rem;
    gap: 0.4rem;
}

.hero .carousel-indicators [data-bs-target] {
    width: 2.25rem;
    height: 4px;
    margin: 0;
    border: none;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.35);
    transition: width 0.4s var(--ease-out),
        background-color var(--transition);
}

.hero .carousel-indicators .active {
    width: 3rem;
    background-color: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent-glow);
}

/* — Hero Caption — */
.hero-caption {
    position: absolute;
    right: 5%;
    bottom: 12%;
    z-index: 10;
    max-width: 90%;
    padding: 1rem;
}

.hero-caption-1 {
    text-align: right;
}

.hero-caption-1 .hero-caption-title {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: bold;
}

.hero-caption-2 {
    text-align: center;
}

.hero-caption-2 .hero-caption-title {
    font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-weight: normal;
}

.hero-caption-title {
    color: #ffffff;
    font-size: clamp(1.75rem, 4vw, 3.5rem);
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin: 0;
    white-space: nowrap;
}

.hero-caption-subtitle {
    font-size: 0.75em;
}

@media (max-width: 767.98px) {
    .hero-caption {
        bottom: 15%;
    }

    .hero-caption-2 {
        right: 5%;
    }

    .hero-caption-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
}



/* ══════════════════════════════════════════════════════════════
   § 7  SECTION EYEBROW LABELS
   ══════════════════════════════════════════════════════════════ */
.section-eyebrow {
    margin: 0 0 0.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.section-eyebrow--light {
    color: rgba(255, 255, 255, 0.65);
}


/* ══════════════════════════════════════════════════════════════
   § 8  ABOUT SECTION
   ══════════════════════════════════════════════════════════════ */
.section-about {
    position: relative;
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(var(--color-navy-rgb), 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(212, 48, 118, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, #f0f1f5 0%, #e8eaef 100%);
}

/* Top accent line */
.section-about::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-navy) 0%, var(--color-accent) 50%, var(--color-navy) 100%);
}

/* — About card (glassmorphism on light bg) — */
.about-card {
    max-width: 56rem;
    margin: 0 auto;
    padding: clamp(2.25rem, 4vw, 3.25rem);
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px) saturate(1.3);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(var(--color-navy-rgb), 0.06);
    transition: box-shadow 0.4s var(--ease-out),
        transform 0.4s var(--ease-out);
}

.about-card:hover {
    box-shadow: 0 20px 48px rgba(var(--color-navy-rgb), 0.12);
}

.about-card .section-eyebrow {
    display: block;
}

.about-card h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--color-navy);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.about-card h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -0.4rem;
    width: 4.5rem;
    height: 3px;
    background: var(--color-accent);
    transform: translateX(-50%);
    border-radius: 2px;
}

.about-lead {
    max-width: 40rem;
    margin: 0 auto 2rem;
    font-family: var(--font-brand);
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.75;
    color: var(--color-text-muted);
}

/* — Highlight cards grid — */
.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.highlight-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1.35rem 0.85rem;
    background: linear-gradient(145deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);
    border-radius: var(--radius-md);
    color: var(--color-text-on-dark);
    border: 1px solid transparent;
    background-clip: padding-box;
    transition: transform 0.35s var(--ease-out),
        box-shadow var(--transition),
        border-color var(--transition);
}

/* Gradient border effect via pseudo-element */
.highlight-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: calc(var(--radius-md) + 1px);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(212, 48, 118, 0.25) 50%, rgba(255, 255, 255, 0.08) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: opacity var(--transition);
    opacity: 0.6;
}

.highlight-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 32px rgba(var(--color-navy-rgb), 0.25),
        0 0 16px var(--color-accent-glow);
}

.highlight-card:hover::before {
    opacity: 1;
    background: linear-gradient(135deg, rgba(212, 48, 118, 0.5) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(212, 48, 118, 0.5) 100%);
}

/* Stagger animation delays */
.highlight-card:nth-child(1) {
    animation-delay: 0s;
}

.highlight-card:nth-child(2) {
    animation-delay: 0.12s;
}

.highlight-card:nth-child(3) {
    animation-delay: 0.24s;
}

.highlight-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-size: 1.15rem;
    color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(var(--color-navy-rgb), 0.15);
    transition: all var(--transition);
}

.highlight-card:hover .highlight-card__icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 24px rgba(var(--color-navy-rgb), 0.25);
}

.highlight-card__value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    font-family: var(--font-body);
}

.highlight-card__label {
    font-family: var(--font-brand);
    font-size: 0.8rem;
    line-height: 1.35;
    opacity: 0.9;
    text-align: center;
}


/* ══════════════════════════════════════════════════════════════
   § 9  SPLIT LAYOUT  (sidebar + content)
   ══════════════════════════════════════════════════════════════ */
.section-split {
    overflow: hidden;
    background: #1F3C5D
        /*background: radial-gradient(ellipse at 30% 60%, rgba(var(--color-radial-glow-rgb), var(--bg-glow-opacity)) 0%, transparent 60%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%),
        linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);*/
}

.services-header,
.products-header,
.clients-header,
.contact-header {
    padding: 2.5rem 1.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 768px) {

    .services-header,
    .products-header,
    .clients-header,
    .contact-header {
        padding: 3.5rem 2rem 1.25rem;
    }
}

.services-header .section-sidebar,
.products-header .section-sidebar,
.clients-header .section-sidebar,
.contact-header .section-sidebar {
    border-right: none;
    border-bottom: none;
    text-align: center;
    max-width: 50rem;
}

.section-split__row {
    display: flex;
    align-items: stretch;
}

.section-split--light .section-content {
    background: linear-gradient(180deg, #f0f1f5 0%, #e8eaef 100%);
}

.section-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /*padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.75rem);*/
    border-right: 3px solid var(--color-accent);
    align-self: stretch;
}

.section-sidebar--centered {
    text-align: center;
    border-right: none;
    border-bottom: none;
    align-self: auto;
}

.section-sidebar__title {
    position: relative;
    margin: 0;
    padding-bottom: 0.65rem;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    line-height: 1.25;
    font-weight: 700;
    color: var(--color-text-on-dark);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    justify-content: center;
}

.section-sidebar__title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 3rem;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.section-sidebar__text {
    margin: 1rem 0 0;
    font-family: var(--font-brand);
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(var(--color-text-on-dark-rgb), 0.78);
}

.section-content {
    padding: 0 clamp(1.5rem, 3vw, 2.5rem) clamp(1.5rem, 3vw, 2.5rem);
    width: 100%;
}

.section-content--panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.section-content--centered {
    justify-content: center;
}

.section-split--light .section-content .services-accordion {
    max-width: var(--content-max);
    margin: 0 auto;
}


/* ══════════════════════════════════════════════════════════════
   § 10  SERVICES ACCORDION
   ══════════════════════════════════════════════════════════════ */
.services-accordion {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    --bs-accordion-border-width: 0;
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-active-color: var(--color-navy);
    --bs-accordion-btn-padding-x: 0;
    --bs-accordion-btn-padding-y: 0;
    --bs-accordion-body-padding-x: 1.5rem;
    --bs-accordion-body-padding-y: 1.5rem;
}

.service-card {
    overflow: hidden;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    background: var(--color-card) !important;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    position: relative;
    border-left: 4px solid transparent !important;
}

/* Top gradient bar */
.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-navy-soft) 100%);
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-left-color: var(--color-navy-soft) !important;
}

.service-card:hover::before {
    opacity: 1;
}

/* — Opened state — */
.service-card:has(.accordion-button:not(.collapsed)) {
    box-shadow: var(--shadow-lg),
        0 0 20px var(--color-accent-glow);
    outline: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 1) 100%) !important;
    border-left-color: var(--color-accent) !important;
}

.service-card:has(.accordion-button:not(.collapsed))::before {
    opacity: 1;
    background: var(--color-accent);
    /* Cambia el gradiente por el gris de acento al expandirse */
}

/* — Accordion button — */
.service-card .accordion-button {
    padding: 1.5rem;
    font-family: var(--font-brand);
    background: var(--color-card) !important;
    box-shadow: none !important;
    transition: all var(--transition);
}

.service-card .accordion-button:hover {
    color: var(--color-accent);
}

.service-card .accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 1) 100%) !important;
    color: var(--color-navy);
}

.service-card .accordion-button::after {
    width: 1.5rem;
    height: 1.5rem;
    background-size: 1.5rem;
    filter: none;
    background-color: var(--color-accent);
    border-radius: 50%;
    background-position: center;
    transition: all var(--transition);
    opacity: 0.8;
}

.service-card .accordion-button:focus {
    box-shadow: none;
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.service-card .accordion-button:not(.collapsed)::after {
    opacity: 1;
    transform: rotate(180deg);
}

/* — Service summary row — */
.service-summary {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
    text-align: left;
}

.service-summary__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: var(--color-accent-soft);
    color: var(--color-navy);
    font-size: 2rem;
    box-shadow: 0 4px 16px rgba(var(--color-navy-rgb), 0.15);
    transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.service-card:hover .service-summary__icon {
    background: var(--color-accent);
    color: var(--color-navy);
    transform: none;
}

/* Icon pulse when accordion open */
.service-card:has(.accordion-button:not(.collapsed)) .service-summary__icon {
    background: var(--color-accent);
    color: var(--color-navy);
    animation: iconPulse 2s ease-in-out infinite;
}

/* — Service tag (e.g. 01, 02) — */
.service-summary__tag {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: var(--color-accent-soft);
    border-radius: 999px;
    opacity: 0.85;
    transition: opacity var(--transition),
        background var(--transition);
}

.service-card:hover .service-summary__tag {
    opacity: 1;
    background: rgba(212, 48, 118, 0.18);
}

.service-summary__text {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    flex: 1;
}

.service-summary strong {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.4;
    transition: color var(--transition);
}

.service-card:hover .service-summary strong {
    color: var(--color-navy);
}

.service-summary__text {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* Ocultar icono de expansión para servicios sin contenido */
.service-card .accordion-button.no-chevron::after {
    display: none;
}

.service-card .accordion-button.no-chevron {
    cursor: default;
    pointer-events: none;
}

.service-card:has(.accordion-button.no-chevron) .accordion-button {
    background: var(--color-card) !important;
    /* Asegura que el fondo no cambie al "expandirse" */
}

/* — Accordion body — */
.service-card .accordion-body {
    padding-top: 0;
    padding-bottom: 2rem;
    padding-left: clamp(1.25rem, 3vw, 2rem);
    padding-right: clamp(1.25rem, 3vw, 2rem);
    font-family: var(--font-brand);
    font-size: 0.95rem;
    color: var(--color-text);
    border-top: 2px solid var(--color-accent);
    animation: slideDown 0.3s ease-out;
    max-width: 48rem;
}

.service-summary__text ul {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.service-summary__text ul li {
    margin-bottom: 0.2rem;
}

.service-card .accordion-body>p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.service-card .accordion-body>p:first-of-type {
    color: var(--color-text);
    font-weight: 500;
}

.service-card .accordion-body h4 {
    margin-top: 1.75rem;
    margin-bottom: 0.85rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-navy);
    text-transform: none;
}

/* Custom check-mark bullets for accordion lists */
.service-card .accordion-body ul,
.service-card .accordion-body ol {
    margin-bottom: 1.25rem;
    padding-left: 0;
    list-style: none;
    color: var(--color-text-muted);
}

.service-card .accordion-body li {
    position: relative;
    margin-bottom: 0.5rem;
    padding-left: 1.6rem;
    line-height: 1.6;
    transition: color var(--transition);
}

.service-card .accordion-body li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.6;
}

/* Sidebar h2/h3/h4 use heading font */
.section-sidebar h2,
.section-sidebar h3,
.section-sidebar h4 {
    font-family: var(--font-heading);
}


/* ══════════════════════════════════════════════════════════════
   § 11  CLIENTS SECTION
   ══════════════════════════════════════════════════════════════ */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
    width: 100%;
    max-width: 56rem;
    max-width: 68rem;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.client-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 148px;
    gap: 0.85rem;
    /* Slightly increased gap for better spacing with larger icon */
    min-height: 170px;
    /* Adjusted to accommodate larger icon and hover effect */
    padding: 1.5rem 1.25rem;
    gap: 1.25rem;
    min-height: 240px;
    padding: 2rem;
    text-align: center;
    background: rgba(var(--color-glass-rgb), 0.08);
    border: 1px solid rgba(var(--color-glass-rgb), 0.14);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.35s var(--ease-out),
        border-color var(--transition),
        transform 0.35s var(--ease-out),
        box-shadow var(--transition);
}

.client-card a {
    align-items: center;
    display: flex;
    flex-direction: column;
}

/* Accent gradient overlay on hover */
.client-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 48, 118, 0.12) 0%, transparent 55%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

/* Shimmer / shine overlay */
.client-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.08) 40%,
            rgba(255, 255, 255, 0.14) 50%,
            rgba(255, 255, 255, 0.08) 60%,
            transparent 100%);
    z-index: 1;
    pointer-events: none;
    transition: none;
}

.client-card:hover::before {
    animation: shimmer 1.2s ease-in-out;
}

.client-card:hover {
    background: rgba(var(--color-glass-rgb), 0.14);
    border-color: var(--color-accent);
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
        0 0 18px var(--color-accent-glow);
}

.client-card:hover::after {
    opacity: 1;
}

.client-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    width: 4rem;
    /* Increased size for better visibility */
    height: 4rem;
    /* Increased size for better visibility */
    width: 6.5rem;
    height: 6.5rem;
    border-radius: 50%;
    background: var(--color-accent-soft);
    font-size: 1.35rem;
    font-size: 1.75rem;
    /* Adjusted font size for potential icon consistency */
    font-size: 2.25rem;
    color: var(--color-accent);
    transition: background 0.35s var(--ease-out),
        color 0.35s var(--ease-out),
        transform 0.35s var(--ease-out);
    transform 0.35s var(--ease-out);
    /* Added transform to transition for smooth scaling */
}

.client-card:hover .client-card__icon {
    background: var(--color-accent);
    color: var(--color-navy);
    transform: none;
    transform: scale(1.1);
    /* Enlarges the icon slightly on hover */
}

.client-card__icon img {
    border-radius: 100%;
}

.client-card__name {
    font-family: var(--font-brand);
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--color-text-on-dark);
}

.client-card--partner {
    border-color: rgba(var(--color-accent-rgb), 0.35);
    background: rgba(var(--color-accent-rgb), 0.08);
}

.client-card__badge {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    color: var(--color-navy);
    background: var(--color-accent);
    border-radius: 4px;
    z-index: 2;
}


/* ══════════════════════════════════════════════════════════════
   § 12  CONTACT SECTION
   ══════════════════════════════════════════════════════════════ */
.section-split--contact .section-content--panel {
    background: none;
}

.contact-panel {
    width: 100%;
    max-width: 100%;
}

.contact-cards {
    display: flex;
    flex-direction: row;
    gap: 1.15rem;
    margin-bottom: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    background: rgba(var(--color-glass-rgb), 0.08);
    border: 1px solid rgba(var(--color-glass-rgb), 0.14);
    border-radius: var(--radius-md);
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: background 0.35s var(--ease-out),
        border-color var(--transition),
        transform 0.35s var(--ease-out),
        box-shadow var(--transition);
    flex: 1 1 calc(50% - 0.58rem);
    min-width: 250px;
}

/* Shine / shimmer on contact cards */
.contact-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.06) 40%,
            rgba(255, 255, 255, 0.12) 50%,
            rgba(255, 255, 255, 0.06) 60%,
            transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.contact-card:hover::before {
    animation: shimmer 1s ease-in-out;
}

.contact-card:hover {
    background: rgba(var(--color-glass-rgb), 0.15);
    border-color: var(--color-accent);
    color: #fff;
    transform: translateX(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.contact-card:active {
    transform: translateX(3px);
}

/* — Contact icon with pulse glow — */
.contact-card__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: var(--color-accent-soft);
    font-size: 2.5rem;
    color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(var(--color-navy-rgb), 0.15);
    transition: background 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

.contact-card:hover .contact-card__icon {
    background: var(--color-accent);
    color: var(--color-navy);
    transform: none;
    animation: none;
}

.contact-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.contact-card__label {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.contact-card__value {
    font-family: var(--font-brand);
    font-size: 1.25rem;
    color: var(--color-text-on-dark);
    word-break: break-word;
}

.contact-card__arrow {
    margin-left: auto;
    font-size: 1.1rem;
    opacity: 0.5;
    transition: opacity var(--transition),
        transform 0.35s var(--ease-out);
}

.contact-card:hover .contact-card__arrow {
    opacity: 1;
    transform: translate(4px, -3px);
}

/* — CTA button — */
.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 1.5rem;
    font-family: var(--font-brand);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-navy);
    background: #fff;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    transition: background var(--transition),
        color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.btn-cta:hover {
    color: #fff;
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-cta i {
    font-size: 1.15rem;
}


/* ══════════════════════════════════════════════════════════════
   § 13  PRODUCTS SECTION
   ══════════════════════════════════════════════════════════════ */
.products-section {
    padding: 5rem 2rem;
    background: #1F3C5D;
    /*background: radial-gradient(ellipse at 30% 60%, rgba(var(--color-radial-glow-rgb), var(--bg-glow-opacity)) 0%, transparent 60%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%),
        linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);*/
}

.products-header {
    text-align: center;
    /*margin-bottom: 3rem;*/
    max-width: 50rem;
    margin-left: auto;
    margin-right: auto;
}

.products-title {
    position: relative;
    margin: 0;
    padding-bottom: 0.65rem;
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    line-height: 1.25;
    font-weight: 700;
    color: var(--color-text-on-dark);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: flex;
    justify-content: center;
}

.products-title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 3rem;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.products-subtitle {
    margin: 0;
    font-family: var(--font-brand);
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(var(--color-text-on-dark-rgb), 0.78);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(var(--color-glass-rgb), 0.08);
    /* Base background */
    border: 1px solid rgba(var(--color-glass-rgb), 0.14);
    /* Base border */
    border-radius: var(--radius-md);
    transition: background 0.35s var(--ease-out),
        border-color var(--transition),
        transform 0.35s var(--ease-out),
        box-shadow var(--transition);
    position: relative;
    /* Needed for pseudo-elements */
    overflow: hidden;
    /* Needed for shimmer effect */
    backdrop-filter: blur(6px);
    /* Glassmorphism effect */
    -webkit-backdrop-filter: blur(6px);
    /* For Safari */
}

/* Accent gradient overlay on hover */
.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212, 48, 118, 0.12) 0%, transparent 55%);
    opacity: 0;
    transition: opacity var(--transition);
    pointer-events: none;
}

/* Shimmer / shine overlay */
.product-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.08) 40%,
            rgba(255, 255, 255, 0.14) 50%,
            rgba(255, 255, 255, 0.08) 60%,
            transparent 100%);
    z-index: 1;
    pointer-events: none;
    transition: none;
}

.product-card:hover {
    background: rgba(var(--color-glass-rgb), 0.14);
    /* Matching client-card hover background */
    border-color: var(--color-accent);
    transform: translateY(-6px);
    /* Matching client-card hover transform */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2),
        /* Matching client-card hover box-shadow */
        0 0 18px var(--color-accent-glow);
}

.product-card:hover::before {
    animation: shimmer 1.2s ease-in-out;
}

.product-card:hover::after {
    opacity: 1;
}

.product-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    margin-bottom: 1.5rem;
    border-radius: 50%;
    background: rgba(228, 229, 231, 0.12);
    font-size: 3rem;
    color: var(--color-accent);
    transition: background 0.35s var(--ease-out),
        color 0.35s var(--ease-out);
}

.product-card:hover .product-card__icon {
    background: var(--color-accent);
    color: var(--color-navy);
}

.product-card__title {
    margin: 0;
    font-family: var(--font-brand);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-on-dark);
    line-height: 1.5;
}


/* ══════════════════════════════════════════════════════════════
   § 14  FOOTER
   ══════════════════════════════════════════════════════════════ */
#footer {
    position: relative;
    padding: 0 0 2rem;
    background: #1F3C5D;
    /*background: radial-gradient(ellipse at 30% 60%, rgba(var(--color-radial-glow-rgb), var(--bg-glow-opacity)) 0%, transparent 60%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, transparent 100%),
        linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-soft) 100%);*/
    color: var(--color-text-on-dark);
    font-family: var(--font-brand);
    font-size: 0.875rem;
}

#footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    padding-top: 2.25rem;
}

#footer .copyright,
#footer .credits {
    margin: 0;
    text-align: center;
    line-height: 1.6;
}

#footer .copyright {
    padding-top: 0;
}

#footer .credits a {
    color: var(--color-text-on-dark);
    position: relative;
    transition: color var(--transition);
}

/* Underline animation on hover */
#footer .credits a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s var(--ease-out);
}

#footer .credits a:hover {
    color: #fff;
}

#footer .credits a:hover::after {
    width: 100%;
}


/* ══════════════════════════════════════════════════════════════
   § 14  BACK TO TOP BUTTON
   ══════════════════════════════════════════════════════════════ */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 996;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centrar el icono */
    width: 3rem;
    /* Aumentar ligeramente el tamaño */
    height: 3rem;
    /* Aumentar ligeramente el tamaño */
    border-radius: 50%;
    background: var(--color-navy);
    color: var(--color-accent);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.4s,
        visibility 0.4s,
        transform 0.4s var(--ease-out),
        background var(--transition),
        box-shadow var(--transition);
}

.back-to-top i {
    font-size: 1.75rem;
    line-height: 0;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: none;
}

.back-to-top:hover {
    background: var(--color-accent);
    color: var(--color-navy);
    border: 1px solid var(--color-accent);
    box-shadow: var(--shadow-lg);
    /* Sombra más prominente en hover */
    transform: translateY(-5px);
    /* Levantamiento más notorio */
    animation: none;
}


/* ══════════════════════════════════════════════════════════════
   § 15  RESPONSIVE — TABLET (≤ 991px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .logo-container {
        display: none;
    }

    .section-sidebar {
        border-right: none;
        border-bottom: 3px solid var(--color-accent);
        text-align: center;
    }

    .section-sidebar__title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .section-content--panel {
        min-height: 0;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .highlight-card {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        text-align: left;
        padding: 1rem 1.25rem;
    }

    .highlight-card__label {
        flex: 1 1 100%;
        padding-left: 3.25rem;
        text-align: left;
    }

    .hero .carousel,
    .hero .carousel-inner,
    .hero .carousel-item {
        min-height: 100%;
        /* Adjust to fill the hero-container */
    }

    .hero-container {
        height: 100%;
        /* Adjust to fill the hero section */
    }

    /* Hero overlay responsive */
    .hero-overlay {
        max-width: 80%;
        padding: 2rem;
        padding-bottom: 3rem;
    }

    .hero-overlay__name {
        font-size: clamp(1.8rem, 4.5vw, 2.8rem);
    }
}


/* ══════════════════════════════════════════════════════════════
   § 16  RESPONSIVE — PHONE (≤ 767px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    .hero {
        /* Removed margin-top to allow 100vh coverage */
        /* margin-top: 4rem; */
    }

    .header-wrapper {
        padding: 0 1.25rem;
    }

    .menu-container {
        right: 1.25rem;
        width: calc(100% - 2.5rem);
    }

    /* Better touch targets */
    .menu-toggle {
        width: 2.85rem;
        height: 2.85rem;
        min-width: 44px;
        min-height: 44px;
    }

    .menu-list a {
        padding: 0.85rem 1.25rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        border-radius: var(--radius-sm);
    }

    .hero-brand__tagline {
        font-size: 0.75rem;
        margin-top: 0.25rem;
        max-width: 200px;
        /* Evita que el texto largo empuje el menú en 375px */
    }

    .header-brand {
        flex: 1;
        min-width: 0;
    }

    .about-card {
        padding: 1.5rem 1.25rem;
    }

    .services-accordion {
        gap: 1rem;
    }

    .service-card .accordion-button {
        padding: 1.25rem;
        min-height: 44px;
    }

    .service-summary {
        gap: 0.85rem;
    }

    .service-summary__icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }

    .service-card .accordion-body {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
        padding-bottom: 1.5rem;
    }

    .service-card .accordion-body h4 {
        margin-top: 1.25rem;
        margin-bottom: 0.7rem;
    }

    .clients-grid {
        grid-template-columns: 1fr 1fr;
    }

    .client-card {
        min-height: 120px;
        padding: 1rem;
    }

    .client-card__name {
        font-size: 1rem;
    }

    /* Hero overlay on mobile */
    .hero-overlay {
        max-width: 100%;
        padding: 1.5rem;
        padding-bottom: 3.5rem;
    }

    .hero-overlay__name {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .hero-overlay__tagline {
        font-size: 0.85rem;
    }

    /* Contact cards touch‑friendly */
    .contact-card {
        padding: 1.15rem 1.25rem;
        min-height: 44px;
    }
}


/* ══════════════════════════════════════════════════════════════
   § 17  RESPONSIVE — SMALL PHONE (≤ 480px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .clients-grid {
        grid-template-columns: 1fr;
    }

    .hero-overlay__name {
        font-size: 1.6rem;
    }

    .hero-overlay__tagline {
        font-size: 0.8rem;
    }
}