/* =========================================================
   ADDECUO DATA — Hoja de estilos
   Colores tomados de la identidad corporativa (degradado
   morado → azul petróleo → verde azulado).
   Sin fuentes externas: no se transmiten IPs a terceros.
   ========================================================= */
:root {
  --c-plum: #33284a;
  --c-navy: #24465a;
  --c-petrol: #1a6878;
  --c-teal: #0f9688;
  --c-mint: #5cbcaa;
  --c-sage: #71b5b3;
  --c-ink: #1d2b38;
  --c-text: #3d4b57;
  --c-muted: #6b7a86;
  --c-line: #dfe7ea;
  --c-bg: #ffffff;
  --c-soft: #f3f7f8;
  --c-danger: #b42318;
  --c-ok: #0b7a57;
  --grad: linear-gradient(90deg, var(--c-plum) 0%, var(--c-navy) 35%, var(--c-petrol) 68%, var(--c-teal) 90%, var(--c-mint) 100%);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 40, 55, .06), 0 8px 28px rgba(20, 40, 55, .08);
  --font: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--c-text); background: var(--c-bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-petrol); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-teal); }
h1, h2, h3, h4 { color: var(--c-ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--c-teal); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--c-ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent;
  background: var(--c-teal); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s, color .2s; font-family: inherit; }
.btn:hover { background: var(--c-petrol); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--c-navy); }
.btn--outline { background: transparent; border-color: var(--c-teal); color: var(--c-petrol); }
.btn--outline:hover { background: var(--c-teal); color: #fff; }
.btn--sm { padding: .5em 1.15em; font-size: .95rem; }
.btn--danger { background: var(--c-danger); }
.btn--danger:hover { background: #8f1c13; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow::after { content: " →"; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); backdrop-filter: blur(8px); }
.topbar { background: var(--grad); color: rgba(255,255,255,.9); font-size: .85rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; flex-wrap: wrap; }
.navbar { border-bottom: 1px solid var(--c-line); }
.navbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.brand { display: inline-flex; text-decoration: none; }
.logo-svg { height: 52px; width: auto; }
.menu ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.menu a { display: block; padding: .5em .8em; color: var(--c-ink); text-decoration: none; font-weight: 500; border-radius: 8px; }
.menu a:not(.btn):hover { color: var(--c-teal); }
.menu a[aria-current="page"]:not(.btn) { color: var(--c-teal); box-shadow: inset 0 -2px 0 var(--c-teal); border-radius: 0; }
.menu .btn { margin-left: 8px; color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--c-ink); margin: 6px 0; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--c-line); box-shadow: var(--shadow); display: none; }
  .menu.is-open { display: block; }
  .menu ul { flex-direction: column; align-items: stretch; padding: 10px 24px 20px; }
  .menu a { padding: .8em 0; border-bottom: 1px solid var(--c-line); }
  .menu a[aria-current="page"]:not(.btn) { box-shadow: none; }
  .menu .btn { margin: 14px 0 0; justify-content: center; border-bottom: 0; }
  .topbar__in > span:first-child { display: none; }
  .navbar { position: relative; }
}

/* ---------- Héroe y cabeceras de página ---------- */
.tiles { position: relative; overflow: hidden; color: #fff; background-color: var(--c-navy); }
.tiles::before { /* patrón de rombos que evoca la fachada de la imagen corporativa */
  content: ""; position: absolute; inset: 0; opacity: .14;
  background:
    conic-gradient(from 45deg at 50% 50%, #fff 0 25%, transparent 0 50%, rgba(255,255,255,.35) 0 75%, transparent 0) 0 0 / 56px 56px;
  transform: rotate(-8deg) scale(1.4);
}
.tiles::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(51,40,74,.96) 0%, rgba(36,70,90,.9) 40%, rgba(26,104,120,.82) 75%, rgba(15,150,136,.75) 100%); }
.tiles > * { position: relative; z-index: 1; }
.hero { padding: clamp(70px, 10vw, 130px) 0 clamp(80px, 10vw, 130px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 58ch; color: rgba(255,255,255,.9); font-weight: 300; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--c-teal); margin-bottom: .8em; display: block; }
.tiles .eyebrow { color: var(--c-mint); }
.hero__chips { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__chips li { border: 1px solid rgba(255,255,255,.35); padding: .35em .9em; border-radius: 999px; font-size: .9rem; color: rgba(255,255,255,.92); }
.page-head { padding: 70px 0 60px; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { color: rgba(255,255,255,.88); max-width: 62ch; font-size: 1.15rem; font-weight: 300; margin: 0; }
.crumbs { font-size: .88rem; margin-bottom: 14px; color: rgba(255,255,255,.75); }
.crumbs a { color: #fff; }
.grad-rule { height: 6px; background: var(--grad); }

/* ---------- Secciones ---------- */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section--soft { background: var(--c-soft); }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head p { font-size: 1.1rem; color: var(--c-muted); }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Tarjetas */
.card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 30px; transition: box-shadow .25s, transform .25s, border-color .25s; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.card h3 { margin-top: 14px; }
.card p { color: var(--c-muted); }
.card .link-arrow { margin-top: auto; }
.icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c-navy), var(--c-teal)); color: #fff; flex-shrink: 0; }
.icon svg { width: 26px; height: 26px; }
.card--feature { background: var(--grad); color: #fff; border: 0; }
.card--feature h3, .card--feature p { color: #fff; }
.card--feature .icon { background: rgba(255,255,255,.18); }
.card--feature .link-arrow { color: #fff; }

/* Fases */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: s; }
.steps li { position: relative; padding: 26px 20px 22px; border-radius: var(--radius); background: #fff; border-top: 5px solid var(--c-sage); box-shadow: var(--shadow); }
.steps li:nth-child(2) { border-color: #1d7f7d; }
.steps li:nth-child(3) { border-color: var(--c-petrol); }
.steps li:nth-child(4) { border-color: var(--c-navy); }
.steps li:nth-child(5) { border-color: var(--c-plum); }
.steps li::before { counter-increment: s; content: "Fase " counter(s); display: block; font-weight: 800; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--c-teal); margin-bottom: 6px; }
.steps h3 { font-size: 1.08rem; margin-bottom: .4em; }
.steps p { font-size: .95rem; color: var(--c-muted); margin: 0; }
@media (max-width: 980px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Lista con check */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 34px; margin-bottom: .7em; }
.checks li::before { content: ""; position: absolute; left: 0; top: .25em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--c-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks--2 { columns: 2; column-gap: 40px; }
.checks--2 li { break-inside: avoid; }
@media (max-width: 640px) { .checks--2 { columns: 1; } }

/* Cifras / razones */
.reasons { counter-reset: r; }
.reason { display: flex; gap: 18px; }
.reason::before { counter-increment: r; content: "0" counter(r); font-size: 2.6rem; font-weight: 800; line-height: 1; color: #d6e3e6; flex-shrink: 0; width: 60px; }
.reason h3 { margin: 4px 0 .3em; font-size: 1.1rem; }
.reason p { color: var(--c-muted); margin: 0; }

/* Panel visual */
.panel { border-radius: 20px; padding: 40px; color: #fff; }
.panel h3 { color: #fff; }
.panel ul { margin: 0; }
.panel .checks li::before { background-color: rgba(255,255,255,.22); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.stat strong { display: block; font-size: 2rem; line-height: 1.1; color: #fff; }
.stat span { font-size: .9rem; color: rgba(255,255,255,.8); }

/* Servicios (página) */
.svc-nav { position: sticky; top: 112px; z-index: 5; background: #fff; border-bottom: 1px solid var(--c-line); }
.svc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.svc-nav a { display: block; white-space: nowrap; padding: 14px 14px; text-decoration: none; color: var(--c-text); font-weight: 600; font-size: .95rem; border-bottom: 3px solid transparent; }
.svc-nav a:hover, .svc-nav a.is-active { color: var(--c-teal); border-bottom-color: var(--c-teal); }
.svc { scroll-margin-top: 170px; padding: clamp(56px, 7vw, 90px) 0; border-bottom: 1px solid var(--c-line); }
.svc:nth-of-type(even) { background: var(--c-soft); }
.svc__title { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.svc__title h2 { margin: 0; }
.box { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 28px; }
.box h3 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--c-petrol); }
.note { font-size: .92rem; color: var(--c-muted); border-left: 3px solid var(--c-sage); padding-left: 14px; }
@media (max-width: 960px) { .svc-nav { top: 79px; } .svc { scroll-margin-top: 140px; } }

/* Formación */
.course { display: flex; flex-direction: column; gap: 8px; }
.course__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 10px; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .03em; padding: .2em .7em; border-radius: 999px; background: #e3f2f0; color: #0b6b61; }
.tag--alt { background: #e8e9f3; color: var(--c-plum); }
.mode { display: flex; gap: 18px; align-items: flex-start; }

/* Noticias */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 980px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .news-grid { grid-template-columns: 1fr; } }
.news-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.news-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--c-soft); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; }
.news-card__ph { display: block; width: 100%; height: 100%; background: var(--grad); position: relative; }
.news-card__ph::after { content: ""; position: absolute; inset: 0; opacity: .12; background: conic-gradient(from 45deg, #fff 0 25%, transparent 0 50%, #fff 0 75%, transparent 0) 0 0 / 34px 34px; }
.news-card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-card__body h3 { font-size: 1.15rem; margin: .4em 0; }
.news-card__body h3 a { color: var(--c-ink); text-decoration: none; }
.news-card__body h3 a:hover { color: var(--c-teal); }
.news-card__body p { color: var(--c-muted); font-size: .97rem; }
.news-card__body .link-arrow { margin-top: auto; }
.news-card__meta { font-size: .85rem; color: var(--c-muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.filters a { text-decoration: none; padding: .4em 1em; border-radius: 999px; border: 1px solid var(--c-line); color: var(--c-text); font-size: .93rem; }
.filters a:hover { border-color: var(--c-teal); color: var(--c-teal); }
.filters a[aria-current="true"] { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; display: grid; place-items: center; padding: 0 12px; border-radius: 10px; border: 1px solid var(--c-line); text-decoration: none; color: var(--c-text); }
.pager span[aria-current] { background: var(--c-teal); border-color: var(--c-teal); color: #fff; }
.article { max-width: 760px; margin: 0 auto; }
.article__cover { border-radius: var(--radius); overflow: hidden; margin: 0 0 36px; }
.article__body { font-size: 1.1rem; }
.article__body h2 { font-size: 1.45rem; margin-top: 1.6em; }
.article__body li { margin-bottom: .4em; }
.article__lead { font-size: 1.25rem; color: var(--c-ink); font-weight: 400; }
.article__foot { margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--c-line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; align-items: center; }
.empty { text-align: center; padding: 50px 20px; color: var(--c-muted); border: 1px dashed var(--c-line); border-radius: var(--radius); }

/* Colaboradores */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.logo-tile { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 24px; display: grid; place-items: center; min-height: 120px; text-align: center; text-decoration: none; color: var(--c-ink); font-weight: 600; }
.logo-tile img { max-height: 60px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logo-tile:hover img { filter: none; opacity: 1; }

/* Formularios */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; color: var(--c-ink); margin-bottom: 6px; font-size: .95rem; }
.field .req { color: var(--c-teal); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75em .9em; border: 1px solid #c9d5da; border-radius: 10px; background: #fff; color: var(--c-ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-teal); box-shadow: 0 0 0 4px rgba(15,150,136,.15); }
.field small { color: var(--c-muted); display: block; margin-top: 4px; }
.field .err { color: var(--c-danger); font-size: .9rem; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check input { margin-top: .35em; width: 18px; height: 18px; accent-color: var(--c-teal); flex-shrink: 0; }
.hp { position: absolute !important; left: -9999px !important; }
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; border: 1px solid; }
.alert--ok { background: #e7f6f0; border-color: #a6dcc6; color: #075e43; }
.alert--error { background: #fdecea; border-color: #f4b7b0; color: #8f1c13; }
.info-table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: 6px; }
.info-table th, .info-table td { text-align: left; vertical-align: top; padding: 7px 10px; border: 1px solid var(--c-line); }
.info-table th { width: 30%; background: var(--c-soft); color: var(--c-ink); font-weight: 600; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list strong { display: block; color: var(--c-ink); }
.map-box { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--c-line); margin-top: 30px; background: var(--c-soft); }
.map-box iframe { display: block; width: 100%; height: 300px; border: 0; }
.map-box__ph { padding: 34px 24px; text-align: center; }
.map-box__ph p { font-size: .9rem; color: var(--c-muted); }

/* Textos legales */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .95rem; }
.legal th, .legal td { border: 1px solid var(--c-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--c-soft); }
.legal .pending { background: #fff7e0; padding: 0 .3em; border-radius: 4px; }

/* CTA */
.cta { padding: 70px 0; }
.cta__in { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0 0 .2em; }
.cta p { color: rgba(255,255,255,.85); margin: 0; font-size: 1.1rem; }

/* Pie */
.site-footer { background: #17222c; color: #b8c4cc; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 50px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 1.1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45em; }
.site-footer a { color: #b8c4cc; text-decoration: none; }
.site-footer a:hover { color: var(--c-mint); }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer__claim { margin-top: 18px; max-width: 34ch; }
.brand--light .logo-svg { height: 48px; }
.footer__legal { border-top: 1px solid rgba(255,255,255,.08); font-size: .87rem; }
.footer__legal-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }
.footer__legal nav { display: flex; gap: 20px; flex-wrap: wrap; }

/* Aparición suave */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
