/* ==========================================
   1. ESTILOS BASE Y GENERALES (styles.css)
   ========================================== */
:root {
    --blue: #07379f;
    --green: #94ce2f;
    --ink: #182642;
    --muted: #5b6c89;
    --pale: #f4f8fc;
    --line: #e5edf5;
    --white: #fff;
    --shadow: 0 16px 40px rgba(17, 48, 93, .08);
    --navy: #0c3078;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: #f0f5fb;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

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

main {
    background: #eef3f9;
}

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

/* Encabezado Principal */
.site-header {
    height: 100px;
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 14px clamp(20px, 5vw, 76px);
    border-bottom: 1px solid #dbe6f2;
    background: rgba(242, 247, 252, .97);
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 4px 18px rgba(7, 55, 159, .05);
}

.brand {
    width: 205px;
    flex-shrink: 0;
}

.brand img {
    width: 100%;
    max-height: 78px;
    object-fit: contain;
    object-position: left center;
}

.flex {
    display: flex !important;
    align-items: center;
    background: linear-gradient(135deg, #fff, #edf3fa);
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.7vw, 28px);
    flex: 1;
}

.main-nav a,
.languages a {
    font-size: 14px;
    font-weight: 650;
    color: var(--blue);
    white-space: nowrap;
}

.main-nav a:hover,
.main-nav a:focus,
.languages a:hover {
    color: var(--green);
}

.languages {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.languages span {
    color: #b4c0d0;
}

.menu-toggle {
    display: none;
    border: 0;
    background: var(--pale);
    color: var(--blue);
    font-size: 24px;
    border-radius: 10px;
    padding: 5px 12px;
}

/* Componentes Base: Hero, Botones, Píldoras */
.hero {
    padding: 50px clamp(22px, 5vw, 76px) 42px;
    display: grid;
    background: linear-gradient(125deg, #edf4ff 0%, #f5f9ed 54%, #e4eef9 100%);
    grid-template-columns: 1fr 1fr;
    gap: 42px;
    align-items: center;
    overflow: hidden;
    min-height: 460px;
}

.hero-copy {
    max-width: 660px;
}

.eyebrow {
    color: var(--green);
    font-size: 12px;
    letter-spacing: .16em;
    font-weight: 800;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    font-size: clamp(38px, 4.5vw, 66px);
    line-height: 1.06;
    letter-spacing: -.045em;
    color: var(--blue);
    margin: 0 0 22px;
}

.lead {
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.55;
    color: var(--muted);
    max-width: 680px;
    margin: 0 0 26px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 999px;
    padding: 13px 23px;
    font-weight: 750;
    border: 1px solid transparent;
    cursor: pointer;
    font: inherit;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px #07379f20;
}

.button.primary {
    background: var(--blue);
    color: #fff;
}

.button.secondary {
    border-color: var(--green);
    color: #57920b;
    background: white;
}

.hero-points {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 26px;
    color: var(--muted);
    font-size: 13px;
}

.hero-points span:first-letter {
    color: var(--green);
}

.hero-art {
    height: 365px;
    position: relative;
}

.hero-image {
    position: absolute;
    inset: 0 5% 0 0;
    border-radius: 28px 70px 28px 70px;
    background-image:
  linear-gradient(110deg, #07379f15, #94ce2f1a);

background-position: center;
background-size: cover;
background-repeat: no-repeat;
    box-shadow: var(--shadow);
}

.leaf-shape {
    position: absolute;
    right: 0;
    bottom: 22px;
    width: 92px;
    height: 140px;
    background: var(--green);
    border-radius: 100% 0 100% 0;
    transform: rotate(24deg);
    opacity: .95;
}

.image-caption {
    position: absolute;
    left: 20px;
    bottom: 18px;
    right: 30px;
    background: #fffF;
    border: 1px solid #fff;
    border-radius: 14px;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
    color: var(--blue);
    backdrop-filter: blur(8px);
}

.image-caption b {
    color: var(--green);
}

.section {
    padding: 66px clamp(22px, 5vw, 76px);
    background: #f2f6fb;
}

.section:nth-of-type(even) {
    background: #e8f0fa;
}

.section:nth-of-type(odd) {
    background: #f3f7fb;
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 32px;
}

.section-heading h2,
.section h2,
.impact-band h2,
.contact-strip h2 {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    letter-spacing: -.03em;
    color: var(--blue);
    margin: 0 0 14px;
}

.section-heading p:not(.eyebrow) {
    color: var(--muted);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

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

.service-card {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, #ffffff 0%, #edf4fb 100%);
    box-shadow: 0 7px 24px #173c6809;
    min-height: 220px;
    transition: transform .2s, box-shadow .2s;
}

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

.card-mark {
    font-size: 34px;
    color: var(--green);
    line-height: 1;
}

.service-card h3,
.project-copy h3 {
    font-size: 21px;
    color: var(--blue);
    line-height: 1.25;
    margin: 15px 0 8px;
}

.service-card p,
.project-copy p {
    color: var(--muted);
    margin: 0 0 12px;
}

.arrow-link,
.text-link {
    font-weight: 750;
    color: var(--green);
    display: inline-flex;
    gap: 12px;
    align-items: center;
}

.arrow-link span,
.text-link span {
    font-size: 22px;
}

.center-action {
    text-align: center;
    margin-top: 28px;
}

.impact-band {
    padding: 55px clamp(22px, 5vw, 76px);
    background: linear-gradient(110deg, #e5f2c9 0%, #e4eefb 100%);
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 40px;
    align-items: center;
}

.impact-band p:not(.eyebrow) {
    color: var(--muted);
    max-width: 660px;
}

.impact-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.impact-stats div {
    border-left: 2px solid var(--green);
    padding-left: 15px;
}

.impact-stats b {
    display: block;
    color: var(--blue);
    font-size: 28px;
}

.impact-stats span {
    font-size: 12px;
    color: var(--muted);
}

.contact-strip {
    margin: 40px clamp(22px, 5vw, 76px);
    padding: 30px 34px;
    background: linear-gradient(110deg, #e7f1ff, #eef7dc);
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
}

.contact-strip h2 {
    font-size: 29px;
    margin-bottom: 8px;
}

.contact-strip p {
    color: var(--muted);
    margin: 0;
}

.page-hero {
    padding: 72px clamp(22px, 7vw, 110px) 58px;
    border-bottom: 1px solid var(--line);
}

.page-hero h1 {
    max-width: 900px;
}

.page-hero .lead {
    max-width: 800px;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.soft-panel {
    background: linear-gradient(135deg, #eaf2fc, #eef6df);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 30px;
}

.soft-panel p,
.two-col p {
    color: var(--muted);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.pill-row span {
    padding: 12px 18px;
    border: 1px solid #dce7f2;
    border-radius: 999px;
    color: var(--blue);
    font-weight: 750;
}

/* Contacto y Legales Base */
.contact-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 38px;
}

.contact-info {
    background: linear-gradient(145deg, #e7f0fd, #edf6dd);
    padding: 28px;
    border-radius: 18px;
}

.contact-info p {
    color: var(--muted);
}

.contact-info a {
    color: var(--blue);
    font-weight: 700;
}

.contact-form {
    display: grid;
    gap: 15px;
}

.contact-form label {
    font-weight: 700;
    color: var(--blue);
    display: grid;
    gap: 7px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d9e3ef;
    border-radius: 10px;
    padding: 13px;
    font: inherit;
    color: var(--ink);
    background: #f8fbff;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #94ce2f70;
    border-color: var(--green);
}

.contact-form button {
    justify-self: start;
}

.form-note {
    font-size: 12px;
    color: var(--muted);
}

.site-footer {
    padding: 35px clamp(22px, 5vw, 76px);
    background: #082d78;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    align-items: center;
}

.site-footer strong {
    font-size: 24px;
    letter-spacing: .08em;
}

.site-footer p,
.footer-contact {
    font-size: 13px;
    color: #d9e6ff;
    margin: 6px 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a {
    font-size: 13px;
    color: #fff;
}

.footer-links a:hover {
    color: var(--green);
}

/* ==========================================
   2. ESTILOS DE INTRODUCCIÓN GENERAL (.intro)
   ========================================== */
.intro {
    padding: 82px clamp(24px, 6vw, 88px) 65px;
    background: linear-gradient(112deg, #eaf3ff 0%, #f3f8f0 52%, #e4f0fc 100%);
    position: relative;
    overflow: hidden;
}

.intro:after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    border: 55px solid rgba(141, 204, 40, .13);
    border-radius: 50%;
    right: -70px;
    top: -160px;
    pointer-events: none;
}

.intro h1 {
    font-size: clamp(38px, 5vw, 64px);
    letter-spacing: -2px;
    line-height: 1.05;
    color: var(--blue);
    max-width: 850px;
    margin: 0 0 20px;
    font-weight: 850;
}

.intro h1 span {
    color: var(--navy);
}

.intro p {
    max-width: 690px;
    color: #637b9c;
    font-size: 16px;
    margin: 0;
}

.intro-meta {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    margin-top: 28px;
    color: #7086a2;
    font-size: 12px;
}

.intro-meta span:first-letter {
    color: var(--green);
}

/* Header Flex en Secciones Secundarias */
.section-heading-flex {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin: 0 0 32px;
    text-align: unset;
    max-width: inherit;
}

.section-heading-flex h2 {
    font-size: clamp(28px, 3vw, 40px);
    line-height: 1.15;
    letter-spacing: -1.1px;
    color: var(--blue);
    margin: 0;
}

.section-heading-flex .eyebrow {
    margin-bottom: 9px;
}

.section-heading-flex > p {
    color: var(--muted);
    font-size: 13px;
    max-width: 390px;
    margin: 0 0 4px;
}

/* Banner de Contacto Estándar Secundario */
.contact-banner-sec {
    margin: 32px clamp(24px, 4.7vw, 68px) 30px;
    padding: 28px 32px;
    border-radius: 20px;
    background: linear-gradient(105deg, #e4efff, #eef8dd);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.contact-banner-sec .eyebrow {
    margin-bottom: 7px;
}

.contact-banner-sec h2 {
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -1.1px;
    color: var(--blue);
    margin: 0;
}

.contact-banner-sec p {
    margin: 7px 0 0;
    font-size: 13px;
    color: #6b809d;
}

.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 12px;
    padding: 14px 22px;
    border-radius: 28px;
    box-shadow: 0 8px 18px #1043a71c;
}

.btn-pill span {
    font-size: 17px;
}

/* Footer Secundario de Estructura Compacta */
.footer-sec {
    background: #0c3078;
    color: #d6e3fa;
    padding: 30px clamp(24px, 4.7vw, 68px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-size: 11px;
}

.footer-sec strong,
.footer-sec .footer-brand {
    font-size: 20px;
    letter-spacing: 1px;
    color: #fff;
    text-decoration: none;
    font-weight: 850;
}

.footer-sec p {
    margin: 5px 0 0;
}

.footer-sec a {
    color: #d6e3fa;
}

/* ==========================================
   3. ESTILOS ESPECÍFICOS DE DIRECTORIO (directorio.css)
   ========================================== */
.directory-section,
.team-section,
.clients-section {
    padding: 65px clamp(24px, 6vw, 88px) 70px;
}

.directory-section { background: #e8f1fb; }
.team-section { background: #f4f8fc; }
.clients-section { background: #eaf3fb; }

.office-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.office-card {
    background: #fff;
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 12px 30px #294f7b0b;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.office-card:before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: var(--green);
}

.office-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.office-icon {
    display: grid;
    place-items: center;
    width: 43px;
    height: 43px;
    border-radius: 14px;
    background: #eef5ff;
    color: var(--blue);
    font-size: 25px;
}

.office-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 850;
    color: #75a921;
    background: #f1f8e6;
    padding: 7px 10px;
    border-radius: 30px;
}

.office-card h3 {
    font-size: 24px;
    line-height: 1.2;
    color: var(--blue);
    margin: 20px 0 10px;
}

.office-address {
    font-size: 13px;
    color: var(--muted);
    min-height: 60px;
    margin: 0 0 20px;
}

.office-links {
    display: grid;
    gap: 10px;
    border-top: 1px solid #e7eef7;
    padding-top: 17px;
}

.office-links a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #16428d;
    font-size: 13px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.office-links a span {
    font-size: 10px;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #91a1b6;
    font-weight: 800;
    margin-bottom: 2px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.person-card {
    display: flex;
    gap: 17px;
    align-items: flex-start;
    padding: 22px;
    background: #fff;
    border: 1px solid #e5edf6;
    border-radius: 18px;
    box-shadow: 0 8px 25px #24436f07;
    min-width: 0;
    transition: transform .2s, border-color .2s;
}

.person-card:hover {
    transform: translateY(-2px);
    border-color: #c5df94;
}

.avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #e6f0ff, #f0f8df);
    color: var(--blue);
    font-weight: 850;
    font-size: 15px;
}

.person-info {
    min-width: 0;
}

.person-area {
    font-size: 9px;
    letter-spacing: 1.25px;
    color: #78a925;
    font-weight: 850;
}

.person-info h3 {
    font-size: 16px;
    line-height: 1.35;
    color: var(--blue);
    margin: 5px 0 5px;
}

.person-info p {
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    margin: 0 0 11px;
}

.person-info a {
    display: block;
    font-size: 12px;
    color: #17468f;
    text-decoration: none;
    overflow-wrap: anywhere;
    margin-top: 5px;
}

.person-info a span {
    color: #7daf28;
    font-weight: 900;
}

.person-info a:hover,
.office-links a:hover {
    text-decoration: underline;
}

.source-note {
    font-size: 11px;
    color: #8192a8;
    margin: 20px 0 0;
}

.client-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.client-card {
    min-height: 120px;
    padding: 20px 14px;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 13px;
    box-shadow: 0 8px 24px #24436f08;
    transition: transform .2s, border-color .2s;
}

.client-card:hover {
    transform: translateY(-3px);
    border-color: #cde4a5;
}

.client-mark {
    min-height: 31px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--blue);
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -.4px;
}

.client-card:nth-child(3n) .client-mark {
    color: #77a925;
}

.client-card strong {
    font-size: 11px;
    line-height: 1.4;
    color: #617896;
    font-weight: 750;
}

/* ==========================================
   4. ESTILOS ESPECÍFICOS DE PROYECTOS (proyectos.css)
   ========================================== */
.project-browser {
    padding: 65px clamp(24px, 6vw, 88px) 70px;
    background: #e8f1fb;
}

.controls {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.search,
.select-wrap {
    height: 48px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #d9e5f3;
    border-radius: 14px;
    box-shadow: 0 6px 20px #24436f08;
}

.search {
    flex: 1;
    padding: 0 15px;
    gap: 10px;
}

.search span {
    font-size: 27px;
    color: var(--green);
}

.search input,
.select-wrap select {
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
    color: var(--ink);
    width: 100%;
    min-width: 0;
}

.search input::placeholder {
    color: #91a2b9;
}

.select-wrap {
    width: 235px;
    padding: 0 14px;
}

.select-wrap select {
    cursor: pointer;
}

.year-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2px 12px;
    border-bottom: 1px solid #d5e2f1;
    font-size: 10px;
    letter-spacing: 1.4px;
    font-weight: 800;
    color: #8195af;
}

.project-groups {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.category-block {
    background: rgba(255, 255, 255, .77);
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 24px 26px;
    box-shadow: 0 10px 30px #294f7b0a;
}

.category-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--blue);
    font-size: 19px;
    font-weight: 800;
    flex: 1;
}

.category-title:before {
    content: "";
    width: 4px;
    height: 24px;
    flex: 0 0 4px;
    border-radius: 4px;
    background: var(--green);
}

.category-count {
    flex: 0 0 auto;
    margin-left: auto;
    border-radius: 30px;
    background: #eef7dc;
    color: #6d9f1b;
    font-size: 11px;
    padding: 5px 12px;
    letter-spacing: 0;
    white-space: nowrap;
}

.category-chevron {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    border-radius: 50%;
    background: #edf5fc;
    color: var(--blue);
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
}

.category-toggle:hover .category-title {
    color: var(--navy);
}

.category-toggle:focus-visible {
    outline: 3px solid #8dcc28;
    outline-offset: 5px;
    border-radius: 5px;
}

.project-list[hidden] {
    display: none;
}

.category-block:has(.project-list:not([hidden])) .category-toggle {
    margin-bottom: 17px;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.project-item {
    padding: 17px 18px;
    border: 1px solid #e4edf6;
    border-radius: 13px;
    background: linear-gradient(120deg, #fff, #f8fbff);
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 13px;
    transition: transform .2s, border-color .2s;
}

.project-item:hover {
    transform: translateY(-2px);
    border-color: #c5df94;
}

.project-year {
    font-size: 15px;
    font-weight: 850;
    color: var(--green);
    border-right: 1px solid #d8e6c2;
    align-self: stretch;
    display: flex;
    align-items: flex-start;
    padding-top: 2px;
}

.project-name {
    font-weight: 800;
    color: #163f8c;
    font-size: 14px;
    line-height: 1.35;
    margin: 0 0 7px;
}

.project-detail {
    font-size: 12px;
    color: #6c809e;
    margin: 0;
}

.project-location {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .3px;
    color: #94a2b5;
    margin-top: 9px;
}

.empty {
    padding: 35px;
    text-align: center;
    color: var(--muted);
}

.note {
    font-size: 11px;
    color: #7f91a9;
    margin-top: 22px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 7px 24px #173c6809;
    margin-bottom: 25px;
}

.project-img {
    width: 200px;
    display: block ruby;
    margin: 0 0 0 15px;
}

.project-art {
    height: 230px;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    background-size: cover;
    background-position: center;
}

.project-art span {
    background: #fff;
    color: var(--blue);
    padding: 6px 12px;
    border-radius: 99px;
    font-weight: 800;
}

.art-1 { background-image: linear-gradient(0deg, #07379f55, transparent), url("https://images.unsplash.com/photo-1473448912268-2022ce9509d8?auto=format&fit=crop&w=900&q=80"); }
.art-2 { background-image: linear-gradient(0deg, #07379f55, transparent), url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=900&q=80"); }
.art-3 { background-image: linear-gradient(0deg, #07379f55, transparent), url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=900&q=80"); }

/* ==========================================
   5. ESTILOS ESPECÍFICOS DE RECONOCIMIENTOS (reconocimientos.css)
   ========================================== */
.content-section {
    padding: 62px clamp(24px, 6vw, 88px) 68px;
    background: #e8f1fb;
}

.content-section.affiliations { background: #f4f8fc; }
.content-section.training { background: #e8f1fb; }

.recognition-grid,
.affiliation-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.recognition-card,
.affiliation-card {
    background: rgba(255, 255, 255, .88);
    border: 1px solid #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px #294f7b0a;
    min-width: 0;
}

.recognition-card {
    padding: 18px 18px 24px;
}

.recognition-image {
    height: 190px;
    background: #fff;
    border: 1px solid #e4edf6;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin-bottom: 21px;
}

.recognition-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.card-label {
    font-size: 10px;
    letter-spacing: 1.2px;
    font-weight: 850;
    color: #7dad20;
    margin-bottom: 10px;
}

.recognition-card h3,
.affiliation-card h3,
.training-copy h3 {
    font-size: 20px;
    line-height: 1.25;
    color: var(--blue);
    margin: 0 0 11px;
}

.recognition-card p,
.affiliation-card p,
.training-copy p {
    font-size: 13px;
    line-height: 1.75;
    color: var(--muted);
    margin: 0;
}

.recognition-card.featured {
    border-color: #d5e8b7;
    box-shadow: 0 12px 32px #294f7b10;
}

.affiliation-card {
    padding: 22px;
}

.affiliation-logo {
    height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e4edf6;
    border-radius: 13px;
    padding: 12px;
    margin-bottom: 20px;
}

.affiliation-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.affiliation-card h3 {
    font-size: 17px;
}

.training-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: stretch;
}

.training-copy {
    padding: 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff, #f6faff);
    border: 1px solid #fff;
}

.training-copy h3 {
    font-size: 24px;
}

.training-copy > p {
    max-width: 620px;
}

.training-contacts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 25px;
}

.training-contacts a {
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-decoration: none;
    color: var(--blue);
    font-size: 12px;
    font-weight: 800;
    padding: 13px;
    border: 1px solid #e0eaf4;
    border-radius: 12px;
    background: #fff;
}

.training-contacts span {
    font-size: 9px;
    letter-spacing: 1px;
    color: #7dad20;
}

.training-logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.training-logo {
    min-height: 120px;
    background: #fff;
    border: 1px solid #fff;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px #294f7b0a;
}

.training-logo img {
    max-width: 100%;
    max-height: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.training-logo:last-child {
    grid-column: 1 / -1;
}

/* Afiliaciones (Logos Únicamente) */
.affiliation-grid.logos-only {
    align-items: stretch;
    gap: 22px;
}

.affiliation-grid.logos-only .affiliation-logo {
    height: 250px;
    min-width: 0;
    margin: 0;
    padding: 16px;
    background: #fff;
    border: 1px solid #dce8f5;
    border-radius: 18px;
    box-shadow: 0 10px 30px #294f7b0a;
}

.affiliation-grid.logos-only .affiliation-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ==========================================
   6. ESTILOS ESPECÍFICOS DE ASOCIACIONES (asociaciones.css)
   ========================================== */
.alliance-section {
    padding: 65px clamp(24px, 6vw, 88px) 70px;
    background: #e8f1fb;
}

.alliance-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.alliance-card {
    background: rgba(255, 255, 255, .88);
    border: 1px solid #fff;
    border-radius: 20px;
    padding: 25px 26px;
    box-shadow: 0 10px 30px #294f7b0a;
    min-width: 0;
}

.card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.number {
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 1.5px;
    color: #8dcc28;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #edf5fc;
    color: #1043a7;
}

.card-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.alliance-card h3 {
    font-size: 21px;
    line-height: 1.25;
    color: #1043a7;
    margin: 0 0 12px;
}

.alliance-card p {
    font-size: 14px;
    line-height: 1.7;
    color: #6c809e;
    margin: 0;
}

.alliance-card .card-copy {
    margin-top: 12px;
}

.card-logo {
    width: 150px;
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e4edf6;
    border-radius: 12px;
    padding: 8px;
    overflow: hidden;
}

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

/* Banner de Contacto Oscuro (en Asociaciones / Reconocimientos) */
.contact-banner-dark {
    padding: 40px clamp(24px, 6vw, 88px);
    background: #0b2e75;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
}

.contact-banner-dark .eyebrow {
    margin-bottom: 7px;
}

.contact-banner-dark h2 {
    color: #fff;
    font-size: 29px;
}

.contact-banner-dark p {
    color: #d5e2f1;
    font-size: 13px;
    margin: 8px 0 0;
    max-width: 650px;
}

.btn-green {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
    background: #8dcc28;
    color: #173d7d;
    text-decoration: none;
    font-weight: 850;
    font-size: 12px;
    padding: 14px 22px;
    border-radius: 28px;
}

.btn-green span {
    font-size: 17px;
}

/* ==========================================
   7. ESTILOS ESPECÍFICOS DE AVISO DE PRIVACIDAD (aviso.css)
   ========================================== */
body.page-aviso .intro {
    padding: 70px clamp(24px, 6vw, 88px) 58px;
    border-bottom: 1px solid var(--line);
}

body.page-aviso .intro:after {
    width: 330px;
    height: 330px;
    border: 50px solid #8dcc2821;
    right: -75px;
    top: -165px;
}

body.page-aviso .intro h1 {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.06;
}

body.page-aviso .intro > p:not(.eyebrow) {
    max-width: 720px;
}

body.page-aviso .intro-meta {
    gap: 18px;
    margin-top: 25px;
    font-size: 11px;
    font-weight: 700;
}

.legal-section {
    display: grid;
    grid-template-columns: 245px minmax(0, 1fr);
    gap: 32px;
    padding: 42px clamp(20px, 5vw, 72px) 70px;
    align-items: start;
}

.legal-index {
    position: sticky;
    top: 105px;
    padding: 23px;
    background: linear-gradient(145deg, #fff, #edf4fb);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 7px 24px #173c6809;
}

.legal-index .eyebrow {
    margin-bottom: 12px;
}

.legal-index a {
    display: block;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    padding: 9px 0;
    border-bottom: 1px solid #e6edf5;
    color: #31517e;
}

.legal-index a:last-child {
    border-bottom: 0;
}

.legal-index a:hover {
    color: #75aa1d;
}

.legal-copy {
    max-width: 920px;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: clamp(22px, 4vw, 42px);
    box-shadow: 0 7px 24px #173c6808;
}

.legal-copy section {
    padding: 0 0 25px;
    margin: 0 0 27px;
    border-bottom: 1px solid #e5edf6;
    scroll-margin-top: 105px;
}

.legal-copy section:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
}

.legal-copy h2 {
    font-size: clamp(21px, 2.2vw, 27px);
    line-height: 1.25;
    color: var(--blue);
    margin: 0 0 14px;
    letter-spacing: -.4px;
}

.legal-copy p,
.legal-copy li {
    font-size: 14px;
    color: #617793;
}

.legal-copy p {
    margin: 0 0 13px;
}

.legal-copy ol,
.legal-copy ul {
    padding-left: 24px;
    margin: 10px 0 18px;
}

.legal-copy li {
    padding: 3px 0 3px 3px;
}

.legal-copy strong {
    color: #254574;
}

.contact-panel {
    margin-top: 25px;
    padding: 24px 26px;
    background: linear-gradient(110deg, #e7f1ff, #eef7dc);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.contact-panel h3 {
    color: var(--blue);
    font-size: 19px;
    margin: 0 0 12px;
}

.contact-panel p {
    margin: 5px 0;
}

.disclaimer {
    margin-top: 25px !important;
    font-size: 12px !important;
    color: #8090a6 !important;
}

/* ==========================================
   8. MEDIA QUERIES (RESPONSIVO UNIFICADO)
   ========================================== */
@media (max-width: 1150px) {
    .site-header { gap: 14px; }
    .brand { width: 160px; }
    .main-nav { gap: 12px; }
    .main-nav a { font-size: 12px; }
    .hero { gap: 25px; }
}

@media (max-width: 1050px) {
    .site-header { flex-wrap: wrap; gap: 12px; }
    .site-header nav {
        order: 3;
        flex-basis: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 8px 0;
    }
    .site-header nav a.active:after { bottom: -5px; }
    .languages { margin-left: auto; }
    
    .office-grid,
    .recognition-grid,
    .affiliation-grid,
    .alliance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .office-card:first-child { grid-column: span 2; }
    .client-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .legal-section { grid-template-columns: 210px minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 1000px) {
    .project-list { grid-template-columns: 1fr; }
    .training-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .site-header { height: 82px; justify-content: space-between; }
    .brand { width: 170px; }
    .menu-toggle { display: block; margin-left: auto; }
    .main-nav {
        display: none;
        position: absolute;
        left: 16px; right: 16px; top: 74px;
        background: #f1f6fc;
        border: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: 16px;
        border-radius: 16px;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 10px 8px; font-size: 15px; }
    .languages { margin-left: 0; }
    
    .hero { grid-template-columns: 1fr; padding-top: 35px; }
    .hero-art { height: 300px; order: -1; }
    .hero-copy { max-width: 800px; }
    .service-grid, .service-grid.six, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .impact-band { grid-template-columns: 1fr; }
    .site-footer { grid-template-columns: 1fr 1fr; }
    .footer-contact { grid-column: 1 / -1; }
    .alliance-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .intro { padding-top: 55px; }
    .intro h1 { letter-spacing: -1px; }
    .section-heading-flex { display: block; }
    .section-heading-flex > p { margin-top: 10px; }
    .office-grid, .team-grid { grid-template-columns: 1fr; }
    .office-card:first-child { grid-column: auto; }
    .office-address { min-height: 0; }
    .client-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .person-card { padding: 18px 15px; gap: 13px; }
    .avatar { width: 45px; height: 45px; flex-basis: 45px; border-radius: 13px; }
    .contact-banner-sec, .footer-sec { flex-direction: column; align-items: flex-start; }
    .contact-banner-sec { padding: 25px 22px; }
    .site-header nav { gap: 16px; }
    
    /* Legales en móviles */
    .legal-section { grid-template-columns: 1fr; padding: 24px 15px 45px; }
    .legal-index { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
    .legal-index .eyebrow { grid-column: 1 / -1; }
    .legal-index a { font-size: 12px; }
    .legal-copy { padding: 23px 20px; }
    .legal-copy p, .legal-copy li { font-size: 13px; }
}

@media (max-width: 620px) {
    .category-title { font-size: 16px; }
    .category-count { font-size: 10px; padding: 5px 8px; }
    .category-toggle { gap: 8px; }
    .controls { flex-direction: column; }
    .select-wrap { width: 100%; }
    .category-block { padding: 19px 15px; }
    .project-item { grid-template-columns: 48px minmax(0, 1fr); padding: 14px 12px; }
    
    .recognition-grid, .affiliation-grid, .alliance-grid { grid-template-columns: 1fr; }
    .content-section { padding-top: 48px; padding-bottom: 50px; }
    .training-contacts { grid-template-columns: 1fr; }
    .training-copy { padding: 22px; }
    .contact-banner-dark { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
    .site-header nav a { font-size: 11px; }
    .training-logos { grid-template-columns: 1fr 1fr; }
    .affiliation-grid.logos-only .affiliation-logo { height: 220px; }
    .card-logo { width: 136px; height: 82px; }
}

@media (max-width: 600px) {
    .site-header { padding: 10px 16px; gap: 10px; }
    .brand { width: 135px; }
    .languages { gap: 6px; font-size: 12px; }
    .hero { padding: 28px 18px; }
    .hero-art { height: 230px; }
    .hero h1, .page-hero h1 { font-size: 39px; }
    .hero-actions { align-items: stretch; flex-direction: column; }
    .button { width: 100%; }
    .image-caption { font-size: 10px; }
    .section { padding: 45px 18px; }
    .service-grid, .service-grid.six, .project-grid, .two-col, .contact-layout { grid-template-columns: 1fr; }
    .service-card { min-height: 0; padding: 23px; }
    .impact-band { padding: 40px 20px; }
    .impact-stats { grid-template-columns: 1fr 1fr; }
    .contact-strip { margin: 24px 18px; padding: 24px; align-items: stretch; flex-direction: column; }
    .page-hero { padding: 48px 20px; }
    .site-footer { grid-template-columns: 1fr; padding: 30px 20px; }
    .footer-contact { grid-column: auto; }
    .project-art { height: 190px; }
}

@media (max-width: 380px) {
    .client-grid { grid-template-columns: 1fr; }
    .office-card { padding: 21px 18px; }
    .office-tag { font-size: 9px; }
}