/* Definición de variables globales — paleta 60-30-10 (corporativa + cultura) */
:root {
    /* Base */
    --color-charcoal: #2c3e50;
    --color-brand: #5c9bd1;
    --color-white: #ffffff;
    --color-bg-soft: #f8f9fa;
    /* Acento principal CTAs (Opción A — alta conversión) */
    --color-accent: #ff7f50;
    --color-accent-hover: #e96d3d;
    /* Acento secundario — mensajes de éxito / vitalidad (Opción B, uso puntual) */
    --color-emerald: #2ecc71;

    /* Aliases usados en el resto del stylesheet */
    --primary-blue: var(--color-charcoal);
    --navy-deep: var(--color-charcoal);
    --cyan-accent: var(--color-brand);
    --accent-purple: var(--color-accent);
    --natural-green: var(--color-brand);
    --text-light: #ffffff;
    --text-dark: var(--color-charcoal);
    --text-muted: #5d6d7e;
    --text-on-dark-muted: #bdc3c7;
    --bg-white: var(--color-white);
    --bg-grid: var(--color-bg-soft);
    --transition: all 0.3s ease-in-out;
    --container-width: 1200px;
    --shadow-card: 0 12px 40px rgba(44, 62, 80, 0.08);
}

/* Reset básico de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: clamp(84px, 15vw, 110px);
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    overflow-x: hidden;
    max-width: 100%;
}

main {
    max-width: 100%;
    overflow-x: hidden;
}

/* Contenedor global (más aire a la izquierda, alineado con barra superior) */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding-left: max(clamp(28px, 5.5vw, 52px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(18px, 4vw, 28px), env(safe-area-inset-right, 0px));
}

/* Solo la barra principal del sitio (no otros <header> del documento, p. ej. tarjetas de proyectos) */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1000;
    padding: 20px 0;
    overflow: visible;
    transition:
        background-color 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease,
        padding 0.3s ease,
        backdrop-filter 0.35s ease;
}

/* Barra clara: el logo (PNG con transparencia) se lee sobre blanco; al scroll, vítreo */
#main-header.header-transparent,
#main-header.header-inner {
    background-color: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

#main-header.header-inner {
    padding: 14px 0;
}

/* Clase que añade el JS al hacer scroll: translúcido sobre el contenido */
#main-header.header-scrolled {
    background-color: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 10px 0;
    box-shadow: 0 6px 28px rgba(44, 62, 80, 0.1);
    border-bottom: 1px solid rgba(44, 62, 80, 0.1);
}

#main-header.header-inner.header-scrolled {
    padding: 8px 0;
}

@media (prefers-reduced-transparency: reduce) {
    #main-header.header-scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: rgba(255, 255, 255, 0.96);
    }
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.logo .logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    text-decoration: none;
    transition: opacity 0.25s ease;
}

/* Logo sin “caja” blanca en la barra superior (canal alfa del PNG) */
#main-header .logo .logo-link {
    background: transparent;
    padding: 4px 0;
    border-radius: 0;
    box-shadow: none;
}

#main-header .logo .logo-link:hover {
    opacity: 0.88;
}

.logo img {
    display: block;
    width: auto;
    object-fit: contain;
}

#main-header .logo {
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(340px, 50%);
    display: flex;
    align-items: center;
}

#main-header .logo img {
    display: block;
    height: clamp(50px, 9vw, 84px);
    width: auto;
    max-height: 84px;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
}

.logo--footer .logo img {
    height: clamp(52px, 10vw, 86px);
    max-width: min(380px, 92vw);
}

.logo--footer .logo-link {
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.logo--footer .logo-link:hover {
    background: transparent;
    opacity: 0.88;
}

/* Navegación principal (barra clara: texto oscuro) */
#main-header #nav-menu {
    min-width: 0;
}

#main-header #nav-menu ul {
    display: flex;
    list-style: none;
    gap: clamp(12px, 2.5vw, 30px);
    align-items: center;
    flex-wrap: nowrap;
}

#main-header #nav-menu ul li a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

#main-header #nav-menu ul li a:hover {
    color: var(--cyan-accent);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-dropdown > a.nav-dropdown-label {
    pointer-events: none;
    cursor: default;
}

.nav-dropdown > a::after {
    content: "▾";
    font-size: 0.72rem;
    opacity: 0.75;
}

.submenu-toggle {
    display: none;
}

.submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid rgba(44, 62, 80, 0.1);
    border-radius: 10px;
    box-shadow: 0 14px 34px rgba(44, 62, 80, 0.16);
    padding: 8px;
    display: flex !important;
    flex-direction: column;
    gap: 0 !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 2100;
}

.submenu li {
    width: 100%;
}

#main-header #nav-menu .submenu li a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 500;
}

#main-header #nav-menu .submenu li a:hover {
    color: var(--cyan-accent);
    background: rgba(92, 155, 209, 0.1);
}

.nav-dropdown:hover > .submenu,
.nav-dropdown:focus-within > .submenu,
.nav-dropdown.submenu-open > .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-cta-nav {
    background-color: var(--accent-purple);
    padding: 10px 20px;
    border-radius: 5px;
    color: var(--text-light) !important;
}

#main-header #nav-menu ul li a.btn-cta-nav:hover {
    color: var(--text-light) !important;
    filter: brightness(1.03);
}

.btn-cta-nav-red {
    background-color: #c62828;
    padding: 10px 20px;
    border-radius: 5px;
    color: var(--text-light) !important;
}

#main-header #nav-menu ul li a.btn-cta-nav-red:hover {
    color: var(--text-light) !important;
    background-color: #b71c1c;
}

/* Sección Hero — imágenes a pantalla completa + vidrio azul cielo + contenido */
.hero-section {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    color: var(--text-light);
    padding: clamp(88px, 10vh, 110px) 0 max(clamp(28px, 5.5vh, 56px), env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    box-sizing: border-box;
    text-align: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.hero-bg__slides {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg__slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 2.2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
}

.hero-bg__slide.is-active {
    opacity: 1;
    z-index: 1;
}

/* Recorte uniforme: el padre tiene overflow:hidden; la imagen llena sin salirse */
.hero-bg__slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    image-orientation: from-image;
}

/* Capa “vidrio” sobre slides: velo inferior para legibilidad del bloque de texto */
.hero-bg__glass {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
    background:
        linear-gradient(
            to top,
            rgba(10, 26, 46, 0.88) 0%,
            rgba(10, 26, 46, 0.55) 22%,
            rgba(10, 26, 46, 0.2) 45%,
            rgba(10, 26, 46, 0) 72%
        ),
        linear-gradient(
            155deg,
            rgba(92, 155, 209, 0.1) 0%,
            rgba(92, 155, 209, 0.03) 52%,
            rgba(44, 62, 80, 0.08) 100%
        );
    backdrop-filter: blur(0) saturate(1.02);
    -webkit-backdrop-filter: blur(0) saturate(1.02);
}

.hero-inner {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    max-width: min(720px, 100%);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    text-align: center;
    width: 100%;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: clamp(1.75rem, 3.8vw + 1rem, 3.25rem);
    line-height: 1.14;
    margin: 0 0 1.15rem;
    text-wrap: balance;
    letter-spacing: -0.02em;
    text-shadow:
        0 2px 32px rgba(0, 0, 0, 0.45),
        0 1px 4px rgba(0, 0, 0, 0.35);
}

.highlight {
    color: #e8f4fc;
    font-weight: 700;
    text-shadow: 0 0 40px rgba(92, 155, 209, 0.55);
}

.hero-lead {
    font-size: clamp(1.05rem, 1.15vw + 0.88rem, 1.28rem);
    line-height: 1.55;
    margin: 0 auto 1.5rem;
    max-width: min(40rem, 100%);
    font-weight: 500;
    letter-spacing: 0.01em;
    /* Azul cielo (marca); sombras y halo para legibilidad sobre el carrusel */
    color: #c9e8f8;
    text-shadow:
        0 0 1px rgba(12, 32, 52, 0.95),
        0 1px 0 rgba(12, 32, 52, 0.75),
        0 -1px 2px rgba(12, 32, 52, 0.45),
        0 2px 4px rgba(0, 0, 0, 0.55),
        0 4px 20px rgba(0, 0, 0, 0.42),
        0 0 24px rgba(92, 155, 209, 0.35);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.btn-secondary--on-hero {
    border-color: transparent;
    color: #fff;
    background: linear-gradient(135deg, #2e86de 0%, #1565c0 55%, #0d47a1 100%);
    box-shadow: 0 10px 26px rgba(21, 101, 192, 0.34);
}

.btn-secondary--on-hero:hover {
    background: linear-gradient(135deg, #3c97ef 0%, #1e73cf 55%, #1356b8 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 14px 28px rgba(21, 101, 192, 0.42);
}

.btn-hero-nosotros {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: #f8fbff;
    text-shadow:
        0 1px 2px rgba(10, 35, 72, 0.55),
        0 0 18px rgba(255, 255, 255, 0.12);
    background: linear-gradient(142deg, #4a90e2 0%, #2b6cb8 38%, #1d4e8c 100%);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow:
        0 10px 28px rgba(29, 78, 140, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.btn-hero-nosotros:hover {
    color: #ffffff;
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow:
        0 14px 34px rgba(29, 78, 140, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.btn-hero-nosotros:focus-visible {
    outline: 2px solid #e3f2ff;
    outline-offset: 3px;
}

@media (prefers-reduced-transparency: reduce) {
    .hero-bg__glass {
        backdrop-filter: blur(0);
        -webkit-backdrop-filter: blur(0);
        background:
            linear-gradient(
                to top,
                rgba(10, 26, 46, 0.9) 0%,
                rgba(10, 26, 46, 0.48) 26%,
                rgba(10, 26, 46, 0) 68%
            ),
            linear-gradient(
                155deg,
                rgba(92, 155, 209, 0.14) 0%,
                rgba(44, 62, 80, 0.16) 100%
            );
    }

    .btn-secondary--on-hero {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-bg__slide {
        transition: opacity 0.01ms;
    }
}

/* Botones */
.btn-primary {
    display: inline-block;
    background-color: var(--accent-purple);
    color: white;
    padding: 15px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-right: 15px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background-color: var(--color-accent-hover);
    box-shadow: 0 10px 22px rgba(255, 127, 80, 0.35);
}

.btn-secondary {
    display: inline-block;
    border: 2px solid var(--natural-green);
    color: var(--natural-green);
    padding: 13px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

/* Sección de líneas estratégicas */
.strategic-lines {
    padding: clamp(56px, 7vw, 84px) 0 28px;
    background: #f8fafc;
}

.strategic-lines__title {
    max-width: 860px;
    margin: 0 auto clamp(26px, 4vw, 40px);
    text-align: center;
    font-size: clamp(1.35rem, 2vw, 2rem);
    color: #4a5566;
    line-height: 1.3;
}

.strategic-lines__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 22px);
}

.line-card {
    position: relative;
    overflow: hidden;
    border-radius: 14px;
    min-height: 290px;
    box-shadow: 0 8px 22px rgba(22, 34, 54, 0.16);
    transition: transform 0.32s ease, box-shadow 0.32s ease, filter 0.32s ease;
}

.line-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.line-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 35, 64, 0.16) 0%, rgba(14, 28, 50, 0.72) 100%);
}

.line-card__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 18px 18px 20px;
    z-index: 1;
}

.line-card__overlay h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.2rem, 1.4vw, 1.55rem);
    line-height: 1.2;
}

.line-card__btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 999px;
    background: #d6ef39;
    color: #25354b;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
}

.line-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 20px 36px rgba(16, 38, 68, 0.25),
        0 8px 0 rgba(34, 95, 164, 0.25);
    filter: saturate(1.04);
}

/* Cinta de fotos */
.photo-ribbon {
    padding: 18px 0 64px;
    background: #f8fafc;
    overflow: hidden;
}

.photo-ribbon__track {
    display: flex;
    width: max-content;
    gap: 14px;
    animation: photoRibbonMove 36s linear infinite;
    will-change: transform;
}

.photo-ribbon:hover .photo-ribbon__track {
    animation-play-state: paused;
}

.photo-ribbon__track img {
    width: clamp(180px, 25vw, 300px);
    height: clamp(130px, 16vw, 200px);
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(18, 36, 62, 0.18);
}

@keyframes photoRibbonMove {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

/* Sección Destacada (Imagen Izquierda - Texto Derecha) */
.featured-section {
    padding: 100px 0;
    background-color: var(--bg-white);
}

.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center; /* Centra verticalmente la imagen y el texto */
}

.featured-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); /* Sombra suave para profundidad */
}

.featured-content h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
    line-height: 1.2;
}

/* Sección Servicios */
.services-section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

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

.service-card {
    padding: 40px;
    background: var(--bg-grid);
    border-radius: 15px;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--cyan-accent);
}

.service-card h3 {
    margin: 20px 0;
}

/* Footer — misma paleta; bloque único legible (sin cuatro “tarjetas” superpuestas) */
.main-footer {
    background: linear-gradient(180deg, #eef2f6 0%, #e6ecf2 55%, #e2e9f0 100%);
    color: var(--text-muted);
    padding: clamp(32px, 5vw, 48px) 0 clamp(28px, 4vw, 40px);
    font-size: 0.95rem;
    border-top: 3px solid var(--cyan-accent);
}

.main-footer > .container.footer-grid {
    background: var(--color-white);
    border: 1px solid rgba(92, 155, 209, 0.22);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 4px 0 rgba(92, 155, 209, 0.12);
    padding: clamp(28px, 4vw, 40px) clamp(22px, 3vw, 32px) clamp(24px, 3.5vw, 32px);
    padding-bottom: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 0.95fr) minmax(0, 0.95fr) minmax(0, 1.25fr);
    gap: 0;
    align-items: start;
}

.footer-col {
    background: transparent;
    border-radius: 0;
    padding: 0 clamp(16px, 2.2vw, 26px) clamp(24px, 3vw, 32px);
    border: none;
    box-shadow: none;
}

.footer-col:not(:last-child) {
    border-right: 1px solid rgba(92, 155, 209, 0.18);
}

.footer-col:first-child {
    padding-left: 0;
}

.footer-col:last-child {
    padding-right: 0;
}

.footer-col h4 {
    color: var(--text-dark);
    font-size: 0.78rem;
    margin: 0 0 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    padding-bottom: 0;
    border-bottom: none;
}

.footer-col h4::after {
    content: "";
    display: block;
    width: 2.25rem;
    height: 3px;
    margin-top: 0.65rem;
    border-radius: 2px;
    background: var(--cyan-accent);
    opacity: 0.85;
}

.brand-col .logo--footer {
    margin-bottom: 4px;
}

.brand-col p {
    margin-top: 14px;
    line-height: 1.7;
    max-width: 22rem;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.footer-nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-nav ul li a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.93rem;
    text-decoration: none;
    padding: 6px 0;
    border-bottom: none;
    border-radius: 6px;
    margin-left: -6px;
    margin-right: -6px;
    padding-left: 6px;
    padding-right: 6px;
    transition: color 0.2s ease, background 0.2s ease;
}

.footer-nav ul li a:hover {
    color: var(--cyan-accent);
    background: rgba(92, 155, 209, 0.1);
    transform: none;
}

.footer-address {
    font-style: normal;
    margin: 0;
}

.footer-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact-list__item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact-list__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(92, 155, 209, 0.14);
    color: var(--cyan-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-contact-list__icon svg {
    display: block;
}

.footer-contact-list__text {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-dark);
    padding-top: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-contact-list__text a {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(92, 155, 209, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-contact-list__text a:hover {
    color: var(--cyan-accent);
    border-bottom-color: var(--cyan-accent);
}

.footer-bottom {
    background: transparent;
    padding: 0 0 0;
    border-top: none;
}

.footer-bottom .container.bottom-flex {
    background: var(--color-white);
    border: 1px solid rgba(92, 155, 209, 0.22);
    border-top: 1px solid rgba(92, 155, 209, 0.14);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 14px 40px rgba(44, 62, 80, 0.07);
    padding: clamp(16px, 2.2vw, 20px) clamp(18px, 2.5vw, 24px);
    margin-top: -1px;
}

.bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 20px;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.bottom-flex > p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.45;
    max-width: 42rem;
}

.social-text {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.social-text > span {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-right: 4px;
}

.social-text a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-dark);
    background: rgba(92, 155, 209, 0.12);
    border: 1px solid rgba(92, 155, 209, 0.28);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.social-text a:hover {
    color: var(--cyan-accent);
    background: rgba(92, 155, 209, 0.2);
    border-color: rgba(92, 155, 209, 0.5);
    box-shadow: 0 4px 14px rgba(92, 155, 209, 0.2);
}

.footer-nav ul li a:focus-visible,
.social-text a:focus-visible,
.footer-contact-list__text a:focus-visible {
    outline: 2px solid var(--cyan-accent);
    outline-offset: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }

    #main-header .logo {
        max-width: min(280px, 54%);
    }

    .hero-section {
        text-align: center;
        padding-top: clamp(96px, 16vh, 132px);
        padding-bottom: max(clamp(24px, 6vh, 44px), env(safe-area-inset-bottom, 0px));
    }
    .hero-content {
        margin-left: auto;
        margin-right: auto;
    }
    .featured-grid { grid-template-columns: 1fr; text-align: center; } /* Adaptable a móvil */

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .brand-col {
        grid-column: 1 / -1;
        border-right: none;
        border-bottom: 1px solid rgba(92, 155, 209, 0.18);
        padding-right: 0;
        padding-bottom: clamp(20px, 3vw, 28px);
    }

    .footer-col:first-child {
        padding-left: 0;
    }

    .footer-col:nth-child(3) {
        border-right: none;
    }

    .contact-col {
        grid-column: 1 / -1;
        border-right: none;
        border-top: 1px solid rgba(92, 155, 209, 0.18);
        padding-top: clamp(18px, 2.5vw, 24px);
        padding-left: 0;
        padding-right: 0;
    }

    .footer-col:nth-child(2) {
        padding-left: 0;
        padding-bottom: clamp(16px, 2vw, 22px);
    }

    .bottom-flex { flex-direction: column; gap: 15px; text-align: center; }
    
    .nav-menu { display: none; } /* Implementar menú hamburguesa en JS */
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 15px;
    }
    .btn-primary,
    .btn-secondary,
    .btn-hero-nosotros {
        margin-right: 0;
        padding: 11px 18px;
        font-size: 0.92rem;
        line-height: 1.2;
        width: 100%;
        text-align: center;
    }

    .strategic-lines {
        padding-top: 44px;
    }

    .strategic-lines__grid {
        grid-template-columns: 1fr;
    }

    .line-card {
        min-height: 260px;
    }

    .photo-ribbon {
        padding-bottom: 48px;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .brand-col,
    .contact-col {
        grid-column: 1;
        border-top: none;
    }

    .footer-grid > .footer-col {
        border-right: none;
        padding-left: 0;
        padding-right: 0;
    }

    .footer-col:not(:last-child) {
        border-bottom: 1px solid rgba(92, 155, 209, 0.16);
        padding-bottom: clamp(18px, 3vw, 22px);
    }

    .contact-col {
        border-top: none;
        padding-top: clamp(18px, 3vw, 22px);
    }

    .social-text {
        justify-content: center;
    }
}

/* ——— Fondo cuadrícula (estilo blueprint) ——— */
.grid-bg {
    background-color: var(--bg-grid);
    background-image:
        linear-gradient(rgba(92, 155, 209, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(92, 155, 209, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
}

.text-cyan { color: var(--cyan-accent); }

/* .header-inner: fondo y sombra unificados con #main-header arriba */

.page-inner .main-inner {
    /* Espacio bajo el header fijo (evita que el contenido quede “debajo” del menú o parezca flotante) */
    padding-top: clamp(104px, 6.25rem + 3vw, 142px);
}

.main-inner--projects {
    display: block;
}

.nav-current {
    color: var(--cyan-accent) !important;
}

/* ——— Menú móvil ——— */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    flex-shrink: 0;
}

.mobile-menu-toggle .bar {
    width: 26px;
    height: 3px;
    background: var(--color-charcoal);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu-toggle.toggle-active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.toggle-active .bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.toggle-active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    #nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 88vw);
        height: 100dvh;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 88px 28px 28px;
        transform: translateX(100%);
        transition: transform 0.35s ease;
        box-shadow: -8px 0 32px rgba(44, 62, 80, 0.12);
        border-left: 1px solid rgba(44, 62, 80, 0.08);
        overflow-y: auto;
        z-index: 2050;
    }

    #nav-menu.nav-active {
        transform: translateX(0);
    }

    #nav-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    #nav-menu ul li {
        width: 100%;
        border-bottom: 1px solid rgba(44, 62, 80, 0.08);
    }

    #nav-menu ul li.nav-dropdown {
        border-bottom: none;
    }

    #nav-menu ul li a {
        display: block;
        padding: 16px 0;
        color: var(--text-dark);
    }

    #nav-menu ul li a:hover {
        color: var(--cyan-accent);
    }

    #nav-menu ul li a.btn-cta-nav {
        color: var(--text-light) !important;
    }

    #nav-menu .btn-cta-nav {
        margin-top: 12px;
        text-align: center;
        border-radius: 8px;
    }

    #nav-menu .btn-cta-nav-red {
        margin-top: 12px;
        text-align: center;
        border-radius: 8px;
    }

    .nav-dropdown > a::after {
        display: none;
    }

    .submenu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border: 1px solid rgba(44, 62, 80, 0.2);
        border-radius: 8px;
        background: #fff;
        color: var(--text-dark);
        cursor: pointer;
        margin-left: auto;
        margin-top: 10px;
        margin-bottom: 10px;
        transition: var(--transition);
    }

    .submenu-toggle:hover {
        border-color: rgba(92, 155, 209, 0.5);
        color: var(--cyan-accent);
    }

    .nav-dropdown {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        border-bottom: 1px solid rgba(44, 62, 80, 0.08);
    }

    #nav-menu ul li.nav-dropdown > a {
        padding: 16px 0;
    }

    .submenu {
        position: static;
        min-width: auto;
        background: rgba(92, 155, 209, 0.06);
        border: 1px solid rgba(92, 155, 209, 0.18);
        border-radius: 10px;
        box-shadow: none;
        margin: 0 0 12px;
        padding: 8px;
        grid-column: 1 / -1;
        max-height: 0;
        opacity: 1;
        visibility: hidden;
        overflow: hidden;
        transform: none;
        transition: max-height 0.25s ease, visibility 0.25s ease;
    }

    .nav-dropdown.submenu-open > .submenu {
        max-height: 520px;
        visibility: visible;
    }

    #main-header #nav-menu .submenu li a {
        padding: 12px;
    }
}

.services-more-wrap {
    text-align: center;
    margin-top: 36px;
}

.link-services-all {
    color: var(--navy-deep);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--cyan-accent);
    padding-bottom: 2px;
    transition: var(--transition);
}

.link-services-all:hover {
    color: var(--cyan-accent);
}

/* ——— Página Servicios ——— */
.page-hero {
    padding: clamp(108px, 7.5rem, 124px) 0 64px;
    border-bottom: 1px solid rgba(92, 155, 209, 0.25);
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--cyan-accent);
    margin-bottom: 12px;
}

.page-hero-title {
    font-size: clamp(1.85rem, 4vw, 2.75rem);
    color: var(--navy-deep);
    line-height: 1.15;
    max-width: 720px;
    margin-bottom: 16px;
}

.page-hero-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
}

.svc-block {
    padding: 80px 0;
}

.svc-block--alt {
    background: linear-gradient(180deg, var(--color-white) 0%, #ecf4fa 100%);
}

.svc-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 56px);
    align-items: start;
}

.svc-split--reverse .svc-copy {
    order: 2;
}

.svc-split--reverse .svc-visual {
    order: 1;
}

.svc-copy h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--navy-deep);
    margin-bottom: 16px;
    line-height: 1.25;
}

.svc-intro {
    color: var(--text-muted);
    margin-bottom: 28px;
    font-size: 1.05rem;
}

.svc-cards-mini {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mini-card {
    background: var(--bg-white);
    padding: 20px 22px;
    border-radius: 12px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(44, 62, 80, 0.08);
    text-align: left;
}

.mini-card h3 {
    font-size: 1rem;
    color: var(--navy-deep);
    margin-bottom: 8px;
}

.mini-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.svc-visual--figure {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 32px);
    min-height: 240px;
    overflow: visible;
}

.svc-split .svc-visual--figure {
    min-height: 260px;
}

.iso-illustration {
    width: 100%;
    max-width: min(420px, 100%);
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 14px 36px rgba(44, 62, 80, 0.1));
}

.iso-illustration--web {
    aspect-ratio: 400 / 280;
    max-height: 300px;
}

.iso-illustration--cloud {
    aspect-ratio: 420 / 260;
    max-height: 280px;
}

.svc-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.svc-section-head h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--navy-deep);
    margin-bottom: 12px;
}

.svc-section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.flow-pipeline-wrap {
    max-width: 880px;
    margin: 0 auto 28px;
    padding: 0 12px;
}

.flow-pipeline-svg {
    width: 100%;
    height: auto;
    min-height: 36px;
    max-height: 56px;
    display: block;
}

.flow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 3vw, 28px);
    position: relative;
}

.flow-step {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px 16px;
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(92, 155, 209, 0.35);
}

.flow-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--navy-deep);
}

.flow-icon--wa {
    background: linear-gradient(145deg, #eafaf0, #d4f5e3);
    color: #27ae60;
}

.flow-icon--chip {
    background: linear-gradient(145deg, #fff, #e8f4fc);
    border: 2px solid var(--cyan-accent);
}

.flow-icon--db {
    background: linear-gradient(145deg, #ecf4fa, #ddeaf6);
}

.flow-step h3 {
    font-size: 1rem;
    color: var(--navy-deep);
    margin-bottom: 10px;
}

.flow-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.spec-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cyan-accent);
    margin: 24px 0 14px;
}

.spec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.spec-list li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(44, 62, 80, 0.08);
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.spec-list li strong {
    color: var(--navy-deep);
    display: block;
    margin-bottom: 4px;
}

.lms-hub {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.lms-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 960px) {
    .lms-hub {
        grid-template-columns: 200px 1fr;
        align-items: start;
        max-width: 1000px;
    }

    .lms-center {
        position: sticky;
        top: 100px;
    }
}

.lms-hub-svg {
    width: min(200px, 72vw);
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 12px 28px rgba(44, 62, 80, 0.1));
}

.lms-hub-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 14px;
    max-width: 240px;
    line-height: 1.45;
}

.lms-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.lms-card {
    background: var(--bg-white);
    padding: 22px;
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(44, 62, 80, 0.08);
    position: relative;
}

.lms-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 3px;
    background: linear-gradient(180deg, var(--cyan-accent), transparent);
    border-radius: 0 2px 2px 0;
    opacity: 0.9;
}

.lms-card h3 {
    font-size: 1rem;
    color: var(--navy-deep);
    margin: 0 0 8px 8px;
}

.lms-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 0 0 8px;
    line-height: 1.5;
}

.svc-cta {
    padding: 72px 0 100px;
    text-align: center;
}

.svc-cta-inner h2 {
    color: var(--navy-deep);
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.svc-cta-inner p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .svc-split {
        grid-template-columns: 1fr;
    }

    .svc-split--reverse .svc-copy,
    .svc-split--reverse .svc-visual {
        order: unset !important;
    }

    .flow-steps {
        grid-template-columns: 1fr;
    }

    .flow-pipeline-wrap {
        display: none;
    }
}

/* ——— Contacto ——— */
.contact-main {
    min-height: 60vh;
}

.contact-hero {
    padding: 72px 0 40px;
    text-align: center;
}

.contact-title {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    color: var(--navy-deep);
    max-width: 720px;
    margin: 0 auto 16px;
    line-height: 1.2;
}

.contact-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.contact-body {
    padding-bottom: clamp(64px, 10vw, 96px);
}

.container--narrow {
    max-width: 720px;
}

.container--contact {
    max-width: 1120px;
}

.contact-panels {
    display: flex;
    flex-direction: column;
    gap: clamp(2.25rem, 5vw, 3.5rem);
    align-items: stretch;
}

@media (min-width: 992px) {
    .contact-panels {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 3rem 3.5rem;
        align-items: start;
    }
}

.contact-panel {
    min-width: 0;
}

.contact-panel-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--navy-deep);
    margin: 0 0 1rem;
    letter-spacing: -0.02em;
}

@media (min-width: 992px) {
    .contact-panel-title {
        margin-bottom: 1.15rem;
    }
}

.contact-card {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid rgba(44, 62, 80, 0.12);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.contact-card-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0;
    align-items: stretch;
}

@media (max-width: 720px) {
    .contact-card-split {
        grid-template-columns: 1fr;
    }
}

.contact-info-col {
    padding: clamp(24px, 4vw, 36px) clamp(20px, 4vw, 32px);
}

.contact-qr-col {
    padding: clamp(24px, 4vw, 32px) clamp(20px, 4vw, 36px);
    border-left: 1px solid rgba(44, 62, 80, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f4f9fc 0%, var(--color-white) 100%);
    min-width: 0;
}

@media (max-width: 720px) {
    .contact-qr-col {
        border-left: none;
        border-top: 1px solid rgba(44, 62, 80, 0.1);
    }
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.contact-list li:last-child {
    margin-bottom: 0;
}

.contact-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(92, 155, 209, 0.15);
    color: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-list a {
    color: var(--navy-deep);
    font-weight: 600;
    text-decoration: none;
}

.contact-list a:hover {
    color: var(--cyan-accent);
}

.contact-address {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.address-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: normal;
}

.qr-frame {
    position: relative;
    padding: 12px;
    background: var(--bg-white);
    border-radius: 12px;
    border: 2px solid var(--cyan-accent);
    box-shadow: 0 0 24px rgba(92, 155, 209, 0.3);
}

.qr-glow {
    position: absolute;
    inset: -4px;
    border-radius: 14px;
    border: 2px solid rgba(92, 155, 209, 0.45);
    pointer-events: none;
    animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.qr-frame img {
    display: block;
    border-radius: 6px;
}

.qr-caption {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.contact-form-card {
    background: var(--bg-white);
    border-radius: 16px;
    border: 1px solid rgba(44, 62, 80, 0.1);
    box-shadow: var(--shadow-card);
    padding: clamp(24px, 4vw, 36px) clamp(20px, 4vw, 32px);
}

.form-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 22px;
    line-height: 1.5;
}

.contact-form {
    position: relative;
}

.contact-form .form-row {
    margin-bottom: 18px;
}

.contact-form label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy-deep);
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(44, 62, 80, 0.15);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--cyan-accent);
    box-shadow: 0 0 0 3px rgba(92, 155, 209, 0.22);
}

.btn-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    margin-top: 8px;
    font-size: 1rem;
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.form-message {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.form-message--ok {
    background: #eafaf0;
    color: #1e8449;
    border: 1px solid rgba(46, 204, 113, 0.45);
}

.form-message--err {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

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

.contact-deco {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px 40px;
    opacity: 0.7;
}

.contact-deco-svg {
    width: 100%;
    height: auto;
    max-height: 100px;
}

.contact-form-card .btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
}

.contact-form-card .btn-primary:hover {
    box-shadow: 0 10px 24px rgba(255, 127, 80, 0.35);
}

.svc-cta .btn-primary {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
}

.svc-cta .btn-primary:hover {
    box-shadow: 0 10px 24px rgba(255, 127, 80, 0.35);
}

/* Animación al scroll (página servicios y similares) */
.mini-card,
.flow-step,
.lms-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ——— Página Proyectos (timeline / árbol) ——— */
.inline-code {
    font-size: 0.88em;
    font-family: ui-monospace, monospace;
    background: rgba(44, 62, 80, 0.06);
    padding: 0.12em 0.35em;
    border-radius: 4px;
}

.breadcrumb {
    margin-bottom: 1.25rem;
}

.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    align-items: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin-left: 0.65rem;
    opacity: 0.45;
}

.breadcrumb a {
    color: var(--navy-deep);
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: var(--cyan-accent);
}

/* ——— Proyectos: diseño plano (árbol / timeline sin animaciones ni JS) ——— */
.projects-hero {
    position: relative;
    width: 100%;
    margin: 0;
    padding: clamp(20px, 3vw, 28px) 0 clamp(24px, 4vw, 36px);
    border-bottom: 1px solid #e2e8f0;
    box-sizing: border-box;
    background: var(--bg-grid);
}

.projects-page {
    margin: 0;
    padding-bottom: 0;
    background: #fff;
}

.projects-hero__title {
    font-size: clamp(1.65rem, 4vw, 2.35rem);
    color: var(--navy-deep);
    line-height: 1.2;
    margin-bottom: 0.85rem;
    font-weight: 700;
}

.projects-hero__lead {
    font-size: 1.02rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 800px;
}

.projects-hero__lead strong {
    color: var(--text-dark);
    font-weight: 600;
}

.projects-hero__note {
    margin-top: 1.1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 800px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 3px solid var(--cyan-accent);
    border-radius: 6px;
}

/* Árbol: línea vertical centrada + tarjetas a ambos lados (escritorio) */
.portfolio-wrap {
    position: relative;
    padding: clamp(32px, 5vw, 56px) 0 48px;
}

/* Línea del eje (mitad del contenedor) */
.portfolio-wrap::before {
    content: "";
    display: none;
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    margin-left: -1.5px;
    background: var(--cyan-accent);
    z-index: 0;
    border-radius: 2px;
}

@media (min-width: 880px) {
    .portfolio-wrap::before {
        display: block;
    }
}

.portfolio-tree {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.portfolio-item {
    margin: 0 0 clamp(2rem, 4vw, 2.75rem);
    padding: 0;
    position: relative;
}

.portfolio-item:last-child {
    margin-bottom: 0;
}

/* Nodo sobre la línea central (escritorio) */
.portfolio-item::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 1.35rem;
    width: 14px;
    height: 14px;
    margin-left: -7px;
    background: #fff;
    border: 3px solid var(--navy-deep);
    box-sizing: border-box;
    border-radius: 50%;
    z-index: 2;
    display: none;
}

@media (min-width: 880px) {
    .portfolio-item::before {
        display: block;
    }
}

@media (max-width: 879px) {
    .portfolio-item::before {
        display: none;
    }
}

.portfolio-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    z-index: 1;
}

@media (min-width: 880px) {
    .portfolio-item .portfolio-card {
        width: calc(50% - 32px);
        max-width: 500px;
    }

    .portfolio-card--media-end {
        margin-right: auto;
        margin-left: 0;
    }

    .portfolio-card--media-start {
        margin-left: auto;
        margin-right: 0;
    }
}

.portfolio-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-grid);
    border-bottom: 1px solid #e2e8f0;
}

.portfolio-card__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2rem;
    padding: 0 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: var(--navy-deep);
    border-radius: 4px;
}

.portfolio-card__title {
    margin: 0;
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    font-weight: 600;
    color: var(--navy-deep);
    line-height: 1.3;
}

.portfolio-card__grid {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 880px) {
    .portfolio-card__grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        align-items: stretch;
    }

    .portfolio-card--media-end .portfolio-card__grid .portfolio-card__copy {
        order: 1;
        border-right: 1px solid #e2e8f0;
    }

    .portfolio-card--media-end .portfolio-card__grid .portfolio-card__media {
        order: 2;
        border-right: none;
    }

    .portfolio-card--media-start .portfolio-card__grid .portfolio-card__copy {
        order: 2;
    }

    .portfolio-card--media-start .portfolio-card__grid .portfolio-card__media {
        order: 1;
        border-right: 1px solid #e2e8f0;
    }
}

.portfolio-card__copy {
    padding: 18px 20px 22px;
}

.portfolio-card__lead {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
}

.portfolio-card__media {
    background: var(--bg-grid);
    padding: 16px;
    border-top: 1px solid #e2e8f0;
}

@media (min-width: 880px) {
    .portfolio-card__media {
        border-top: none;
    }
}

.portfolio-card__imgbox {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    line-height: 0;
}

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

.portfolio-card__caption {
    margin: 12px 0 0;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--text-muted);
}

.portfolio-card__caption strong {
    display: block;
    color: var(--navy-deep);
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 0.9rem;
}

.projects-cta {
    padding: 48px 0 72px;
    background: var(--bg-grid);
    border-top: 1px solid #e2e8f0;
}

.projects-cta__inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.projects-cta__inner h2 {
    font-size: 1.5rem;
    color: var(--navy-deep);
    margin-bottom: 10px;
}

.projects-cta__inner p {
    color: var(--text-muted);
    margin-bottom: 22px;
}

.projects-cta .btn-primary {
    background: var(--color-accent);
}

.projects-cta .btn-primary:hover {
    background: var(--color-accent-hover);
    box-shadow: none;
}

/* ——— Nosotros ——— */
.about-main {
    background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
}

.about-intro {
    padding: clamp(18px, 2.6vw, 28px) 0 clamp(56px, 7vw, 86px);
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.86fr) minmax(0, 1.6fr);
    gap: clamp(24px, 3.8vw, 48px);
    align-items: start;
}

.about-logo-pane {
    position: sticky;
    top: 108px;
    background: #ffffff;
    border: 1px solid rgba(92, 155, 209, 0.2);
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(44, 62, 80, 0.1);
    padding: clamp(16px, 2.8vw, 24px);
}

.about-logo-pane img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.about-copy-pane {
    background: #ffffff;
    border: 1px solid rgba(44, 62, 80, 0.1);
    border-radius: 18px;
    box-shadow: 0 20px 48px rgba(32, 53, 82, 0.09);
    padding: clamp(20px, 3.4vw, 34px);
    display: flex;
    flex-direction: column;
    gap: clamp(0.55rem, 1.2vw, 0.9rem);
}

.about-copy-pane h1 {
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.16;
    color: var(--navy-deep);
    margin: 0 0 1rem;
}

.about-copy-pane h2 {
    font-size: clamp(1.16rem, 1.55vw, 1.45rem);
    line-height: 1.25;
    color: #0b7a5a;
    margin: 1.45rem 0 0.8rem;
}

.about-copy-pane p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.72;
    font-size: 1rem;
}

.about-bullets {
    list-style: none;
    margin: 0.25rem 0 0.9rem;
    padding: 0;
    display: grid;
    gap: 0.75rem;
}

.about-bullets li {
    background: #f8fcff;
    border: 1px solid rgba(92, 155, 209, 0.25);
    border-left: 4px solid var(--cyan-accent);
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
    color: #415b78;
    line-height: 1.66;
}

.about-bullets li strong {
    color: var(--navy-deep);
}

.about-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(12px, 2vw, 18px);
    margin: 0.45rem 0 1.3rem;
}

.about-gallery__item {
    margin: 0;
    border-radius: 16px;
    padding: 3px;
    background: linear-gradient(135deg, #2ecc71 0%, #5c9bd1 50%, #ff7f50 100%);
    box-shadow: 0 12px 28px rgba(22, 60, 98, 0.2);
}

.about-gallery__item img {
    display: block;
    width: 100%;
    height: clamp(180px, 20vw, 260px);
    object-fit: cover;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.about-cta-copy {
    font-weight: 600;
    color: #2f4f71 !important;
    background: #ecf5ff;
    border: 1px solid rgba(92, 155, 209, 0.28);
    border-radius: 12px;
    padding: 0.85rem 0.95rem;
}

.js-enabled .about-logo-pane,
.js-enabled .about-copy-pane > h1,
.js-enabled .about-copy-pane > p,
.js-enabled .about-copy-pane > h2,
.js-enabled .about-copy-pane > ul {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.about-logo-pane.fade-in-visible,
.about-copy-pane > h1.fade-in-visible,
.about-copy-pane > p.fade-in-visible,
.about-copy-pane > h2.fade-in-visible,
.about-copy-pane > ul.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .about-layout {
        grid-template-columns: 1fr;
    }

    .about-logo-pane {
        position: static;
        max-width: 420px;
        margin: 0 auto;
    }

    .about-gallery {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

.projects-teaser {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-grid) 0%, var(--color-white) 100%);
    border-top: 1px solid rgba(44, 62, 80, 0.06);
}

.projects-teaser h2 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 14px;
}

.projects-teaser p {
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 22px;
    line-height: 1.65;
}

.projects-teaser .btn-primary {
    display: inline-block;
}

/* Donaciones */
.donations-page .main-inner {
    background:
        radial-gradient(circle at 10% 10%, rgba(92, 155, 209, 0.18), transparent 44%),
        radial-gradient(circle at 88% 18%, rgba(198, 40, 40, 0.16), transparent 40%),
        linear-gradient(180deg, #f6f9fd 0%, #edf3fb 100%);
}

.donations-hero {
    padding: clamp(134px, 18vh, 170px) 0 clamp(52px, 8vh, 80px);
}

.donations-hero__inner {
    max-width: 860px;
    text-align: center;
    margin: 0 auto;
}

.donations-hero__inner h1 {
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 3.4vw, 3rem);
    line-height: 1.15;
    color: #132f51;
}

.donations-hero__inner p {
    margin: 0 auto;
    max-width: 72ch;
    color: #1f3651;
    font-size: clamp(1rem, 0.9vw + 0.82rem, 1.16rem);
}

.donations-hero__actions,
.donation-details__actions {
    margin-top: clamp(18px, 3.2vh, 30px);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.donations-impact {
    padding: clamp(26px, 4.5vh, 44px) 0 clamp(22px, 4.2vh, 38px);
}

.donations-impact__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.7vw, 24px);
}

.impact-card {
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(44, 62, 80, 0.12);
    box-shadow: 0 10px 26px rgba(21, 53, 84, 0.12);
    padding: clamp(16px, 1.6vw, 22px);
}

.impact-card h2 {
    margin: 0 0 10px;
    color: #153b65;
    font-size: clamp(1.06rem, 0.95vw + 0.76rem, 1.3rem);
}

.impact-card p {
    margin: 0;
    color: #25415e;
}

.donation-details {
    padding: clamp(26px, 4.6vh, 48px) 0 clamp(50px, 7vh, 76px);
}

.donation-details__container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.donation-details h2 {
    margin: 0;
    color: #142f4e;
    font-size: clamp(1.5rem, 2vw + 1rem, 2.22rem);
}

.donation-details__lead {
    margin: 12px auto 0;
    max-width: 68ch;
    color: #26425d;
}

.bank-card {
    margin: clamp(18px, 3.2vh, 28px) auto 0;
    max-width: 640px;
    background: linear-gradient(145deg, #ffffff 0%, #f2f7ff 100%);
    border-radius: 24px;
    padding: clamp(20px, 2.6vw, 34px);
    border: 2px solid transparent;
    box-shadow: 0 18px 30px rgba(17, 52, 86, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.bank-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 2px;
    border-radius: inherit;
    background: linear-gradient(120deg, #5c9bd1, #f4b63f, #d64a78, #5c9bd1);
    background-size: 260% 260%;
    animation: donationBorderGlow 4.6s ease-in-out infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.bank-card::after {
    content: "";
    position: absolute;
    inset: -48% -24%;
    background: radial-gradient(circle, rgba(92, 155, 209, 0.28) 0%, rgba(92, 155, 209, 0) 56%);
    animation: donationPulse 2.8s ease-in-out infinite;
    pointer-events: none;
}

.bank-card > * {
    position: relative;
    z-index: 1;
}

.bank-card__label {
    margin: 0;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 800;
    color: #375f8a;
}

.bank-card__org {
    margin: 8px 0 14px;
    font-size: clamp(1.2rem, 1vw + 0.92rem, 1.52rem);
    font-weight: 800;
    color: #112f52;
}

.bank-card__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    justify-items: center;
}

.bank-card__list li {
    font-size: clamp(1rem, 0.7vw + 0.82rem, 1.16rem);
    color: #1f4164;
}

@keyframes donationBorderGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes donationPulse {
    0%, 100% { opacity: 0.35; transform: scale(0.94); }
    50% { opacity: 0.72; transform: scale(1.06); }
}

@media (max-width: 980px) {
    .donations-impact__grid {
        grid-template-columns: 1fr;
    }
}

/* Widget flotante de WhatsApp */
.wa-widget {
    position: fixed;
    right: max(18px, env(safe-area-inset-right, 0px));
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
    z-index: 3200;
}

.wa-widget__fab-stack {
    position: relative;
    width: 62px;
    height: 62px;
    flex-shrink: 0;
}

/* Ondas pulsantes — tonos sobre el verde oficial WhatsApp (#25D366) */
.wa-widget__pulse-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 62px;
    height: 62px;
    margin-left: -31px;
    margin-top: -31px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.7);
    box-shadow:
        0 0 0 5px rgba(37, 211, 102, 0.14),
        0 0 26px rgba(94, 232, 154, 0.45);
    animation: wa-widget-ripple 2.4s cubic-bezier(0.22, 0.61, 0.36, 1) infinite;
    pointer-events: none;
    will-change: transform, opacity;
}

.wa-widget__pulse-ring--delay {
    animation-delay: 1.2s;
}

.wa-widget__fab {
    position: relative;
    z-index: 2;
    width: 62px;
    height: 62px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #ffffff;
    /* Verde oficial #25D366 + capas claras (relieve “texturizado”, sin teal oscuro) */
    background:
        radial-gradient(125% 115% at 30% 18%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 46%),
        radial-gradient(90% 90% at 78% 90%, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 40%),
        linear-gradient(158deg, #6ee7a0 0%, #4ade80 22%, #25d366 55%, #25d366 100%);
    box-shadow:
        0 12px 30px rgba(37, 211, 102, 0.4),
        0 4px 14px rgba(37, 211, 102, 0.22),
        inset 0 2px 1px rgba(255, 255, 255, 0.42),
        inset 0 -1px 1px rgba(34, 197, 94, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.wa-widget__fab:hover {
    transform: translateY(-2px) scale(1.04);
    filter: brightness(1.03);
    box-shadow:
        0 16px 36px rgba(37, 211, 102, 0.46),
        0 6px 16px rgba(37, 211, 102, 0.26),
        inset 0 2px 1px rgba(255, 255, 255, 0.48),
        inset 0 -1px 1px rgba(34, 197, 94, 0.16);
}

.wa-widget__fab-svg {
    display: block;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.wa-widget__fab:focus-visible,
.wa-widget__close:focus-visible,
.wa-widget__input:focus-visible,
.wa-widget__send:focus-visible {
    outline: 2px solid var(--cyan-accent);
    outline-offset: 2px;
}

.wa-widget__panel {
    position: absolute;
    right: 0;
    bottom: 74px;
    width: min(360px, calc(100vw - 24px));
    padding: 0;
    border-radius: 16px;
    border: 1px solid rgba(44, 62, 80, 0.14);
    background: #fff;
    box-shadow: 0 24px 50px rgba(35, 62, 94, 0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.98);
    transform-origin: bottom right;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.wa-widget__panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-widget__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(140deg, #2c3e50, #35597d);
}

.wa-widget__head h2 {
    margin: 0;
    font-size: 1rem;
    color: #fff;
    line-height: 1.2;
}

.wa-widget__close {
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

.wa-widget__body {
    padding: 14px;
    display: grid;
    gap: 10px;
}

.wa-widget__input {
    width: 100%;
    border: 1px solid rgba(44, 62, 80, 0.16);
    border-radius: 10px;
    padding: 11px 12px;
    font: inherit;
    color: var(--text-dark);
}

.wa-widget__send {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 11px 14px;
    font: inherit;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 38%),
        linear-gradient(155deg, #5ee89a 0%, #25d366 45%, #25d366 100%);
    box-shadow:
        0 8px 20px rgba(37, 211, 102, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transition: filter 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-widget__send:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

@keyframes wa-widget-ripple {
    0% {
        transform: scale(1);
        opacity: 0.78;
        border-color: rgba(37, 211, 102, 0.72);
    }
    100% {
        transform: scale(1.92);
        opacity: 0;
        border-color: rgba(110, 231, 160, 0.12);
    }
}

@media (max-width: 576px) {
    .wa-widget {
        right: 12px;
        bottom: 12px;
    }

    .wa-widget__fab-stack {
        width: 58px;
        height: 58px;
    }

    .wa-widget__pulse-ring {
        width: 58px;
        height: 58px;
        margin-left: -29px;
        margin-top: -29px;
    }

    .wa-widget__fab {
        width: 58px;
        height: 58px;
    }

    .wa-widget__fab-svg {
        width: 30px;
        height: 30px;
    }

    .wa-widget__panel {
        right: 0;
        bottom: 70px;
        width: min(340px, calc(100vw - 20px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-widget__pulse-ring,
    .wa-widget__pulse-ring--delay {
        animation: none;
        opacity: 0;
    }

    .wa-widget__fab,
    .wa-widget__panel,
    .wa-widget__send {
        transition: none;
    }
}