/* =====================================================================
   NORIA Gestion Organizacional - Web corporativa
   Tipografia: DM Sans (todo)
   ===================================================================== */

:root {
    --navy: #0D2B3E;
    --navy-2: #143A52;
    --navy-3: #08202f;
    --teal: #3A8FAA;
    --teal-light: #5EAAC4;
    --teal-lighter: #B7D8E3;
    --text: #1a2a35;
    --muted: #6b7c86;
    --line: #dde5ea;
    --panel: #f4f7f9;
    --panel-2: #e8eff2;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; width: 100%; max-width: 100%; }

body {
    font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
    color: var(--text);
    line-height: 1.55;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.15;
    color: var(--navy);
    letter-spacing: -0.02em;
}

h1 em, h2 em, h3 em {
    font-style: normal;
    color: var(--teal);
    font-weight: 700;
}

a { color: var(--teal); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--navy); }

.wrap {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-tag {
    display: inline-block;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 14px;
}
.section-tag.light { color: var(--teal-light); }
.section-tag.centered { display: block; text-align: center; }

/* ---------- NAV ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: #0d2b3e;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav-inner {
    max-width: 1160px; margin: 0 auto;
    padding: 12px 24px;
    display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.nav-logo img { height: 90px !important; width: auto !important; display: block; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
    font-size: 16px;
}
.nav-links a:hover { color: var(--teal-light); }
.nav-cta {
    background: var(--teal);
    color: #fff !important;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
}
.nav-cta:hover { background: var(--teal-light); }

@media (max-width: 780px) {
    .nav-links { gap: 14px; }
    .nav-links a:not(.nav-cta):nth-child(-n+3) { display: none; }
}

/* ---------- HERO ---------- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    color: #fff;
    padding: 110px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(58,143,170,0.20), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(94,170,196,0.12), transparent 50%);
    pointer-events: none;
}
.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 880px;
}
.hero-tag {
    color: var(--teal-light);
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 26px;
}
.hero h1 {
    color: #fff;
    font-size: clamp(38px, 5.5vw, 60px);
    font-weight: 700;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.hero h1 em { color: var(--teal-light); font-style: normal; }
.hero-sub {
    color: rgba(255,255,255,0.82);
    font-size: clamp(16px, 1.9vw, 19px);
    max-width: 660px;
    margin: 0 auto 44px;
    line-height: 1.55;
}
.btn-hero {
    display: inline-block;
    background: var(--teal);
    color: #fff !important;
    padding: 15px 38px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.02em;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.btn-hero:hover {
    background: var(--teal-light);
    transform: translateY(-1px);
    box-shadow: 0 12px 28px -10px rgba(58,143,170,0.55);
    color: #fff !important;
}
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- PILARES ---------- */
.pilares {
    background: var(--panel);
    padding: 64px 0;
}
.pilares-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.pilar {
    background: #fff;
    padding: 32px 24px 28px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--line);
    transition: transform 0.2s, box-shadow 0.2s;
}
.pilar:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px -16px rgba(13,43,62,0.15);
}
.pilar-icono {
    width: 48px; height: 48px;
    margin: 0 auto 18px;
    color: var(--teal);
}
.pilar-icono svg { width: 100%; height: 100%; }
.pilar h3 {
    color: var(--teal);
    font-size: 22px;
    margin-bottom: 6px;
}
.pilar p {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.5;
}
@media (max-width: 720px) {
    .pilares-grid { grid-template-columns: 1fr; }
}

/* ---------- SOBRE NORIA ---------- */
.sobre {
    background: #fff;
    padding: 100px 0;
}
.sobre-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 60px;
    align-items: center;
    max-width: 1080px;
}
.sobre-titulo h2 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
}
.sobre-texto p {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 18px;
}
.sobre-texto p:last-child { margin-bottom: 0; }
.sobre-texto strong { color: var(--navy); font-weight: 600; }
.sobre-texto em {
    color: var(--teal);
    font-style: normal;
    font-weight: 500;
}
@media (max-width: 820px) {
    .sobre-inner { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- PROBLEMA + DATOS ---------- */
.problema {
    background: var(--navy);
    color: #fff;
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}
.problema::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 90% 15%, rgba(58,143,170,0.10), transparent 50%);
    pointer-events: none;
}
.problema .wrap { position: relative; z-index: 1; }
.problema-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: start;
}
.problema-izq h2 {
    color: #fff;
    font-size: clamp(28px, 3.5vw, 40px);
    margin-bottom: 30px;
}
.problema-izq h2 em { color: var(--teal-light); font-style: normal; }
.problema-lista {
    list-style: none;
    margin-bottom: 28px;
}
.problema-lista li {
    color: rgba(255,255,255,0.92);
    padding: 12px 0;
    padding-left: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 16px;
    position: relative;
}
.problema-lista li::before {
    content: '';
    position: absolute;
    left: 0; top: 22px;
    width: 8px; height: 8px;
    background: var(--teal-light);
    border-radius: 50%;
}
.problema-cierre {
    color: rgba(255,255,255,0.7);
    font-style: italic;
    font-size: 17px;
    margin-top: 20px;
}
.problema-der {
    padding: 8px 0;
}
.dato-num-big {
    color: var(--teal-light);
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.dato-txt {
    color: rgba(255,255,255,0.85);
    font-size: 14.5px;
    line-height: 1.5;
    margin-bottom: 24px;
}
.dato-txt strong { color: #fff; }
.dato-divider {
    height: 1px;
    background: rgba(255,255,255,0.15);
    margin: 4px 0 24px;
}
@media (max-width: 820px) {
    .problema-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- SERVICIOS EN GRID 2x2 ---------- */
.servicios {
    background: #fff;
    padding: 100px 0;
}
.section-title {
    text-align: center;
    font-size: clamp(30px, 4vw, 46px);
    max-width: 780px;
    margin: 0 auto 20px;
    line-height: 1.15;
}
.section-title.white { color: #fff; }
.section-sub {
    text-align: center;
    color: var(--muted);
    font-size: 16px;
    max-width: 620px;
    margin: 0 auto 50px;
    line-height: 1.55;
}
.contacto .section-sub { color: rgba(255,255,255,0.75); }

.servicios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
}
.serv-card {
    padding: 32px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--panel);
    transition: all 0.2s;
    position: relative;
}
.serv-card:hover {
    border-color: var(--teal);
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -20px rgba(13,43,62,0.15);
}
.serv-num {
    color: var(--teal);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-bottom: 10px;
}
.serv-card h3 {
    color: var(--navy);
    font-size: 22px;
    margin-bottom: 8px;
    line-height: 1.2;
}
.serv-tag {
    color: var(--teal);
    font-size: 14.5px;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.4;
}
.serv-card > p:last-child {
    color: var(--text);
    font-size: 15px;
    line-height: 1.6;
}
@media (max-width: 780px) {
    .servicios-grid { grid-template-columns: 1fr; }
}

/* ---------- METODO + PUBLICO ---------- */
.metodo-publico {
    background: var(--panel);
    padding: 90px 0;
}
.mp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}
.mp-publico h2, .mp-metodo h3 {
    font-size: clamp(26px, 3.5vw, 38px);
    margin-bottom: 24px;
    line-height: 1.15;
}
.mp-metodo h3 { font-size: clamp(22px, 3vw, 30px); }

.publico-lista { list-style: none; }
.publico-lista li {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15.5px;
    line-height: 1.55;
    color: var(--text);
}
.publico-lista li:last-child { border-bottom: none; }
.publico-lista li strong { color: var(--navy); font-weight: 600; }

.metodo-lista {
    list-style: none;
}
.metodo-lista li {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    align-items: flex-start;
    font-size: 15px;
    color: var(--text);
}
.metodo-numero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    background: var(--teal);
    color: #fff;
    border-radius: 50%;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}
.metodo-lista strong { color: var(--navy); font-weight: 600; }

@media (max-width: 820px) {
    .mp-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- VACANTES ---------- */
.vacantes {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
    color: #fff;
    padding: 60px 0;
}
.vacantes-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.vacantes h2 {
    color: #fff;
    font-size: clamp(26px, 3vw, 36px);
    margin-bottom: 6px;
}
.vacantes p {
    color: rgba(255,255,255,0.92);
    font-size: 16px;
}
.btn-outline {
    display: inline-block;
    background: transparent;
    color: #fff !important;
    padding: 14px 32px;
    border: 2px solid #fff;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14.5px;
    font-family: 'DM Sans', sans-serif;
    transition: all 0.2s;
}
.btn-outline:hover {
    background: #fff;
    color: var(--navy) !important;
}

/* ---------- CONTACTO ---------- */
.contacto {
    background: var(--navy);
    color: #fff;
    padding: 100px 0;
}
.contacto .section-title { color: #fff; }
.contacto .section-title em { color: var(--teal-light); }

.contacto-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}
@media (max-width: 780px) {
    .contacto-grid { grid-template-columns: 1fr; gap: 30px; }
}

.contacto-form {
    background: #fff;
    padding: 32px;
    border-radius: 14px;
    color: var(--text);
}
.fld { margin-bottom: 16px; }
.fld label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--navy);
    font-family: 'DM Sans', sans-serif;
}
.fld label span { color: #c73a2c; }
.fld input,
.fld textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fbfdfe;
    font: inherit;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.fld input:focus, .fld textarea:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(58,143,170,0.15);
}
.fld textarea { resize: vertical; min-height: 100px; }

.contacto-info h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 22px;
}
.contacto-item {
    display: block;
    color: #fff !important;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    font-size: 15.5px;
    transition: color 0.15s;
}
.contacto-item:hover { color: var(--teal-light) !important; }
.contacto-item:last-child { border-bottom: none; }
.contacto-lbl {
    display: block;
    color: var(--teal-light);
    font-size: 11.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 3px;
    font-family: 'DM Sans', sans-serif;
}

.alerta {
    padding: 14px 18px;
    border-radius: 10px;
    max-width: 620px;
    margin: 0 auto 30px;
    font-size: 14.5px;
}
.alerta.ok {
    background: rgba(31, 122, 69, 0.18);
    color: #b6e6c9;
    border: 1px solid rgba(31, 122, 69, 0.4);
}
.alerta.err {
    background: rgba(199, 58, 44, 0.18);
    color: #f4b4ab;
    border: 1px solid rgba(199, 58, 44, 0.4);
}

/* ---------- FOOTER ---------- */
.pie {
    background: var(--navy-3);
    color: rgba(255,255,255,0.72);
    padding: 40px 0;
    font-size: 13.5px;
}
.pie-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    align-items: flex-start;
}
.pie-logo { height: 34px; margin-bottom: 10px; }
.pie-frase {
    font-style: italic;
    font-size: 15px;
    color: rgba(255,255,255,0.75);
}
.pie p { line-height: 1.7; }
.pie-info { text-align: right; }
.pie-copy { margin-top: 10px; font-size: 12.5px; color: rgba(255,255,255,0.5); }
@media (max-width: 620px) {
    .pie-info { text-align: left; }
}
