/* Desarrollos Demasplus — estilos del sitio */
:root {
  --ink: #121410;
  --text: #44473C;
  --olive-900: #2B2E1A;
  --olive-800: #3A4220;
  --olive-700: #4E5A2A;
  --olive-600: #5C6236;
  --olive-500: #6B7A30;
  --olive-300: #A3A646;
  --olive-200: #C3C58A;
  --muted-on-dark: #C9CBBC;
  --line-soft: #D6D8C8;
  --paper: #F2F2EC;
  --white: #FFFFFF;
  --wrap: 1376px;
  --gutter: 32px;
  --font-display: 'Archivo', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--olive-800); }
h1, h2, h3, p, figure, blockquote, dl, dd, ol { margin: 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--olive-500); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Etiquetas y títulos */
.label { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.1em; font-size: 13px; text-transform: uppercase; color: var(--olive-600); }
.label--sm { font-size: 12px; }
.label--xs { font-size: 11px; }
.h-section { font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 4.6vw, 64px); line-height: 0.95; letter-spacing: -0.03em; }
.accent { color: var(--olive-500); font-style: italic; }
.arrow { flex: none; }

/* Botones */
.btn { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; font-weight: 600; font-size: 15px; padding: 17px 26px; min-height: 48px; }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--olive-800); color: var(--white); }
.btn--line { border: 1px solid var(--ink); padding: 16px 26px; }
.btn-group { display: flex; flex-wrap: wrap; }
.btn-group .btn--line { border-left: 0; }

/* Barra superior */
.topbar { background: var(--ink); color: #D9DBC8; font-weight: 600; letter-spacing: 0.1em; font-size: 12px; }
.topbar .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--ink); background: var(--white); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header .logo img { height: 44px; width: auto; }
.nav { display: flex; align-items: stretch; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; padding: 13px 18px; display: flex; gap: 8px; align-items: baseline; }
.nav a span { font-weight: 600; letter-spacing: 0.1em; font-size: 11px; color: var(--olive-600); }
.nav .nav-cta { color: var(--white); background: var(--ink); padding: 13px 22px; margin-left: 8px; }
.nav .nav-cta:hover { background: var(--olive-800); color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid var(--ink); width: 48px; height: 48px; align-items: center; justify-content: center; cursor: pointer; }

/* Hero */
.hero { position: relative; }
.hero-arc { display: block; width: 100%; height: 110px; margin-top: 40px; }
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 48px; padding: 8px 0 64px; }
.hero-copy { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(52px, 8.4vw, 132px); line-height: 0.9; letter-spacing: -0.035em; }
.hero-sub { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; }
.hero-sub p { font-size: 18px; line-height: 1.6; color: var(--text); max-width: 460px; }
.hero-mark { flex: 1 1 320px; max-width: 420px; position: relative; display: flex; justify-content: flex-end; }
.hero-mark .plus-a { position: absolute; left: 0; top: 0; }
.hero-mark .plus-b { position: absolute; right: -36px; top: 18px; }
.cross { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); width: 100%; max-width: 360px; aspect-ratio: 1 / 1; margin-top: 40px; }

/* Destacados */
.featured { padding-bottom: 24px; display: flex; flex-direction: column; gap: 40px; }
.featured-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; border-top: 1px solid var(--ink); padding-top: 20px; }
.featured-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; max-width: 520px; text-align: right; }
.featured-grid { display: flex; flex-wrap: wrap; gap: 48px 24px; }
.featured-col { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.fig { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fig:hover { color: var(--ink); }
.fig--main { flex: 999 1 620px; gap: 16px; }
.fig--tall { flex: 1 1 420px; }
.fig--wide { flex: 1.6 1 560px; padding-top: 120px; }
.fig-media { position: relative; overflow: hidden; background: #DCDECB; }
.fig-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.fig:hover .fig-media img { transform: scale(1.03); }
.fig-media .fig-tag { position: absolute; right: 16px; bottom: 16px; color: var(--white); background: var(--ink); padding: 6px 10px; font-weight: 600; letter-spacing: 0.1em; font-size: 11px; }
.fig--main .fig-media { height: 720px; }
.featured-col .fig-media { height: 300px; }
.fig--tall .fig-media { height: 560px; }
.fig--wide .fig-media { height: 440px; }
.fig-caption { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; }
.fig-title { display: flex; gap: 14px; align-items: baseline; }
.fig-title h3 { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.fig--main .fig-title h3 { font-size: 34px; }
.fig-meta { font-size: 14px; color: var(--text); }
.link-more { align-self: flex-start; text-decoration: none; font-weight: 600; font-size: 15px; display: flex; gap: 14px; align-items: center; border-bottom: 1px solid var(--ink); padding: 12px 0; }

/* Cifras */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-left: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.stat { border-right: 1px solid var(--ink); padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 24px; }
.stat strong { font-family: var(--font-display); font-weight: 800; font-size: 64px; line-height: 0.9; }
.stat--dark { background: var(--ink); color: var(--white); }
.stat--dark .label { color: var(--olive-200); }

/* Nosotros */
.about { padding-top: 128px; padding-bottom: 112px; display: flex; flex-wrap: wrap; gap: 48px; }
.about-side { flex: 1 1 220px; display: flex; flex-direction: column; gap: 12px; }
.tiles { display: flex; }
.tiles span { width: 14px; height: 14px; }
.about-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 56px; }
.about-lead { font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 3.2vw, 46px); line-height: 1.15; letter-spacing: -0.02em; }
.about-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px; }
.about-cols > div { border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.about-cols .label { color: var(--ink); }
.about-cols p { font-size: 16px; line-height: 1.65; color: var(--text); }
.quote { display: flex; flex-wrap: wrap; border: 1px solid var(--ink); }
.quote-body { flex: 999 1 360px; padding: 36px; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
.quote blockquote { font-family: var(--font-display); font-weight: 500; font-size: 24px; line-height: 1.4; }
.quote figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line-soft); padding-top: 16px; }
.quote figcaption strong { font-size: 16px; }

/* Líneas de negocio */
.lines { background: var(--paper); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.lines .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 48px; }
.lines-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); border-left: 1px solid var(--ink); border-top: 1px solid var(--ink); }
.line-card { border-right: 1px solid var(--ink); border-bottom: 1px solid var(--ink); background: var(--white); display: flex; flex-direction: column; }
.line-card-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--ink); }
.line-card-head .label { color: var(--ink); display: flex; align-items: center; gap: 8px; }
.swatch { width: 12px; height: 12px; display: inline-block; }
.line-card-media { height: 260px; overflow: hidden; }
.line-card-media img { width: 100%; height: 100%; object-fit: cover; }
.line-card-body { padding: 24px 22px 28px; display: flex; flex-direction: column; gap: 10px; }
.line-card-body h3 { font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -0.02em; }
.line-card-body p { font-size: 15px; line-height: 1.6; color: var(--text); }

/* Índice de proyectos */
.index { padding-top: 128px; padding-bottom: 128px; display: flex; flex-direction: column; gap: 40px; }
.index-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.filters { display: flex; flex-wrap: wrap; border: 1px solid var(--ink); }
.filters button { font-size: 15px; font-weight: 600; padding: 12px 18px; min-height: 44px; border: 0; cursor: pointer; display: flex; gap: 8px; align-items: baseline; background: var(--white); color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.filters button span { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; opacity: 0.7; }
.index-body { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.index-list { list-style: none; padding: 0; flex: 999 1 560px; min-width: 0; border-top: 1px solid var(--ink); }
.index-list li { border-bottom: 1px solid var(--ink); }
.index-list li[hidden] { display: none; }
.row { width: 100%; border: 0; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; padding: 20px 16px; text-align: left; background: var(--white); color: var(--ink); }
.row:hover { background: var(--paper); }
.row[aria-pressed="true"] { background: var(--ink); color: var(--white); }
.row-num { font-weight: 600; letter-spacing: 0.1em; font-size: 12px; width: 32px; flex: none; }
.row-name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; flex: 1 1 220px; }
.row-type { font-weight: 600; letter-spacing: 0.1em; font-size: 12px; flex: 0 1 180px; }
.row-place { font-size: 14px; flex: 0 1 220px; opacity: 0.8; }
.preview { flex: 1 1 340px; border: 1px solid var(--ink); display: flex; flex-direction: column; position: sticky; top: 96px; background: var(--white); }
.preview-media { aspect-ratio: 4 / 3; background: #DCDECB; overflow: hidden; }
.preview-media img { width: 100%; height: 100%; object-fit: cover; }
.preview-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.preview-meta { display: flex; justify-content: space-between; }
.preview-name { font-family: var(--font-display); font-weight: 800; font-size: 30px; line-height: 1.05; letter-spacing: -0.02em; }
.preview-place { font-size: 14px; color: var(--text); }
.preview-desc { font-size: 15px; line-height: 1.6; color: var(--text); }

/* Cómo trabajamos */
.process { background: var(--ink); color: var(--white); }
.process .wrap { padding-top: 112px; padding-bottom: 112px; display: flex; flex-direction: column; gap: 64px; }
.process-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.process .label { color: var(--olive-200); }
.process-head p { font-size: 17px; line-height: 1.7; color: var(--muted-on-dark); max-width: 400px; }
.process-line { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; position: relative; }
.process-line::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #4A4E40; }
.process-line span { position: relative; width: 18px; height: 18px; }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.steps li { border-left: 1px solid #3B3E33; padding: 32px 28px 8px 20px; display: flex; flex-direction: column; gap: 14px; }
.step-num { font-family: var(--font-display); font-weight: 800; font-size: 72px; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--olive-300); }
.steps h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; }
.steps p { font-size: 15px; line-height: 1.6; color: var(--muted-on-dark); }

/* Altavida */
.altavida { background: var(--olive-300); border-bottom: 1px solid var(--ink); }
.altavida .wrap { padding-top: 72px; padding-bottom: 72px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.altavida-copy { flex: 999 1 520px; display: flex; flex-direction: column; gap: 16px; }
.altavida .label { color: var(--ink); }
.altavida h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -0.02em; max-width: 760px; }
.altavida-links { flex: 1 1 320px; display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.altavida-links a { text-decoration: none; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--ink); font-weight: 600; font-size: 16px; }
.altavida-links a:hover { color: var(--ink); background: rgba(255,255,255,0.18); }
.altavida-links .big { font-family: var(--font-display); font-weight: 800; font-size: 26px; }

/* Contacto */
.contact { padding-top: 128px; padding-bottom: 128px; display: flex; flex-wrap: wrap; gap: 64px; }
.contact-info { flex: 1 1 400px; max-width: 720px; display: flex; flex-direction: column; gap: 28px; }
.contact-info > p { font-size: 18px; line-height: 1.7; color: var(--text); max-width: 480px; }
.contact-list { display: flex; flex-direction: column; border-top: 1px solid var(--ink); font-size: 16px; }
.contact-list > div { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.contact-list dt { width: 100px; padding-top: 3px; }
.contact-list dd { display: flex; gap: 16px; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; letter-spacing: 0.1em; font-size: 12px; text-transform: uppercase; }
.field input, .field select, .field textarea { font-size: 17px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; border-radius: 0; color: var(--ink); }
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 22px; }

/* Footer */
.site-footer { background: var(--paper); border-top: 1px solid var(--ink); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 40px; }
.site-footer .logo-xl { width: 100%; max-width: 1100px; height: auto; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; border-top: 1px solid var(--ink); padding-top: 20px; font-weight: 600; letter-spacing: 0.1em; font-size: 12px; color: var(--text); text-transform: uppercase; }

/* Página legal */
.legal { padding-top: 80px; padding-bottom: 120px; max-width: 820px; }
.legal h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; line-height: 1; margin-bottom: 40px; }
.legal h2 { font-family: var(--font-display); font-weight: 700; font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--text); }
.legal ul { padding-left: 20px; }
.legal p + p { margin-top: 12px; }
.legal ol { padding-left: 22px; margin: 0; }
.legal li + li { margin-top: 6px; }
.legal ul, .legal ol { margin-top: 12px; }
.legal ul + p, .legal ol + p, .legal-datos + p { margin-top: 16px; }
.legal a { color: var(--olive-800); }
.legal h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 0 0 8px; color: var(--ink); }
.legal .legal-sub { margin-top: 24px; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--olive-600); }
.legal h1 { margin-bottom: 20px; }
.legal-lead { font-size: 18px !important; max-width: 640px; }
.legal-volver { font-weight: 600; letter-spacing: 0.1em; font-size: 12px; text-transform: uppercase; text-decoration: none; border: 1px solid var(--ink); padding: 12px 18px; }
.legal-volver:hover { background: var(--ink); color: var(--white); }
.legal-corto { margin: 40px 0 8px; background: var(--paper); border-top: 3px solid var(--olive-300); padding: 28px 28px 24px; }
.legal-corto h2 { margin: 0 0 16px; }
.legal-corto dl > div { display: grid; grid-template-columns: 190px 1fr; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.legal-corto dt { font-weight: 600; letter-spacing: 0.1em; font-size: 12px; text-transform: uppercase; color: var(--olive-600); padding-top: 4px; }
.legal-corto dd { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink); }
.legal-datos { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); margin-top: 16px; }
.legal-datos > div { background: var(--white); padding: 20px; }
.legal-datos p { font-size: 15px; line-height: 1.6; }
.legal-fecha { margin-top: 40px !important; font-size: 14px !important; }
.pendiente { background: #FFF1A8; color: var(--ink) !important; }
@media (max-width: 760px) {
  .legal { padding-top: 48px; padding-bottom: 80px; }
  .legal-corto { padding: 22px 18px 18px; }
  .legal-corto dl > div { grid-template-columns: 1fr; gap: 4px; }
  .legal-datos { grid-template-columns: 1fr; }
  .legal-volver { padding: 10px 12px; }
}

/* Tablet */
@media (max-width: 1024px) {
  .fig--main .fig-media { height: 520px; }
  .fig--wide { padding-top: 0; }
}

/* Celular */
@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .topbar .wrap span:last-child { display: none; }
  .site-header .logo img { height: 34px; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--white); border-bottom: 1px solid var(--ink); padding: 8px var(--gutter) 16px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
  .nav .nav-cta { margin: 12px 0 0; justify-content: center; padding: 14px 22px; }
  .site-header .wrap { position: relative; }
  .hero-arc { height: 60px; margin-top: 24px; }
  .hero-row { gap: 32px; padding-bottom: 48px; }
  .hero-mark { max-width: 240px; align-self: flex-end; margin-right: 36px; }
  .featured-head h2 { text-align: left; }
  .fig--main .fig-media { height: 380px; }
  .featured-col .fig-media, .fig--wide .fig-media { height: 260px; }
  .fig--tall .fig-media { height: 420px; }
  .fig--main .fig-title h3 { font-size: 26px; }
  .stat strong { font-size: 48px; }
  .about { padding-top: 80px; padding-bottom: 80px; }
  .index, .contact { padding-top: 80px; padding-bottom: 80px; }
  .lines .wrap, .process .wrap { padding-top: 72px; padding-bottom: 72px; }
  .preview { order: -1; position: static; }
  .row { padding: 16px 8px; }
  .row-name { font-size: 19px; }
  .quote-body { padding: 24px; }
  .step-num { font-size: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fig-media img { transition: none; }
}
