.hero-heading {
    font-size: clamp(1.8rem, 3.8vw, 2.8rem);
    line-height: clamp(1.15, 3vw, 1.22);
}

.hero-lead {
    font-size: clamp(1.05rem, 2.4vw, 1.35rem);
    line-height: 1.6;
}

.hero-meta {
    font-size: clamp(0.98rem, 2.1vw, 1.2rem);
}

.hero-cta {
    font-size: clamp(0.95rem, 2.2vw, 1.05rem);
    padding: clamp(0.65rem, 1.6vw, 0.85rem) clamp(1.6rem, 4vw, 2.4rem);
}

@media (max-width: 576px) {
    .hero-intro {
        padding-top: calc((var(--navbar-height, 88px) + var(--top-nav-height, 0px)) + 2.5rem);
        padding-bottom: clamp(2rem, 5vw, 3.25rem);
    }
    .hero-heading {
        font-size: clamp(1.5rem, 6.8vw, 2.1rem);
    }
    .hero-lead {
        font-size: clamp(0.98rem, 4vw, 1.2rem);
    }
    .hero-meta {
        font-size: clamp(0.92rem, 3.8vw, 1.05rem);
    }
}
:root {
    --brand: #3DD152;
    --secondary-brand: #3551EF;
    --alert-brand: #F95F5F;
    --dark: #092032;
    --body: #4A4A4A;
    --border: #D9D9D9;
    --shadow: 0px 6px 30px rgba(0, 0, 0, 0.08);
    /* -------------------------------------- */
    /* SUSTITUCIÓN DE FUENTES */
    /* Druk Wide Bold -> Montserrat Black */
    /* Proxima Nova -> Poppins */
    /* -------------------------------------- */
    --font-primary: 'Druk Wide Bold';
    --font-secondary: 'proxima-nova';
    --bs-primary: var(--brand);
    --bs-secondary: var(--body);
    --bs-success: var(--brand);
    --bs-info: #1ABC9C;
    --bs-warning: #F1C40F;
    --bs-danger: var(--alert-brand);
    --bs-primary-rgb: 61, 209, 82;
    --bs-secondary-rgb: 74, 74, 74;
    --bs-success-rgb: 61, 209, 82;
    --bs-info-rgb: 26, 188, 156;
    --bs-warning-rgb: 241, 196, 15;
    --bs-danger-rgb: 249, 95, 95;
    --navbar-height: 88px;
}

body {
    font-family: var(--font-secondary);
    color: var(--body);
    line-height: 1.7;
}


/* Global responsive safeguards */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-padding-top: calc(var(--top-nav-height, 0px) + var(--navbar-height, 0px));
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4 {
    font-family: var(--font-primary);
    font-weight: 800;
    color: var(--dark);
}

.bg-cover {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

img {
    width: 100%;
}


/* Media should never overflow containers */

img,
video,
iframe,
svg {
    max-width: 100%;
    height: auto;
}

figure {
    max-width: 100%;
}


/* Safer text wrapping across common content blocks */

.intro h1,
.intro p,
.hero-slider h1,
.hero-slider .lead,
.about-spotlight .info-box.feature p,
.prose p,
.prose li {
    overflow-wrap: anywhere;
    word-break: break-word;
}


/* Brand logos sizing (bigger as requested) */

.navbar .navbar-brand {
    padding-top: 0;
    padding-bottom: 0;
}

.navbar .brand-logo {
    height: 72px;
    width: auto;
    display: block;
}

footer .footer-logo-img {
    height: 96px;
    width: auto;
    display: block;
}


/* Larger on desktops */

@media (min-width: 992px) {
    .navbar .brand-logo {
        height: 88px;
    }
    footer .footer-logo-img {
        height: 120px;
    }
}


/* Compact on small phones */

@media (max-width: 575.98px) {
    .navbar .brand-logo {
        height: 60px;
    }
    footer .footer-logo-img {
        height: 84px;
    }
}

a {
    color: var(--dark);
    transition: all 0.4s ease;
    font-weight: 500;
}

a:hover {
    color: var(--brand);
    /* ¡Nuevo color! */
}

section {
    padding-top: 80px;
    padding-bottom: 80px;
}


/* ========== BLOG: estilos base ========== */

.blog-hero {
    padding-top: 72px;
    padding-bottom: 36px;
}

.blog-hero h6 {
    color: var(--brand);
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.blog-hero h1 {
    font-size: clamp(28px, 4.4vw, 46px);
    margin-bottom: 14px;
}

.blog-hero p {
    max-width: 760px;
}

.month-chips-section {
    padding-top: 12px;
    padding-bottom: 12px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: #fff;
}

.month-chip {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--dark);
    padding: 8px 14px;
    border-radius: 999px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
}

.month-chip:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.month-chip.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.blog-main {
    padding-top: 42px;
    padding-bottom: 60px;
}

/* Responsive grid for blog posts (auto-fit, mobile-first) */
.posts-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(14px, 2.5vw, 24px);
    margin: 0; /* neutralize row margins when switching to grid */
}

.posts-grid > [class^="col-"],
.posts-grid > [class*=" col-"] {
    padding: 0 !important; /* let grid gap handle spacing */
    width: auto !important;
}

/* Blog cards: stretch for equal heights in grid */
.blog-post {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-post .content { flex: 1 1 auto; display: flex; flex-direction: column; }
.blog-post .read-cta { margin-top: auto; }

/* Safer wrapping on titles to avoid layout breaks */
.blog-post h5 { overflow-wrap: anywhere; word-break: break-word; }

/* Fluid type scale for blog cards */
.blog-post small { font-size: clamp(0.74rem, 1.6vw, 0.85rem); }
.blog-post h5 { font-size: clamp(1rem, 2.4vw, 1.25rem); }
.blog-post p { font-size: clamp(0.9rem, 1.9vw, 1rem); }

.month-section {
    padding-bottom: 36px;
    margin-bottom: 36px;
    border-bottom: 1px dashed var(--border);
}

.month-section:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
}

.month-title {
    font-size: clamp(20px, 2.5vw, 28px);
    margin-bottom: 6px;
}

.month-desc {
    margin-bottom: 18px;
}

.archive-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.archive-year {
    background: transparent;
    border: 0;
    width: 100%;
    text-align: left;
    font-weight: 800;
    margin-top: 4px;
    margin-bottom: 8px;
    color: var(--dark);
    font-family: var(--font-primary);
    letter-spacing: .02em;
    cursor: pointer;
}

.archive-year[aria-expanded="true"]::after {
    content: '▾';
    float: right;
    opacity: .6;
}

.archive-year[aria-expanded="false"]::after {
    content: '▸';
    float: right;
    opacity: .6;
}

.archive-list a.archive-month {
    display: inline-block;
    padding: 6px 0;
    color: var(--body);
    text-decoration: none;
}

.archive-list a.archive-month:hover {
    color: var(--brand);
}

.archive-list .archive-month.disabled {
    opacity: .5;
    cursor: default;
}

.sticky-archive {
    position: sticky;
    top: 90px;
}


/* Blog card: visual refresh */

.blog-post {
    border-radius: 16px;
    overflow: hidden;
    transition: none;
    transform: none;
    box-shadow: none;
}

.blog-post img {
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}


/* Subtle blur for previews */

.thumb-blur {
    filter: blur(1px);
    transform: scale(1.02);
    transition: none;
}

/* Ajuste para retratos: evita recorte excesivo en imágenes verticales */
.thumb-portrait {
    aspect-ratio: 4/5;
    object-position: center 25%;
    transform: none;
    filter: none;
}

.blog-post:hover .thumb-blur {
    filter: blur(1px);
    transform: scale(1.02);
}

.blog-post .tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--brand);
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
}

.blog-post .content {
    padding: 22px 22px 20px;
}

.blog-post small {
    display: inline-block;
    color: var(--brand);
    text-transform: uppercase;
    letter-spacing: .04em;
    text-decoration: none;
    font-weight: 700;
    margin-bottom: 6px;
}

.blog-post h5 {
    margin: 6px 0 8px;
    font-size: clamp(18px, 2.2vw, 22px);
}

.blog-post p {
    margin-bottom: 14px;
}

.blog-post .read-cta {
    display: flex;
}

.btn-read {
    --bg: #0f1a27;
    background: var(--bg);
    color: #fff;
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.btn-read::after {
    content: '→';
    font-weight: 900;
    transform: translateX(0);
    transition: none;
}

.btn-read:hover {
    background: var(--brand);
    color: #0f1a27;
}

.btn-read:hover::after {
    transform: translateX(0);
}

.blog-post:hover {
    transform: none;
    box-shadow: none;
}


/* Responsive tweaks */

@media (max-width: 991.98px) {
    .sticky-archive {
        position: static;
    }
    .archive-card {
        border-radius: 14px;
    }
}

@media (max-width: 575.98px) {
    .month-chips-section {
        position: sticky;
        top: 64px;
        z-index: 10;
        overflow-x: auto;
    }
}


/* ========== POST: estilos de artículo (fuera de media queries) ========== */

.post-hero {
    padding: 42px 0 18px;
    background: linear-gradient(180deg, rgba(9, 32, 50, .03), rgba(9, 32, 50, 0));
}

.post-breadcrumb {
    margin-bottom: 8px;
}

.post-breadcrumb .breadcrumb {
    --bs-breadcrumb-divider: '›';
    font-size: 13px;
}

.post-breadcrumb a {
    text-decoration: none;
}

.post-category {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    margin-bottom: 8px;
}

.post-title {
    font-size: clamp(26px, 4vw, 42px);
    margin: 6px 0 10px;
}

.post-excerpt {
    max-width: 65ch;
    font-size: 16.5px;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--body);
    margin-top: 10px;
}

.post-meta i {
    color: var(--brand);
    margin-right: 6px;
}

.post-share {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.btn-share {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Icon-only variant for compact share controls */
.btn-share--icon {
    width: clamp(36px, 5.6vmin, 44px);
    height: clamp(36px, 5.6vmin, 44px);
    padding: 0;
    border-radius: 14px; /* cuadrado con esquinas redondeadas, consistente con UI */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative; /* necesario para tooltip de copiado */
    transition: background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}

.btn-share--icon i {
    font-size: clamp(18px, 2.6vmin, 20px);
    line-height: 1;
    display: block;          /* evita ajuste por baseline del icon font */
    color: var(--dark);
}

.btn-share--icon:hover {
    background: var(--brand);
    border-color: var(--brand);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(9, 32, 50, .12);
}

.btn-share--icon:hover i {
    color: #fff;
}

.btn-share--icon:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(9, 32, 50, .08);
}

.btn-share--icon:focus-visible {
    outline: 0;
    border-color: var(--secondary-brand);
    box-shadow: 0 0 0 3px rgba(53, 81, 239, .24);
}

/* Tooltip accesible para feedback de copiado sin alterar el contenido */
.btn-share--icon[data-copied="true"]::after {
    content: 'Copiado';
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--dark);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(9, 32, 50, .16);
    pointer-events: none;
    opacity: 0;
    animation: shareCopiedIn .2s ease forwards;
}

@keyframes shareCopiedIn {
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.btn-share:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.post-main {
    padding: 36px 0 96px;
}

.post-toc {
    position: sticky;
    top: 96px;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.post-toc .toc-title {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 14px;
}

.post-toc ol {
    margin: 10px 0 0;
    padding-left: 0;
}

.post-toc a {
    display: block;
    color: var(--body);
    padding: 6px 0;
    text-decoration: none;
    font-size: 14px;
}

.post-toc a.active {
    color: var(--brand);
    font-weight: 700;
}

.prose {
    font-family: var(--font-secondary);
    font-size: 18px;
    line-height: 1.85;
    color: var(--body);
}

/* Ensure media in article body is fully responsive */
.prose img,
.prose video,
.prose iframe {
    max-width: 100%;
    height: auto;
}

.prose pre,
.prose code {
    max-width: 100%;
    overflow: auto;
}

.prose h2 {
    margin-top: 26px;
    font-size: clamp(22px, 3vw, 30px);
}

.prose h3 {
    margin-top: 16px;
    font-size: clamp(18px, 2.5vw, 22px);
}

.prose p {
    margin: 10px 0 18px;
}

.prose ul {
    padding-left: 22px;
}

.prose table {
    font-size: 15.5px;
}

.post-cta {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}


/* Post cover: ensure images don't stretch; allow a 'contain' variant for logos */

.post-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-cover--contain {
    background: #fff;
}

.post-cover--contain img {
    object-fit: contain;
    padding: 12px;
}

@media (max-width: 575.98px) {
    .post-cover--contain img {
        padding: 8px;
    }
}


/* ========== Author card ========== */

.author-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
    margin-top: 22px;
}

.author-card .author-logo {
    flex: 0 0 84px;
    width: 84px;
    height: 84px;
    border-radius: 10px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.author-card .author-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.author-card .author-info {
    flex: 1 1 auto;
}

.author-card .author-name {
    font-family: var(--font-primary);
    font-size: clamp(18px, 2.2vw, 22px);
    margin-bottom: 4px;
}

.author-card .author-role {
    margin: 0;
    font-weight: 600;
}

.author-card .author-contact {
    margin: 2px 0 0;
    color: var(--body);
}

.author-card .author-company {
    margin: 10px 0 0;
    font-weight: 800;
}

@media (max-width: 575.98px) {
    .author-card {
        align-items: flex-start;
        gap: 12px;
        padding: 14px;
    }
    .author-card .author-logo {
        flex-basis: 68px;
        width: 68px;
        height: 68px;
    }
}

@media (max-width: 991.98px) {
    .post-toc {
        position: static;
        margin-bottom: 8px;
    }
}

@media (max-width: 575.98px) {
    .post-cta {
        flex-direction: column;
        align-items: stretch;
    }
    .post-main {
        padding-bottom: 120px;
    }
}

.text-brand {
    color: var(--brand) !important;
    /* ¡Nuevo color! */
}

.hero-slider .owl-prev,
.hero-slider .owl-next {
    background-color: rgba(255, 255, 255, 0.3) !important;
    width: 60px !important;
    height: 60px !important;
    display: block;
    display: grid;
    place-items: center;
    color: #fff !important;
    border-radius: 100px;
    line-height: 0;
    border-radius: 100px !important;
    position: absolute;
    top: 50%;
    font-weight: 600 !important;
    font-size: 12px !important;
    transition: all 0.4s ease;
    margin-top: -30px !important;
}

.owl-prev {
    left: 0;
}

.owl-next {
    right: 0;
}

.hero-slider .owl-prev:hover,
.hero-slider .owl-next:hover {
    background-color: var(--brand) !important;
}

.owl-dot.active span {
    background-color: var(--brand) !important;
}


/* slide */

.slide {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.slide1 {
    background: linear-gradient(rgba(9, 32, 50, 0.7), rgba(9, 32, 50, 0.7)), url(../img/bg_banner2.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide2 {
    background: linear-gradient(rgba(9, 32, 50, 0.7), rgba(9, 32, 50, 0.7)), url(../img/bg_banner1.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* Dinámico: slides creados desde blog */

.slide-dyn {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-dyn h1.display-3 {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.05;
}

.slide-dyn p.lead {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: .95;
}

.slide .display-3 {
    text-transform: uppercase;
    color: #fff;
}

/* Video de fondo para slides del hero (opcional) */
.slide-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(9, 32, 50, 0.72), rgba(9, 32, 50, 0.72));
    pointer-events: none;
}

/* Asegurar texto por encima del video */
.slide > .container {
    position: relative;
    z-index: 1;
}


/* Hero: usar segunda tipografía y ajustar pesos sin cambiar variables */

.hero-slider h1,
.hero-slider .display-3,
.hero-slider h6 {
    font-family: var(--font-secondary), "Proxima Nova", "proxima-nova", "ProximaNova", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.hero-slider .display-3 {
    font-weight: 700;
    text-transform: uppercase;
    overflow-wrap: anywhere;
}

.hero-slider h6 {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
}


/* navbar */

.top-nav {
    background-color: #D13D97;
    padding-top: 5px;
    padding-bottom: 5px;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1051;
    /* por encima del navbar */
    transform: translateZ(0);
}

.top-nav--movember {
    background-color: #0a4a7a;
}

.top-nav--navidad {
    --holiday-onyx: #050505;
    --holiday-gold: #f5d68a;
    --holiday-gold-strong: #ffe8b3;
    background-color: var(--holiday-onyx);
    background-image: linear-gradient(120deg, rgba(255, 222, 161, 0.08), rgba(255, 222, 161, 0.25), rgba(255, 222, 161, 0.08));
    background-size: 220% 220%;
    animation: navidadAurora 18s ease-in-out infinite, navidadReveal 0.85s ease-out both;
    border-top: 1px solid rgba(245, 214, 138, 0.55);
    border-bottom: 1px solid rgba(245, 214, 138, 0.65);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(245, 214, 138, 0.4),
        0 0 24px rgba(245, 214, 138, 0.35);
    overflow: hidden;
    isolation: isolate;
}

.top-nav--navidad::before,
.top-nav--navidad::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.top-nav--navidad::before {
    inset: -35% -15%;
    background:
        radial-gradient(circle at 20% 25%, rgba(255, 227, 173, 0.45) 0%, transparent 55%),
        radial-gradient(circle at 75% 30%, rgba(255, 227, 173, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 55% 80%, rgba(255, 227, 173, 0.22) 0%, transparent 60%);
    animation: navidadGlow 16s ease-in-out infinite;
    opacity: 0.75;
}

.top-nav--navidad::after {
    inset: 0;
    background:
        linear-gradient(120deg, transparent 28%, rgba(255, 255, 255, 0.24) 48%, transparent 66%),
        radial-gradient(2px 2px at 12% 25%, rgba(255, 232, 179, 0.9) 0%, transparent 62%),
        radial-gradient(1.6px 1.6px at 28% 55%, rgba(255, 232, 179, 0.85) 0%, transparent 60%),
        radial-gradient(1.8px 1.8px at 46% 30%, rgba(255, 232, 179, 0.9) 0%, transparent 58%),
        radial-gradient(1.4px 1.4px at 62% 68%, rgba(255, 232, 179, 0.8) 0%, transparent 60%),
        radial-gradient(1.9px 1.9px at 78% 40%, rgba(255, 232, 179, 0.9) 0%, transparent 60%),
        radial-gradient(1.5px 1.5px at 90% 70%, rgba(255, 232, 179, 0.85) 0%, transparent 60%);
    background-size:
        140% 100%,
        220px 220px,
        200px 200px,
        180px 180px,
        200px 200px,
        190px 190px,
        200px 200px;
    background-repeat: no-repeat;
    animation:
        navidadSweep 7s linear infinite,
        navidadSparkles 12s ease-in-out infinite,
        navidadSparkles 14s ease-in-out infinite,
        navidadSparkles 16s ease-in-out infinite,
        navidadSparkles 18s ease-in-out infinite,
        navidadSparkles 20s ease-in-out infinite,
        navidadSparkles 22s ease-in-out infinite;
    opacity: 0.8;
    mix-blend-mode: screen;
}

.top-nav--navidad .container {
    position: relative;
    z-index: 1;
}

.top-nav--navidad .top-nav-message {
    position: relative;
    display: inline-block;
    color: var(--holiday-gold-strong);
    padding-inline: 2px;
}

.top-nav--navidad .top-nav-message::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 232, 179, 0.6), rgba(255, 255, 255, 0));
    mix-blend-mode: screen;
    transform: translateX(-140%);
    animation: navidadShimmer 6s ease-in-out infinite;
    pointer-events: none;
}

.top-nav--navidad .top-nav-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 14px;
    border-radius: 999px;
    border: 1px solid rgba(245, 214, 138, 0.7);
    background: rgba(245, 214, 138, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 12px;
    position: relative;
    overflow: hidden;
    transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    color: var(--holiday-gold-strong);
}

.top-nav--navidad .top-nav-pill::after {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(120deg, rgba(255, 232, 179, 0.15), rgba(255, 232, 179, 0.55), rgba(255, 232, 179, 0.15));
    transform: translateX(-140%);
    animation: navidadShimmer 5s ease-in-out infinite;
    pointer-events: none;
}

.top-nav--navidad .top-nav-pill:hover {
    background: linear-gradient(120deg, rgba(255, 232, 179, 0.16), rgba(255, 232, 179, 0.32));
    border-color: rgba(255, 232, 179, 0.9);
    box-shadow: 0 0 12px rgba(255, 232, 179, 0.35);
}

.top-nav--navidad p {
    margin-bottom: 0;
    line-height: 1.35;
    animation: navidadReveal 0.9s ease-out both;
}

.top-nav--navidad p,
.top-nav--navidad span,
.top-nav--navidad i {
    color: var(--holiday-gold-strong);
}

@keyframes navidadAurora {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes navidadGlow {
    0% {
        transform: translateX(-4%) scale(1);
        opacity: 0.55;
    }
    50% {
        transform: translateX(4%) scale(1.05);
        opacity: 0.85;
    }
    100% {
        transform: translateX(-4%) scale(1);
        opacity: 0.55;
    }
}

@keyframes navidadSweep {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

@keyframes navidadShimmer {
    0% {
        transform: translateX(-160%);
        opacity: 0.0;
    }
    20% {
        opacity: 0.75;
    }
    50% {
        transform: translateX(160%);
        opacity: 0.0;
    }
    100% {
        transform: translateX(160%);
        opacity: 0.0;
    }
}

@keyframes navidadReveal {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes navidadSparkles {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 50% 30%;
    }
    100% {
        background-position: 100% 60%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .top-nav--navidad,
    .top-nav--navidad::before,
    .top-nav--navidad::after,
    .top-nav--navidad .top-nav-message::after,
    .top-nav--navidad .top-nav-pill::after,
    .top-nav--navidad p {
        animation: none !important;
        transition: none !important;
    }
}

/* ================================ */
/* Día Internacional de la Educación Ambiental - Enero
   Colores verdes naturales, tierra y vida
*/

.top-nav--educacion-ambiental {
    --eco-forest: #0d3b26;
    --eco-leaf: #2ecc71;
    --eco-leaf-soft: #a8e6cf;
    --eco-earth: #8b5a2b;
    background-color: var(--eco-forest);
    background-image: linear-gradient(120deg, rgba(46, 204, 113, 0.08), rgba(168, 230, 207, 0.18), rgba(46, 204, 113, 0.08));
    background-size: 220% 220%;
    animation: ecoAurora 18s ease-in-out infinite, ecoReveal 0.85s ease-out both;
    border-top: 1px solid rgba(46, 204, 113, 0.45);
    border-bottom: 1px solid rgba(168, 230, 207, 0.55);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(46, 204, 113, 0.35),
        0 0 24px rgba(46, 204, 113, 0.25);
    overflow: hidden;
    isolation: isolate;
}

.top-nav--educacion-ambiental::before,
.top-nav--educacion-ambiental::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.top-nav--educacion-ambiental::before {
    inset: -35% -15%;
    background:
        radial-gradient(circle at 20% 25%, rgba(46, 204, 113, 0.35) 0%, transparent 55%),
        radial-gradient(circle at 75% 30%, rgba(168, 230, 207, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 55% 80%, rgba(39, 174, 96, 0.2) 0%, transparent 60%);
    animation: ecoGlow 16s ease-in-out infinite;
    opacity: 0.75;
}

.top-nav--educacion-ambiental::after {
    inset: 0;
    background:
        linear-gradient(120deg, transparent 28%, rgba(168, 230, 207, 0.2) 48%, transparent 66%),
        radial-gradient(2px 2px at 12% 25%, rgba(168, 230, 207, 0.8) 0%, transparent 62%),
        radial-gradient(1.6px 1.6px at 28% 55%, rgba(46, 204, 113, 0.75) 0%, transparent 60%),
        radial-gradient(1.8px 1.8px at 46% 30%, rgba(168, 230, 207, 0.85) 0%, transparent 58%),
        radial-gradient(1.4px 1.4px at 62% 68%, rgba(46, 204, 113, 0.7) 0%, transparent 60%),
        radial-gradient(1.9px 1.9px at 78% 40%, rgba(168, 230, 207, 0.8) 0%, transparent 60%),
        radial-gradient(1.5px 1.5px at 90% 70%, rgba(39, 174, 96, 0.75) 0%, transparent 60%);
    background-size:
        140% 100%,
        220px 220px,
        200px 200px,
        180px 180px,
        200px 200px,
        190px 190px,
        200px 200px;
    background-repeat: no-repeat;
    animation:
        ecoSweep 7s linear infinite,
        ecoSparkles 12s ease-in-out infinite;
    opacity: 0.7;
    mix-blend-mode: screen;
}

.top-nav--educacion-ambiental .container {
    position: relative;
    z-index: 1;
}

.top-nav--educacion-ambiental .top-nav-message {
    position: relative;
    display: inline-block;
    color: var(--eco-leaf-soft);
    padding-inline: 2px;
}

.top-nav--educacion-ambiental .top-nav-message::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(168, 230, 207, 0.5), rgba(255, 255, 255, 0));
    mix-blend-mode: screen;
    transform: translateX(-140%);
    animation: ecoShimmer 6s ease-in-out infinite;
    pointer-events: none;
}

.top-nav--educacion-ambiental .top-nav-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 14px;
    border-radius: 999px;
    border: 1px solid rgba(46, 204, 113, 0.6);
    background: rgba(46, 204, 113, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 12px;
    position: relative;
    overflow: hidden;
    transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    color: var(--eco-leaf-soft);
}

.top-nav--educacion-ambiental .top-nav-pill::after {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(120deg, rgba(168, 230, 207, 0.1), rgba(46, 204, 113, 0.45), rgba(168, 230, 207, 0.1));
    transform: translateX(-140%);
    animation: ecoShimmer 5s ease-in-out infinite;
    pointer-events: none;
}

.top-nav--educacion-ambiental .top-nav-pill:hover {
    background: linear-gradient(120deg, rgba(46, 204, 113, 0.12), rgba(168, 230, 207, 0.28));
    border-color: rgba(168, 230, 207, 0.85);
    box-shadow: 0 0 12px rgba(46, 204, 113, 0.3);
}

.top-nav--educacion-ambiental p {
    margin-bottom: 0;
    line-height: 1.35;
    animation: ecoReveal 0.9s ease-out both;
}

.top-nav--educacion-ambiental p,
.top-nav--educacion-ambiental span,
.top-nav--educacion-ambiental i {
    color: var(--eco-leaf-soft);
}

@keyframes ecoAurora {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes ecoGlow {
    0% {
        transform: translateX(-4%) scale(1);
        opacity: 0.55;
    }
    50% {
        transform: translateX(4%) scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-4%) scale(1);
        opacity: 0.55;
    }
}

@keyframes ecoSweep {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(120%);
    }
}

@keyframes ecoShimmer {
    0% {
        transform: translateX(-160%);
        opacity: 0.0;
    }
    20% {
        opacity: 0.7;
    }
    50% {
        transform: translateX(160%);
        opacity: 0.0;
    }
    100% {
        transform: translateX(160%);
        opacity: 0.0;
    }
}

@keyframes ecoReveal {
    0% {
        opacity: 0;
        transform: translateY(-8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ecoSparkles {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 50% 30%;
    }
    100% {
        background-position: 100% 60%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .top-nav--educacion-ambiental,
    .top-nav--educacion-ambiental::before,
    .top-nav--educacion-ambiental::after,
    .top-nav--educacion-ambiental .top-nav-message::after,
    .top-nav--educacion-ambiental .top-nav-pill::after,
    .top-nav--educacion-ambiental p {
        animation: none !important;
        transition: none !important;
    }
}

/* ================================ */
/* Día Mundial del Agua – 22 de Marzo */

.top-nav--dia-del-agua {
    --agua-deep: #023e6e;
    --agua-wave: #1a9fd0;
    --agua-foam: #a8dff0;
    background-color: var(--agua-deep);
    background-image: linear-gradient(120deg, rgba(26, 159, 208, 0.10), rgba(168, 223, 240, 0.18), rgba(26, 159, 208, 0.10));
    background-size: 220% 220%;
    animation: aguaAurora 18s ease-in-out infinite, ecoReveal 0.85s ease-out both;
    border-top: 1px solid rgba(26, 159, 208, 0.45);
    border-bottom: 1px solid rgba(168, 223, 240, 0.55);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(26, 159, 208, 0.35),
        0 0 24px rgba(26, 159, 208, 0.25);
    overflow: hidden;
    isolation: isolate;
}

.top-nav--dia-del-agua::before,
.top-nav--dia-del-agua::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.top-nav--dia-del-agua::before {
    inset: -35% -15%;
    background:
        radial-gradient(circle at 20% 25%, rgba(26, 159, 208, 0.35) 0%, transparent 55%),
        radial-gradient(circle at 75% 30%, rgba(168, 223, 240, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 55% 80%, rgba(2, 91, 150, 0.20) 0%, transparent 60%);
    animation: aguaGlow 16s ease-in-out infinite;
    opacity: 0.75;
}

.top-nav--dia-del-agua::after {
    inset: 0;
    background:
        linear-gradient(120deg, transparent 28%, rgba(168, 223, 240, 0.22) 48%, transparent 66%),
        radial-gradient(2px 2px at 12% 25%, rgba(168, 223, 240, 0.8) 0%, transparent 62%),
        radial-gradient(1.6px 1.6px at 28% 55%, rgba(26, 159, 208, 0.75) 0%, transparent 60%),
        radial-gradient(1.8px 1.8px at 46% 30%, rgba(168, 223, 240, 0.85) 0%, transparent 58%),
        radial-gradient(1.4px 1.4px at 62% 68%, rgba(26, 159, 208, 0.70) 0%, transparent 60%),
        radial-gradient(1.9px 1.9px at 78% 40%, rgba(168, 223, 240, 0.80) 0%, transparent 60%),
        radial-gradient(1.5px 1.5px at 90% 70%, rgba(2, 91, 150, 0.75) 0%, transparent 60%);
    background-size:
        140% 100%,
        220px 220px,
        200px 200px,
        180px 180px,
        200px 200px,
        190px 190px,
        200px 200px;
    background-repeat: no-repeat;
    animation:
        aguaSweep 7s linear infinite,
        aguaSparkles 12s ease-in-out infinite;
    opacity: 0.7;
    mix-blend-mode: screen;
}

.top-nav--dia-del-agua .container {
    position: relative;
    z-index: 1;
}

.top-nav--dia-del-agua .top-nav-message {
    position: relative;
    display: inline-block;
    color: var(--agua-foam);
    padding-inline: 2px;
}

.top-nav--dia-del-agua .top-nav-message::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0), rgba(168,223,240,0.5), rgba(255,255,255,0));
    mix-blend-mode: screen;
    transform: translateX(-140%);
    animation: ecoShimmer 6s ease-in-out infinite;
    pointer-events: none;
}

.top-nav--dia-del-agua .top-nav-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 14px;
    border-radius: 999px;
    border: 1px solid rgba(26, 159, 208, 0.6);
    background: rgba(26, 159, 208, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 12px;
    position: relative;
    overflow: hidden;
    transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    color: var(--agua-foam);
}

.top-nav--dia-del-agua .top-nav-pill::after {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(120deg, rgba(168,223,240,0.1), rgba(26,159,208,0.45), rgba(168,223,240,0.1));
    transform: translateX(-140%);
    animation: ecoShimmer 5s ease-in-out infinite;
    pointer-events: none;
}

.top-nav--dia-del-agua .top-nav-pill:hover {
    background: linear-gradient(120deg, rgba(26, 159, 208, 0.12), rgba(168, 223, 240, 0.28));
    border-color: rgba(168, 223, 240, 0.85);
    box-shadow: 0 0 12px rgba(26, 159, 208, 0.3);
}

.top-nav--dia-del-agua p {
    margin-bottom: 0;
    line-height: 1.35;
    animation: ecoReveal 0.9s ease-out both;
}

.top-nav--dia-del-agua p,
.top-nav--dia-del-agua span,
.top-nav--dia-del-agua i {
    color: var(--agua-foam);
}

@keyframes aguaAurora {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes aguaGlow {
    0%   { transform: translateX(-4%) scale(1);    opacity: 0.55; }
    50%  { transform: translateX(4%)  scale(1.05); opacity: 0.80; }
    100% { transform: translateX(-4%) scale(1);    opacity: 0.55; }
}

@keyframes aguaSweep {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@keyframes aguaSparkles {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 50% 30%; }
    100% { background-position: 100% 60%; }
}

@media (prefers-reduced-motion: reduce) {
    .top-nav--dia-del-agua,
    .top-nav--dia-del-agua::before,
    .top-nav--dia-del-agua::after,
    .top-nav--dia-del-agua .top-nav-message::after,
    .top-nav--dia-del-agua .top-nav-pill::after,
    .top-nav--dia-del-agua p {
        animation: none !important;
        transition: none !important;
    }
}

/* ================================ */
/* Día Mundial de la Seguridad y Salud en el Trabajo – 28 de Abril (OIT) */

.top-nav--seguridad-trabajo {
    --seg-deep:  #152b1e;
    --seg-gold:  #e8c000;
    --seg-green: #5aaa45;
    --seg-light: #d4edaa;
    background-color: var(--seg-deep);
    background-image: linear-gradient(120deg, rgba(90, 170, 69, 0.12), rgba(232, 192, 0, 0.18), rgba(90, 170, 69, 0.12));
    background-size: 220% 220%;
    animation: segAurora 18s ease-in-out infinite, ecoReveal 0.85s ease-out both;
    border-top: 1px solid rgba(232, 192, 0, 0.45);
    border-bottom: 1px solid rgba(212, 237, 170, 0.55);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(90, 170, 69, 0.35),
        0 0 24px rgba(232, 192, 0, 0.20);
    overflow: hidden;
    isolation: isolate;
}

.top-nav--seguridad-trabajo::before,
.top-nav--seguridad-trabajo::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.top-nav--seguridad-trabajo::before {
    inset: -35% -15%;
    background:
        radial-gradient(circle at 20% 25%, rgba(90, 170, 69, 0.35) 0%, transparent 55%),
        radial-gradient(circle at 75% 30%, rgba(232, 192, 0, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 55% 80%, rgba(21, 43, 30, 0.20) 0%, transparent 60%);
    animation: segGlow 16s ease-in-out infinite;
    opacity: 0.75;
}

.top-nav--seguridad-trabajo::after {
    inset: 0;
    background:
        linear-gradient(120deg, transparent 28%, rgba(212, 237, 170, 0.22) 48%, transparent 66%),
        radial-gradient(2px 2px at 12% 25%, rgba(232, 192, 0, 0.8) 0%, transparent 62%),
        radial-gradient(1.6px 1.6px at 28% 55%, rgba(90, 170, 69, 0.75) 0%, transparent 60%),
        radial-gradient(1.8px 1.8px at 46% 30%, rgba(212, 237, 170, 0.85) 0%, transparent 58%),
        radial-gradient(1.4px 1.4px at 62% 68%, rgba(232, 192, 0, 0.70) 0%, transparent 60%),
        radial-gradient(1.9px 1.9px at 78% 40%, rgba(212, 237, 170, 0.80) 0%, transparent 60%),
        radial-gradient(1.5px 1.5px at 90% 70%, rgba(90, 170, 69, 0.75) 0%, transparent 60%);
    background-size:
        140% 100%,
        220px 220px,
        200px 200px,
        180px 180px,
        200px 200px,
        190px 190px,
        200px 200px;
    background-repeat: no-repeat;
    animation:
        segSweep 7s linear infinite,
        segSparkles 12s ease-in-out infinite;
    opacity: 0.7;
    mix-blend-mode: screen;
}

.top-nav--seguridad-trabajo .container {
    position: relative;
    z-index: 1;
}

.top-nav--seguridad-trabajo .top-nav-message {
    position: relative;
    display: inline-block;
    color: var(--seg-light);
    padding-inline: 2px;
}

.top-nav--seguridad-trabajo .top-nav-message::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0), rgba(232,192,0,0.45), rgba(255,255,255,0));
    mix-blend-mode: screen;
    transform: translateX(-140%);
    animation: ecoShimmer 6s ease-in-out infinite;
    pointer-events: none;
}

.top-nav--seguridad-trabajo .top-nav-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 14px;
    border-radius: 999px;
    border: 1px solid rgba(232, 192, 0, 0.6);
    background: rgba(90, 170, 69, 0.18);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 12px;
    position: relative;
    overflow: hidden;
    transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    color: var(--seg-light);
}

.top-nav--seguridad-trabajo .top-nav-pill::after {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(120deg, rgba(212,237,170,0.1), rgba(232,192,0,0.45), rgba(212,237,170,0.1));
    transform: translateX(-140%);
    animation: ecoShimmer 5s ease-in-out infinite;
    pointer-events: none;
}

.top-nav--seguridad-trabajo .top-nav-pill:hover {
    background: linear-gradient(120deg, rgba(90, 170, 69, 0.18), rgba(232, 192, 0, 0.28));
    border-color: rgba(232, 192, 0, 0.85);
    box-shadow: 0 0 12px rgba(232, 192, 0, 0.30);
}

.top-nav--seguridad-trabajo p {
    margin-bottom: 0;
    line-height: 1.35;
    animation: ecoReveal 0.9s ease-out both;
}

.top-nav--seguridad-trabajo p,
.top-nav--seguridad-trabajo span,
.top-nav--seguridad-trabajo i {
    color: var(--seg-light);
}

@keyframes segAurora {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes segGlow {
    0%   { transform: translateX(-4%) scale(1);    opacity: 0.55; }
    50%  { transform: translateX(4%)  scale(1.05); opacity: 0.80; }
    100% { transform: translateX(-4%) scale(1);    opacity: 0.55; }
}

@keyframes segSweep {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@keyframes segSparkles {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 50% 30%; }
    100% { background-position: 100% 60%; }
}

@media (prefers-reduced-motion: reduce) {
    .top-nav--seguridad-trabajo,
    .top-nav--seguridad-trabajo::before,
    .top-nav--seguridad-trabajo::after,
    .top-nav--seguridad-trabajo .top-nav-message::after,
    .top-nav--seguridad-trabajo .top-nav-pill::after,
    .top-nav--seguridad-trabajo p {
        animation: none !important;
        transition: none !important;
    }
}

/* ================================ */
/* Festive overlay (global, temporal)
   - Ajusta intensidad con --festive-opacity
   - Cambia colores en --festive-gold / --festive-champagne
   - Desactiva en enero usando body.festive-off
*/

:root {
    --festive-enabled: 1;
    --festive-gold: rgba(255, 232, 179, 0.28);
    --festive-champagne: rgba(247, 223, 180, 0.16);
    --festive-ice: rgba(255, 255, 255, 0.12);
    --festive-opacity: 0.22;
}

#festive-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
    opacity: calc(var(--festive-opacity) * var(--festive-enabled));
    mix-blend-mode: screen;
}

/* Destellos grandes y esferas suaves */
#festive-overlay::before {
    content: "";
    position: absolute;
    inset: -15% -10% -5% -10%;
    background:
        radial-gradient(220px 220px at 12% 18%, var(--festive-gold) 0%, transparent 60%),
        radial-gradient(180px 180px at 78% 22%, var(--festive-champagne) 0%, transparent 62%),
        radial-gradient(140px 140px at 30% 78%, var(--festive-ice) 0%, transparent 60%),
        radial-gradient(200px 200px at 88% 76%, var(--festive-gold) 0%, transparent 68%);
    filter: blur(1px);
    animation: festiveDrift 18s ease-in-out infinite alternate;
}

/* Partículas y estrellas minimalistas */
#festive-overlay::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1.6px 1.6px at 10% 20%, rgba(255, 232, 179, 0.9) 0%, transparent 60%),
        radial-gradient(1.8px 1.8px at 24% 68%, rgba(255, 255, 255, 0.8) 0%, transparent 60%),
        radial-gradient(1.5px 1.5px at 42% 32%, rgba(255, 232, 179, 0.8) 0%, transparent 60%),
        radial-gradient(2px 2px at 58% 74%, rgba(255, 255, 255, 0.82) 0%, transparent 62%),
        radial-gradient(1.7px 1.7px at 76% 40%, rgba(255, 232, 179, 0.85) 0%, transparent 62%),
        radial-gradient(1.4px 1.4px at 90% 66%, rgba(255, 255, 255, 0.75) 0%, transparent 60%);
    background-size: 160% 140%;
    animation: festiveTwinkle 12s ease-in-out infinite, festiveSlide 20s linear infinite;
    opacity: 0.65;
}

/* Desactivar overlay en temporada baja con body.festive-off */
body.festive-off #festive-overlay {
    display: none !important;
}

@keyframes festiveDrift {
    0% {
        transform: translate3d(0, -10px, 0) scale(1);
    }
    50% {
        transform: translate3d(0, 10px, 0) scale(1.02);
    }
    100% {
        transform: translate3d(0, -8px, 0) scale(1.01);
    }
}

@keyframes festiveTwinkle {
    0% {
        opacity: 0.25;
    }
    45% {
        opacity: 0.9;
    }
    100% {
        opacity: 0.25;
    }
}

@keyframes festiveSlide {
    0% {
        transform: translate3d(-12px, -8px, 0);
    }
    100% {
        transform: translate3d(12px, 10px, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    #festive-overlay,
    #festive-overlay::before,
    #festive-overlay::after {
        animation: none !important;
        transition: none !important;
    }
}

.top-nav p {
    display: inline-block;
    margin-bottom: 0;
    margin-right: 10px;
    text-align: center;
    color: #fff;
    /* Texto en blanco */
    font-family: var(--font-secondary);
    /* Segunda fuente */
}

.top-nav span,
.top-nav i {
    vertical-align: middle;
    color: #fff;
    /* Íconos en blanco */
}


/* Centrado del contenido de la franja superior */

.top-nav .row.justify-content-between {
    justify-content: center !important;
    /* Anula el space-between del helper de Bootstrap */
}

.top-nav .col-auto {
    text-align: center;
    /* Asegura que el texto dentro de la columna quede centrado */
}

.navbar {
    box-shadow: var(--shadow);
}


/* Navbar sticky: se coloca justo debajo de la franja superior (top-nav) */

.navbar.sticky-top {
    position: sticky;
    top: var(--top-nav-height, 0px);
    z-index: 1050;
    width: 100%;
    background-color: #fff;
}


/* Overlay de transición de página (suave) */

.page-transition-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(120% 120% at 50% 0%, rgba(9, 32, 50, 0.06), rgba(9, 32, 50, 0.0));
    opacity: 0;
    transition: opacity .28s ease;
    pointer-events: none;
    z-index: 1048;
}


/* Destino resaltado al llegar */

.focus-highlight {
    animation: section-focus 900ms ease-out;
}

@keyframes section-focus {
    0% {
        box-shadow: 0 0 0 0 rgba(61, 209, 82, 0.0), inset 0 0 0 0 rgba(61, 209, 82, 0.0);
    }
    25% {
        box-shadow: 0 0 0 0 rgba(61, 209, 82, 0.0), inset 0 0 0 4px rgba(61, 209, 82, 0.18);
    }
    60% {
        box-shadow: 0 0 0 20px rgba(61, 209, 82, 0.0), inset 0 0 0 2px rgba(61, 209, 82, 0.12);
    }
    100% {
        box-shadow: 0 0 0 28px rgba(61, 209, 82, 0.0), inset 0 0 0 0 rgba(61, 209, 82, 0.0);
    }
}


/* Botón flotante WhatsApp - fijo, superpuesto y responsive */

.whatsapp-fab {
    position: fixed;
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    z-index: 1060;
    /* por encima del overlay y navbar */
    /* Aparición suave controlada por JS */
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .35s ease, transform .35s ease, box-shadow .2s ease;
    /* Animación constante, sutil */
    animation: wa-bob 3.4s ease-in-out infinite;
}

.whatsapp-fab.visible {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-fab svg {
    width: 28px;
    height: 28px;
}

.whatsapp-fab:hover {
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.26);
}


/* Halo suave constante */

.whatsapp-fab::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.38);
    opacity: 0;
    pointer-events: none;
    animation: wa-halo 2.8s ease-out infinite;
}


/* Cuando JS dispara .pulse, intensificamos ligeramente el halo */

.whatsapp-fab.pulse::after {
    animation-duration: 1.8s;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
}

@keyframes wa-bob {
    0%,
    100% {
        transform: translateY(8px);
    }
    50% {
        transform: translateY(4px);
    }
}

@keyframes wa-halo {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, .38);
        opacity: .7;
    }
    70% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
        opacity: 0;
    }
    100% {
        box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
        opacity: 0;
    }
}

@media (max-width: 575.98px) {
    .hero-slider .owl-prev,
    .hero-slider .owl-next {
        width: 44px !important;
        height: 44px !important;
        margin-top: -22px !important;
    }
    .whatsapp-fab {
        width: 52px;
        height: 52px;
        right: calc(12px + env(safe-area-inset-right, 0px));
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
    .whatsapp-fab svg {
        width: 26px;
        height: 26px;
    }
}


/* Respeta reduce motion */

@media (prefers-reduced-motion: reduce) {
    .whatsapp-fab {
        animation: none;
        transition: none;
    }
    .whatsapp-fab::after {
        animation: none;
    }
}


/* Barra de progreso de scroll bajo el navbar */

.nav-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1049;
    /* por debajo del navbar */
    pointer-events: none;
}

.nav-scroll-progress .bar {
    height: 100%;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, var(--brand), #8AE663);
    transition: transform .2s ease;
}


/* Indicador deslizante del link activo */

.navbar .navbar-nav {
    position: relative;
}

.nav-active-indicator {
    position: absolute;
    bottom: 0;
    height: 2px;
    left: 0;
    width: 0;
    background: var(--brand);
    transition: left .25s ease, width .25s ease;
}


/* Ocultar barras bajo el menú (barra de progreso y subrayado activo) */

.nav-scroll-progress,
.nav-active-indicator {
    display: none !important;
}


/* Navbar: forzar tipografía secundaria en todo el texto */

.navbar,
.navbar a,
.navbar .nav-link,
.navbar .navbar-brand,
.navbar .navbar-text,
.navbar .navbar-toggler {
    font-family: var(--font-secondary), "Proxima Nova", "proxima-nova", "ProximaNova", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}


/* Ripple en nav-link al hacer click */

.navbar .nav-link {
    position: relative;
    overflow: hidden;
}

.navbar .nav-link .ripple {
    position: absolute;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    margin-top: -6px;
    border-radius: 50%;
    background: rgba(61, 209, 82, 0.3);
    animation: nav-ripple .5s ease forwards;
}

@keyframes nav-ripple {
    from {
        transform: scale(0);
        opacity: .6;
    }
    to {
        transform: scale(10);
        opacity: 0;
    }
}

.social-icons a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.25);
    text-decoration: none;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
}

.social-icons a:hover {
    background-color: #fff;
    color: var(--brand);
}

.conditions-section {
    margin: 20px 0;
}

.conditions-section a {
    color: #fff;
    margin: 0 10px;
}

.navbar .navbar-nav .nav-link {
    color: var(--dark);
}

.navbar .navbar-nav .nav-link:hover {
    color: var(--brand);
}

.navbar .navbar-nav .nav-link.active {
    color: var(--brand);
}

.navbar-brand {
    font-size: 28px;
    font-weight: 700;
}

.navbar-brand .dot {
    color: var(--brand);
}

.btn {
    padding: 8px 26px;
    border-radius: 14px;
    /* Estandarización: CTAs en MAYÚSCULAS */
    text-transform: uppercase;
}

.btn-brand {
    border-color: var(--brand);
    background-color: var(--brand);
    color: #fff;
}

.btn-brand:hover {
    background-color: var(--secondary-brand);
    border-color: var(--secondary-brand);
    color: #fff;
}

.intro {
    margin-bottom: 36px;
    text-align: center;
}

.intro p {
    max-width: 500px;
}

.intro h6 {
    color: var(--brand);
    font-weight: 400;
    text-transform: uppercase;
}

.intro h1 {
    margin-top: 15px;
    margin-bottom: 15px;
    /* Estandarización: títulos principales en MAYÚSCULAS para consistencia con el hero */
    text-transform: uppercase;
}

.intro-services {
    text-align: center;
    margin-bottom: 0;
}

.intro-services h6 {
    font-weight: 700;
    letter-spacing: 0.28em;
    color: var(--brand);
    text-transform: uppercase;
}

.intro-services h1 {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.intro-services p {
    max-width: 700px;
    font-size: 1.05rem;
    color: rgba(9, 32, 50, 0.8);
}

.intro-services p:nth-of-type(2) {
    margin-bottom: 28px;
}

.intro-cta {
    display: flex;
    justify-content: center;
}

.section-divider {
    position: relative;
    width: 100%;
    line-height: 0;
    /* Evitar que la ola suba sobre la sección previa y altere el orden visual */
    margin-top: 0;
}

.section-divider svg {
    display: block;
    width: 100%;
    height: auto;
}

.section-divider-soft path {
    fill: rgba(243, 255, 247, 0.92);
}

.info-box img {
    width: 64px;
    height: 64px;
    padding: 6px;
    /* Aire interno moderado sin contenedor circular */
    object-fit: contain;
    display: inline-block;
    margin-top: 2px;
    /* Alinear con tope del h5 */
    filter: none;
}


/* Ajuste fino del título junto al icono */

.info-box h5 {
    margin-top: 0.1rem;
}


/* ================================================= */


/* ABOUT: Spotlight dinámico                         */


/* ================================================= */

.about-spotlight .info-box.feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 12px;
    border-radius: 14px;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
    border: 1px solid rgba(9, 32, 50, 0.08);
    cursor: pointer;
    --feature-accent: var(--brand);
    --feature-badge-bg: rgba(61, 209, 82, .10);
    --feature-shadow: rgba(61, 209, 82, 0.18);
}

.about-spotlight .info-box .icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    font-size: 30px;
    background: var(--feature-badge-bg, rgba(9, 32, 50, .05));
    color: var(--feature-accent, var(--dark));
}

.about-spotlight .info-box.feature.accent-brand {
    --feature-accent: var(--brand);
    --feature-badge-bg: rgba(61, 209, 82, .10);
    --feature-shadow: rgba(61, 209, 82, 0.18);
}

.about-spotlight .info-box.feature.accent-secondary {
    --feature-accent: var(--secondary-brand);
    --feature-badge-bg: rgba(53, 81, 239, .12);
    --feature-shadow: rgba(53, 81, 239, 0.18);
}

.about-spotlight .info-box.feature.accent-alert {
    --feature-accent: var(--alert-brand);
    --feature-badge-bg: rgba(249, 95, 95, .12);
    --feature-shadow: rgba(249, 95, 95, 0.18);
}

.about-spotlight .info-box.feature:hover,
.about-spotlight .info-box.feature:focus {
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(9, 32, 50, .12);
    transform: translateY(-2px);
    outline: none;
}

.about-spotlight .info-box.feature.active {
    border-color: var(--feature-accent);
    box-shadow: 0 18px 44px var(--feature-shadow, rgba(61, 209, 82, 0.18));
}

.spot-visual {
    position: relative;
    min-height: 460px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(9, 32, 50, 0.04), rgba(9, 32, 50, 0.02));
    --spot-accent: var(--brand);
    --spot-accent-soft: rgba(61, 209, 82, 0.18);
    --spot-icon-bg: rgba(61, 209, 82, 0.12);
    --spot-caption-shadow: rgba(9, 32, 50, 0.22);
    --spot-border: rgba(9, 32, 50, 0.08);
    box-shadow: 0 22px 54px rgba(9, 32, 50, 0.16), 0 16px 48px var(--spot-accent-soft, rgba(61, 209, 82, 0.18));
    border: 1px solid var(--spot-border, rgba(9, 32, 50, 0.08));
}

.spot-blob {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(closest-side, rgba(61, 209, 82, .35), rgba(61, 209, 82, 0) 70%);
    filter: blur(32px) saturate(115%);
    transform: scale(1);
    transition: transform .6s ease, background .4s ease, opacity .4s ease;
    opacity: .75;
}

.spot-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 22px;
    transform: scale(1.02);
    transition: transform .35s ease;
}

.spot-icon {
    position: absolute;
    width: 72px;
    height: 72px;
    padding: 0;
    right: 16px;
    top: 16px;
    background: var(--spot-icon-bg, rgba(255, 255, 255, .88));
    border-radius: 16px;
    box-shadow: 0 14px 30px var(--spot-accent-soft, rgba(9, 32, 50, .18));
    backdrop-filter: blur(10px);
}


/* Bootstrap icon variant */

.spot-icon.bi {
    display: grid;
    place-items: center;
    font-size: 36px;
    color: var(--spot-accent, var(--secondary-brand));
}

.spot-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 16px;
    padding: 16px 16px 14px;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .90), rgba(255, 255, 255, .70));
    backdrop-filter: blur(8px);
    box-shadow: 0 16px 34px var(--spot-caption-shadow, rgba(9, 32, 50, .22));
}


/* Variantes de presentación para la imagen del spotlight */

.spot-visual.wide .spot-photo {
    object-position: center 35%;
}

.spot-visual.portrait .spot-photo {
    object-fit: cover;
    object-position: 50% 45%;
}

.spot-visual.soft .spot-photo {
    transform: scale(1.04);
    filter: saturate(1.05) contrast(1.02);
}

.spot-title {
    margin: 0 0 6px;
    font-size: clamp(1.05rem, 2.6vw, 1.4rem);
}

.spot-desc {
    margin: 0;
    font-family: var(--font-secondary);
}

.spot-visual.tilt .spot-photo {
    transform: scale(1.06);
}

@media (max-width: 991.98px) {
    .spot-visual {
        min-height: 360px;
    }
    .spot-icon {
        width: 74px;
        height: 74px;
    }
    .spot-visual.wide .spot-photo {
        object-position: center 30%;
    }
}

@media (max-width: 575.98px) {
    .spot-visual {
        min-height: 300px;
    }
    .spot-caption {
        padding: 12px 12px 10px;
    }
}


/* ================================================= */


/* SECCIÓN DE VALORES - Sticky Cards Horizontal     */


/* ================================================= */

.valores-section {
    padding: 80px 0 100px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fcfa 100%);
    overflow: hidden;
    position: relative;
}

.intro-valores {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}

.intro-valores h6 {
    font-weight: 700;
    margin-bottom: 18px;
}

.intro-valores p {
    max-width: 640px;
    font-size: 1.05rem;
    color: rgba(9, 32, 50, 0.78);
    margin-left: auto;
    margin-right: auto;
}

.valores-scroll-container {
    position: relative;
    width: 100%;
    overflow-x: visible;
    overflow-y: visible;
    padding: 30px 0 40px;
    margin: 0 auto;
    max-width: 1320px;
}


/* Estilizar scrollbar - solo visible en móvil */

.valores-scroll-container::-webkit-scrollbar {
    height: 8px;
}

.valores-scroll-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    margin: 0 20px;
}

.valores-scroll-container::-webkit-scrollbar-thumb {
    background: var(--brand);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.valores-scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-brand);
}


/* Desktop: Grid layout - mostrar todo a la vez */

.valores-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    padding: 0 20px;
    max-width: 100%;
}


/* En pantallas grandes, usar 6 columnas en UNA SOLA FILA (mantener concepto ELASSO) */

@media (min-width: 992px) {
    .valores-track {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 20px;
        padding: 0;
        max-width: 1500px;
        margin: 0 auto;
    }
    .valor-card {
        min-height: 340px;
        padding: 32px 22px;
    }
}


/* En pantallas muy grandes, más espacio entre tarjetas */

@media (min-width: 1400px) {
    .valores-track {
        grid-template-columns: repeat(6, 1fr);
        gap: 28px;
        max-width: 1800px;
    }
    .valor-card {
        min-height: 360px;
        padding: 36px 26px;
    }
}


/* En pantallas intermedias (tablets horizontales), 3 columnas en 2 filas */

@media (min-width: 768px) and (max-width: 991.98px) {
    .valores-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
        padding: 0 20px;
    }
}

.valor-card {
    width: 100%;
    min-height: 300px;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 20px;
    box-shadow: 0 8px 32px rgba(9, 32, 50, 0.08);
    border: 1px solid rgba(61, 209, 82, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* Efecto de fondo sutil */

.valor-card::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(61, 209, 82, 0.06) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.6s ease;
    transform: scale(0.5);
}

.valor-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

.valor-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 48px rgba(9, 32, 50, 0.16);
    border-color: var(--brand);
}

.valor-inicial {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand), #6ee87f);
    border-radius: 50%;
    margin-bottom: 18px;
    box-shadow: 0 12px 28px rgba(61, 209, 82, 0.3);
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.valor-card:nth-child(2) .valor-inicial {
    background: linear-gradient(135deg, var(--secondary-brand), #6e7dff);
    box-shadow: 0 12px 28px rgba(53, 81, 239, 0.3);
}

.valor-card:nth-child(3) .valor-inicial {
    background: linear-gradient(135deg, var(--alert-brand), #ff8a8a);
    box-shadow: 0 12px 28px rgba(249, 95, 95, 0.3);
}

.valor-card:nth-child(4) .valor-inicial {
    background: linear-gradient(135deg, var(--brand), #6ee87f);
    box-shadow: 0 12px 28px rgba(61, 209, 82, 0.3);
}

.valor-card:nth-child(5) .valor-inicial {
    background: linear-gradient(135deg, var(--secondary-brand), #6e7dff);
    box-shadow: 0 12px 28px rgba(53, 81, 239, 0.3);
}

.valor-card:nth-child(6) .valor-inicial {
    background: linear-gradient(135deg, var(--alert-brand), #ff8a8a);
    box-shadow: 0 12px 28px rgba(249, 95, 95, 0.3);
}

.valor-card:hover .valor-inicial {
    transform: scale(1.1) rotate(5deg);
}

.valor-titulo {
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    line-height: 1.35;
    word-wrap: break-word;
}

.valor-descripcion {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--body);
    margin: 0;
    position: relative;
    z-index: 2;
}


/* Hint para scroll - solo visible en móvil */

.valores-scroll-hint {
    text-align: center;
    margin-top: 30px;
    color: var(--brand);
    font-weight: 600;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: pulse-hint 2s ease-in-out infinite;
}

.valores-scroll-hint i {
    font-size: 24px;
    animation: slide-hint 1.5s ease-in-out infinite;
}

@keyframes pulse-hint {
    0%,
    100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

@keyframes slide-hint {
    0%,
    100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(8px);
    }
}


/* Responsive para tablets - cambiar a scroll horizontal */

@media (max-width: 991.98px) {
    .valores-section {
        padding: 60px 0 80px;
    }
    .valores-scroll-container {
        overflow-x: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        cursor: grab;
    }
    .valores-track {
        display: flex;
        gap: 20px;
        padding: 0 20px;
        min-width: min-content;
    }
    .valor-card {
        flex: 0 0 auto;
        width: 280px;
        min-height: 320px;
    }
    /* Mostrar hint de scroll en tablets */
    .valores-scroll-hint {
        display: flex;
    }
}


/* Responsive para móviles */

@media (max-width: 767.98px) {
    .valores-section {
        padding: 36px 0 18px;
    }
    .intro-valores {
        margin-bottom: 40px;
    }
    .intro-valores h1 {
        font-size: 2rem;
    }
    .valores-scroll-container {
        cursor: grab;
    }
    .valores-track {
        gap: 16px;
        padding: 0 20px;
    }
    .valor-card {
        width: 260px;
        min-height: 300px;
        padding: 28px 20px;
    }
    .valor-inicial {
        width: 90px;
        height: 90px;
        font-size: 54px;
        margin-bottom: 18px;
    }
    .valor-titulo {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }
    .valor-descripcion {
        font-size: 0.9rem;
    }
    .valores-scroll-hint {
        display: flex;
        margin-top: 12px;
        margin-bottom: 6px;
        font-size: 0.9rem;
    }
}


/* Ocultar cursor grab en desktop */

@media (min-width: 992px) {
    .valores-scroll-container {
        cursor: default !important;
    }
}

@media (max-width: 767.98px) {
    .services-section {
        padding-top: 32px;
        padding-bottom: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .valor-card,
    .valor-inicial,
    .valores-scroll-container {
        transition: none;
        animation: none;
    }
    .valores-scroll-hint,
    .valores-scroll-hint i {
        animation: none;
    }
}

#milestone {
    padding: 0;
    /* Ahora va después de Servicios con una ola separadora; sin margen extra */
    margin-top: 0;
}

.associations-text-area {
    padding: clamp(80px, 10vw, 120px) 0 clamp(40px, 7vw, 60px);
    background: linear-gradient(180deg, #ffffff 0%, #effbf4 100%);
}

.intro-associations {
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 0;
}

.intro-associations h6 {
    font-weight: 700;
    letter-spacing: 0.28em;
    margin-bottom: 22px;
    color: var(--brand);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.intro-associations h1 {
    font-size: clamp(2rem, 4.2vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}

.intro-associations p {
    max-width: 720px;
    font-size: 1.06rem;
    color: rgba(9, 32, 50, 0.82);
    line-height: 1.74;
    margin-bottom: 14px;
    font-family: var(--font-secondary), "Proxima Nova", "proxima-nova", "ProximaNova", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.intro-associations p:last-of-type {
    margin-bottom: 0;
}

.associations-band {
    position: relative;
    padding: clamp(48px, 7vw, 72px) 0 clamp(48px, 8vw, 80px);
    /* Talleres photo as requested for this section */
    background: linear-gradient(rgba(61, 209, 82, 0.9), rgba(61, 209, 82, 0.9)), url(../img/Talleres-3.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.associations-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(2px);
    pointer-events: none;
    z-index: 1;
}

.associations-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(53, 81, 239, 0.08), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 2;
}

.associations-band .container {
    position: relative;
    z-index: 3;
}

.associations-logos-wrapper {
    margin: clamp(18px, 4vw, 34px) auto 0;
    max-width: min(1120px, 94vw);
    padding: clamp(12px, 2.8vw, 26px);
    background: rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(18, 58, 69, 0.12);
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(9, 30, 52, 0.18);
}

.associations-carousel .owl-stage {
    display: flex;
    align-items: center;
}

.associations-carousel .owl-item {
    display: flex;
    justify-content: center;
    padding: clamp(16px, 3.2vw, 22px);
}

.association-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(220px, 24vw, 280px);
    min-width: 220px;
    max-width: 280px;
    aspect-ratio: 1 / 1;
    height: auto;
    padding: clamp(20px, 2.6vw, 28px);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.97);
    border: 1px solid rgba(18, 58, 69, 0.12);
    box-shadow: 0 18px 32px rgba(9, 30, 52, 0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.association-logo img {
    max-height: 88%;
    max-width: 88%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(9, 30, 52, 0.08));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.association-logo:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 24px 40px rgba(9, 30, 52, 0.2);
    border-color: rgba(18, 58, 69, 0.18);
}

.association-logo:hover img {
    transform: scale(1.04);
    filter: drop-shadow(0 12px 16px rgba(9, 30, 52, 0.2));
}

.association-logo--granada img {
    filter: invert(1) brightness(0.05) contrast(1.15);
}

.association-logo--granada:hover img {
    filter: invert(1) brightness(0.08) contrast(1.2);
}

.associations-footnote {
    margin-top: clamp(16px, 4.5vw, 32px);
    font-size: clamp(.96rem, 1.05vw + .6rem, 1.06rem);
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.service img {
    width: 64px;
    height: 64px;
    padding: 6px;
    object-fit: contain;
    filter: none;
}

/* Ajuste fino: icono de Seguridad y Salud (PNG con margen interno) */
.service .service-icon--safety {
    width: 80px;
    height: 80px;
    padding: 0;
    /* Tinte hacia el verde de marca #1ABC9C sobre PNG monocromo */
    filter: invert(66%) sepia(26%) saturate(1275%) hue-rotate(127deg) brightness(92%) contrast(92%);
}

/* Ajuste fino: icono Extintores (PNG con espacio interno) */
.service .service-icon--extintor {
    width: 80px;
    height: 80px;
    padding: 0; /* anula el padding general para aprovechar área útil */
    object-fit: contain;
}

/* ================================ */
/* Servicios: igualar alturas       */
/* ================================ */
/* Hacemos las columnas flex para que la tarjeta .service pueda estirarse a la misma altura */
.services-section .row.g-4 > [class*="col-"] {
    display: flex;
}
/* La tarjeta ocupa toda la altura disponible del col */
.services-section .service {
    display: flex;
    flex-direction: column;
    height: 100%;
}
/* Empuja el último párrafo (CTA) hacia la parte inferior para alinear visualmente el cierre de todas las tarjetas */
.services-section .service p:last-of-type {
    margin-top: auto;
    margin-bottom: 0; /* evita salto extra al final */
}
/* Centrar siempre el primer ícono (img/svg/i) dentro de la tarjeta */
.services-section .service > img:first-child,
.services-section .service > svg:first-child,
.services-section .service > i:first-child {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 4px;
    margin-bottom: 10px; /* separación uniforme del título */
}

/* Espaciados consistentes dentro de cada tarjeta para alinear visualmente títulos y párrafos */
.services-section .service h5 {
    margin-top: 6px;
    margin-bottom: 14px;
}
.services-section .service p {
    margin-bottom: 12px;
}

@media (max-width: 575.98px) {
    .service .service-icon--safety {
        width: 72px;
        height: 72px;
    }
    .service .service-icon--extintor {
        width: 72px;
        height: 72px;
    }
}

.project {
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.project h6 {
    font-weight: 400;
}

.project h6::before {
    content: "";
    height: 2px;
    width: 30px;
    display: inline-block;
    background: var(--brand);
    vertical-align: middle;
    margin-right: 10px;
}

.project .overlay {
    width: 100%;
    height: 220px;
    position: absolute;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(61, 209, 82, 0) 0%, var(--dark) 100%);
}

.project .content {
    position: absolute;
    left: 10%;
    bottom: 10%
}

.project h2,
.project h6 {
    color: #fff;
}

.team-member {
    text-align: center;
}

.team-member .image {
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.team-member .overlay {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: -10%;
    background-color: rgba(61, 209, 82, 0.7);
    opacity: 0;
    transition: all 0.4s ease;
}

.team-member h5 {
    margin-top: 16px;
    margin-bottom: 4px;
}

.team-member .social-icons {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    transition: all 0.4s ease;
}

.team-member .social-icons a {
    width: 40px;
    height: 40px;
}

.team-member:hover .social-icons {
    top: 50%;
    opacity: 1;
}

.team-member:hover .overlay {
    top: 0%;
    opacity: 1;
}

/* Reviews section now acts as a video hero with overlay and slogan */
.reviews-hero {
    position: relative;
    padding: clamp(68px, 10vw, 120px) 0;
    color: #fff;
    overflow: hidden;
    background: #082032; /* fallback color */
}

.reviews-hero-media { position: absolute; inset: 0; z-index: 0; }
.reviews-hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.reviews-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,32,50,.78), rgba(8,32,50,.78)); }

.reviews-hero .container { position: relative; z-index: 2; }
.reviews-hero-title {
    font-family: var(--font-primary);
    text-transform: uppercase;
    font-size: clamp(1.6rem, 3.6vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 14px;
    color: #3DD152
}
.reviews-hero-sub {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255,255,255,.9);
}

.review {
    text-align: center;
    z-index: 2;
    position: relative;
    margin: 15px;
    max-width: 768px;
    margin: auto;
}

.review .bxs-quote-alt-left {
    font-size: 120px;
    position: absolute;
    opacity: 0.1;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
}

.review img {
    width: 80px !important;
    height: 80px;
    border-radius: 100px;
    margin: auto;
}

.review h5 {
    margin-top: 16px;
    margin-bottom: 4px;
    color: #fff;
}

.review h3 {
    margin-top: 26px;
    margin-bottom: 26px;
    font-size: 22px;
    color: #fff;
    font-weight: 400;
    /* Estandarización: usar tipografía secundaria para descripciones */
    font-family: var(--font-secondary), "Proxima Nova", "proxima-nova", "ProximaNova", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.7;
}

.review small {
    color: var(--brand);
}

.review .stars {
    color: var(--brand);
}

.blog-post {
    position: relative;
    background-color: #fff;
    box-shadow: var(--shadow);
}

.blog-post .content {
    padding: 32px;
}

.blog-post a {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: var(--brand);
    padding: 2px 12px;
    border-radius: 100px;
    text-decoration: none;
    color: #fff;
}

.blog-post h5 {
    margin-top: 12px;
    margin-bottom: 12px;
}

.blog-post small {
    text-transform: uppercase;
    color: var(--brand);
    /* ¡Nuevo color! */
    text-decoration: underline;
}

footer {
    /* Cambiar imagen de fondo del footer */
    background: linear-gradient(0deg, rgba(8, 32, 50, 0.9), rgba(8, 32, 50, 0.9)), url(../img/Talleres-6.webp), #082032;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

footer .footer-top {
    /* Reducir altura del bloque superior del footer */
    padding-top: 56px;
    padding-bottom: 28px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
    padding-top: 20px;
}

footer .navbar-brand {
    color: #fff;
}

footer p {
    color: #ADB3B9;
}

footer .social-icons {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0;
}

footer .social-icons a {
    --footer-icon-primary: rgba(61, 209, 82, 1);
    --footer-icon-secondary: rgba(111, 232, 127, 1);
    --footer-icon-shadow: rgba(61, 209, 82, 0.42);
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--footer-icon-primary), var(--footer-icon-secondary));
    box-shadow: 0 16px 32px var(--footer-icon-shadow);
    transition: transform .35s ease, box-shadow .35s ease, filter .35s ease;
}

footer .social-icons a i {
    position: relative;
    z-index: 2;
}

footer .social-icons a::after {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 65%);
    opacity: 0.35;
    transform: scale(0.85);
    filter: blur(0);
    z-index: 0;
    animation: footerIconPulse 6.4s ease-in-out infinite;
}

footer .social-icons a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
    opacity: 0;
    z-index: 1;
    transition: opacity .35s ease;
}

footer .social-icons a:nth-child(2) {
    --footer-icon-primary: rgba(53, 81, 239, 1);
    --footer-icon-secondary: rgba(110, 125, 255, 1);
    --footer-icon-shadow: rgba(53, 81, 239, 0.45);
}

footer .social-icons a:nth-child(3) {
    --footer-icon-primary: rgba(249, 95, 95, 1);
    --footer-icon-secondary: rgba(255, 138, 138, 1);
    --footer-icon-shadow: rgba(249, 95, 95, 0.45);
}

footer .social-icons a:hover,
footer .social-icons a:focus {
    transform: translateY(-8px) scale(1.05);
    filter: brightness(1.05);
    box-shadow: 0 22px 40px var(--footer-icon-shadow);
}

footer .social-icons a:hover::before,
footer .social-icons a:focus::before {
    opacity: 0.65;
}

footer .social-icons a:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.75);
    outline-offset: 4px;
}

@keyframes footerIconPulse {
    0%,
    100% {
        opacity: 0.25;
        transform: scale(0.8);
    }
    45% {
        opacity: 0.55;
        transform: scale(1.08);
    }
    60% {
        opacity: 0.4;
        transform: scale(0.95);
    }
}

@media (prefers-reduced-motion: reduce) {
    footer .social-icons a::after {
        animation: none;
    }
    footer .social-icons a {
        transition-duration: .2s;
    }
}

footer .footer-brand-block {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    padding: 28px 24px;
    /* antes 36px 32px */
    gap: 18px;
    /* antes 24px */
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 520px;
    min-height: 240px;
    /* antes 320px */
}

footer .footer-logo {
    color: #fff;
    text-decoration: none;
}

footer .footer-logo:hover,
footer .footer-logo:focus {
    color: var(--brand);
}

footer .footer-description {
    color: #CFD5DB;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

footer .footer-social {
    display: flex;
    justify-content: center;
}

footer .footer-legal {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

footer .legal-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

footer .legal-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

footer .legal-link:hover,
footer .legal-link:focus {
    color: var(--brand);
}

footer .legal-divider {
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
}

footer .footer-map {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    text-align: center;
    width: 100%;
}

footer .footer-map iframe {
    border: 0;
}

footer .footer-map-link {
    color: #fff;
    font-weight: 500;
    text-decoration: none;
}

footer .footer-map-link:hover,
footer .footer-map-link:focus {
    color: var(--brand);
}

footer .footer-bottom p {
    color: #CFD5DB;
}

footer .footer-bottom a {
    color: var(--brand);
    font-weight: 600;
}

footer .footer-bottom a:hover,
footer .footer-bottom a:focus {
    color: #6ee27e;
}

footer .footer-map-card {
    width: 100%;
    max-width: 520px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0px 18px 45px rgba(0, 0, 0, 0.35);
    min-height: 320px;
    display: flex;
    height: 100%;
    position: relative;
    background: radial-gradient(120% 120% at 50% 10%, rgba(9, 32, 50, 0.65), rgba(9, 32, 50, 0.9));
}

footer .footer-map-card iframe {
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 320px;
    opacity: 0;
    transition: opacity .35s ease;
}

footer .footer-map-card iframe.is-loaded {
    opacity: 1;
}

.footer-map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(140deg, rgba(9, 32, 50, 0.92) 0%, rgba(9, 32, 50, 0.76) 85%);
    color: #ffffff;
    text-align: center;
    transition: opacity .35s ease;
}

.footer-map-placeholder.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.footer-map-spinner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.28);
    border-top-color: #ffffff;
    animation: footer-map-spin 1s linear infinite;
}

.footer-map-hint {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.footer-map [data-map-trigger] {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
    background: transparent;
}

.footer-map [data-map-trigger]:hover,
.footer-map [data-map-trigger]:focus {
    color: #092032;
    border-color: #ffffff;
    background: #ffffff;
}

@keyframes footer-map-spin {
    to {
        transform: rotate(360deg);
    }
}

.loader {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--brand);
    z-index: 99999;
    position: fixed;
    left: 0;
    right: 0;
}

input.form-control {
    border-color: transparent;
    height: 44px;
}

.form-control {
    position: relative;
    /* Mostrar solo el recuadro: sin fondo adicional */
    background: transparent !important;
    border-color: var(--brand);
}


/*Añadidos por Esmeralda*/


/*--------------------------------------*/


/* ------------------------------------------------- */


/* SECCIÓN DEL SLIDER (Estado Futuro)                */


/* ------------------------------------------------- */

#casos-de-exito {
    padding: 60px 0;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#casos-de-exito h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: var(--secondary-brand);
    font-weight: 700;
}

.slider-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    /* Oculta el contenido fuera del límite */
    padding: 20px 60px;
    /* Espacio para las flechas */
    max-height: 520px;
}


/* ------------------------------------------------- */


/* SLIDER (Contenedor de tarjetas)                   */


/* ------------------------------------------------- */

.slider-track {
    display: flex;
    flex-wrap: nowrap;
    /* Fuerza a que las tarjetas se mantengan en una sola línea */
    gap: 30px;
    transition: transform 0.5s ease;
    /* Suaviza el deslizamiento */
}


/* ------------------------------------------------- */


/* NAVEGACIÓN (Flechas)                              */


/* ------------------------------------------------- */

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--secondary-brand);
    /* Azul Elasso */
    color: white;
    border: none;
    padding: 12px 18px;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5em;
    border-radius: 50%;
    transition: background-color 0.3s, opacity 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.slider-nav:hover:not(:disabled) {
    background-color: #284260;
}

.slider-nav:disabled {
    cursor: default;
    opacity: 0.3;
}


/* ================================================= */


/* 3. ESTADO INICIAL (Sin Datos)                     */


/* ================================================= */

#estado-inicial {
    padding: 60px 0;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contenido-inicial {
    text-align: center;
    padding: 80px 40px;
}

.contenido-inicial .label {
    color: var(--brand);
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
}

.contenido-inicial h3 {
    /* Alinear con títulos de otras secciones (intro h1) */
    color: var(--dark);
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    line-height: 1.1;
    margin-bottom: 24px;
    font-weight: 800;
    text-transform: uppercase;
}

.mensaje-anticipacion p {
    /* Alinear con intro-services p y textos descriptivos */
    max-width: 700px;
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 auto 16px auto;
    color: rgba(9, 32, 50, 0.8);
    font-family: var(--font-secondary), "Proxima Nova", "proxima-nova", "ProximaNova", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.grid-vista-previa {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.bloque-preview {
    width: 30%;
    height: 120px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s;
    overflow: hidden;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    background-size: cover;
    background-position: center;
}

.bloque-preview:hover {
    transform: scale(1.05);
}


/* Colores de fondo y iconos SVG para cada pilar EHS */


/* 1. Medio Ambiente (Verde) - Icono de Crecimiento */

.grid-vista-previa .bloque-preview:nth-child(1) {
    background-color: var(--brand);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M12 20V10M18 20V4M6 20v-4"/><path d="M1 18l5-5 5 5V6l5-5 5 5"/></svg>');
    background-repeat: no-repeat;
    background-position: 50% 30%;
    /* Posicionar el icono un poco más arriba */
    background-size: 50px 50px;
}


/* 2. Salud Ocupacional (Azul) - Icono de Protección/Cuidado */

.grid-vista-previa .bloque-preview:nth-child(2) {
    background-color: var(--secondary-brand);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>');
    background-repeat: no-repeat;
    background-position: 50% 30%;
    background-size: 50px 50px;
}


/* 3. Seguridad Industrial (Rojo) - Icono de Logro/Check */

.grid-vista-previa .bloque-preview:nth-child(3) {
    background-color: var(--alert-brand);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><path d="M22 4L12 14.01l-3-3"/></svg>');
    background-repeat: no-repeat;
    background-position: 50% 30%;
    background-size: 50px 50px;
}

.bloque-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent 70%);
    z-index: 1;
}

.bloque-preview>* {
    z-index: 2;
}

.bloque-preview span {
    margin-top: 60px;
    font-size: 1rem;
    font-family: var(--font-secondary), "Proxima Nova", "proxima-nova", "ProximaNova", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}


/* ================================================= */


/* 4. (La Tarjeta del Caso de Éxito                  */


/* ================================================= */

.caso-card {
    min-height: 490px;
    flex: 0 0 calc((100% / 3) - 20px);
    /* 3 tarjetas visibles con espacio */
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.caso-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}


/* Espacio para la imagen principal del caso de éxito */

.card-image-placeholder {
    width: 100%;
    height: 160px;
    background-color: var(--elasso-light-gray);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: var(--body);
    text-align: center;
    background-image: url('https://placehold.co/400x160/D9D9D9/4A4A4A?text=FOTO+DEL+CASO');
    /* Placeholder */
    background-size: cover;
    background-position: center;
    position: relative;
}

.card-content {
    padding: 15px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.logo-cliente {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 50%;
    background-color: white;
    /* Logo sobre la imagen del caso */
    border: 3px solid white;
    position: absolute;
    /* Posicionamiento absoluto para el logo */
    bottom: -25px;
    /* Mitad de la altura del logo */
    left: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tag-industria {
    align-self: flex-start;
    background-color: var(--brand);
    /* Verde EHS para Ambiente/Industria */
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 15px;
    margin-top: 15px;
}

.caso-card h4 {
    font-size: 1.3em;
    color: var(--secondary-brand);
    margin-bottom: 5px;
    font-weight: 700;
}

.resumen-problema {
    font-size: 0.95em;
    color: var(--body);
    margin-bottom: 10px;
}

.metrica-clave {
    font-size: 2em;
    font-weight: 700;
    color: var(--elasso-red);
    margin-top: auto;
    margin-bottom: 5px;
    line-height: 1;
}

.metrica-clave span {
    display: block;
    font-size: 0.8em;
    font-weight: normal;
    color: var(--body);
}


/* ================================================= */


/* 5. RESPONSIVE DESIGN Casos de éxito                */


/* ================================================= */

@media (max-width: 992px) {
    /* Tablet: 2 tarjetas visibles */
    .caso-card {
        flex: 0 0 calc((100% / 2) - 15px);
        min-height: 420px;
    }
    .slider-container {
        padding: 20px 40px;
        max-height: 450px;
    }
}

@media (max-width: 600px) {
    /* Móvil: 1 tarjeta visible */
    .caso-card {
        flex: 0 0 100%;
        min-height: auto;
    }
    .slider-container {
        padding: 20px 5px;
    }
    .slider-nav {
        padding: 8px 12px;
        font-size: 1.2em;
    }
    .grid-vista-previa {
        flex-direction: column;
        align-items: center;
    }
    .bloque-preview {
        width: 90%;
        margin-bottom: 15px;
        background-position: 50% 20%;
        background-size: 40px 40px;
    }
}


/*--------------------------------------*/


/*TERMINA Añadidos por Esmeralda*/


/*--------------------------------------*/


/* --- Contact Form Enhancements --- */

.modal-content {
    border: 0;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(9, 32, 50, 0.15);
    background: transparent;
    max-height: calc(100vh - 24px);
    display: flex;
    flex-direction: column;
}

.modal-dialog {
    margin: .9rem auto;
    max-width: 900px;
}

@media (min-width: 992px) {
    .modal-dialog {
        max-width: 850px;
    }
}

.modal-body {
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100vh - 100px);
    overscroll-behavior: contain;
    padding: 0;
    background: transparent;
}

@media (min-width: 992px) {
    .modal-body {
        max-height: none;
    }
    .modal-body.form-only-modal {
        overflow-y: auto;
        overflow-x: hidden;
        max-height: calc(100vh - 180px);
        -webkit-overflow-scrolling: touch;
        padding: 0 16px;
    }
}


/* Eliminado el fondo para evitar recuadro dentro de recuadro */

.modal-body.form-only-modal {
    background: transparent;
}

.contact-form {
    position: relative;
    --contact-accent: #3551EF;
    --contact-accent-soft: rgba(53, 81, 239, 0.12);
    --contact-accent-strong: rgba(53, 81, 239, 0.32);
    padding: clamp(26px, 5vw, 40px) clamp(22px, 6vw, 48px) clamp(28px, 5.5vw, 44px);
    border-radius: clamp(16px, 4vw, 24px);
    background: #ffffff;
    border: 1px solid rgba(53, 81, 239, 0.08);
    box-shadow: 0 16px 46px rgba(9, 32, 50, 0.12);
    margin: 0;
}

.contact-form.row {
    --bs-gutter-x: clamp(16px, 4vw, 28px);
    --bs-gutter-y: clamp(14px, 4vw, 26px);
}

@media (min-width: 992px) {
    .contact-form {
        padding: clamp(32px, 4vw, 48px) clamp(36px, 5vw, 56px) clamp(32px, 4.5vw, 52px);
        max-width: min(920px, 92%);
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 575.98px) {
    .contact-form {
        box-shadow: 0 12px 28px rgba(9, 32, 50, 0.1);
    }
    .contact-form.row {
        --bs-gutter-x: clamp(12px, 5vw, 20px);
        --bs-gutter-y: clamp(12px, 6vw, 24px);
    }
}

.contact-form::before {
    content: "";
    position: absolute;
    width: clamp(140px, 35vw, 220px);
    height: clamp(140px, 35vw, 220px);
    top: clamp(-18%, -6vw, -8%);
    right: clamp(-26%, -10vw, -12%);
    background: radial-gradient(circle at center, rgba(53, 81, 239, 0.08) 0%, rgba(53, 81, 239, 0) 70%);
    pointer-events: none;
    border-radius: 50%;
}

@media (max-width: 575.98px) {
    .contact-form::before {
        top: clamp(-24%, -10vw, -14%);
        right: clamp(-34%, -12vw, -18%);
    }
}

.contact-form>* {
    position: relative;
    z-index: 1;
}

.modal-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid rgba(9, 32, 50, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.98));
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}


/* Mantener visible el botón de envío dentro del modal */


/* El botón se movió al modal-footer; no se necesita sticky aquí */

.contact-heading {
    text-align: center;
    margin-bottom: clamp(26px, 5vw, 44px);
}

.contact-heading::before {
    content: "Asesoría personalizada";
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.2rem;
    border-radius: 999px;
    background: rgba(53, 81, 239, 0.14);
    color: var(--secondary-brand);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border: 1px solid rgba(53, 81, 239, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.contact-form h1 {
    font-size: clamp(1.45rem, 4vw, 1.9rem);
    line-height: 1.2;
    margin-bottom: clamp(0.35rem, 1.5vw, 0.55rem);
    color: var(--dark);
}

.contact-form p {
    color: rgba(9, 32, 50, 0.66);
    max-width: clamp(280px, 80vw, 540px);
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(0.88rem, 2.6vw, 1rem);
}

.contact-heading {
    margin-bottom: 1.25rem;
}

@media (min-width: 992px) {
    .contact-heading {
        margin-bottom: 1.5rem;
    }
}

.contact-form .form-label {
    font-weight: 600;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    letter-spacing: 0.01em;
    color: rgba(9, 32, 50, 0.78);
    margin-bottom: clamp(0.32rem, 1.4vw, 0.5rem);
}

.contact-form .nice-input {
    display: flex;
    align-items: stretch;
    border-radius: clamp(12px, 3vw, 16px);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(53, 81, 239, 0.14);
    box-shadow: 0 10px 24px rgba(9, 32, 50, 0.08);
    overflow: hidden;
    transition: border-color .28s ease, box-shadow .28s ease, transform .28s ease, background .28s ease;
}

.contact-form .nice-input .input-group-text {
    background: linear-gradient(180deg, rgba(53, 81, 239, 0.18), rgba(53, 81, 239, 0.05));
    border: 0;
    border-right: 1px solid rgba(53, 81, 239, 0.18);
    color: var(--secondary-brand);
    padding: clamp(0.6rem, 2vw, 0.85rem) clamp(0.7rem, 2.4vw, 0.95rem);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 2.6vw, 1.2rem);
    min-width: clamp(44px, 12vw, 56px);
    border-radius: clamp(10px, 2.5vw, 14px) 0 0 clamp(10px, 2.5vw, 14px);
}

.contact-form .nice-input input.form-control,
.contact-form .nice-input textarea.form-control {
    border: 0;
    background: transparent;
    padding: clamp(0.6rem, 2.2vw, 0.95rem) clamp(0.75rem, 2.8vw, 1.1rem);
    font-size: clamp(0.95rem, 2.6vw, 1.05rem);
    color: var(--dark);
    line-height: 1.5;
}

.contact-form .nice-input textarea.form-control {
    min-height: clamp(120px, 32vw, 180px);
    resize: vertical;
    padding-top: clamp(0.65rem, 2vw, 0.9rem);
}

.contact-form .nice-input .input-group-text i {
    color: inherit;
    line-height: 1;
}

.contact-form .nice-input .form-control,
.contact-form .nice-input .form-select {
    border: 0;
    background: transparent;
    color: rgba(9, 32, 50, 0.88);
    font-weight: 500;
    font-size: clamp(0.95rem, 2.4vw, 1.05rem);
    line-height: 1.45;
    padding: clamp(0.65rem, 2.2vw, 0.95rem) clamp(0.9rem, 2.8vw, 1.15rem);
    transition: color .28s ease, background .28s ease;
    box-shadow: none;
    min-height: clamp(48px, 15vw, 60px);
}

.contact-form .nice-input .form-control::placeholder,
.contact-form .nice-input textarea.form-control::placeholder {
    color: rgba(9, 32, 50, 0.42);
}



.contact-form .nice-input select.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%233551EF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1.3rem center;
    background-size: 16px;
    padding-right: 3rem;
    cursor: pointer;
}

.contact-form .nice-input select.form-select:focus {
    background-color: transparent;
    color: rgba(9, 32, 50, 0.9);
}

.contact-form .nice-input.textarea .input-group-text {
    align-items: flex-start;
    padding-top: 0.85rem;
}

.contact-form #submitBtn {
    min-width: 180px;
    max-width: 280px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    background: linear-gradient(100deg, #3551EF 0%, #3DD152 78%);
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 2.2rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: #fff;
    box-shadow: 0 12px 28px rgba(53, 81, 239, 0.2);
    transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
    margin: 0.5rem auto 0;
}

.contact-form #submitBtn::after {
    content: "→";
    font-size: 1.15rem;
    transform: translateX(0);
    transition: transform .22s ease;
}

.contact-form #submitBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(53, 81, 239, 0.22);
    filter: brightness(1.04);
}

.contact-form #submitBtn:hover::after {
    transform: translateX(4px);
}

.contact-form #submitBtn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(53, 81, 239, 0.24), 0 22px 48px rgba(61, 209, 82, 0.18);
}

.contact-form #submitBtn:active {
    transform: translateY(0);
    box-shadow: 0 16px 36px rgba(53, 81, 239, 0.18);
}

@media (max-height: 900px) {
    .form-only-modal .contact-form {
        padding: 30px 26px 32px;
        margin: 12px auto 20px;
    }
    .form-only-modal .contact-heading {
        margin-bottom: 22px;
    }
    .form-only-modal .contact-heading::before {
        margin-bottom: 0.85rem;
    }
    .form-only-modal .contact-form.row {
        --bs-gutter-y: .75rem;
    }
    .form-only-modal .nice-input .form-control,
    .form-only-modal .nice-input .form-select {
        min-height: 52px;
    }
    .form-only-modal .nice-input.textarea textarea {
        min-height: 96px;
    }
}

@media (max-height: 780px) {
    .form-only-modal .contact-form {
        padding: 24px 20px 26px;
    }
    .form-only-modal .contact-form h1 {
        font-size: 1.9rem;
    }
    .form-only-modal .contact-form p {
        font-size: .95rem;
    }
    .form-only-modal .contact-form.row {
        --bs-gutter-y: .6rem;
    }
    .form-only-modal .nice-input .input-group-text,
    .form-only-modal .nice-input .form-control,
    .form-only-modal .nice-input .form-select {
        padding-top: .55rem;
        padding-bottom: .55rem;
    }
    .form-only-modal .nice-input .form-control,
    .form-only-modal .nice-input .form-select {
        min-height: 46px;
    }
    .form-only-modal .nice-input.textarea textarea {
        min-height: 78px;
    }
    .form-only-modal #submitBtn {
        width: 100%;
        margin-top: 6px;
    }
}

@media (max-height: 680px) {
    .form-only-modal .contact-form {
        padding: 20px 16px 22px;
    }
    .form-only-modal .contact-heading::before {
        font-size: 0.7rem;
        letter-spacing: 0.12em;
    }
    .form-only-modal .contact-form h1 {
        font-size: 1.75rem;
    }
    .form-only-modal .contact-form p {
        font-size: 0.9rem;
    }
    .form-only-modal .contact-form.row {
        --bs-gutter-y: .5rem;
    }
    .form-only-modal .nice-input .form-control,
    .form-only-modal .nice-input .form-select {
        min-height: 40px;
    }
    .form-only-modal .nice-input.textarea textarea {
        min-height: 66px;
    }
}

.section-reveal {
    --section-reveal-transform: translate3d(0, 28px, 0);
}

.section-reveal[data-reveal="from-left"] {
    --section-reveal-transform: translate3d(-28px, 0, 0);
}

.section-reveal[data-reveal="from-right"] {
    --section-reveal-transform: translate3d(28px, 0, 0);
}

.section-reveal[data-reveal="zoom-in"] {
    --section-reveal-transform: scale(0.96);
}

body.reveal-enabled .section-reveal {
    opacity: 0;
    transform: var(--section-reveal-transform);
    transition: opacity .65s ease, transform .65s ease;
}

body.reveal-enabled .section-reveal.is-visible {
    opacity: 1;
    transform: none;
}

body.reveal-enabled .section-reveal[data-reveal="zoom-in"].is-visible {
    transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
    body.reveal-enabled .section-reveal {
        transition: none;
        transform: none !important;
        opacity: 1 !important;
    }
}


/* ============================= */


/* Element-level stagger reveals */


/* ============================= */

.reveal-list .reveal-item {
    opacity: 0;
    transform: var(--ri-transform, translate3d(0, 14px, 0));
    filter: var(--ri-filter, blur(0.4px));
    transition-property: opacity, transform, filter;
    transition-duration: var(--ri-duration, 650ms);
    transition-timing-function: var(--ri-ease, cubic-bezier(.22, .9, .22, 1));
    transition-delay: var(--ri-delay, 0ms);
    transform-origin: var(--ri-origin, center);
}

.reveal-list.is-visible .reveal-item.is-shown {
    opacity: 1;
    transform: none;
    filter: none;
}


/* Variants: set the initial transform via CSS vars for variety */

.ri-fade-left {
    --ri-transform: translate3d(-18px, 0, 0);
}

.ri-fade-right {
    --ri-transform: translate3d(18px, 0, 0);
}

.ri-fade-up {
    --ri-transform: translate3d(0, 18px, 0);
}

.ri-fade-down {
    --ri-transform: translate3d(0, -18px, 0);
}

.ri-zoom-in {
    --ri-transform: scale(0.96);
}

.ri-pop {
    --ri-transform: scale(0.92);
    --ri-ease: cubic-bezier(.16, .84, .44, 1);
}

.ri-tilt-in {
    --ri-transform: perspective(700px) rotateX(6deg) translate3d(0, 10px, 0);
    --ri-origin: top;
}

.ri-blur-in {
    --ri-filter: blur(3px);
}


/* Reduced motion: reveal immediately */

@media (prefers-reduced-motion: reduce) {
    .reveal-list .reveal-item {
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

.btn.btn-brand.btn-lg {
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 700;
}


/* Appearing animation for fields */

.animate-item {
    opacity: 0;
    transform: translateY(6px);
    animation: itemIn .45s ease forwards;
}

.animate-item:nth-child(1) {
    animation-delay: .05s;
}

.animate-item:nth-child(2) {
    animation-delay: .10s;
}

.animate-item:nth-child(3) {
    animation-delay: .15s;
}

.animate-item:nth-child(4) {
    animation-delay: .20s;
}

.animate-item:nth-child(5) {
    animation-delay: .25s;
}

.animate-item:nth-child(6) {
    animation-delay: .30s;
}

.animate-item:nth-child(7) {
    animation-delay: .35s;
}

@keyframes itemIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Nicer alerts inside form */

#formAlert.alert {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 18px 36px rgba(53, 81, 239, .16);
}

#formAlert.alert-success {
    background-color: rgba(61, 209, 82, 0.22);
    color: #0c4a21;
    border-left: 4px solid var(--brand);
}

#formAlert.alert-danger {
    background-color: rgba(249, 95, 95, 0.22);
    color: #6c1d1d;
    border-left: 4px solid var(--alert-brand);
}

.contact-photo-column {
    display: flex;
    padding: 0 !important;
}

.contact-photo-pane {
    flex: 1;
    min-height: 320px;
    height: 100%;
    border-radius: 22px 0 0 22px;
    position: relative;
    overflow: hidden;
}

.contact-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-photo-pane::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(9, 32, 50, 0.18);
    pointer-events: none;
}

@media (max-width: 991.98px) {
    .association-logo {
        width: clamp(200px, 38vw, 240px);
        min-width: 200px;
        max-width: 240px;
        aspect-ratio: 1 / 1;
        padding: clamp(18px, 4.2vw, 26px);
    }
    .association-logo img {
        max-height: 80%;
        max-width: 80%;
    }
    .associations-logos-wrapper {
        max-width: min(980px, 94vw);
        padding: clamp(12px, 4.6vw, 24px);
    }
    /* --- Glassmorphism for contact modal --- */
    .glass-surface {
        position: relative;
        overflow: hidden;
    }
    .glass-bg {
        position: absolute;
        inset: 0;
        background: radial-gradient(115% 115% at 0% 8%, rgba(53, 81, 239, 0.18), rgba(53, 81, 239, 0) 42%), radial-gradient(120% 130% at 100% 92%, rgba(61, 209, 82, 0.22), rgba(61, 209, 82, 0) 48%);
        filter: saturate(115%);
        pointer-events: none;
    }
    .glass-card {
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid rgba(53, 81, 239, 0.12);
        border-radius: 24px;
        box-shadow: 0 18px 44px rgba(9, 32, 50, 0.14);
    }
    .glass-card .form-label {
        color: rgba(9, 32, 50, 0.78);
    }
    /* Centrar el botón inferior */
    .form-only-modal #submitBtn {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
    .contact-form .btn-brand {
        background: var(--alert-brand);
        border: 0;
        box-shadow: 0 20px 42px rgba(249, 95, 95, 0.26);
        transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
        margin-top: 0.35rem;
        margin-bottom: 0.15rem;
        padding-inline: clamp(1.65rem, 3.4vw, 2.6rem);
    }
    .contact-form .btn-brand:hover {
        filter: brightness(1.05);
        transform: translateY(-1px);
        box-shadow: 0 24px 48px rgba(249, 95, 95, 0.32);
    }
    .contact-form .btn-brand:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(249, 95, 95, 0.26), 0 20px 44px rgba(61, 209, 82, 0.18);
    }
    .contact-form .btn-brand:active {
        transform: translateY(0);
        box-shadow: 0 16px 32px rgba(249, 95, 95, 0.28);
    }
    .btn-brand.btn-lg {
        position: relative;
        overflow: hidden;
    }
    .btn-brand.btn-lg::after {
        content: "";
        position: absolute;
        top: -40%;
        left: -10%;
        width: 30%;
        height: 180%;
        transform: rotate(25deg);
        background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
        filter: blur(6px);
        opacity: 0;
        transition: opacity .25s ease, left .6s ease;
    }
    .btn-brand.btn-lg:hover::after {
        opacity: .9;
        left: 110%;
    }
    /* --- Form-only modal variant (no image) --- */
    .form-only-modal {
        position: relative;
        /* mostrar solo el recuadro del formulario; sin fondo adicional */
        background: transparent !important;
    }
    .form-only-modal .glass-bg {
        /* mostrar capa de fondo del efecto glass */
        display: block !important;
        opacity: .75;
    }
    .form-only-modal .contact-form.glass-card {
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid rgba(9, 32, 50, 0.06);
        box-shadow: 0 20px 48px rgba(9, 32, 50, 0.14), 0 4px 12px rgba(53, 81, 239, 0.08);
        border-top-color: rgba(61, 209, 82, 0.65);
    }
    .form-only-modal .form-label {
        color: rgba(9, 32, 50, 0.82);
    }
    .form-only-modal .contact-heading .contact-title {
        background: linear-gradient(90deg, #3551EF 0%, #3DD152 70%, #F95F5F 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
    .form-only-modal .contact-form {
        margin: 14px auto 26px;
    }
    /* Centrar encabezado y compactar su texto */
    .form-only-modal .contact-heading {
        text-align: center;
    }
    .form-only-modal .contact-heading p {
        margin-top: 6px;
        margin-bottom: 12px;
    }
    /* Mantener scroll sano dentro del modal en pantallas pequeñas */
    /* El modal debe desplazarse si el contenido es más alto que la ventana */
    .modal-body.form-only-modal {
        max-height: calc(100vh - 120px) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    /* El formulario en sí no fuerza altura; el scroll vive en .modal-body */
    .form-only-modal .contact-form {
        max-height: none !important;
        overflow: visible !important;
    }
    /* Compactaciones suaves para caber en pantallas más bajas */
    @media (max-height: 820px) {
        .form-only-modal .contact-form {
            padding: 28px 22px;
        }
        .form-only-modal .contact-form h1 {
            font-size: 2.1rem;
            margin-bottom: 6px;
        }
        .form-only-modal .contact-form .form-label {
            margin-bottom: .25rem;
        }
        .form-only-modal .contact-form.row {
            --bs-gutter-y: .75rem;
        }
        .form-only-modal input.form-control,
        .form-only-modal select.form-select {
            height: 40px;
        }
        .form-only-modal .nice-input .input-group-text,
        .form-only-modal .nice-input .form-control,
        .form-only-modal .nice-input .form-select {
            padding-top: .55rem;
            padding-bottom: .55rem;
        }
        .form-only-modal .nice-input.textarea textarea {
            min-height: 88px;
        }
    }
    @media (max-height: 720px) {
        .form-only-modal .contact-form {
            padding: 22px 18px;
        }
        .form-only-modal .contact-form h1 {
            font-size: 1.85rem;
        }
        .form-only-modal .contact-form.row {
            --bs-gutter-y: .5rem;
        }
        .form-only-modal input.form-control,
        .form-only-modal select.form-select {
            height: 38px;
        }
        .form-only-modal .nice-input .input-group-text,
        .form-only-modal .nice-input .form-control,
        .form-only-modal .nice-input .form-select {
            padding-top: .45rem;
            padding-bottom: .45rem;
        }
        .form-only-modal .nice-input.textarea textarea {
            min-height: 78px;
        }
    }
    @media (max-height: 650px) {
        .form-only-modal .contact-form {
            padding: 18px 14px;
        }
        .form-only-modal .contact-form h1 {
            font-size: 1.7rem;
        }
        .form-only-modal .contact-form p {
            font-size: .95rem;
        }
        .form-only-modal .contact-form.row {
            --bs-gutter-y: .45rem;
        }
        .form-only-modal .nice-input.textarea textarea {
            min-height: 60px;
        }
        .form-only-modal #submitBtn {
            width: 100%;
        }
    }
    .form-only-modal #submitBtn {
        margin-top: 4px;
    }
    /* --- Responsive refinements --- */
    @media (max-width: 1199.98px) {
        .hero-slider .display-3 {
            font-size: 3.4rem;
        }
        .contact-form h1 {
            font-size: 2.6rem;
        }
        .intro h1 {
            font-size: 2.8rem;
        }
    }
    @media (max-width: 991.98px) {
        .association-logo {
            width: clamp(220px, 42vw, 280px);
            height: clamp(140px, 26vw, 180px);
            padding: clamp(16px, 4vw, 22px);
        }
        .association-logo img {
            max-height: 110px;
        }
        .associations-logos-wrapper {
            max-width: min(880px, 92vw);
            padding: clamp(10px, 4vw, 20px);
        }
    }
    .hero-slider h6 {
        font-size: .95rem;
        letter-spacing: .15em;
    }
    .hero-slider .btn {
        padding: 10px 30px;
    }
    .top-nav p {
        font-size: .9rem;
    }
    .intro h1 {
        font-size: 2.4rem;
    }
    .intro p {
        font-size: 1rem;
    }
    .service {
        padding: 28px;
    }
    .associations-text-area {
        padding: 72px 0 40px;
    }
    .intro-associations h1 {
        font-size: 2.6rem;
    }
    .associations-band {
        padding: 48px 0 66px;
    }
    .association-logo {
        height: 150px;
    }
    .review h3 {
        font-size: 1.15rem;
    }
    .contact-form {
        padding: 44px 32px 54px;
    }
    .contact-photo-pane::after {
        background-color: rgba(9, 32, 50, 0.22);
    }
}

@media (max-width: 767.98px) {
    section {
        padding-top: 50px;
        padding-bottom: 50px;
    }
    .navbar-brand {
        font-size: 26px;
    }
    .hero-slider .display-3 {
        font-size: 2.3rem;
    }
    .hero-slider h6 {
        font-size: .85rem;
        letter-spacing: .12em;
    }
    .hero-slider .btn {
        display: block;
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .hero-slider .btn+.btn {
        margin-top: 12px;
    }
    .info-box img {
        width: 72px;
    }
    .associations-text-area {
        padding: 60px 0 34px;
    }
    .intro-associations h1 {
        font-size: 2.2rem;
    }
    .associations-band {
        padding: 48px 0 62px;
    }
    .association-logo {
        width: clamp(170px, 60vw, 200px);
        min-width: 170px;
        max-width: 200px;
        aspect-ratio: 1 / 1;
        padding: clamp(16px, 5vw, 24px);
    }
    .association-logo img {
        max-height: 78%;
        max-width: 78%;
    }
    .associations-logos-wrapper {
        max-width: min(860px, 94vw);
        padding: clamp(12px, 6vw, 22px);
    }
    .section-divider {
        margin-top: 0;
    }
    .project .overlay {
        height: 100%;
    }
    .project .content {
        left: 8%;
        bottom: 12%;
    }
    .review {
        padding: 0 12px;
    }
    .review h3 {
        font-size: 1.05rem;
        line-height: 1.6;
    }
    .blog-post .content {
        padding: 24px;
    }
    footer .footer-top {
        padding-top: 42px;
        padding-bottom: 22px;
    }
    .contact-form {
        padding: 30px 20px 42px;
        border-radius: 24px;
    }
    .contact-form::before {
        width: min(220px, 52vw);
        height: min(220px, 52vw);
        top: -28%;
        right: -34%;
    }
}

@media (max-width: 575.98px) {
    body {
        font-size: .98rem;
    }
    section {
        padding-top: 42px;
        padding-bottom: 42px;
    }
    .top-nav p {
        font-size: .82rem;
    }
    .hero-slider .display-3 {
        font-size: 1.9rem;
    }
    .hero-slider h6 {
        font-size: .8rem;
        letter-spacing: .08em;
    }
    .hero-slider .btn {
        font-size: .95rem;
    }
    .intro h1 {
        font-size: 2.05rem;
    }
    .intro p {
        font-size: .95rem;
    }
    .service {
        padding: 22px;
    }
    .service img {
        width: 64px;
    }
    .team-member .social-icons a {
        width: 36px;
        height: 36px;
    }
    .review img {
        width: 64px !important;
        height: 64px;
    }
    .review h3 {
        font-size: .98rem;
    }
    .blog-post .content {
        padding: 20px;
    }
    footer .navbar-brand {
        font-size: 24px;
    }
    footer .social-icons a {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
    .contact-photo-pane {
        min-height: 200px;
        border-radius: 18px 18px 0 0;
    }
    .contact-photo-img {
        object-position: center top;
    }
    .modal-dialog {
        margin: .75rem auto;
    }
    .modal-content {
        max-height: calc(100vh - 32px);
    }
    .contact-form {
        padding: 24px 16px 36px;
        border-radius: 22px;
    }
    .contact-heading::before {
        font-size: .62rem;
        letter-spacing: .12em;
        padding: 0.28rem 0.75rem;
    }
    .contact-form h1 {
        font-size: 1.82rem;
    }
    .contact-form p {
        font-size: .95rem;
    }
    .contact-form #submitBtn {
        padding: 0.9rem 1.6rem;
        font-size: 1rem;
    }
    .associations-text-area {
        padding: 48px 0 30px;
    }
    .intro-associations h1 {
        font-size: 1.9rem;
    }
    .intro-associations p {
        font-size: 1rem;
    }
    .associations-band {
        padding: 38px 0 48px;
    }
    .association-logo {
        width: clamp(140px, 68vw, 180px);
        min-width: 140px;
        max-width: 180px;
        aspect-ratio: 1 / 1;
        padding: clamp(12px, 4.4vw, 18px);
    }
    .association-logo img {
        max-height: 76%;
        max-width: 76%;
    }
    .associations-logos-wrapper {
        max-width: min(640px, 94vw);
        padding: clamp(8px, 6vw, 16px);
        border-radius: 24px;
    }
    .section-divider {
        margin-top: -10px;
    }
}

@media (max-width: 420px) {
    .top-nav p {
        font-size: .75rem;
    }
    .btn {
        padding: 10px 20px;
    }
    .hero-slider .display-3 {
        font-size: 1.7rem;
    }
    .intro h1 {
        font-size: 1.85rem;
    }
    .contact-form {
        padding: 24px 16px 34px;
    }
    .contact-form #submitBtn {
        width: 100%;
    }
}


/* Cuando hay un modal abierto, no debe estorbar el FAB */

body.modal-open .whatsapp-fab {
    z-index: 1040;
    opacity: .2;
    pointer-events: none;
}


/* Backdrop del modal más oscuro y con blur sutil */

.modal-backdrop.show {
    background-color: rgba(9, 32, 50, 0.55);
    backdrop-filter: blur(2px);
}


/* ================================================= */


/* CLIENTES: muro dinámico de logotipos (marquee)   */


/* ================================================= */

.clients-section {
    background: #fff;
    padding: clamp(64px, 8vw, 108px) 0 clamp(72px, 9vw, 120px);
}

.intro-clients {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.intro-clients .clients-title {
    font-size: clamp(2.2rem, 5.2vw, 3.4rem);
    line-height: 1.08;
    color: var(--dark);
    margin-bottom: 6px;
}

.intro-clients .clients-subtitle {
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 14px;
    color: var(--brand);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.clients-copy {
    max-width: min(800px, 92vw);
    margin: 10px auto clamp(28px, 6vw, 44px);
    display: grid;
    gap: 10px;
}

.clients-copy p {
    margin: 0;
    font-size: clamp(1rem, 1.15vw + .68rem, 1.08rem);
    font-weight: 400;
    line-height: 1.72;
    color: rgba(16, 42, 60, 0.86);
    text-wrap: balance;
}

/* ================================================= */
/* NUEVOS CLIENTES DEL MES - Spotlight Section       */
/* ================================================= */

.new-clients-spotlight {
    max-width: min(1000px, 94vw);
    margin: 0 auto clamp(38px, 6vw, 56px);
    padding: clamp(28px, 5vw, 44px) clamp(24px, 4vw, 40px);
    background: linear-gradient(145deg, rgba(61, 209, 82, 0.04), rgba(61, 209, 82, 0.01));
    border: 1px solid rgba(61, 209, 82, 0.18);
    border-radius: 28px;
    position: relative;
    overflow: hidden;
}

.new-clients-spotlight::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand), rgba(61, 209, 82, 0.4), var(--brand));
    background-size: 200% 100%;
    animation: newClientShimmer 4s ease-in-out infinite;
}

@keyframes newClientShimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.new-clients-header {
    text-align: center;
    margin-bottom: clamp(24px, 4vw, 36px);
}

.new-clients-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--brand);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 999px;
    margin-bottom: 14px;
    box-shadow: 0 8px 20px rgba(61, 209, 82, 0.28);
}

.new-clients-badge i {
    font-size: 0.9rem;
}

.new-clients-title {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 8px;
    line-height: 1.2;
}

.new-clients-desc {
    font-size: clamp(0.92rem, 1.1vw + 0.6rem, 1.02rem);
    color: rgba(16, 42, 60, 0.72);
    margin: 0;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.new-clients-cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: clamp(16px, 3vw, 28px);
    flex-wrap: wrap;
}

.new-client-card {
    flex: 0 1 280px;
    min-width: 200px;
    max-width: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    background: #ffffff;
    border: 1px solid rgba(61, 209, 82, 0.22);
    border-radius: 18px;
    padding: clamp(18px, 3vw, 28px);
    box-shadow: 
        0 12px 32px rgba(61, 209, 82, 0.12),
        0 4px 12px rgba(9, 30, 52, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    overflow: hidden;
}

.new-client-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(61, 209, 82, 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.new-client-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 20px 44px rgba(61, 209, 82, 0.18),
        0 8px 20px rgba(9, 30, 52, 0.08);
    border-color: rgba(61, 209, 82, 0.4);
}

.new-client-card:hover::after {
    opacity: 1;
}

.new-client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.new-client-logo img {
    max-width: 88%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(9, 30, 52, 0.08));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.new-client-card:hover .new-client-logo img {
    transform: scale(1.06);
    filter: drop-shadow(0 8px 16px rgba(9, 30, 52, 0.12));
}

.new-client-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: var(--brand);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(61, 209, 82, 0.32);
    animation: newTagPulse 2.5s ease-in-out infinite;
}

@keyframes newTagPulse {
    0%, 100% { 
        box-shadow: 0 4px 12px rgba(61, 209, 82, 0.32);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 18px rgba(61, 209, 82, 0.45);
        transform: scale(1.04);
    }
}

/* Responsive: New clients spotlight */
@media (max-width: 767.98px) {
    .new-clients-spotlight {
        padding: clamp(22px, 5vw, 32px) clamp(16px, 4vw, 24px);
        border-radius: 22px;
        margin-bottom: clamp(28px, 6vw, 40px);
    }

    .new-clients-cards {
        gap: clamp(14px, 4vw, 20px);
    }

    .new-client-card {
        flex: 1 1 calc(50% - 12px);
        min-width: 140px;
        max-width: none;
        aspect-ratio: 3 / 2;
        padding: clamp(14px, 3vw, 20px);
        border-radius: 14px;
    }

    .new-client-tag {
        top: 8px;
        right: 8px;
        padding: 3px 10px;
        font-size: 0.62rem;
    }
}

@media (max-width: 479.98px) {
    .new-clients-cards {
        flex-direction: column;
        align-items: center;
    }

    .new-client-card {
        flex: none;
        width: 100%;
        max-width: 280px;
        aspect-ratio: 16 / 9;
    }
}

.clients-wall {
    display: grid;
    /* Use fixed-width tracks so incomplete last row can center */
    grid-template-columns: repeat(auto-fit, minmax(230px, 280px));
    column-gap: clamp(22px, 4.4vw, 38px);
    row-gap: clamp(28px, 6vw, 52px);
    align-items: stretch;
    justify-content: center;
    padding: 0 clamp(6px, 2vw, 18px);
    margin: 0 auto clamp(24px, 5vw, 40px);
}

.client-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 17 / 9;
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(13, 55, 87, 0.07);
    box-shadow: 0 12px 28px rgba(15, 37, 58, 0.12);
    border-radius: 20px;
    padding: clamp(14px, 2.6vw, 24px);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
    overflow: hidden;
}

.client-tile:focus-within {
    outline: 2px solid rgba(52, 199, 89, 0.7);
    outline-offset: 3px;
}

.client-tile:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 38px rgba(9, 30, 52, 0.16);
}

.client-tile img {
    max-width: 96%;
    max-height: 92%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: grayscale(18%);
    transition: filter .2s ease;
}

.client-tile:hover img {
    filter: grayscale(0%);
}

.client-tile--jinrong img {
    max-width: 100%;
    max-height: 100%;
    transform: scale(1.45);
}

.client-tile--metalsa img {
    max-width: 100%;
    max-height: 100%;
    transform: scale(1.35);
}

.client-tile--universidad img {
    max-width: 96%;
    max-height: 100%;
    transform: scale(1.18);
}

.client-tile--carmex img {
    transform: scale(0.92);
    transition: transform .2s ease;
}

.client-tile--carmex:hover img {
    transform: scale(0.95);
}

.client-tile--dipz img {
    filter: invert(1);
    transform: scale(0.85);
    transition: filter .2s ease, transform .2s ease;
}

.client-tile--dipz:hover img {
    filter: invert(1) brightness(1.05);
    transform: scale(0.89);
}

.client-tile--prodyca img {
    transform: scale(0.92);
    transition: transform .2s ease;
}

.client-tile--prodyca:hover img {
    transform: scale(0.96);
}

.clients-footnote {
    margin: clamp(18px, 4vw, 28px) auto 0;
    padding-bottom: clamp(10px, 3vw, 22px);
    font-size: clamp(.98rem, 1.1vw + .62rem, 1.06rem);
    color: rgba(9, 40, 68, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .065em;
    text-align: center;
}


/* Ajustes responsivos */

@media (min-width: 1200px) {
    .clients-wall> :nth-last-child(2):nth-child(4n+1) {
        grid-column: 2;
    }
    .clients-wall> :last-child:nth-child(4n+2) {
        grid-column: 3;
    }
}

@media (max-width: 991.98px) {
    .clients-wall {
        /* Keep fixed-ish tracks to allow centering on last row */
        grid-template-columns: repeat(auto-fit, minmax(200px, 260px));
        column-gap: clamp(18px, 5vw, 28px);
        row-gap: clamp(22px, 8vw, 38px);
        max-width: min(760px, 94vw);
        margin: 0 auto clamp(20px, 6vw, 36px);
    }
    .client-tile {
        aspect-ratio: 15 / 9;
        padding: clamp(12px, 3vw, 22px);
    }
}

@media (max-width: 575.98px) {
    .clients-wall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: clamp(16px, 6vw, 28px);
        row-gap: clamp(18px, 7vw, 32px);
        padding-left: 0;
        padding-right: 0;
        max-width: min(520px, 92vw);
        margin: 0 auto clamp(16px, 7vw, 32px);
    }
    .client-tile {
        aspect-ratio: 4 / 3;
    }
    .client-tile img {
        max-width: 92%;
        max-height: 86%;
    }
}

/* Hero intro local focus */
.hero-intro {
    padding-top: calc((var(--navbar-height, 88px) + var(--top-nav-height, 0px)) + 2.5rem);
    padding-bottom: clamp(2rem, 5vw, 3.25rem);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.hero-content .hero-heading {
    text-align: center;
}

.hero-content .hero-lead,
.hero-content .hero-meta {
    text-align: center;
}

.hero-content .hero-cta {
    align-self: center;
}

.hero-intro .lead {
    font-size: 1.15rem;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hero-intro .hero-meta {
    color: rgba(11, 33, 66, 0.75);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767px) {
    .hero-intro {
        padding-top: calc((var(--navbar-height, 88px) + var(--top-nav-height, 0px)) + 1.5rem);
        padding-bottom: 1.5rem;
    }

    .hero-intro .lead {
        font-size: 1.05rem;
    }
}
