/*
 * ╔══════════════════════════════════════════════════════════╗
 * ║               HEMAN — style.css                         ║
 * ║  Estilos unificados: index · admin · cotización         ║
 * ╠══════════════════════════════════════════════════════════╣
 * ║  Agrega en cada <body> la clase de su página:           ║
 * ║    index.html      →  <body class="site">               ║
 * ║    admin.html      →  <body class="admin-page">         ║
 * ║    cotizacion.html →  <body class="cotizacion-page">    ║
 * ╚══════════════════════════════════════════════════════════╝
 *
 * Índice de secciones
 * ───────────────────
 *  §01  Variables globales (tokens de diseño)
 *  §02  Reset
 *  §03  Helpers de layout compartidos
 *
 *  ── SITE (index.html) ──────────────────────────────────────
 *  §04  Tipografía del sitio
 *  §05  Botones del sitio
 *  §06  Header / Nav
 *  §07  Hero
 *  §08  Services bar
 *  §09  About / Nosotros
 *  §10  Servicios completos
 *  §11  Proyectos
 *  §12  Proceso de trabajo
 *  §13  Equipos
 *  §14  Calidad y seguridad
 *  §15  Comparador antes / después
 *  §16  Por qué HEMAN
 *  §17  Problemas / soluciones
 *  §18  Cobertura geográfica
 *  §19  CTA Block
 *  §20  Formulario de cotización (index)
 *  §21  Sección contacto
 *  §22  Footer
 *  §23  WhatsApp float + Mobile bar
 *  §24  Galería pública
 *  §25  Animaciones y refinamientos del sitio
 *
 *  ── ADMIN PANEL (admin.html) ───────────────────────────────
 *  §26  Login
 *  §27  App shell / sidebar
 *  §28  Barra de auto-guardado
 *  §29  Main / topbar
 *  §30  Dashboard (mast + stats)
 *  §31  Módulos
 *  §32  Controles de formulario (admin)
 *  §33  Zona de carga de imágenes
 *  §34  Botones (admin)
 *  §35  Notices
 *  §36  Galería (admin)
 *  §37  Servicios (admin)
 *  §38  Testimonios (admin)
 *  §39  Cotizaciones recibidas
 *  §40  Backup
 *  §41  Preview modal
 *
 *  ── COTIZACIÓN (cotizacion.html) ───────────────────────────
 *  §42  Layout de cotización
 *
 *  ── RESPONSIVE ─────────────────────────────────────────────
 *  §43  Media queries del sitio
 *  §44  Media queries del admin
 *  §45  Media queries cotización
 *  §46  Accesibilidad (prefers-reduced-motion)
 */


/* ════════════════════════════════════════════════════════════
   §01  VARIABLES GLOBALES
   ════════════════════════════════════════════════════════════ */

:root {

  /* ─── Paleta del sitio (index.html) ─────────────────────── */
  --asfalto:      #17191B;
  --grafito:      #25292C;
  --gris:         #63676A;
  --gris-claro:   #F2F3F3;
  --blanco:       #FFFFFF;
  --amarillo:     #FFC400;
  --amarillo-dk:  #E6B000;
  --footer-bg:    #111315;

  /* ─── Paleta del admin (admin.html) ─────────────────────── */
  --b:   #111315;   /* fondo oscuro */
  --p:   #1b1f22;   /* panel / superficie */
  --y:   #ffc400;   /* amarillo acento */
  --w:   #f5f6f6;   /* texto claro */
  --m:   #93999d;   /* texto muted */
  --err: #ff9393;   /* rojo error */
  --ok:  #7dffaa;   /* verde éxito */
  --bd:  #292d30;   /* borde */

  /* ─── Tipografía ─────────────────────────────────────────── */
  --font-display: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* ─── Motion ─────────────────────────────────────────────── */
  --ease:   cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 200ms;
  --t-med:  320ms;

  /* ─── Misceláneos ────────────────────────────────────────── */
  --r:           6px;
  --wrap:        1280px;
  --pad-section: 96px;
}


/* ════════════════════════════════════════════════════════════
   §02  RESET
   ════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html                   { scroll-behavior: smooth; font-size: 16px; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
img                    { display: block; max-width: 100%; height: auto; }
a                      { text-decoration: none; color: inherit; }
button                 { font-family: inherit; cursor: pointer; border: none; background: none; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
input, select, textarea { font-family: inherit; }


/* ════════════════════════════════════════════════════════════
   §03  HELPERS DE LAYOUT COMPARTIDOS
   ════════════════════════════════════════════════════════════ */

.hide  { display: none !important; }

/* Wrap del sitio público */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 28px;
}
.sec { padding-block: var(--pad-section); }


/* ════════════════════════════════════════════════════════════
   §04  TIPOGRAFÍA DEL SITIO
   ════════════════════════════════════════════════════════════ */

body.site {
  font-family: var(--font-body);
  color: var(--asfalto);
  background: var(--blanco);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.t-label {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amarillo);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.t-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--amarillo);
  flex-shrink: 0;
}

.t-h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.t-h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.t-h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.accent  { color: var(--amarillo); }
.t-body  { font-size: 15px; line-height: 1.75; color: var(--gris); max-width: 56ch; }

.legal-page { padding-top: 76px; background: var(--gris-claro); min-height: 60vh; }
.legal-content { max-width: 880px; }
.legal-content > p { max-width: 76ch; margin-top: 20px; color: var(--gris); font-size: 15px; line-height: 1.8; }
.legal-content h2 { max-width: 76ch; margin-top: 38px; font: 800 19px/1.2 var(--font-display); color: var(--asfalto); }
.legal-content a { color: var(--asfalto); font-weight: 700; text-decoration: underline; text-decoration-color: var(--amarillo); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.legal-updated { color: var(--gris) !important; font-size: 13px !important; }


/* ════════════════════════════════════════════════════════════
   §05  BOTONES DEL SITIO
   ════════════════════════════════════════════════════════════ */

body.site .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--r);
  transition:
    background var(--t-fast) var(--ease),
    transform   var(--t-fast) var(--ease),
    box-shadow  var(--t-fast) var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn-arrow { display: inline-block; transition: transform var(--t-fast) var(--ease); }
body.site .btn:hover .btn-arrow { transform: translateX(5px); }

.btn-primary       { background: var(--amarillo); color: var(--asfalto); }
.btn-primary:hover { background: var(--amarillo-dk); transform: translateY(-1px); }

.btn-ghost       { background: transparent; color: var(--blanco); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.8); background: rgba(255,255,255,0.04); }

.btn-ghost-dark       { background: transparent; color: var(--asfalto); border: 1.5px solid rgba(23,25,27,0.4); }
.btn-ghost-dark:hover { background: var(--asfalto); color: var(--blanco); }

.btn-wa       { background: #25D366; color: var(--blanco); }
.btn-wa:hover { background: #1da951; transform: translateY(-1px); }

body.site .btn:focus-visible,
body.site a:focus-visible,
body.site button:focus-visible,
body.site input:focus-visible,
body.site select:focus-visible,
body.site textarea:focus-visible,
body.site .file-drop:focus-visible { outline: 3px solid var(--amarillo); outline-offset: 3px; }


/* ════════════════════════════════════════════════════════════
   §06  HEADER / NAV
   ════════════════════════════════════════════════════════════ */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(17,19,21,.94);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--t-med) var(--ease);
}
.header.scrolled {
  box-shadow: 0 2px 28px rgba(0,0,0,0.35);
  background: rgba(17,19,21,.98);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 20px;
  transition: height var(--t-med) var(--ease);
}
.header.scrolled .header-inner { height: 60px; }

/* Logo */
.logo             { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark        { width: 40px; height: 40px; flex-shrink: 0; }
.logo-info        { display: flex; flex-direction: column; }
.logo-name        { font-family: var(--font-display); font-weight: 900; font-size: 20px; letter-spacing: 0.06em; color: var(--blanco); line-height: 1; }
.logo-sub         { font-family: var(--font-display); font-size: 7.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.28); margin-top: 3px; line-height: 1; }

/* Nav desktop */
.nav { display: flex; align-items: center; list-style: none; gap: 2px; }
.nav a {
  display: block;
  padding: 6px 14px;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color var(--t-fast);
  position: relative;
}
.nav a:hover,
.nav a.is-active { color: var(--blanco); }
.nav a.is-active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 14px; right: 14px;
  height: 2px;
  background: var(--amarillo);
}

/* Header right */
.header-right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.header-phone {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 600;
  color: rgba(255,255,255,0.6); transition: color var(--t-fast);
}
.header-phone:hover { color: var(--blanco); }
.header-phone svg   { width: 16px; height: 16px; stroke: var(--amarillo); fill: none; flex: 0 0 16px; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; padding: 4px; }
.hamburger span { display: block; width: 100%; height: 2px; background: var(--blanco); transition: all var(--t-fast) var(--ease); transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed; inset: 0;
  background: var(--asfalto);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 80px 24px 40px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(22px, 6vw, 32px); font-weight: 800;
  color: var(--blanco); text-transform: uppercase; letter-spacing: 0.05em;
  padding: 10px 20px; transition: color var(--t-fast);
  width: 100%; text-align: center;
}
.mobile-nav a:hover    { color: var(--amarillo); }
.mobile-nav-cta        { margin-top: 20px; background: var(--amarillo) !important; color: var(--asfalto) !important; border-radius: var(--r); padding: 14px 36px !important; font-size: 13px !important; }
.mobile-nav-close      { position: absolute; top: 22px; right: 24px; color: rgba(255,255,255,0.5); font-size: 30px; line-height: 1; transition: color var(--t-fast); }
.mobile-nav-close:hover{ color: var(--blanco); }


/* ════════════════════════════════════════════════════════════
   §07  HERO
   ════════════════════════════════════════════════════════════ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--asfalto);
  overflow: hidden;
  padding-top: 76px;
}
.hero::after {
  content: '';
  position: absolute; inset: auto 0 0;
  height: 28%;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,.3), transparent);
  z-index: 1;
}
.hero-bg {
  position: absolute; inset: 0;
  object-fit: cover; width: 100%; height: 100%;
  opacity: 0.45;
  filter: brightness(0.6) contrast(1.1);
  transform: scale(1.035);
  transition: transform 900ms var(--ease);
  will-change: transform;
}
.hero:hover .hero-bg { transform: scale(1.055); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, var(--asfalto) 0%, rgba(23,25,27,0.92) 38%, rgba(23,25,27,0.55) 65%, rgba(23,25,27,0.2) 100%);
}
.hero-overlay::after {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(-45deg, rgba(255,196,0,0.012) 0px, rgba(255,196,0,0.012) 1px, transparent 1px, transparent 18px);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 620px; padding-block: 48px;
  animation: heroEnter 900ms var(--ease) both;
}
.hero-eyebrow {
  font-family: var(--font-display); font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amarillo);
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.hero-eyebrow::before { content: ''; display: inline-block; width: 28px; height: 2px; background: var(--amarillo); }
.hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.96; letter-spacing: -0.03em; text-transform: uppercase;
  color: var(--blanco); margin-bottom: 24px;
}
.hero-body   { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.65); max-width: 460px; margin-bottom: 36px; }
.hero-ctas   { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof  {
  display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 30px;
  color: rgba(255,255,255,.72); font-family: var(--font-display);
  font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof i    { display: block; width: 7px; height: 7px; background: var(--amarillo); transform: rotate(45deg); }
.hero-scroll-hint {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-display); font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; z-index: 2;
}
.hero-scroll-hint::after {
  content: ''; width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.25), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse  { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
@keyframes heroEnter    { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:none; } }


/* ════════════════════════════════════════════════════════════
   §08  SERVICES BAR
   ════════════════════════════════════════════════════════════ */

.services-bar         { background: var(--grafito); border-top: 2px solid rgba(255,196,0,0.18); }
.services-bar-grid    { display: grid; grid-template-columns: repeat(4, 1fr); }
.sbar-item            { display: flex; align-items: flex-start; gap: 14px; padding: 28px 24px; border-right: 1px solid rgba(255,255,255,0.05); cursor: pointer; transition: background var(--t-fast); text-decoration: none; }
.sbar-item:last-child { border-right: none; }
.sbar-item:hover      { background: rgba(255,196,0,0.05); }
.sbar-icon            { flex-shrink: 0; width: 38px; height: 38px; border: 1.5px solid rgba(255,196,0,0.3); border-radius: 2px; display: flex; align-items: center; justify-content: center; }
.sbar-icon svg        { width: 18px; height: 18px; stroke: var(--amarillo); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sbar-text h3         { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--blanco); margin-bottom: 4px; line-height: 1.3; }
.sbar-text p          { font-size: 12px; color: rgba(255,255,255,0.42); line-height: 1.5; }


/* ════════════════════════════════════════════════════════════
   §09  ABOUT / NOSOTROS
   ════════════════════════════════════════════════════════════ */

.about               { background: var(--blanco); }
.about-grid          { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual        { position: relative; }
.about-img           { width: 100%; height: 540px; object-fit: cover; border-radius: var(--r); display: block; }
.about-visual::before { content: ''; position: absolute; top: -12px; left: -12px; width: 80px; height: 80px; border-top: 3px solid var(--amarillo); border-left: 3px solid var(--amarillo); z-index: 1; }
.about-visual::after  { content: ''; position: absolute; bottom: -12px; right: -12px; width: 80px; height: 80px; border-bottom: 3px solid var(--amarillo); border-right: 3px solid var(--amarillo); }
.about-text .t-h2     { margin-bottom: 16px; }
.about-text .t-body   { margin-bottom: 36px; }
.principles           { display: flex; flex-direction: column; gap: 0; border-left: 3px solid var(--amarillo); }
.principle            { padding: 16px 20px; border-bottom: 1px solid var(--gris-claro); }
.principle:last-child { border-bottom: none; }
.principle h4         { font-family: var(--font-display); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--asfalto); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.principle h4 svg     { width: 14px; height: 14px; stroke: var(--amarillo); fill: none; stroke-width: 2; }
.principle p          { font-size: 13px; color: var(--gris); line-height: 1.6; }


/* ════════════════════════════════════════════════════════════
   §10  SERVICIOS COMPLETOS
   ════════════════════════════════════════════════════════════ */

.services-sec            { background: var(--gris-claro); }
.sec-header              { margin-bottom: 52px; }
.sec-header .t-h2        { margin-top: 8px; }
.sec-header .t-body      { margin-top: 14px; }
.sec-header.center       { text-align: center; }
.sec-header.center .t-body { margin-inline: auto; }
.services-grid           { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.srv-card                { background: var(--blanco); padding: 36px 30px; position: relative; overflow: hidden; border-radius: var(--r); transition: transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease); }
.srv-card::after         { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--amarillo); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease); }
.srv-card:hover          { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,0.09); }
.srv-card:hover::after   { transform: scaleX(1); }
.srv-card-icon           { width: 48px; height: 48px; background: var(--asfalto); border-radius: var(--r); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.srv-card-icon svg       { width: 22px; height: 22px; stroke: var(--amarillo); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.srv-card h3             { font-family: var(--font-display); font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--asfalto); margin-bottom: 10px; }
.srv-card p              { font-size: 13.5px; color: var(--gris); line-height: 1.7; margin-bottom: 16px; }
.srv-tags                { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 18px; }
.srv-tag                 { font-family: var(--font-display); font-size: 9.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gris); background: var(--gris-claro); padding: 4px 8px; border-radius: 2px; }
.srv-link                { font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amarillo); display: flex; align-items: center; gap: 6px; transition: gap var(--t-fast); }
.srv-card:hover .srv-link { gap: 10px; }


/* ════════════════════════════════════════════════════════════
   §11  PROYECTOS
   ════════════════════════════════════════════════════════════ */

.projects-sec            { background: var(--asfalto); }
.projects-sec .t-h2      { color: var(--blanco); }
.projects-sec .t-body    { color: rgba(255,255,255,0.52); }
.projects-grid           { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.proj-card               { position: relative; height: 440px; overflow: hidden; cursor: pointer; }
.proj-card img           { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.6); transition: transform 600ms var(--ease), filter 600ms var(--ease); }
.proj-card:hover img     { transform: scale(1.06); filter: brightness(0.42); }
.proj-overlay            { position: absolute; inset: 0; background: linear-gradient(to top, rgba(23,25,27,0.98) 0%, rgba(23,25,27,0.25) 55%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; }
.proj-location           { font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amarillo); margin-bottom: 7px; }
.proj-name               { font-family: var(--font-display); font-size: clamp(17px, 2.2vw, 22px); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; color: var(--blanco); margin-bottom: 10px; line-height: 1.15; }
.proj-desc               { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 16px; }
.proj-link               { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amarillo); transition: gap var(--t-fast); }
.proj-card:hover .proj-link { gap: 10px; }


/* ════════════════════════════════════════════════════════════
   §12  PROCESO DE TRABAJO
   ════════════════════════════════════════════════════════════ */

.process-sec   { background: var(--blanco); }
.process-track {
  position: relative; display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0; margin-top: 60px;
}
.process-track::before {
  content: ''; position: absolute; top: 38px;
  left: calc(10% + 18px); right: calc(10% + 18px);
  height: 1px;
  background: linear-gradient(to right, var(--amarillo), rgba(255,196,0,0.15)); z-index: 0;
}
.step         { display: flex; flex-direction: column; align-items: center; text-align: center; padding-inline: 12px; position: relative; z-index: 1; }
.step-num     { width: 76px; height: 76px; border-radius: 50%; background: var(--asfalto); border: 2px solid var(--amarillo); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; flex-shrink: 0; }
.step-num span{ font-family: var(--font-display); font-size: 13px; font-weight: 800; color: var(--amarillo); letter-spacing: 0.04em; }
.step h3      { font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--asfalto); margin-bottom: 8px; }
.step p       { font-size: 12.5px; color: var(--gris); line-height: 1.65; }


/* ════════════════════════════════════════════════════════════
   §13  EQUIPOS
   ════════════════════════════════════════════════════════════ */

.equip-sec           { background: var(--grafito); }
.equip-sec .t-h2     { color: var(--blanco); }
.equip-sec .t-body   { color: rgba(255,255,255,0.5); }
.equip-grid          { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-top: 48px; }
.equip-card          { position: relative; height: 300px; overflow: hidden; border-radius: var(--r); cursor: default; }
.equip-card img      { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.42) saturate(0.75); transition: filter 500ms var(--ease), transform 500ms var(--ease); }
.equip-card:hover img{ filter: brightness(0.28) saturate(0.5); transform: scale(1.04); }
.equip-info          { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; }
.equip-category      { font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amarillo); margin-bottom: 4px; }
.equip-name          { font-family: var(--font-display); font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; color: var(--blanco); line-height: 1.2; }


/* ════════════════════════════════════════════════════════════
   §14  CALIDAD Y SEGURIDAD
   ════════════════════════════════════════════════════════════ */

.quality-sec             { background: var(--gris-claro); }
.quality-grid            { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.quality-img-wrap        { position: relative; }
.quality-img             { width: 100%; height: 500px; object-fit: cover; border-radius: var(--r); display: block; }
.quality-img-wrap::before{ content: ''; position: absolute; top: 0; right: -16px; width: 4px; height: 100%; background: var(--amarillo); }
.quality-pillars         { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.pillar                  { background: var(--blanco); padding: 20px; border-top: 3px solid var(--amarillo); border-radius: var(--r); transition: transform var(--t-med) var(--ease); }
.pillar:hover            { transform: translateY(-4px); }
.pillar svg              { width: 22px; height: 22px; stroke: var(--amarillo); fill: none; stroke-width: 1.5; stroke-linecap: round; margin-bottom: 10px; display: block; }
.pillar h4               { font-family: var(--font-display); font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--asfalto); margin-bottom: 5px; }
.pillar p                { font-size: 12.5px; color: var(--gris); line-height: 1.6; }


/* ════════════════════════════════════════════════════════════
   §15  COMPARADOR ANTES / DESPUÉS
   ════════════════════════════════════════════════════════════ */

.ba-sec            { background: var(--asfalto); }
.ba-sec .t-h2      { color: var(--blanco); }
.comparison-wrap   { max-width: 960px; margin: 40px auto 0; }
.comparison        { position: relative; height: 520px; overflow: hidden; border-radius: var(--r); cursor: ew-resize; user-select: none; -webkit-user-select: none; touch-action: none; }
.cmp-layer         { position: absolute; inset: 0; }
.cmp-layer img     { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-after         { z-index: 1; }
.cmp-before        { clip-path: inset(0 50% 0 0); z-index: 2; }
.cmp-divider       { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: var(--amarillo); z-index: 10; transform: translateX(-50%); pointer-events: none; cursor: ew-resize; }
.cmp-handle        { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; background: var(--amarillo); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 18px rgba(0,0,0,0.35); z-index: 11; pointer-events: none; }
.cmp-handle svg    { width: 20px; height: 20px; stroke: var(--asfalto); fill: none; stroke-width: 2.5; stroke-linecap: round; }
.cmp-label         { position: absolute; top: 18px; font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 5px 12px; background: rgba(0,0,0,0.55); color: var(--blanco); border-radius: 2px; pointer-events: none; z-index: 5; }
.cmp-label-before  { left: 18px; }
.cmp-label-after   { left: auto; right: 18px !important; }
.ba-hint           { text-align: center; margin-top: 16px; font-size: 12px; color: rgba(255,255,255,0.3); font-family: var(--font-display); letter-spacing: 0.08em; }


/* ════════════════════════════════════════════════════════════
   §16  POR QUÉ HEMAN
   ════════════════════════════════════════════════════════════ */

.why-sec             { background: var(--blanco); }
.why-grid            { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.why-card            { background: var(--gris-claro); padding: 36px 30px; position: relative; border-radius: var(--r); transition: background var(--t-fast), transform var(--t-med) var(--ease); }
.why-card::before    { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--amarillo); transform: scaleX(0); transform-origin: left; transition: transform var(--t-med) var(--ease); }
.why-card:hover      { background: var(--blanco); transform: translateY(-4px); box-shadow: 0 10px 36px rgba(0,0,0,0.07); }
.why-card:hover::before { transform: scaleX(1); }
.why-num             { font-family: var(--font-display); font-size: 52px; font-weight: 900; color: rgba(23,25,27,0.05); line-height: 1; margin-bottom: 14px; letter-spacing: -0.04em; }
.why-card h3         { font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--asfalto); margin-bottom: 10px; }
.why-card p          { font-size: 13.5px; color: var(--gris); line-height: 1.7; }


/* ════════════════════════════════════════════════════════════
   §17  PROBLEMAS / SOLUCIONES
   ════════════════════════════════════════════════════════════ */

.problems-sec           { background: var(--asfalto); }
.problems-sec .t-h2     { color: var(--blanco); }
.problems-grid          { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 48px; }
.problem-card           { background: var(--grafito); padding: 28px 24px; border-radius: var(--r); transition: background var(--t-fast); cursor: default; }
.problem-card:hover     { background: rgba(255,196,0,0.07); }
.problem-card svg       { display: block; width: 32px; height: 32px; stroke: var(--amarillo); fill: none; stroke-width: 1.5; stroke-linecap: round; margin-bottom: 14px; }
.problem-card h3        { font-family: var(--font-display); font-size: 12px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: var(--blanco); margin-bottom: 7px; }
.problem-card p         { font-size: 13px; color: rgba(255,255,255,0.48); line-height: 1.6; }


/* ════════════════════════════════════════════════════════════
   §18  COBERTURA GEOGRÁFICA
   ════════════════════════════════════════════════════════════ */

.coverage-sec                { background: var(--grafito); }
.coverage-grid               { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.coverage-content .t-h2      { color: var(--blanco); margin-bottom: 12px; }
.coverage-note               { font-size: 15px; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 32px; }
.regions                     { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.region-card                 { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: var(--r); padding: 16px 18px; }
.region-name                 { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blanco); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.region-name::before         { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--amarillo); border-radius: 50%; flex-shrink: 0; }
.region-places               { display: flex; flex-wrap: wrap; gap: 6px; }
.rplace                      { font-family: var(--font-display); font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.42); background: rgba(255,255,255,0.05); padding: 3px 9px; border-radius: 2px; letter-spacing: 0.04em; }
.region-card.pending         { opacity: 0.45; border-style: dashed; }
.region-card.pending .region-name::before { background: var(--gris); }
.region-card.pending .region-name { color: rgba(255,255,255,0.4); }
.chile-map-wrap              { display: flex; justify-content: center; align-items: center; }
.chile-svg                   { height: 420px; width: auto; display: block; }


/* ════════════════════════════════════════════════════════════
   §19  CTA BLOCK
   ════════════════════════════════════════════════════════════ */

.cta-block          { background: var(--asfalto); padding-block: var(--pad-section); position: relative; overflow: hidden; }
.cta-block::before  { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent 0%, var(--amarillo) 40%, var(--amarillo) 60%, transparent 100%); }
.cta-block::after   { content: 'HEMAN'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-family: var(--font-display); font-weight: 900; font-size: clamp(100px, 20vw, 240px); color: rgba(255,255,255,0.025); white-space: nowrap; letter-spacing: -0.04em; pointer-events: none; user-select: none; }
.cta-inner          { position: relative; z-index: 2; text-align: center; max-width: 640px; margin-inline: auto; }
.cta-inner .t-h2    { font-size: clamp(32px, 5vw, 56px); color: var(--blanco); margin-bottom: 16px; }
.cta-inner p        { font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: 32px; max-width: 50ch; margin-inline: auto; }
.cta-note           { margin-top: 18px; font-size: 12px; color: rgba(255,255,255,0.28); font-family: var(--font-display); letter-spacing: 0.06em; }


/* ════════════════════════════════════════════════════════════
   §20  FORMULARIO DE COTIZACIÓN (index)
   ════════════════════════════════════════════════════════════ */

.form-sec              { background: var(--gris-claro); display: none !important; }
.form-layout           { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.form-intro .t-h2      { margin-bottom: 12px; }
.form-intro .t-body    { margin-bottom: 28px; }
.contact-meta          { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.cmeta-item            { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--asfalto); }
.cmeta-item svg        { width: 16px; height: 16px; stroke: var(--amarillo); fill: none; stroke-width: 1.5; flex-shrink: 0; }
.form-actions          { display: flex; gap: 10px; flex-wrap: wrap; }
.quote-form            { display: flex; flex-direction: column; gap: 14px; }
.f-row                 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-group               { display: flex; flex-direction: column; gap: 5px; }
.f-group label         { font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--asfalto); }
.f-group input,
.f-group select,
.f-group textarea      { width: 100%; padding: 11px 14px; background: var(--blanco); border: 1.5px solid rgba(99,103,106,0.2); border-radius: var(--r); font-size: 14px; color: var(--asfalto); outline: none; transition: border-color var(--t-fast); appearance: none; -webkit-appearance: none; }
.f-group input:focus,
.f-group select:focus,
.f-group textarea:focus{ border-color: var(--amarillo); }
.f-group textarea      { resize: vertical; min-height: 96px; }
.f-group select        { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2363676A'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.file-drop             { border: 1.5px dashed rgba(99,103,106,0.35); border-radius: var(--r); padding: 22px 16px; text-align: center; background: var(--blanco); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.file-drop:hover       { border-color: var(--amarillo); background: rgba(255,196,0,0.02); }
.file-drop svg         { width: 24px; height: 24px; stroke: var(--gris); fill: none; stroke-width: 1.5; display: block; margin: 0 auto 8px; transition: stroke var(--t-fast); }
.file-drop:hover svg   { stroke: var(--amarillo); }
.file-drop-title       { font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amarillo); display: block; margin-bottom: 4px; }
.file-drop p           { font-size: 12px; color: var(--gris); }
.form-success          { display: none; text-align: center; padding: 48px 32px; background: var(--blanco); border-radius: var(--r); }
.form-success.show     { display: block; }
.fs-icon               { width: 52px; height: 52px; background: var(--amarillo); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.fs-icon svg           { width: 24px; height: 24px; stroke: var(--asfalto); fill: none; stroke-width: 2.5; }
.fs-title              { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--asfalto); margin-bottom: 10px; }
.fs-text               { font-size: 14px; color: var(--gris); line-height: 1.7; max-width: 42ch; margin-inline: auto; }


/* ════════════════════════════════════════════════════════════
   §21  SECCIÓN CONTACTO
   ════════════════════════════════════════════════════════════ */

.contact-sec      { background: var(--asfalto); }
.contact-sec .t-h2{ color: var(--blanco); }
.contact-cards    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; max-width: 960px; margin: 0 auto; }
.cc               { background: var(--grafito); padding: 36px 28px; border-radius: var(--r); text-align: center; display: flex; flex-direction: column; align-items: center; }
.cc-icon          { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; border: 1px solid rgba(255,196,0,0.22); background: rgba(255,196,0,0.07); }
.cc-icon svg      { width: 22px; height: 22px; stroke: var(--amarillo); fill: none; stroke-width: 1.5; }
.cc-label         { font-family: var(--font-display); font-size: 9.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amarillo); margin-bottom: 8px; }
.cc-value         { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--blanco); margin-bottom: 18px; line-height: 1.3; }
.cc .btn          { width: 100%; justify-content: center; font-size: 10.5px; }
.cc-wa            { background: rgba(37,211,102,0.07); border-color: rgba(37,211,102,0.22); }
.cc-wa .cc-icon   { border-color: rgba(37,211,102,0.22); background: rgba(37,211,102,0.07); }
.cc-wa .cc-icon svg { stroke: #25D366; }
.cc-wa .cc-label  { color: #25D366; }


/* ════════════════════════════════════════════════════════════
   §22  FOOTER
   ════════════════════════════════════════════════════════════ */

.footer           { background: var(--footer-bg); }
.footer-top       { padding-top: 64px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.footer-grid      { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; }
.ft-brand .logo   { margin-bottom: 8px; }
.ft-brand .logo-sub{ color: rgba(255,255,255,0.2); }
.ft-brand p       { font-size: 13px; color: rgba(255,255,255,0.38); line-height: 1.75; margin-top: 12px; max-width: 30ch; }
.fc-title         { font-family: var(--font-display); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.fc-list          { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.fc-list a        { font-size: 13px; color: rgba(255,255,255,0.38); transition: color var(--t-fast); }
.fc-list a:hover  { color: var(--amarillo); }
.fc-citem         { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.38); margin-bottom: 8px; line-height: 1.5; }
.fc-citem svg     { width: 13px; height: 13px; stroke: var(--amarillo); fill: none; stroke-width: 1.5; flex-shrink: 0; margin-top: 2px; }
.footer-bottom    { padding-block: 18px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-copy      { font-family: var(--font-display); font-size: 11px; color: rgba(255,255,255,0.18); letter-spacing: 0.04em; }
.footer-legal     { display: flex; gap: 20px; }
.footer-legal a   { font-family: var(--font-display); font-size: 11px; color: rgba(255,255,255,0.18); letter-spacing: 0.04em; transition: color var(--t-fast); }
.footer-legal a:hover { color: rgba(255,255,255,0.45); }


/* ════════════════════════════════════════════════════════════
   §23  WHATSAPP FLOAT + MOBILE BAR
   ════════════════════════════════════════════════════════════ */

.wa-float {
  position: fixed; bottom: 88px; right: 22px; z-index: 900;
  display: flex; align-items: center; gap: 10px;
  background: #25D366; color: var(--blanco);
  padding: 12px 18px 12px 14px; border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3), 0 2px 8px rgba(0,0,0,0.15);
  font-family: var(--font-display); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.07em; text-transform: uppercase;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.wa-float:hover     { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,0.4), 0 2px 8px rgba(0,0,0,0.2); }
.wa-float svg       { width: 20px; height: 20px; fill: var(--blanco); flex-shrink: 0; }

.mobile-bar         { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 900; padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--asfalto); border-top: 1px solid rgba(255,255,255,0.06); grid-template-columns: repeat(3, 1fr); }
.mbar-item          { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 11px 6px; gap: 3px; font-family: var(--font-display); font-size: 8.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); transition: color var(--t-fast); }
.mbar-item svg      { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.mbar-item:hover    { color: var(--blanco); }
.mbar-item.mbar-cta { background: var(--amarillo); color: var(--asfalto); }
.mbar-item.mbar-cta svg { stroke: var(--asfalto); }
.mbar-item.mbar-wa  { color: #25D366; }
.mbar-item.mbar-wa svg { stroke: #25D366; }


/* ════════════════════════════════════════════════════════════
   §24  GALERÍA PÚBLICA
   ════════════════════════════════════════════════════════════ */

.work-gallery      { background: #f5f6f5; }
.work-gallery .sec-header { margin-bottom: 34px; }
.public-gallery    { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery-item      { position: relative; min-height: 260px; overflow: hidden; border-radius: var(--r); background: var(--grafito); }
.gallery-item img  { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease); }
.gallery-item:hover img { transform: scale(1.045); }
.gallery-item::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,.62)); pointer-events: none; }
.gallery-item span { position: absolute; left: 16px; bottom: 15px; z-index: 1; color: var(--blanco); font-family: var(--font-display); font-size: 10px; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; }
.gallery-empty     { grid-column: 1 / -1; padding: 28px; border: 1px solid #dde0df; color: var(--gris); font-size: 14px; }


/* ════════════════════════════════════════════════════════════
   §25  ANIMACIONES Y REFINAMIENTOS DEL SITIO
   ════════════════════════════════════════════════════════════ */

.section-reveal           { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.section-reveal.is-visible { opacity: 1; transform: none; }


/* ════════════════════════════════════════════════════════════
   §26  ADMIN — LOGIN
   ════════════════════════════════════════════════════════════ */

body.admin-page {
  background: var(--b);
  color: var(--w);
  font: 14px Arial, sans-serif;
  min-height: 100vh;
}
.login-wrap  { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px; }
.login-box   { width: 100%; max-width: 440px; background: var(--p); border-top: 3px solid var(--y); padding: 40px; }
.login-box h1{ font-size: clamp(34px,7vw,62px); line-height: .93; text-transform: uppercase; margin: 14px 0 10px; font-weight: 900; }
.login-box p { color: var(--m); line-height: 1.65; margin-bottom: 22px; }
.pw-wrap     { position: relative; }
.pw-wrap input{ padding-right: 44px; }
.pw-eye      { position: absolute; right: 0; top: 0; height: 100%; width: 42px; background: none; border: none; color: var(--m); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.pw-eye:hover{ color: var(--w); }


/* ════════════════════════════════════════════════════════════
   §27  ADMIN — APP SHELL / SIDEBAR
   ════════════════════════════════════════════════════════════ */

.app           { display: none; }
.app.show      { display: flex; min-height: 100vh; }

.sidebar       { width: 228px; background: var(--p); border-right: 1px solid var(--bd); display: flex; flex-direction: column; position: fixed; top: 0; left: 0; height: 100vh; overflow-y: auto; z-index: 200; scrollbar-width: thin; scrollbar-color: #333 transparent; }
.sidebar::-webkit-scrollbar      { width: 3px; }
.sidebar::-webkit-scrollbar-thumb{ background: #383f44; }

.sb-brand      { padding: 17px 18px; border-bottom: 1px solid var(--bd); display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.sb-icon       { width: 32px; height: 32px; display: grid; place-items: center; background: #1e2226; border-left: 3px solid var(--y); font-style: normal; font-weight: 900; font-size: 16px; flex-shrink: 0; }
.sb-name       { font-weight: 900; font-size: 14px; letter-spacing: .07em; }
.sb-name small { display: block; color: var(--m); font-size: 8px; letter-spacing: .14em; font-weight: 400; }

.sb-nav        { padding: 8px 0; flex: 1; }
.sb-lbl        { padding: 13px 16px 4px; font-size: 9px; color: #445055; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; }
.sb-nav a      { display: flex; align-items: center; gap: 8px; padding: 8px 16px; color: var(--m); text-decoration: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; border-left: 3px solid transparent; transition: all .12s; }
.sb-nav a em   { font-style: normal; font-size: 13px; opacity: .75; flex-shrink: 0; }
.sb-nav a:hover{ color: var(--w); border-left-color: #3a4044; background: #191d20; }
.sb-nav a.active{ color: var(--w); border-left-color: var(--y); background: #1d2124; }
.sb-foot       { padding: 14px; border-top: 1px solid var(--bd); display: flex; flex-direction: column; gap: 7px; flex-shrink: 0; }

.overlay       { display: none; position: fixed; inset: 0; background: #000000aa; z-index: 180; }
.overlay.show  { display: block; }
.mob-bar       { display: none; position: fixed; top: 0; left: 0; right: 0; height: 54px; background: var(--p); border-bottom: 1px solid var(--bd); z-index: 190; align-items: center; justify-content: space-between; padding: 0 14px; }
.mob-brand     { font-weight: 900; font-size: 14px; display: flex; align-items: center; gap: 7px; }
.mob-brand span{ width: 26px; height: 26px; display: grid; place-items: center; background: #1e2226; border-left: 2px solid var(--y); font-size: 13px; }
.mob-toggle    { background: none; border: 1px solid #3a4044; color: var(--w); padding: 7px 11px; font-size: 15px; cursor: pointer; }


/* ════════════════════════════════════════════════════════════
   §28  ADMIN — BARRA DE AUTO-GUARDADO
   ════════════════════════════════════════════════════════════ */

.save-bar        { display: none; position: fixed; top: 0; right: 0; z-index: 300; padding: 7px 14px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: #1d2124; border-bottom: 1px solid var(--bd); border-left: 1px solid var(--bd); color: var(--m); transition: color .3s; }
.save-bar.saving { color: #ffb347; }
.save-bar.saved  { color: var(--ok); }
.app.show .save-bar { display: block; }


/* ════════════════════════════════════════════════════════════
   §29  ADMIN — MAIN / TOPBAR
   ════════════════════════════════════════════════════════════ */

.main          { margin-left: 228px; flex: 1; padding: 26px 30px 80px; max-width: 1060px; }
.topbar        { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--bd); }
.topbar h2     { font-size: 19px; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }


/* ════════════════════════════════════════════════════════════
   §30  ADMIN — DASHBOARD (MAST + STATS)
   ════════════════════════════════════════════════════════════ */

.mast          { padding: 46px 44px; background: linear-gradient(110deg,#191c1f,#272c2f); border-left: 3px solid var(--y); position: relative; overflow: hidden; margin-bottom: 20px; }
.mast::after   { content: 'HEMAN'; position: absolute; right: -16px; bottom: -56px; color: #ffffff05; font-size: 150px; font-weight: 900; pointer-events: none; }
.mast > *      { position: relative; }
.mast h1       { font-size: clamp(24px,3.2vw,46px); line-height: .95; text-transform: uppercase; margin: 8px 0; font-weight: 900; }
.mast-p        { max-width: 480px; color: #b5b9ba; line-height: 1.65; margin-top: 10px; font-size: 13px; }
.mast-actions  { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

.stats         { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 28px; }
.stat          { background: var(--p); border: 1px solid var(--bd); padding: 18px; border-top: 2px solid #353b3e; }
.stat strong   { display: block; color: var(--y); font-size: 26px; font-weight: 900; }
.stat span     { color: var(--m); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }


/* ════════════════════════════════════════════════════════════
   §31  ADMIN — MÓDULOS
   ════════════════════════════════════════════════════════════ */

.module       { background: var(--p); border: 1px solid var(--bd); padding: 26px; margin-bottom: 16px; scroll-margin-top: 16px; }
.module h2    { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; margin: 7px 0 4px; font-weight: 900; }
.module .sub  { color: var(--m); line-height: 1.6; font-size: 12px; }
.badge        { color: var(--y); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow      { color: var(--y); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
hr            { border: 0; border-top: 1px solid var(--bd); margin: 18px 0; }


/* ════════════════════════════════════════════════════════════
   §32  ADMIN — CONTROLES DE FORMULARIO
   ════════════════════════════════════════════════════════════ */

.fields        { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields.c3     { grid-template-columns: 1fr 1fr 1fr; }
.field         { margin: 11px 0; }

body.admin-page label      { display: block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #b5b9ba; margin-bottom: 5px; }
body.admin-page label .hint{ color: #4a5558; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 9px; margin-left: 4px; }

body.admin-page input,
body.admin-page textarea,
body.admin-page select      { width: 100%; padding: 10px 12px; background: var(--b); border: 1px solid #3a4144; color: var(--w); font: inherit; transition: border .12s; }
body.admin-page select option{ background: var(--b); }
body.admin-page textarea    { min-height: 78px; resize: vertical; }
body.admin-page input:focus,
body.admin-page textarea:focus,
body.admin-page select:focus { outline: none; border-color: var(--y); }

.char-row      { display: flex; justify-content: flex-end; font-size: 10px; color: var(--m); margin-top: 2px; }
.char-row.warn { color: #ffb347; }
.char-row.over { color: var(--err); }


/* ════════════════════════════════════════════════════════════
   §33  ADMIN — ZONA DE CARGA DE IMÁGENES
   ════════════════════════════════════════════════════════════ */

.upload        { padding: 13px; background: #0e1012; border: 1px dashed #3d4448; margin: 9px 0; }
.upload label  { margin-bottom: 7px; }
.upload input[type=file] { font-size: 12px; color: var(--m); width: 100%; }
.img-prev      { margin-top: 9px; display: none; }
.img-prev img  { max-height: 75px; max-width: 240px; object-fit: cover; border: 1px solid var(--bd); }


/* ════════════════════════════════════════════════════════════
   §34  ADMIN — BOTONES
   ════════════════════════════════════════════════════════════ */

body.admin-page .btn         { background: var(--y); border: 0; color: #111315; padding: 10px 17px; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; font-weight: 900; cursor: pointer; text-decoration: none; display: inline-block; transition: opacity .12s; white-space: nowrap; }
body.admin-page .btn:hover   { opacity: .87; }
body.admin-page .btn.alt     { background: transparent; border: 1px solid #55626a; color: var(--w); }
body.admin-page .btn.sm      { padding: 7px 12px; font-size: 10px; }
body.admin-page .btn.danger  { background: transparent; border: 1px solid #7c3a3a; color: #ff9b9b; }
body.admin-page .btn.full    { width: 100%; text-align: center; display: block; }
body.admin-page .btn.preview-btn { background: var(--y); color: #111315; display: inline-flex; align-items: center; gap: 6px; }
.btn-row       { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-top: 14px; }


/* ════════════════════════════════════════════════════════════
   §35  ADMIN — NOTICES
   ════════════════════════════════════════════════════════════ */

.notice        { font-size: 12px; color: var(--m); }
.notice.ok     { color: var(--ok); }
.notice.error  { color: var(--err); }


/* ════════════════════════════════════════════════════════════
   §36  ADMIN — GALERÍA
   ════════════════════════════════════════════════════════════ */

.g-grid        { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 14px; }
.g-item        { background: var(--b); padding: 7px; }
.g-item img    { width: 100%; height: 105px; object-fit: cover; display: block; }
.g-item p      { font-size: 11px; margin: 6px 0 2px; color: var(--w); }
.g-item .g-cat { color: var(--y); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }


/* ════════════════════════════════════════════════════════════
   §37  ADMIN — SERVICIOS
   ════════════════════════════════════════════════════════════ */

.svc-list      { display: flex; flex-direction: column; gap: 9px; margin-top: 13px; }
.svc-item      { background: var(--b); border: 1px solid var(--bd); padding: 13px 15px; display: flex; align-items: flex-start; gap: 13px; }
.svc-emoji     { font-size: 24px; min-width: 36px; text-align: center; line-height: 1.1; }
.svc-body      { flex: 1; }
.svc-title     { font-weight: 700; font-size: 13px; margin-bottom: 3px; }
.svc-desc      { color: var(--m); font-size: 12px; line-height: 1.5; }
.svc-acts      { display: flex; flex-direction: column; gap: 5px; min-width: 76px; }


/* ════════════════════════════════════════════════════════════
   §38  ADMIN — TESTIMONIOS
   ════════════════════════════════════════════════════════════ */

.t-item        { background: var(--b); border-left: 2px solid var(--y); padding: 14px; margin-bottom: 9px; }
.t-stars       { margin-bottom: 5px; font-size: 12px; }
.t-text        { font-style: italic; color: var(--w); line-height: 1.6; margin-bottom: 7px; font-size: 13px; }
.t-meta        { font-size: 12px; color: var(--m); }


/* ════════════════════════════════════════════════════════════
   §39  ADMIN — COTIZACIONES RECIBIDAS
   ════════════════════════════════════════════════════════════ */

.q-item           { background: var(--b); border-left: 2px solid var(--y); padding: 13px 15px; margin-bottom: 9px; }
.q-item.handled   { border-left-color: #3a4044; opacity: .6; }
.q-name           { font-weight: 700; font-size: 14px; margin-bottom: 5px; display: flex; align-items: center; gap: 7px; }
.q-tag            { font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; padding: 2px 7px; border: 1px solid; }
.q-tag.new        { color: var(--y); border-color: #ffc40040; background: #ffc40010; }
.q-tag.done       { color: var(--m); border-color: #3a404440; background: #3a404410; }
.q-meta           { font-size: 12px; color: var(--m); line-height: 1.8; }
.q-msg            { font-size: 13px; color: #c0c4c5; margin-top: 7px; line-height: 1.55; padding-top: 7px; border-top: 1px solid var(--bd); }


/* ════════════════════════════════════════════════════════════
   §40  ADMIN — BACKUP
   ════════════════════════════════════════════════════════════ */

.bk-grid       { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 13px; }
.bk-box        { background: var(--b); border: 1px solid var(--bd); padding: 18px; }
.bk-box h3     { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 7px; font-weight: 700; }
.bk-box p      { color: var(--m); font-size: 12px; line-height: 1.6; margin-bottom: 12px; }


/* ════════════════════════════════════════════════════════════
   §41  ADMIN — PREVIEW MODAL
   ════════════════════════════════════════════════════════════ */

.preview-modal          { display: none; position: fixed; inset: 0; z-index: 500; background: #000000cc; flex-direction: column; }
.preview-modal.show     { display: flex; }
.preview-head           { height: 52px; background: #1b1f22; border-bottom: 1px solid var(--bd); display: flex; align-items: center; justify-content: space-between; padding: 0 20px; flex-shrink: 0; }
.preview-head h3        { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; display: flex; align-items: center; gap: 8px; }
.preview-head h3 em     { color: var(--y); font-style: normal; font-size: 18px; }
.preview-frame          { flex: 1; width: 100%; border: 0; background: #fff; }
.preview-bar            { height: 40px; background: #1b1f22; border-top: 1px solid var(--bd); display: flex; align-items: center; justify-content: center; gap: 12px; flex-shrink: 0; }
.device-btn             { background: none; border: 1px solid #3a4044; color: var(--m); padding: 5px 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; cursor: pointer; letter-spacing: .08em; }
.device-btn.active      { border-color: var(--y); color: var(--y); }


/* ════════════════════════════════════════════════════════════
   §42  COTIZACIÓN — LAYOUT
   ════════════════════════════════════════════════════════════ */

body.cotizacion-page {
  margin: 0;
  font: 15px/1.55 Arial, sans-serif;
  color: var(--asfalto);
  background: #f2f3f3;
}

/* Top bar */
.cotizacion-page .top          { background: var(--asfalto); color: white; }
.cotizacion-page .cot-nav      { max-width: 1180px; margin: auto; padding: 18px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cotizacion-page .brand        { font-size: 22px; font-weight: 900; letter-spacing: .08em; }
.cotizacion-page .brand small  { display: block; color: var(--amarillo); font-size: 8px; letter-spacing: .13em; }
.cotizacion-page .back         { color: #e7e8e8; font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.cotizacion-page .back:hover   { color: var(--amarillo); }

/* Hero cotización */
.cotizacion-page .hero-cot     { background: linear-gradient(120deg,#17191b 0%,#25292c 100%); color: #fff; padding: 82px 26px 106px; }
.cotizacion-page .hero-inner   { max-width: 1180px; margin: auto; }
.cotizacion-page .eyebrow-cot  { color: var(--amarillo); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.cotizacion-page .hero-cot h1  { font-size: clamp(37px,6vw,68px); line-height: .98; letter-spacing: -.04em; text-transform: uppercase; max-width: 720px; margin: 15px 0 18px; }
.cotizacion-page .hero-cot p   { color: #c5c8c9; max-width: 575px; font-size: 17px; }

/* Layout de dos columnas */
.cotizacion-page .layout       { max-width: 1180px; margin: auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; margin-top: -52px; padding: 0 26px 75px; }
.cotizacion-page .info         { background: var(--amarillo); padding: 35px; }
.cotizacion-page .form-card    { background: #fff; padding: 35px; box-shadow: 0 16px 35px #00000014; }
.cotizacion-page .info h2,
.cotizacion-page .form-card h2 { font-size: 22px; line-height: 1.15; margin: 0 0 15px; text-transform: uppercase; }
.cotizacion-page .info p       { margin: 0 0 30px; }
.cotizacion-page .info-item    { border-top: 1px solid #c99d00; padding: 17px 0 0; margin-top: 17px; }
.cotizacion-page .info-item strong { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 4px; }
.cotizacion-page .intro        { margin: 0 0 24px; color: var(--gris); }

/* Formulario cotización */
.cotizacion-page .cot-row      { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cotizacion-page .cot-field    { margin-bottom: 17px; }
.cotizacion-page .cot-field label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.cotizacion-page .cot-field input,
.cotizacion-page .cot-field select,
.cotizacion-page .cot-field textarea { width: 100%; border: 1px solid #d6d9d9; padding: 13px; background: #fff; font: inherit; color: var(--asfalto); }
.cotizacion-page .cot-field input:focus,
.cotizacion-page .cot-field select:focus,
.cotizacion-page .cot-field textarea:focus { outline: 2px solid var(--amarillo); border-color: var(--amarillo); }
.cotizacion-page .cot-field textarea { min-height: 115px; resize: vertical; }

.cotizacion-page .submit       { width: 100%; border: 0; background: var(--amarillo); padding: 16px; color: var(--asfalto); font-weight: 900; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }
.cotizacion-page .submit:hover { background: var(--amarillo-dk); }
.cotizacion-page .success      { display: none; text-align: center; padding: 32px; background: #fff8dc; border-left: 4px solid var(--amarillo); }
.cotizacion-page .success.show { display: block; }
.cotizacion-page .cot-error    { color: #a52525; font-size: 13px; min-height: 21px; margin: 10px 0 0; }


/* ════════════════════════════════════════════════════════════
   §43  RESPONSIVE — SITIO
   ════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .about-grid,
  .quality-grid,
  .coverage-grid { gap: 48px; }
}

@media (max-width: 768px) {
  :root { --pad-section: 60px; }

  /* Nav */
  .nav, .header-phone { display: none; }
  .hamburger           { display: flex; }

  /* Hero */
  .hero                { padding-top: 54px; }
  .hero-proof          { margin-top: 24px; font-size: 9px; gap: 10px 14px; }
  .hero:hover .hero-bg { transform: scale(1.035); }
  .header              { backdrop-filter: none; }

  /* Grids */
  .services-bar-grid,
  .services-grid,
  .projects-grid,
  .equip-grid,
  .why-grid,
  .problems-grid,
  .contact-cards       { grid-template-columns: 1fr; }

  .about-grid,
  .quality-grid,
  .coverage-grid,
  .form-layout         { grid-template-columns: 1fr; gap: 32px; }

  .footer-grid         { grid-template-columns: 1fr; }
  .process-track       { grid-template-columns: 1fr 1fr; gap: 24px; }
  .process-track::before { display: none; }
  .quality-pillars     { grid-template-columns: 1fr; }
  .quality-img         { height: min(360px, 90vw); }
  .f-row               { grid-template-columns: 1fr; }
  .public-gallery      { grid-template-columns: 1fr; }
  .comparison          { height: min(360px, 78vw); }
  .cmp-label           { top: 12px; }
  .cmp-label-before    { left: 12px; }
  .cmp-label-after     { right: 12px !important; }
  body.site             { padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)); }

  /* WhatsApp */
  .wa-float            { padding: 10px 14px; font-size: 0; border-radius: 50%; width: 52px; height: 52px; justify-content: center; }
  .wa-float svg        { width: 22px; height: 22px; }
  .mobile-bar          { display: grid; }
}

@media (pointer: coarse) {
  .f-group input,
  .f-group select,
  .f-group textarea { font-size: 16px; }
}

@media (max-width: 480px) {
  .wrap { padding-inline: 16px; }
}


/* ════════════════════════════════════════════════════════════
   §44  RESPONSIVE — ADMIN
   ════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
  .save-bar     { display: none !important; }
  .sidebar      { transform: translateX(-100%); transition: transform .25s; box-shadow: 6px 0 24px #00000066; }
  .sidebar.open { transform: translateX(0); }
  .main         { margin-left: 0; padding: 18px 14px 60px; padding-top: 70px; }
  .mob-bar      { display: flex; }

  .stats,
  .bk-grid      { grid-template-columns: 1fr 1fr; }
  .fields,
  .fields.c3    { grid-template-columns: 1fr; }
  .g-grid       { grid-template-columns: repeat(2,1fr); }
  .mast         { padding: 32px 22px; }
}


/* ════════════════════════════════════════════════════════════
   §45  RESPONSIVE — COTIZACIÓN
   ════════════════════════════════════════════════════════════ */

@media (max-width: 760px) {
  .cotizacion-page .hero-cot  { padding: 55px 22px 82px; }
  .cotizacion-page .layout    { grid-template-columns: 1fr; padding: 0 18px 70px; gap: 20px; margin-top: -34px; }
  .cotizacion-page .info,
  .cotizacion-page .form-card { padding: 25px; }
  .cotizacion-page .cot-row   { grid-template-columns: 1fr; }
  .cotizacion-page .cot-nav   { padding: 16px 20px; }
}


/* ════════════════════════════════════════════════════════════
   §46  ACCESIBILIDAD
   ════════════════════════════════════════════════════════════ */

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

/* ════════════════════════════════════════════════════════════
   AJUSTES DE ROBUSTEZ DEL HEADER
   ════════════════════════════════════════════════════════════ */
@media (max-width: 1280px) {
  .header-inner { gap: 12px; }
  .nav a { padding-inline: 9px; font-size: 10px; }
  .header-right { gap: 12px; }
  .header-phone { font-size: 10.5px; }
  body.site .header-right .btn { padding-inline: 18px; }
}
@media (max-width: 1120px) { .header-phone { display: none; } }

/* ════════════════════════════════════════════════════════════
   PANEL ADMINISTRATIVO — VISTAS DEL SERVIDOR
   ════════════════════════════════════════════════════════════ */
body.admin-page { min-height: 100vh; background: var(--b); color: var(--w); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
body.admin-page .admin-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 26px 0 76px; }
body.admin-page .admin-top { display: flex; align-items: center; gap: 26px; min-height: 66px; padding: 0 0 18px; border-bottom: 1px solid var(--bd); }
body.admin-page .admin-top .logo { color: var(--w); }
body.admin-page .admin-top .logo strong { font: 900 18px/1 var(--font-display); letter-spacing: .06em; }
body.admin-page .admin-top .logo small { color: var(--m); font: 700 9px/1.2 var(--font-display); letter-spacing: .12em; text-transform: uppercase; }
body.admin-page .admin-top nav { display: flex; gap: 5px; margin-right: auto; }
body.admin-page .admin-top nav a, body.admin-page .admin-top > a:not(.logo), body.admin-page .admin-top form button { color: var(--m); font: 700 10px/1 var(--font-display); letter-spacing: .1em; text-transform: uppercase; padding: 10px 11px; transition: color var(--t-fast), background var(--t-fast); }
body.admin-page .admin-top nav a:hover, body.admin-page .admin-top > a:not(.logo):hover, body.admin-page .admin-top form button:hover { color: var(--w); background: #1d2124; }
body.admin-page .admin-top form button { border: 1px solid #3a4144; }
body.admin-page .admin-mast { position: relative; overflow: hidden; margin: 26px 0 18px; padding: 48px; background: linear-gradient(112deg, #1b1f22, #262b2e); border-left: 3px solid var(--y); }
body.admin-page .admin-mast::after { content: 'HEMAN'; position: absolute; right: -12px; bottom: -58px; color: #fff; opacity: .025; font: 900 148px/1 var(--font-display); pointer-events: none; }
body.admin-page .admin-mast > * { position: relative; }
body.admin-page .admin-mast h1 { max-width: 720px; margin: 9px 0 13px; font: 900 clamp(34px, 5vw, 64px)/.94 var(--font-display); text-transform: uppercase; letter-spacing: -.045em; }
body.admin-page .admin-mast p:not(.t-label) { max-width: 550px; color: #b6bdc0; font-size: 14px; line-height: 1.7; }
body.admin-page .admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 30px; }
body.admin-page .admin-stats > div, body.admin-page .admin-grid article, body.admin-page .admin-settings, body.admin-page .quote-list { background: var(--p); border: 1px solid var(--bd); }
body.admin-page .admin-stats > div { padding: 19px; border-top: 2px solid #394044; }
body.admin-page .admin-stats b { display: block; color: var(--y); font: 900 28px/1 var(--font-display); }
body.admin-page .admin-stats span { display: block; margin-top: 7px; color: var(--m); font: 700 10px/1.3 var(--font-display); letter-spacing: .09em; text-transform: uppercase; }
body.admin-page .admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
body.admin-page .admin-grid article { padding: 28px; }
body.admin-page .admin-grid h2 { margin: 8px 0; font: 800 21px/1.08 var(--font-display); text-transform: uppercase; }
body.admin-page .admin-grid p:not(.t-label) { color: var(--m); line-height: 1.65; }
body.admin-page .admin-grid a { display: inline-block; margin-top: 18px; color: var(--y); font: 800 11px var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
body.admin-page .admin-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 30px; }
body.admin-page .admin-settings > div { min-width: 0; }
body.admin-page .admin-settings > button, body.admin-page .admin-settings > p { grid-column: 1 / -1; justify-self: start; }
body.admin-page .admin-settings textarea { min-height: 125px; }
body.admin-page .quote-list { padding: 14px; }
body.admin-page .quote-list article { padding: 18px; border-left: 2px solid var(--y); background: var(--b); margin-bottom: 9px; }
body.admin-page .quote-list article:last-child { margin-bottom: 0; }
body.admin-page .quote-list b { display: block; font: 800 15px var(--font-display); }
body.admin-page .quote-list span, body.admin-page .quote-list p { display: block; margin-top: 6px; color: var(--m); font-size: 13px; line-height: 1.55; }
body.admin-page .quote-preview { display:flex; align-items:center; justify-content:space-between; gap:22px; }
body.admin-page .quote-open { flex:0 0 auto; white-space:nowrap; }
body.admin-page .quote-actions { display:flex; align-items:center; gap:8px; flex:0 0 auto; }
body.admin-page .quote-actions form, body.admin-page .quote-detail-tools form { margin:0; }
body.admin-page .quote-detail-tools { display:flex; align-items:center; justify-content:space-between; gap:16px; }
body.admin-page .quote-detail-tools .admin-back { margin:28px 0 -10px; }
body.admin-page .admin-back { display:inline-block; margin:28px 0 -10px; color:var(--m); font-size:13px; font-weight:700; text-decoration:none; }
body.admin-page .admin-back:hover { color:var(--y); }
body.admin-page .quote-detail-mast { margin-top:28px; }
body.admin-page .quote-detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:18px 0; }
body.admin-page .quote-detail-card { background:var(--p); border:1px solid var(--bd); padding:28px; }
body.admin-page .quote-detail-card dl { margin:20px 0 0; }
body.admin-page .quote-detail-card dl div { display:grid; grid-template-columns:130px minmax(0,1fr); gap:18px; padding:13px 0; border-top:1px solid var(--bd); }
body.admin-page .quote-detail-card dt { color:var(--m); font-size:11px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
body.admin-page .quote-detail-card dd { margin:0; color:var(--w); overflow-wrap:anywhere; }
body.admin-page .quote-detail-card dd a { color:var(--y); }
body.admin-page .quote-description { margin-top:26px; padding-top:18px; border-top:1px solid var(--bd); }
body.admin-page .quote-description h2 { margin:0 0 10px; font-size:18px; }
body.admin-page .quote-description p, body.admin-page .quote-attachments > p { color:var(--m); white-space:pre-wrap; line-height:1.7; }
body.admin-page .quote-attachments { margin-bottom:38px; }
body.admin-page .quote-attachments ul { list-style:none; padding:0; margin:18px 0 0; }
body.admin-page .quote-attachments li { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:13px 0; border-top:1px solid var(--bd); color:var(--w); overflow-wrap:anywhere; }
@media (max-width:650px) { body.admin-page .quote-preview, body.admin-page .quote-attachments li, body.admin-page .quote-detail-tools { align-items:flex-start; flex-direction:column; } body.admin-page .quote-actions { width:100%; } body.admin-page .quote-detail-grid { grid-template-columns:1fr; } body.admin-page .quote-detail-card { padding:21px; } body.admin-page .quote-detail-card dl div { grid-template-columns:1fr; gap:5px; } }
@media (max-width: 760px) {
  body.admin-page .admin-shell { width: min(100% - 28px, 1180px); padding-top: 14px; }
  body.admin-page .admin-top { flex-wrap: wrap; gap: 12px; }
  body.admin-page .admin-top nav { order: 3; width: 100%; }
  body.admin-page .admin-mast { padding: 32px 23px; }
  body.admin-page .admin-stats, body.admin-page .admin-grid, body.admin-page .admin-settings { grid-template-columns: 1fr; }
  body.admin-page .admin-settings > button, body.admin-page .admin-settings > p { grid-column: auto; }
}

/* Biblioteca visual privada */
body.admin-page .admin-top .is-current { color: var(--y); border-bottom: 2px solid var(--y); }
.media-section { margin-top: 28px; background: var(--p); border: 1px solid var(--bd); padding: 28px; }
.media-section-head { display: flex; justify-content: space-between; align-items: end; gap: 18px; margin-bottom: 22px; }
.media-section-head h2 { margin-top: 7px; font: 800 22px/1.1 var(--font-display); text-transform: uppercase; }
.media-section-head > p { color: var(--m); font-size: 12px; }
.media-notice { margin: 18px 0 -2px; padding: 13px 16px; border-left: 3px solid var(--y); background: #1d2124; color: var(--w); }
.media-notice.error { border-left-color: #e67373; color: #ffb0b0; }
.media-notice.ok { border-left-color: #71d997; color: #b8f6ca; }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.featured-card { min-width: 0; padding: 12px; background: var(--b); border: 1px solid var(--bd); }
.featured-preview { display: grid; place-items: center; height: 172px; margin-bottom: 15px; background: #181b1d; overflow: hidden; color: var(--m); font-size: 12px; }
.featured-preview img { width: 100%; height: 100%; object-fit: cover; }
.featured-card:first-child .featured-preview img { object-fit: contain; padding: 18px; }
.featured-card h3 { margin-bottom: 13px; font: 800 13px var(--font-display); letter-spacing: .05em; text-transform: uppercase; }
.featured-card label, .gallery-upload label, .gallery-manager-card label { margin-top: 12px; }
.featured-card input[type=file], .gallery-upload input[type=file], .gallery-manager-card input[type=file] { padding: 9px; color: var(--m); font-size: 12px; }
.featured-card .btn { width: 100%; margin-top: 12px; text-align: center; }
.gallery-upload { display: grid; grid-template-columns: 1fr 1fr 1.3fr auto; align-items: end; gap: 13px; padding: 18px; background: var(--b); border: 1px dashed #4b555a; }
.gallery-upload .btn { height: 43px; }
.gallery-manager { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gallery-manager-card { overflow: hidden; background: var(--b); border: 1px solid var(--bd); }
.gallery-manager-card > img { width: 100%; height: 190px; object-fit: cover; }
.gallery-manager-card > form { padding: 14px 14px 0; }
.gallery-manager-card input:not([type=file]) { padding: 9px 10px; }
.gallery-manager-card .btn { width: 100%; margin-top: 14px; text-align: center; }
.gallery-manager-card > form:last-child { padding: 10px 14px 14px; }
.media-delete { color: #ff9b9b; border: 1px solid #7c3a3a; padding: 8px 11px; font: 800 10px var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.media-delete:hover { background: #3a2020; }
@media (max-width: 980px) { .featured-grid, .gallery-manager { grid-template-columns: repeat(2, 1fr); } .gallery-upload { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .media-section { padding: 19px; } .featured-grid, .gallery-manager, .gallery-upload { grid-template-columns: 1fr; } .media-section-head { align-items: start; flex-direction: column; } }

/* Página independiente de cotización. El formulario de la portada está oculto
   por diseño; aquí se vuelve a mostrar de forma explícita y con su propio hero. */
.quote-page { padding-top: 76px; background: var(--gris-claro); }
.quote-page .quote-hero { padding: 78px 0 88px; color: var(--blanco); background: linear-gradient(115deg, #111315 0%, #25292c 100%); }
.quote-page .quote-hero .t-h1 { max-width: 760px; }
.quote-page .quote-hero .hero-body { max-width: 600px; margin-top: 20px; color: rgba(255,255,255,.68); font-size: 16px; line-height: 1.7; }
.quote-page .form-sec { display: block !important; padding-block: 76px; }
.quote-page .form-layout { grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 56px; }
.quote-page .form-intro { padding: 30px; background: var(--amarillo); border-radius: var(--r); align-self: stretch; }
.quote-page .form-intro .t-label { color: var(--asfalto); }
.quote-page .form-intro .t-label::before { background: var(--asfalto); }
.quote-page .form-intro .t-body { color: #3e4345; }
.quote-page .form-intro .accent { color: var(--asfalto); }
.quote-page .quote-form { padding: 32px; background: var(--blanco); border-radius: var(--r); box-shadow: 0 18px 38px rgba(0,0,0,.09); }
.quote-page .form-alert { margin-bottom: 0; }
@media (max-width: 768px) {
  .quote-page { padding-top: 54px; }
  .quote-page .quote-hero { padding: 56px 0 62px; }
  .quote-page .form-sec { padding-block: 42px; }
  .quote-page .form-layout { grid-template-columns: 1fr; gap: 24px; }
  .quote-page .quote-form, .quote-page .form-intro { padding: 23px; }
}

/* Páginas de servicio: conservan la tipografía y colores del sitio. */
.service-page { padding-top: 76px; background: var(--gris-claro); }
.service-hero { background: #17191b; color: var(--blanco); padding-block: 90px; }
.service-intro { max-width: 880px; }
.service-intro .t-h1 { max-width: 820px; overflow-wrap: break-word; }
.service-lead { max-width: 680px; margin: 24px 0 30px; color: #d0d3d4; font-size: clamp(16px, 2vw, 19px); line-height: 1.7; }
.service-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(35px, 7vw, 100px); }
.service-columns > div { min-width: 0; }
.service-columns .t-h2, .service-faq .t-h2, .service-related .t-h2 { margin-bottom: 22px; }
.service-columns p, .service-list, .service-steps, .service-faq-item p, .service-coverage p, .service-final-cta p { color: #4e5559; line-height: 1.75; }
.service-list, .service-steps { padding-left: 22px; margin-top: 18px; }
.service-list li, .service-steps li { margin: 12px 0; padding-left: 5px; }
.service-list li::marker, .service-steps li::marker { color: var(--amarillo); font-weight: 800; }
.service-coverage { background: var(--amarillo); padding-block: 34px; }
.service-coverage h2 { font: 800 20px var(--font-display); text-transform: uppercase; }
.service-coverage p { color: #26292b; margin-top: 8px; }
.service-faq { background: var(--blanco); }
.service-faq-item { border-top: 1px solid #dadde0; padding-block: 23px; }
.service-faq-item h3 { font: 800 18px/1.35 var(--font-display); }
.service-faq-item p { margin-top: 8px; }
.service-related-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.service-related-links a { min-width: 0; padding: 22px; background: var(--blanco); color: #17191b; text-decoration: none; font-weight: 800; border-top: 3px solid var(--amarillo); border-radius: 4px; }
.service-related-links a:hover, .service-related-links a:focus-visible { background: #fff5c7; }
.service-related-links span { color: #a57900; }
.service-final-cta { margin-top: 60px; padding: 34px; background: #17191b; color: var(--blanco); border-radius: 4px; }
.service-final-cta h2 { font: 800 clamp(23px, 3vw, 36px)/1.2 var(--font-display); }
.service-final-cta p { color: #d0d3d4; margin: 13px 0 22px; }
@media (max-width: 768px) {
  .service-page { padding-top: 54px; }
  .service-hero { padding-block: 58px; }
  .service-columns, .service-related-links { grid-template-columns: 1fr; }
  .service-final-cta { margin-top: 36px; padding: 24px; }
}
