/* =========================================================
   QUALITAS GESTIÓN INTEGRAL S.A.S. — Hoja de estilos
   Paleta oficial: Azul marino #003B78 · Teal #0FA8B8
                   Dorado #D4A63A · Gris apoyo #6E7681
   Tipografías: Cinzel (similar a Trajan Pro) + Montserrat
   ========================================================= */

:root {
    --navy: #003B78;
    --navy-deep: #0A2A55;
    --navy-ink: #071D3D;
    --teal: #0FA8B8;
    --gold: #D4A63A;
    --gold-soft: #E6C57A;
    --gray: #6E7681;
    --ink: #1C2533;
    --bg: #FFFFFF;
    --bg-alt: #F4F6F9;
    --line: #E1E6ED;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(7, 29, 61, .08);
    --shadow-lg: 0 24px 60px rgba(7, 29, 61, .16);
    --font-title: 'Cinzel', 'Trajan Pro', Georgia, serif;
    --font-body: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--navy-deep); }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.ico { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; gap: .6em;
    padding: .95em 1.7em;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600; font-size: .95rem; letter-spacing: .02em;
    text-decoration: none; border: 2px solid transparent;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn .ico { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .ico { transform: translateX(3px); }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy-ink); box-shadow: 0 8px 22px rgba(212, 166, 58, .35); }
.btn-gold:hover { background: #DFB44C; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); box-shadow: var(--shadow); }
.btn-ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { padding: .6em 1.2em; font-size: .85rem; }

/* ---------- Encabezado ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s, border-color .25s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(7,29,61,.08); border-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 50px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-title); font-weight: 700; font-size: 1.55rem; color: var(--navy-deep); letter-spacing: .02em; margin: 0; }
.brand-sub { font-size: .6rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--navy-deep); margin: 0; }

.main-nav { display: flex; align-items: center; gap: 1.8rem; }
.main-nav a:not(.btn) {
    text-decoration: none; color: var(--ink);
    font-size: .9rem; font-weight: 500;
    position: relative; padding: .3em 0;
}
.main-nav a:not(.btn)::after {
    content: ''; position: absolute; left: 0; bottom: -2px;
    width: 100%; height: 2px; background: var(--gold);
    transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.main-nav a:not(.btn):hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--navy); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--navy-deep); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(1100px 500px at 85% 10%, rgba(15,168,184,.22), transparent 60%),
        linear-gradient(135deg, var(--navy-ink) 0%, var(--navy-deep) 45%, var(--navy) 100%);
    color: #fff;
}
.hero-wave {
    position: absolute; inset: auto -10% 40px -10%; height: 260px;
    background:
        radial-gradient(120% 100% at 50% 100%, transparent 62%, rgba(212,166,58,.55) 62.4%, transparent 63.2%),
        radial-gradient(120% 100% at 50% 100%, transparent 58%, rgba(15,168,184,.25) 58.3%, transparent 59%);
    pointer-events: none;
}
.hero-grid {
    position: relative;
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
    padding: 5.5rem 0 6.5rem;
}
.eyebrow {
    font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
    color: var(--teal); margin-bottom: 1rem;
}
.hero .eyebrow, .eyebrow-light { color: var(--gold-soft); }
.hero h1 {
    font-family: var(--font-title); font-weight: 600;
    font-size: clamp(2.4rem, 5.2vw, 4.1rem);
    color: #fff; letter-spacing: .01em; margin-bottom: .45em;
}
.hero h1 span { color: var(--gold); }
.lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 34em; }
.lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.hero-visual { display: flex; justify-content: center; }
.logo-card {
    background: #fff; border-radius: 28px;
    padding: 2.4rem 2.6rem 2rem;
    box-shadow: var(--shadow-lg), 0 0 0 10px rgba(255,255,255,.06);
    max-width: 440px; width: 100%;
    transform: rotate(-1.5deg);
    transition: transform .4s;
}
.logo-card:hover { transform: rotate(0) translateY(-4px); }

.pillars { position: relative; background: rgba(0,0,0,.22); border-top: 1px solid rgba(255,255,255,.08); }
.pillars-inner {
    display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .6rem 1.6rem;
    padding: 1.05rem 0;
    font-size: .8rem; font-weight: 600; letter-spacing: .35em; text-transform: uppercase;
    color: rgba(255,255,255,.9);
}
.pillars-inner i { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

/* ---------- Secciones ---------- */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.section-head p:last-child { color: var(--gray); }
.title { font-family: var(--font-title); font-weight: 600; font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
.title.light { color: #fff; }
.rule { width: 72px; height: 3px; background: var(--gold); border-radius: 2px; margin: 1.1rem 0 1.6rem; position: relative; }
.rule::after { content: ''; position: absolute; left: 82px; top: 0; width: 18px; height: 3px; background: var(--teal); border-radius: 2px; }
.rule.center { margin-inline: auto; left: -14px; }

/* Nosotros */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-grid > div:first-child p { color: #3a4556; }
.mvv { display: grid; gap: 1.2rem; }
.mvv-card {
    display: grid; grid-template-columns: auto 1fr; gap: .2rem 1.1rem;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.5rem 1.6rem; box-shadow: var(--shadow);
    border-left: 4px solid var(--gold);
}
.mvv-ico { grid-row: span 2; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(0,59,120,.08); color: var(--navy); }
.mvv-ico .ico { width: 26px; height: 26px; }
.mvv-card h3 { font-family: var(--font-title); font-size: 1.2rem; margin: .2rem 0 .3rem; }
.mvv-card p { margin: 0; color: #4a5566; font-size: .95rem; }
.tags { list-style: none; padding: 0; margin: .2rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.tags li { font-size: .8rem; font-weight: 600; color: var(--navy); background: rgba(15,168,184,.12); padding: .3em .85em; border-radius: 999px; }

/* Servicios */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.service {
    background: #fff; border-radius: var(--radius);
    padding: 2rem 1.6rem 1.7rem;
    border: 1px solid var(--line);
    position: relative; overflow: hidden;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service::before {
    content: ''; position: absolute; left: 0; top: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--navy), var(--teal), var(--gold));
    transform: scaleX(0); transform-origin: left; transition: transform .35s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service:hover::before { transform: scaleX(1); }
.service-ico {
    width: 58px; height: 58px; border-radius: 16px;
    display: grid; place-items: center;
    background: var(--navy); color: var(--gold);
    margin-bottom: 1.2rem;
}
.service-ico .ico { width: 30px; height: 30px; }
.service h3 { font-size: 1.05rem; font-weight: 700; }
.service p { font-size: .9rem; color: #4a5566; margin: 0; }

/* Sector salud */
.health {
    background:
        radial-gradient(700px 400px at 0% 100%, rgba(15,168,184,.25), transparent 60%),
        linear-gradient(135deg, var(--navy-deep), var(--navy));
    color: rgba(255,255,255,.88);
}
.health-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: center; }
.health-ico { margin-top: 2rem; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--gold); color: var(--gold); }
.health-ico .ico { width: 42px; height: 42px; }
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.checklist li {
    display: flex; gap: .8rem; align-items: flex-start;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px; padding: 1.1rem 1.2rem;
    font-weight: 500; font-size: .95rem; color: #fff;
    transition: background .2s, border-color .2s;
}
.checklist li:hover { background: rgba(255,255,255,.1); border-color: rgba(212,166,58,.5); }
.checklist .ico { color: var(--navy-ink); background: var(--gold); border-radius: 50%; padding: 4px; width: 26px; height: 26px; stroke-width: 2.4; margin-top: 1px; }

/* Metodología */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; counter-reset: s; position: relative; }
.steps::before { content: ''; position: absolute; top: 30px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--gold) 0 10px, transparent 10px 18px); }
.step { text-align: center; position: relative; padding: 0 .4rem; }
.step-num {
    display: grid; place-items: center; margin: 0 auto 1.2rem;
    width: 60px; height: 60px; border-radius: 50%;
    background: #fff; border: 2px solid var(--navy);
    font-family: var(--font-title); font-weight: 700; font-size: 1.4rem; color: var(--navy);
    position: relative; z-index: 1;
    transition: background .25s, color .25s;
}
.step:hover .step-num { background: var(--navy); color: var(--gold); }
.step h3 { font-size: 1.05rem; font-weight: 700; }
.step p { font-size: .88rem; color: #4a5566; }

.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 4rem; }
.audience-item { display: flex; gap: 1rem; align-items: center; padding: 1.3rem 1.4rem; border-radius: var(--radius); background: var(--bg-alt); }
.audience-item > .ico { width: 40px; height: 40px; color: var(--teal); }
.audience-item strong { display: block; color: var(--navy-deep); }
.audience-item span { font-size: .88rem; color: var(--gray); }

.note {
    display: flex; gap: .7rem; align-items: flex-start;
    margin: 2.5rem auto 0; max-width: 860px;
    font-size: .85rem; color: var(--gray);
    border: 1px dashed var(--line); border-radius: 12px; padding: 1rem 1.2rem;
}
.note .ico { color: var(--teal); margin-top: 2px; }

/* CTA */
.cta { background: linear-gradient(90deg, var(--gold), #E2B955); }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; padding: 3rem 0; }
.cta h2 { font-family: var(--font-title); color: var(--navy-ink); font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: .3em; }
.cta p { margin: 0; color: var(--navy-deep); font-weight: 500; }
.cta .btn-gold { background: var(--navy-ink); color: #fff; box-shadow: none; }
.cta .btn-gold:hover { background: var(--navy); }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 4rem; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .9rem; align-items: center; }
.contact-list .ico { width: 42px; height: 42px; padding: 10px; border-radius: 50%; background: var(--navy); color: var(--gold); }
.contact-list a { text-decoration: none; font-weight: 500; }

.contact-form {
    background: #fff; border-radius: 20px; padding: 2.4rem;
    box-shadow: var(--shadow-lg); border-top: 5px solid var(--navy);
    display: grid; gap: 1.1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label { display: grid; gap: .4rem; font-size: .85rem; font-weight: 600; color: var(--navy-deep); }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; font: inherit; font-weight: 400; font-size: .95rem; color: var(--ink);
    padding: .8em 1em; border: 1.5px solid var(--line); border-radius: 10px; background: #FAFBFC;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px rgba(15,168,184,.15);
}
.contact-form .invalid { border-color: #C84141; }
.contact-form label.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; color: #4a5566; font-size: .82rem; }
.contact-form label.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); flex-shrink: 0; }
.contact-form button { justify-self: start; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute !important; left: -9999px !important; }
.form-status { font-size: .9rem; font-weight: 500; min-height: 1.2em; }
.form-status.ok { color: #1E7B4E; }
.form-status.err { color: #C84141; }

/* Pie */
.site-footer { background: var(--navy-ink); color: rgba(255,255,255,.72); font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding: 4rem 0 3rem; }
.footer-brand { display: flex; gap: 1rem; align-items: center; align-self: start; }
.footer-logo { background: #fff; border-radius: 16px; padding: 10px; }
.footer-logo img { width: 56px; }
.site-footer .brand-name, .site-footer .brand-sub { color: #fff; }
.site-footer h4 { color: var(--gold); font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; display: block; margin-bottom: .45rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer p { margin: 0 0 .45rem; }
.social { display: flex; gap: 1rem; margin-top: .8rem; }
.footer-bar { background: var(--navy); }
.footer-bar-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 0; font-size: .78rem; letter-spacing: .08em; }
.footer-bar a { display: inline; margin: 0; }
.motto { letter-spacing: .3em; text-transform: uppercase; }

/* WhatsApp */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 60;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: #fff; display: grid; place-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.25); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* Página legal */
.legal { padding: 4rem 0 5rem; }
.legal .container { max-width: 860px; }
.legal h1 { font-family: var(--font-title); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.legal h2 { font-size: 1.15rem; margin-top: 2rem; }
.legal p, .legal li { color: #3a4556; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .services { grid-template-columns: repeat(2, 1fr); }
    .steps { grid-template-columns: repeat(3, 1fr); row-gap: 2.5rem; }
    .steps::before { display: none; }
}
@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .main-nav {
        position: absolute; top: 76px; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 30px rgba(7,29,61,.1);
        padding: .5rem 20px 1.2rem;
        display: none;
    }
    .main-nav.open { display: flex; }
    .main-nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
    .main-nav a:not(.btn)::after { display: none; }
    .main-nav .btn { margin-top: 1rem; justify-content: center; }
    .hero-grid, .about-grid, .health-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-grid { padding: 3.5rem 0 4.5rem; }
    .logo-card { max-width: 340px; }
    .checklist { grid-template-columns: 1fr; }
    .audience { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .cta-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 600px) {
    .container { width: calc(100% - 32px); }
    .section { padding: 4.2rem 0; }
    .services { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 1.6rem; }
    .pillars-inner { letter-spacing: .2em; font-size: .7rem; gap: .5rem 1rem; }
    .brand-name { font-size: 1.3rem; }
    .brand-sub { font-size: .52rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bar-inner { flex-direction: column; text-align: center; }
    .motto { letter-spacing: .15em; }
}
