/* ──────────────────────────────────────────────────────────────────────────
   web_design.css — Sistema de diseño del sitio público DP Soluciones.
   Portado de dp-soluciones-web (Next.js) → Django. Se carga DESPUÉS de
   tailwind.css. Tokens + clases custom (glass, reveals, grids responsive).
   ────────────────────────────────────────────────────────────────────────── */

/* Fuentes auto-hospedadas (sin render-blocking externo) */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-400-latin-ext.bd4781a31b42.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-400-latin.b636a65da4f0.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-400-latin-ext.bd4781a31b42.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/JetBrainsMono-400-latin.b636a65da4f0.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Montserrat-400-latin-ext.d16dfe26bcd7.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Montserrat-400-latin.311d352d9323.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Montserrat-400-latin-ext.d16dfe26bcd7.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Montserrat-400-latin.311d352d9323.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Montserrat-400-latin-ext.d16dfe26bcd7.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Montserrat-400-latin.311d352d9323.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Montserrat-400-latin-ext.d16dfe26bcd7.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Montserrat-400-latin.311d352d9323.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/Montserrat-400-latin-ext.d16dfe26bcd7.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/Montserrat-400-latin.311d352d9323.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Sentient (display serif, Fontshare) — diseño "Balcón al valle" */
@font-face { font-family:'Sentient'; font-style:normal; font-weight:400; font-display:swap; src:url("../fonts/Sentient-400.2ab45df88efe.woff2") format('woff2'); }
@font-face { font-family:'Sentient'; font-style:italic; font-weight:400; font-display:swap; src:url("../fonts/Sentient-400-italic.e71faecea6fd.woff2") format('woff2'); }
@font-face { font-family:'Sentient'; font-style:normal; font-weight:500; font-display:swap; src:url("../fonts/Sentient-500.db05c94d4501.woff2") format('woff2'); }
@font-face { font-family:'Sentient'; font-style:italic; font-weight:500; font-display:swap; src:url("../fonts/Sentient-500-italic.b0ad8c084312.woff2") format('woff2'); }
@font-face { font-family:'Sentient'; font-style:normal; font-weight:700; font-display:swap; src:url("../fonts/Sentient-700.5a12b815366d.woff2") format('woff2'); }

:root {
  --color-accent:        #E8501C;
  --color-accent-dark:   #C43E15;
  --color-accent-dim:    rgba(232,80,28,.07);
  --color-accent-mid:    rgba(232,80,28,.14);
  --color-accent-strong: rgba(232,80,28,.18);
  --color-navy:          #1D2E6E;
  --color-navy-dark:     #16245a;
  --color-verde:         #1E3B2F;
  --color-verde-deep:    #12261e;
  --color-ink:           #0c0c0a;
  --color-ink-2:         #5c5c58;
  --color-ink-3:         #70706a; /* AA 4.5:1 sobre blanco; igual al token ink-3 de Tailwind */
  --color-bg:            #ffffff;
  --color-surface:       #ffffff;
  --color-border:        #e3e7e4;
  --ease: cubic-bezier(.16,1,.3,1);
}

html { scroll-behavior: smooth; }
body {
  background: #fff;
  color: #0c0c0a;
  font-family: 'Montserrat', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.font-serif { font-family: 'Sentient', Georgia, serif; font-weight: 500; }
.bg-tint { background: #f2f5f3; }
.bg-verde-deep { background: var(--color-verde-deep); }
.text-verde { color: var(--color-verde); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* ─── Reveal on scroll ─── */
.rv { opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.on { opacity: 1; transform: translateY(0); }
.rv.d1 { transition-delay: .1s; }
.rv.d2 { transition-delay: .2s; }
.rv.d3 { transition-delay: .3s; }
.rv.d4 { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .rv { opacity: 1 !important; transform: none !important; }
}

/* ─── Card hover ─── */
.card-hover { transition: transform .32s var(--ease), box-shadow .32s var(--ease), border-color .32s var(--ease); }
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(232,80,28,.1);
  border-color: rgba(232,80,28,.2) !important;
}
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ─── Form controls ─── */
.form-input, .form-select {
  border: 1px solid var(--color-border);
  color: var(--color-ink);
  background: var(--color-surface);
  border-radius: 9px;
  padding: .625rem .75rem;
  font-size: .875rem;
  outline: none;
  transition: border-color .15s var(--ease);
  width: 100%;
}
.form-select { appearance: none; cursor: pointer; }
.form-input:focus, .form-select:focus { border-color: var(--color-accent); }

/* ─── Nav ─── */
.dp-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: all .3s var(--ease); }
.nav-top { padding: 1.25rem 0; background: transparent; border-bottom: 1px solid transparent; }
.nav-scrolled {
  padding: .875rem 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
}
.dp-nav .nav-link { color: var(--color-ink-2); }
.dp-nav .nav-link:hover { color: var(--color-ink); }
.nav-burger { color: var(--color-verde-deep); }
.nav-burger span { background: currentColor; }
/* páginas con hero oscuro (inicio): nav clara mientras está arriba */
.nav-on-dark .nav-top .nav-link { color: rgba(255,255,255,.92); }
.nav-on-dark .nav-top .nav-link:hover { color: #fff; }
.nav-on-dark .nav-top .nav-burger { color: #fff; }
.nav-on-dark .nav-top .logo-img { filter: brightness(0) invert(1); }

/* ─── Footer ─── */
.footer-social { color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }
.footer-social:hover { color: #fff; background: rgba(255,255,255,.14); }
.footer-link { color: rgba(255,255,255,.72); }
.footer-link:hover { color: rgba(255,255,255,.95); }

/* ─── Hero "Balcón al valle" ─── */
.hero-valle { position: relative; min-height: 100dvh; display: flex; flex-direction: column; color: #fff; }
.hero-valle-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-valle-velo { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(18,38,30,.55) 0%, rgba(18,38,30,.18) 45%, rgba(18,38,30,.74) 100%); }
.hero-valle-body { position: relative; z-index: 2; margin: auto 0 4.5rem; }
.hero-valle-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding-bottom: 1.8rem; font-family: 'JetBrains Mono', monospace; font-size: .68rem; letter-spacing: .1em; color: rgba(255,255,255,.78); text-transform: uppercase; }
@media (max-width: 768px) {
  .hero-valle { min-height: 92dvh; }
  .hero-valle-body { margin-bottom: 3rem; }
  .hero-valle-foot span:last-child { display: none; }
}

/* ─── Franja horizontal de propiedades ─── */
.strip-props { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 1rem; }
.strip-props::-webkit-scrollbar { height: 8px; }
.strip-props::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 99px; }
.gcard { flex: 0 0 min(360px, 82vw); scroll-snap-align: start; text-decoration: none; color: inherit; display: block; }
.gcard-ph { height: 430px; border-radius: 18px; overflow: hidden; position: relative; background: linear-gradient(160deg,#e2e9e4,#cfdad2); }
.gcard-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gcard:hover .gcard-ph img { transform: scale(1.04); }
.gcard-precio { position: absolute; left: 1.1rem; bottom: 1.1rem; background: rgba(255,255,255,.94); color: var(--color-verde-deep); border-radius: 10px; padding: .5rem .9rem; font-family: 'JetBrains Mono', monospace; font-size: .8rem; font-variant-numeric: tabular-nums; }
.gcard-360 { position: absolute; top: 1.1rem; right: 1.1rem; background: var(--color-verde-deep); color: #fff; font-family: 'JetBrains Mono', monospace; font-size: .58rem; letter-spacing: .12em; border-radius: 99px; padding: .45rem .8rem; text-transform: uppercase; }
@media (max-width: 640px) { .gcard-ph { height: 340px; } }

/* 1 destacada alta (2col × 3filas) + 6 tarjetas en 3 filas de 2 → sin huérfanas */
.servicios-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.svc-col-feat { grid-column: span 2; grid-row: span 3; }
.svc-col-2 { grid-column: span 2; }
.svc-col-6 { grid-column: span 6; }
@media (max-width: 1024px) {
  .servicios-grid .svc-col-feat { grid-column: span 6; grid-row: span 1; min-height: 260px; }
  .servicios-grid .svc-col-2 { grid-column: span 3; }
  .servicios-grid .svc-col-6 { grid-column: span 6; }
}
@media (max-width: 640px) {
  .servicios-grid { grid-template-columns: 1fr; }
  .servicios-grid .svc-col-feat,
  .servicios-grid .svc-col-2,
  .servicios-grid .svc-col-6 { grid-column: span 1; }
}

.nosotros-grid { display: grid; grid-template-columns: 42fr 58fr; }
.nosotros-badge { position: absolute; bottom: -1.5rem; right: -1.5rem; }
@media (max-width: 768px) {
  .nosotros-grid { grid-template-columns: 1fr; gap: 3rem; }
  .nosotros-badge { bottom: 1rem; right: 1rem; }
  .nosotros-img { height: 280px !important; }
}

.ubicacion-grid { display: grid; grid-template-columns: 1fr 1fr; }
.ubicacion-form-row { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) {
  .ubicacion-grid { grid-template-columns: 1fr; }
  .ubicacion-form-row { grid-template-columns: 1fr; }
  .ubicacion-map { height: 300px !important; }
}
