/* ===== Paleta ===== */

:root {
    --navy: #0B1F3A;
    /* azul marino (primario) */
    --black: #111111;
    /* negro (secundario) */
    --ink: #242832;
    --muted: #6B7280;
    --white: #ffffff;
    --radius: 18px;
    --shadow: 0 12px 30px rgba(0, 0, 0, .12);
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0
}

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.65
}

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

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


/* Layout */

.container {
    width: min(1100px, 92vw);
    margin-inline: auto
}

.section {
    padding: 72px 0
}

.band {
    background: linear-gradient(180deg, #f7f9ff, #ffffff)
}

.grid.two {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 24px
}

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

.grid.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px
}

.tall-cards .card {
    min-height: 220px
}

@media (max-width:900px) {
    .grid.two,
    .grid.three {
        grid-template-columns: 1fr
    }
}


/* Header */

.site-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 50;
    border-bottom: 1px solid #E7EBF3
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-weight: 800
}

.brand-logo {
    height: 40px
}

.brand-text {
    letter-spacing: .2px
}

.menu {
    display: flex;
    gap: 8px
}

.menu a {
    padding: 0px;
    font-size: 14px;
    border-radius: 10px;
    color: var(--navy);
}

.menu a:hover {
    background: rgba(11, 31, 58, .08)
}

.hamburger {
    display: none;
    width: 46px;
    height: 40px;
    background: transparent;
    border: 0;
    cursor: pointer
}

.hamburger span {
    display: block;
    height: 3px;
    margin: 7px;
    background: var(--navy);
    border-radius: 6px;
    transition: .25s
}

@media (max-width:860px) {
    .hamburger {
        display: block
    }
    .menu {
        position: fixed;
        inset: 64px 14px auto 14px;
        background: #fff;
        border: 1px solid #E7EBF3;
        border-radius: 14px;
        padding: 18px;
        flex-direction: column;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: .25s;
        box-shadow: var(--shadow)
    }
    .menu.show {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto
    }
}


/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--navy), #0A376A);
    color: #fff
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    align-items: center;
    padding: 90px 0
}

.hero-ill img {
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(11, 31, 58, .35)
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, .14);
    border-radius: 999px;
    font-weight: 700
}

.hero h1 {
    font-size: clamp(28px, 5vw, 46px);
    line-height: 1.1;
    margin: 12px 0;
    color: #fff
}

.lead {
    color: #DCE7FF;
    font-size: clamp(15px, 2.2vw, 18px)
}

.cta {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    flex-wrap: wrap
}

.btn {
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #fff;
    color: #fff;
    font-weight: 800
}

.btn.primary {
    background: #fff;
    color: #0B1F3A;
    border-color: transparent
}

.btn.primary:hover {
    filter: brightness(1.05)
}

.btn.ghost:hover {
    background: #ffffff22
}

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

.pill {
    background: #ffffff1c;
    border: 1px solid #ffffff33;
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 600
}


/* Sections/cards */

.card {
    background: #fff;
    border: 1px solid #E7EBF3;
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--shadow)
}

.card.img-card img {
    border-radius: 14px
}

.card-media {
    overflow: hidden;
    padding: 0
}

.card-media img {
    width: 100%;
    height: 180px;
    object-fit: cover
}

.card-media .card-body {
    padding: 16px
}

.inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0
}

.inline li {
    list-style: none;
    background: #eef5ff;
    border: 1px solid #e0ebff;
    color: #133a65;
    padding: 4px 10px;
    border-radius: 999px
}

.page-hero {
    background: linear-gradient(135deg, #0B1F3A, #0A2A54);
    color: #fff;
    padding: 56px 0 46px
}

.page-hero h1 {
    margin: 0
}

.page-hero .lead {
    color: #d6e4ff
}


/* Casos */

.card.quote img {
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 10px
}

.card.quote blockquote {
    margin: 0
}


/* Features */

.feat {
    position: relative;
    padding-top: 36px
}

.feat .num {
    position: absolute;
    top: 10px;
    right: 14px;
    background: #0B1F3A;
    color: #fff;
    border-radius: 10px;
    padding: 4px 10px;
    font-weight: 800
}


/* Org */

.org {
    display: flex;
    justify-content: center
}

.org .principal {
    position: relative;
    text-align: center
}

.node {
    display: inline-block;
    background: #0B1F3A;
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: var(--shadow)
}
.nodeCircle {
    display: inline-block;
    background: gray;
    color: #fff;
    padding: 10px 14px;
    border-radius: 40px;
    font-weight: 700;
    box-shadow: var(--shadow)
      margin-bottom: 22px; /* ¡û margen inferior */

}

.org-branches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 14px
}

.org-branch {
    background: #fff;
    border: 1px solid #e7ebf3;
    border-radius: 12px;
    padding: 12px;
    box-shadow: var(--shadow)
}

.org-branch .node {
    background: #111
}

.org-branch ul {
    margin: 10px 0 0 18px
}


/* Animaciones */

.fx {
    opacity: 0;
    transform: translateY(12px);
    animation: reveal .7s ease forwards
}

.fx:nth-child(2) {
    animation-delay: .06s
}

.fx:nth-child(3) {
    animation-delay: .12s
}

.fx:nth-child(4) {
    animation-delay: .18s
}

@keyframes reveal {
    to {
        opacity: 1;
        transform: none
    }
}


/* Footer */

.site-footer {
    background: #0B1F3A;
    color: #fff;
    padding: 18px 0;
    margin-top: 24px
}

.foot {
    display: flex;
    align-items: center;
    gap: 12px
}

.foot img {
    height: 34px
}


/* === Org (inline branches) === */

.org {
    display: block;
    overflow-x: auto;
    padding-bottom: 10px
}

.org .principal {
    display: flex;
    align-items: flex-start;
    gap: 18px
}

.org-branches {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    margin-top: 0
}

.org-branch {
    min-width: 260px
}


/* === Org (DG arriba con conectores) === */

.org {
    display: block;
    overflow-x: auto;
    padding: 8px 0 12px
}

.org .principal {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px
}


/* Director general: conector vertical hacia la barra horizontal */

.org .principal .node {
    position: relative;
    margin-bottom: 28px
}

.org .principal .node::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -24px;
    width: 3px;
    height: 24px;
    background: linear-gradient(var(--navy), #0A376A);
    border-radius: 2px;
}


/* Fila de direcciones horizontal (una sola lÃ­nea con scroll) */

.org-branches {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    margin-top: 0;
    padding-top: 22px;
    padding-bottom: 4px;
}


/* Barra horizontal que conecta todas las direcciones */

.org-branches::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--navy), #0A376A);
    border-radius: 2px;
}


/* Conector vertical desde la barra a cada tarjeta de direcciÃ³n */

.org-branch {
    position: relative;
    min-width: 260px;
    padding-top: 10px
}

.org-branch::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 10px;
    background: linear-gradient(var(--navy), #0A376A);
    border-radius: 2px;
}


/* === Org fixes: padding + layering to avoid clipping first branch === */

.org-branches {
    padding: 22px 16px 4px !important;
}

.org-branches::before {
    left: 16px !important;
    right: 16px !important;
    z-index: 0;
}

.org-branch,
.org-branch .node,
.org-branch ul {
    position: relative;
    z-index: 1;
}

.org-branch::before {
    z-index: 0;
}


/* === Footer contact + map === */

.site-footer {
    background: #0B1F3A;
    color: #fff;
    margin-top: 24px
}

.foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0
}

.foot-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 520px
}

.foot-brand img {
    height: 34px;
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .2))
}

.foot-contacts {
    display: grid;
    gap: 10px;
    min-width: 300px;
    max-width: 520px
}

.c-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #0F2A52;
    border: 1px solid #19416F;
    padding: 10px 12px;
    border-radius: 12px;
    color: #e9f1ff
}

.c-item .c-text {
    display: grid;
    line-height: 1.2
}

.c-item .c-text strong {
    font-size: .92rem;
    color: #ffffff
}

.c-item .c-text span {
    font-size: .9rem;
    opacity: .9
}

.c-item .c-ico {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #163a6a
}

.c-item:hover {
    background: #10315f
}

.foot-map {
    padding: 12px 0 22px
}

.map-wrap {
    display: flex;
    justify-content: center
}

.map {
    width: min(100%, 980px);
    height: 320px;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .25)
}

@media (max-width: 640px) {
    .map {
        height: 260px
    }
}


/* --- custom tweaks for header brand and org roles --- */

.logo-text {
    white-space: nowrap;
    display: inline-block;
}

.logo {
    flex-wrap: nowrap
}

.role-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    padding-left: 1rem;
    margin-top: 8px
}

.role-list .role {
    text-align: left
}


/* Keep brand text in one line */

.brand-text {
    white-space: nowrap;
    display: inline-block
}

.brand {
    white-space: nowrap
}


/* Left align subordinate roles under each branch */

.org-branch ul {
    list-style: disc;
    padding-left: 1.2rem;
    text-align: left
}

.org-branch li {
    text-align: left
}