/* Tipografías de la marca, alojadas en la propia web (sin llamadas a Google, mejor para RGPD) */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 800; font-stretch: 100% 125%; font-display: swap; src: url("/assets/fonts/archivo.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/assets/fonts/public-sans.woff2") format("woff2"); }

:root {
  --bg: #ffffff;
  --bg-alt: #eef1f4;
  --text: #0e2238;
  --muted: #4d5a6b;
  --primary: #0e2238;
  --accent: #12a46b;
  --accent-dark: #0b7a4e;
  --accent-light: #d8f1e5;
  --border: #dfe4ea;
  --pending-bg: #fff4d6;
  --pending-text: #7a5600;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Public Sans", Arial, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, h3 { color: var(--primary); line-height: 1.15; margin: 0 0 .6em; font-family: "Archivo", "Arial Black", Arial, sans-serif; font-stretch: 118%; font-weight: 750; }
h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.1rem); letter-spacing: -.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 80px 0; scroll-margin-top: 64px; }
section.alt { background: var(--bg-alt); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.section-intro { color: var(--muted); max-width: 680px; margin-bottom: 2.5rem; }

/* Marcadores de contenido pendiente: se ven a propósito para no publicar nada a medias */
.pending {
  background: var(--pending-bg);
  color: var(--pending-text);
  border-radius: 4px;
  padding: 0 .3em;
  font-style: italic;
}

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.logo { display: block; line-height: 0; }
.logo img { height: 32px; width: auto; }
.footer-logo { height: 26px; width: auto; margin-bottom: 8px; }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--text); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--accent-dark); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--primary); cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 20px; border-top: 1px solid var(--border); }
}

/* Botones */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius);
  background: var(--accent-dark); color: #fff; text-decoration: none; font-weight: 600;
  border: 0; cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-alt); }

/* Inicio */
.hero { padding: 110px 0 90px; background: linear-gradient(160deg, #e6f5ee 0%, #ffffff 60%); }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; color: var(--accent-dark); font-weight: 700; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

/* Tarjetas */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px;
}
.card .icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--accent-light); color: var(--accent-dark);
  display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px;
}
.card p { color: var(--muted); margin: 0; }

/* Pasos */
.steps { counter-reset: step; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; padding: 26px; border-left: 3px solid var(--accent); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  display: block; font-weight: 800; color: var(--accent); font-size: 1.4rem; margin-bottom: 6px;
}
.step p { color: var(--muted); margin: 0; }

/* Sobre mí */
.about { display: grid; gap: 40px; grid-template-columns: 220px 1fr; align-items: start; }
.photo-placeholder {
  width: 220px; height: 260px; border-radius: var(--radius); background: var(--bg-alt);
  border: 2px dashed var(--border); display: grid; place-items: center; color: var(--muted);
  font-size: .9rem; text-align: center; padding: 10px;
}
@media (max-width: 700px) {
  .about { grid-template-columns: 1fr; }
  .photo-placeholder { width: 160px; height: 190px; }
}

/* Contacto */
.contact { display: grid; gap: 40px; grid-template-columns: 1fr 1.3fr; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 14px; }
.contact-list strong { display: block; color: var(--primary); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
form { display: grid; gap: 16px; }
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 6px; }
input, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px;
  font: inherit; color: inherit; background: #fff;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 140px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; color: var(--muted); }
.check input { width: auto; margin-top: 4px; }
.legal-note { font-size: .8rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; }

/* Pie */
.site-footer { background: var(--primary); color: #8a97a8; padding: 40px 0; font-size: .9rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }

/* Páginas legales */
.legal { padding: 60px 20px 80px; max-width: 760px; }
.header-link { color: var(--text); text-decoration: none; font-size: .95rem; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal table { border-collapse: collapse; width: 100%; font-size: .9rem; }
.legal td, .legal th { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }

/* Equipo */
.team-photo { width: 100%; height: 180px; margin-bottom: 16px; }
@media (max-width: 700px) { .team-photo { width: 100%; height: 160px; } }

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .grid-2 { grid-template-columns: 1fr; } }

.tag { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 700; color: var(--accent-dark) !important; margin: 0 0 8px !important; }

.vertical ul { margin: 14px 0 0; padding-left: 18px; color: var(--text); font-size: .93rem; }
.vertical li { margin-bottom: 4px; }
.vertical li::marker { color: var(--accent); }

/* Matriz verticales x servicios */
.matrix-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.matrix { border-collapse: collapse; width: 100%; min-width: 760px; font-size: .92rem; }
.matrix th, .matrix td { padding: 14px 12px; border-bottom: 1px solid var(--border); text-align: center; }
.matrix thead th { background: var(--primary); color: #fff; font-family: "Archivo", Arial, sans-serif; font-stretch: 110%; font-weight: 700; font-size: .82rem; vertical-align: bottom; }
.matrix thead th:first-child { text-align: left; }
.matrix .axis { color: #8a97a8; font-weight: 500; font-size: .78rem; }
.matrix tbody th { text-align: left; font-weight: 600; color: var(--primary); width: 30%; }
.matrix tbody tr:nth-child(even) { background: var(--bg-alt); }
.matrix tbody tr:last-child th, .matrix tbody tr:last-child td { border-bottom: 0; }
.matrix td { font-size: 1.25rem; line-height: 1; }
.on { color: var(--accent); }
.off { color: #b4bfcc; }
.matrix-legend { margin-top: 12px; font-size: .88rem; color: var(--muted); }
.matrix { table-layout: fixed; } .matrix thead th:first-child { width: 30%; } .matrix thead th:not(:first-child) { width: 14%; }
@media (min-width: 1100px) { .nowrap-d { white-space: nowrap; } .hero h1 { font-size: 2.7rem; } }

.contact-simple { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.btn-lg { font-size: 1.2rem; padding: 18px 34px; }
.contact-simple .legal-note { max-width: 560px; }
