/* ──────────────────────────────────────────────────────────────────────────
   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;
}

: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-ink:           #0c0c0a;
  --color-ink-2:         #5c5c58;
  --color-ink-3:         #9c9c96;
  --color-bg:            #f5f5f0;
  --color-surface:       #ffffff;
  --color-border:        #e2e2dc;
  --ease: cubic-bezier(.16,1,.3,1);
}

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

: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; }
}

/* ─── Glass / card hover ─── */
.glass {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 20px 48px rgba(232,80,28,.1);
}
.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(245,245,240,.92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--color-border);
}
.nav-social-hover:hover { background: rgba(29,46,110,.07); }

/* ─── 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); }

/* ─── Responsive layout helpers ─── */
.hero-grid { display: grid; grid-template-columns: 56fr 44fr; min-height: 100dvh; padding-top: 5rem; }
.hero-left-pad { padding: clamp(2rem,4vw,4rem) 3.5rem clamp(2rem,4vw,4rem) clamp(1.25rem,4vw,4rem); }
.hero-right { min-height: 100dvh; }
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding-top: 6.5rem; }
  .hero-left-pad { padding: 2rem 1.25rem 0; }
  .hero-right { min-height: 56vw; margin-top: 1.5rem; }
}

.servicios-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.svc-col-feat { grid-column: span 4; grid-row: span 2; }
.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 3; grid-row: span 1; min-height: 220px; }
  .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; }
}

.propiedades-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 1024px) { .propiedades-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .propiedades-grid { grid-template-columns: 1fr; } }

.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; }
}
