/* Sedimentia — estilos de la web. Colores y tipografía del manual de marca. */

@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --surface: #F6F2EA;
  --surface-raised: #FFFFFF;
  --line: #DDD5C7;
  --ink: #23302E;
  --ink-muted: #5B6360;
  --arcilla: #A14E2C;
  --on-arcilla: #FFFFFF;
  --pizarra: #23302E;
  --limo: #7D8C70;
  --arena: #D8C7A6;
  --arcilla-claro: #D9835E;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--arcilla); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--arcilla); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--surface); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* Cabecera */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 0; }
.nav a:hover { color: var(--arcilla); }
.lang { display: flex; gap: 4px; font-size: 13px; font-weight: 600; letter-spacing: .06em; }
.lang a { padding: 10px 8px; color: var(--ink-muted); }
.lang a[aria-current="true"] { color: var(--ink); border-bottom: 2px solid var(--arcilla); }

/* Botones */
.btn { display: inline-block; font-weight: 600; text-decoration: none; padding: 14px 24px; border-radius: 2px; line-height: 1.2; }
.btn-primary { background: var(--arcilla); color: var(--on-arcilla); }
.btn-primary:hover { background: #8A4123; color: var(--on-arcilla); }
.btn-secondary { color: var(--ink); border: 1px solid var(--ink); padding: 13px 24px; }
.btn-secondary:hover { background: var(--ink); color: var(--surface); }
.nav .btn-primary { color: var(--on-arcilla); padding: 12px 20px; }
.nav .btn-primary:hover { color: var(--on-arcilla); }

/* Tipografía */
.label { margin: 0; font-size: 13px; line-height: 18px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.label-accent { color: var(--arcilla); }
h1, h2, h3 { margin: 0; }
.display { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 60px); line-height: 1.07; letter-spacing: -.01em; max-width: 14em; }
.title { font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 40px); line-height: 1.15; }
.lead { font-size: 20px; line-height: 1.5; color: var(--ink-muted); max-width: 30em; margin: 0; }
.muted { color: var(--ink-muted); }
p { margin: 0; }

/* Secciones */
.section { padding-top: 96px; padding-bottom: 96px; }
.section-raised { background: var(--surface-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 48px; }

.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 96px; padding-bottom: 112px; }
.hero-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 8px; }
.strata { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.strata span { display: block; height: 56px; border-radius: 2px; }
.strata .s1 { width: 68%; background: var(--arena); }
.strata .s2 { width: 86%; background: var(--limo); }
.strata .s3 { width: 100%; background: var(--arcilla); }
.strata .s4 { width: 100%; height: 120px; background: var(--pizarra); }

.grid { display: flex; flex-wrap: wrap; gap: 24px; }
.grid > * { flex: 1 1 300px; min-width: 0; }

.service { border-top: 4px solid var(--arcilla); padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.service.c2 { border-top-color: var(--limo); }
.service.c3 { border-top-color: var(--arena); }
.service.c4 { border-top-color: var(--pizarra); }
.service h3 { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.3; }
.service p { color: var(--ink-muted); }
.note { align-self: flex-end; font-size: 15px; line-height: 1.45; color: var(--ink-muted); }

.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 4px; padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 19px; line-height: 1.35; font-weight: 600; }
.card p { color: var(--ink-muted); }

.step { display: flex; flex-direction: column; gap: 12px; }
.step .num { font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--arcilla); }
.step h3 { font-size: 19px; line-height: 1.35; font-weight: 600; }
.step p { color: var(--ink-muted); }

.about .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.photo { flex: 1 1 320px; min-width: 0; max-width: 420px; aspect-ratio: 21 / 22; background: var(--arena); border-radius: 4px; display: flex; align-items: center; justify-content: center; font-weight: 600; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text { flex: 999 1 480px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 20px; }

.contact { background: var(--pizarra); color: var(--surface); }
.contact .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px; padding-top: 96px; padding-bottom: 96px; }
.contact-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.contact .title { font-size: clamp(32px, 4.4vw, 44px); }
.contact-text p, .contact-data p { color: var(--arena); }
.contact-data { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-data .mail { color: var(--surface); font-weight: 600; text-align: center; padding: 10px 0; }
.contact-data .mail:hover { color: var(--arena); }
.btn-light { background: var(--arcilla-claro); color: #151B1A; text-align: center; }
.btn-light:hover { background: var(--surface); color: var(--ink); }

/* Pie */
.site-footer { background: var(--pizarra); color: var(--arena); border-top: 1px solid #34403E; font-size: 13px; line-height: 1.45; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.site-footer img { height: 88px; width: auto; }
.footer-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--surface); }
.site-footer a:hover { color: var(--arena); }

/* Páginas legales */
.legal .wrap { max-width: 760px; padding-top: 72px; padding-bottom: 96px; }
.legal h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 40px); line-height: 1.15; margin-bottom: 24px; }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.3; margin: 40px 0 12px; }
.legal p, .legal li { margin: 0 0 12px; }
.legal ul { padding-left: 20px; margin: 0 0 12px; }
.pending { background: #FFF6E6; border: 1px solid var(--arena); border-radius: 4px; padding: 16px 20px; margin-bottom: 32px; }

@media (max-width: 640px) {
  .section, .hero .wrap, .contact .wrap { padding-top: 64px; padding-bottom: 64px; }
  .hero .wrap { gap: 40px; }
  .strata span { height: 36px; }
  .strata .s4 { height: 72px; }
  .lead { font-size: 18px; }
}
