/* ============================================================
   DUANER — Reformas integrales de alto standing
   Hoja de estilos principal
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Inter:wght@300;400;500;600&display=swap');

/* ---------- Variables CSS ---------- */
:root {
  /* Paleta DUANER — antracita + plateado (logo) + champán (acento premium) */
  --color-bg-dark:       #1F1D1E;   /* fondo principal, antracita profundo */
  --color-bg-deepest:    #161415;   /* footer, aún más oscuro */
  --color-surface:       #2A2728;   /* superficies sobre el fondo */
  --color-surface-alt:   #393536;   /* antracita del logo */
  --color-silver:        #BCBBBB;   /* plateado del logo */
  --color-silver-bright: #E8E7E7;   /* texto principal sobre oscuro */
  --color-accent:        #C9A96E;   /* champán/dorado suave, acento premium */
  --color-accent-hover:  #B89658;
  --color-accent-deep:   #7A6029;   /* champán oscurecido: acento legible sobre fondo claro */
  --color-text-light:    #E8E7E7;
  --color-text-muted:    #9A9899;
  --color-white:         #FFFFFF;
  --color-light-bg:      #F5F4F3;   /* fondo claro para secciones puntuales */
  --color-ink:           #241F20;   /* texto principal sobre fondo claro */
  --color-ink-muted:     #5F5B5C;   /* texto secundario sobre fondo claro */
  --color-error:         #E08A7C;

  /* Bordes translúcidos reutilizables */
  --line-silver:      rgba(188,187,187,.22);
  --line-silver-soft: rgba(188,187,187,.12);
  --line-accent:      rgba(201,169,110,.38);

  --font-heading: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Esquinas contenidas: nada de píldoras */
  --radius-sm: 2px;
  --radius-md: 3px;
  --radius-lg: 4px;

  --shadow-sm: 0 2px 10px rgba(0,0,0,.28);
  --shadow-md: 0 10px 34px rgba(0,0,0,.38);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.48);

  --transition:      0.45s cubic-bezier(.22,.61,.36,1);
  --transition-fast: 0.28s cubic-bezier(.22,.61,.36,1);
  --max-w: 1180px;
  --header-h: 88px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text-light);
  background: var(--color-bg-dark);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul { list-style: none; }

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font-body);
  color: inherit;
}

::selection { background: var(--color-accent); color: var(--color-bg-dark); }

/* ---------- Tipografía ---------- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--color-silver-bright);
  line-height: 1.18;
  letter-spacing: .005em;
}

h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .01em;
  color: var(--color-silver-bright);
  line-height: 1.5;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

p { margin-bottom: 0; }

/* ---------- Utilidades de layout ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 130px 0; }

.section-header {
  text-align: center;
  margin-bottom: 76px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 { margin-bottom: 22px; }

.section-header p {
  font-size: 1.02rem;
  font-weight: 300;
  color: var(--color-text-muted);
  max-width: 620px;
  margin: 0 auto;
}

/* Etiqueta de sección: filete + texto en versalitas */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 22px;
}

.section-tag::before {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--color-accent);
  opacity: .7;
}

.section-header .section-tag::after {
  content: '';
  width: 34px;
  height: 1px;
  background: var(--color-accent);
  opacity: .7;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), transform var(--transition-fast);
}

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

/* Relleno champán sobre oscuro */
.btn-primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-dark);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-bg-dark);
  transform: translateY(-2px);
}

/* Contorno plateado sobre oscuro */
.btn-outline {
  background: transparent;
  color: var(--color-silver-bright);
  border-color: var(--line-silver);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}

/* Contorno champán sobre fondo claro */
.btn-outline-primary {
  background: transparent;
  color: var(--color-accent-deep);
  border-color: var(--color-accent-deep);
}

.btn-outline-primary:hover {
  background: var(--color-accent-deep);
  color: var(--color-light-bg);
}

/* ---------- HEADER ---------- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition),
              height var(--transition);
}

#header.scrolled {
  height: 74px;
  background: rgba(31,29,30,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-silver-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Lockup 4:1 (wordmark + claim). Por debajo de ~50 px el claim deja de leerse. */
.logo img {
  height: 56px;
  width: auto;
  transition: height var(--transition);
}

#header.scrolled .logo img { height: 48px; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-list a {
  position: relative;
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--color-silver);
  padding: 10px 16px;
}

.nav-list a::after {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.nav-list a:hover { color: var(--color-silver-bright); }
.nav-list a:hover::after,
.nav-list a.active::after { transform: scaleX(1); }
.nav-list a.active { color: var(--color-silver-bright); }

/* El CTA no lleva subrayado animado */
.nav-cta { margin-left: 18px; }
.nav-cta::after { display: none !important; }

.nav-list a.nav-cta {
  padding: 13px 26px;
  color: var(--color-bg-dark);
}

.nav-list a.nav-cta:hover { color: var(--color-bg-dark); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-silver-bright);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- HERO ---------- */
#inicio {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
  overflow: hidden;
  background: var(--color-bg-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url('../img/hero.webp') center/cover no-repeat,
    var(--color-surface-alt);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(22,20,21,.94) 0%, rgba(31,29,30,.80) 48%, rgba(31,29,30,.58) 100%),
    linear-gradient(to top, rgba(22,20,21,.92) 0%, rgba(22,20,21,0) 42%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-content h1 {
  color: var(--color-silver-bright);
  margin-bottom: 30px;
  font-weight: 300;
}

.hero-content h1 em {
  display: block;
  font-style: normal;
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 300;
  color: var(--color-silver);
  margin-bottom: 46px;
  max-width: 620px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--line-silver-soft);
}

.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-accent);
  line-height: 1.2;
}

.stat-item span {
  font-size: .74rem;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Indicador de scroll */
.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .64rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.hero-scroll::after {
  content: '';
  width: 1px;
  height: 46px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
}

/* ---------- NOSOTROS (sección clara) ---------- */
#nosotros {
  background: var(--color-light-bg);
  color: var(--color-ink);
}

#nosotros h2,
#nosotros h4 { color: var(--color-ink); }

#nosotros .section-tag { color: var(--color-accent-deep); }
#nosotros .section-tag::before { background: var(--color-accent-deep); }

.nosotros-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}

.nosotros-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--color-surface-alt);
}

.nosotros-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Filete champán decorativo sobre la imagen */
.nosotros-img-wrap::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(232,231,231,.28);
  pointer-events: none;
}

.nosotros-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(22,20,21,.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line-accent);
}

.nosotros-badge .badge-icon {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.nosotros-badge strong {
  display: block;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-silver-bright);
}

.nosotros-badge span {
  font-size: .8rem;
  font-weight: 300;
  color: var(--color-silver);
}

.nosotros-content h2 { margin-bottom: 28px; }

.nosotros-content > p {
  color: var(--color-ink-muted);
  margin-bottom: 22px;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.95;
}

.strengths-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 28px;
  margin-top: 48px;
  padding-top: 44px;
  border-top: 1px solid rgba(36,31,32,.12);
}

.strength-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.strength-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(122,96,41,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent-deep);
}

.strength-item h4 { margin-bottom: 5px; }

.strength-item p {
  font-size: .85rem;
  font-weight: 300;
  color: var(--color-ink-muted);
  line-height: 1.7;
}

/* ---------- SERVICIOS (los 3 pilares) ---------- */
#servicios { background: var(--color-bg-dark); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-silver-soft);
  margin-bottom: 76px;
}

.service-card {
  background: var(--color-bg-dark);
  padding: 56px 44px 60px;
  position: relative;
  transition: background var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover { background: var(--color-surface); }
.service-card:hover::before { transform: scaleX(1); }

.service-index {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--color-accent);
  letter-spacing: .1em;
  display: block;
  margin-bottom: 26px;
}

.service-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 26px;
  color: var(--color-accent);
  border: 1px solid var(--line-accent);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.service-card p {
  font-size: .92rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.85;
}

/* Nota de equipo propio */
.equipo-nota {
  border: 1px solid var(--line-silver-soft);
  border-left: 2px solid var(--color-accent);
  padding: 44px 52px;
  background: var(--color-surface);
}

.equipo-nota p {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-silver-bright);
  max-width: 900px;
}

.equipo-nota p strong {
  font-weight: 500;
  color: var(--color-accent);
}

/* ---------- PROCESO (línea de tiempo) ---------- */
#proceso {
  background: var(--color-surface);
  position: relative;
}

.proceso-timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  position: relative;
}

/* Línea conectora plateada */
.proceso-timeline::before {
  content: '';
  position: absolute;
  top: 34px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--line-silver) 12%,
    var(--line-silver) 88%,
    transparent 100%);
  z-index: 0;
}

.proceso-step {
  position: relative;
  z-index: 1;
  text-align: center;
}

.proceso-num {
  width: 68px;
  height: 68px;
  margin: 0 auto 30px;
  border: 1px solid var(--line-silver);
  border-radius: 50%;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: border-color var(--transition), color var(--transition),
              background var(--transition);
}

.proceso-step:hover .proceso-num {
  border-color: var(--color-accent);
  background: var(--color-bg-dark);
}

.proceso-step h3 {
  font-size: 1.22rem;
  margin-bottom: 12px;
  padding: 0 4px;
}

.proceso-step p {
  font-size: .85rem;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1.75;
}

/* ---------- CONTACTO ---------- */
#contacto { background: var(--color-bg-dark); }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 76px;
  align-items: start;
}

.contacto-info h2 { margin-bottom: 22px; }

.contacto-info > p {
  color: var(--color-text-muted);
  margin-bottom: 48px;
  font-size: .98rem;
  font-weight: 300;
  line-height: 1.9;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-silver-soft);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-silver-soft);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-silver);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.contact-item strong {
  display: block;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.contact-item a,
.contact-item span {
  font-size: .95rem;
  font-weight: 300;
  color: var(--color-silver-bright);
  display: block;
}

.contact-item a:hover { color: var(--color-accent); }

.map-wrap {
  margin-top: 36px;
  overflow: hidden;
  height: 220px;
  background: var(--color-surface);
  border: 1px solid var(--line-silver-soft);
  filter: grayscale(1) contrast(.92) brightness(.82);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Formulario ---------- */
.contacto-form-wrap {
  background: var(--color-surface);
  border: 1px solid var(--line-silver-soft);
  padding: 52px;
}

.contacto-form-wrap h3 {
  margin-bottom: 8px;
  font-size: 1.85rem;
}

.form-intro {
  font-size: .88rem;
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-group.full { grid-column: 1 / -1; }

label {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: .92rem;
  font-weight: 300;
  color: var(--color-silver-bright);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line-silver);
  border-radius: 0;
  padding: 11px 2px;
  transition: border-color var(--transition-fast);
  width: 100%;
}

input::placeholder, textarea::placeholder { color: rgba(154,152,153,.55); }

select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-accent) 50%),
                    linear-gradient(135deg, var(--color-accent) 50%, transparent 50%);
  background-position: calc(100% - 12px) calc(50% + 1px), calc(100% - 7px) calc(50% + 1px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 28px;
}

/* El desplegable nativo se pinta con los colores del sistema: forzamos los nuestros */
select option {
  background: var(--color-surface);
  color: var(--color-silver-bright);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-bottom-color: var(--color-accent);
}

input.error, textarea.error, select.error { border-bottom-color: var(--color-error); }

textarea { resize: vertical; min-height: 120px; line-height: 1.75; }

.form-group-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  grid-column: 1 / -1;
  margin-top: 4px;
}

.form-group-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--color-accent);
  border-bottom: none;
}

.form-group-check label {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: .8rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  letter-spacing: 0;
  text-transform: none;
}

.form-group-check label a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.honeypot { display: none !important; }

.form-actions { grid-column: 1 / -1; margin-top: 8px; }

.btn-submit {
  width: 100%;
  padding: 18px 34px;
}

/* Estados del formulario */
.form-message {
  display: none;
  padding: 16px 20px;
  font-size: .86rem;
  font-weight: 400;
  text-align: center;
  grid-column: 1 / -1;
  border: 1px solid transparent;
}

.form-message.success {
  display: block;
  background: rgba(201,169,110,.10);
  color: var(--color-accent);
  border-color: var(--line-accent);
}

.form-message.error {
  display: block;
  background: rgba(224,138,124,.08);
  color: var(--color-error);
  border-color: rgba(224,138,124,.4);
}

.btn-submit.loading { opacity: .65; pointer-events: none; }

.btn-submit.loading::after {
  content: '';
  width: 15px;
  height: 15px;
  border: 1.5px solid rgba(31,29,30,.35);
  border-top-color: var(--color-bg-dark);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- FOOTER ---------- */
#footer {
  background: var(--color-bg-deepest);
  color: var(--color-text-muted);
  padding: 96px 0 36px;
  border-top: 1px solid var(--line-silver-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 56px;
  margin-bottom: 72px;
}

.footer-brand .logo img {
  height: 56px;
  margin-bottom: 24px;
}

.footer-brand p {
  font-size: .88rem;
  font-weight: 300;
  line-height: 1.9;
  color: var(--color-text-muted);
  max-width: 300px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-silver-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  color: var(--color-silver);
}

.social-link:hover { border-color: var(--color-accent); color: var(--color-accent); }

.footer-col h4 {
  font-size: .68rem;
  font-weight: 500;
  color: var(--color-silver-bright);
  margin-bottom: 24px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.footer-col ul { display: flex; flex-direction: column; gap: 13px; }

.footer-col a {
  font-size: .88rem;
  font-weight: 300;
  color: var(--color-text-muted);
}

.footer-col a:hover { color: var(--color-accent); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .88rem;
  font-weight: 300;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

.footer-contact-item svg { color: var(--color-accent); flex-shrink: 0; margin-top: 5px; }
.footer-contact-item a:hover { color: var(--color-accent); }

.footer-bottom {
  border-top: 1px solid var(--line-silver-soft);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom p {
  font-size: .78rem;
  font-weight: 300;
  color: rgba(154,152,153,.7);
}

.footer-legal { display: flex; gap: 26px; }

.footer-legal a {
  font-size: .78rem;
  font-weight: 300;
  color: rgba(154,152,153,.7);
}

.footer-legal a:hover { color: var(--color-accent); }

/* ---------- WhatsApp FAB ---------- */
.whatsapp-fab {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(0,0,0,.45);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.whatsapp-fab:hover {
  transform: scale(1.07);
  box-shadow: 0 8px 28px rgba(37,211,102,.4);
  color: #fff;
}

/* ---------- Banner de cookies ---------- */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-bg-deepest);
  border-top: 1px solid var(--line-accent);
  color: var(--color-silver);
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 -6px 30px rgba(0,0,0,.4);
  transform: translateY(0);
  transition: transform .5s cubic-bezier(.22,.61,.36,1);
}

#cookie-banner.hidden { transform: translateY(110%); }

#cookie-banner p {
  font-size: .85rem;
  font-weight: 300;
  flex: 1;
  min-width: 260px;
}

#cookie-banner a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-cookie-accept,
.btn-cookie-reject {
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast),
              color var(--transition-fast);
}

.btn-cookie-accept {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-dark);
}

.btn-cookie-accept:hover { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }

.btn-cookie-reject {
  background: transparent;
  border-color: var(--line-silver);
  color: var(--color-silver);
}

.btn-cookie-reject:hover { border-color: var(--color-silver); color: var(--color-silver-bright); }

/* ---------- Animaciones de scroll ---------- */
/* Fade-in lento y elegante (más largo que en la plantilla original) */
.fade-in {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1.15s cubic-bezier(.22,.61,.36,1),
              transform 1.15s cubic-bezier(.22,.61,.36,1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: .14s; }
.fade-in-delay-2 { transition-delay: .28s; }
.fade-in-delay-3 { transition-delay: .42s; }
.fade-in-delay-4 { transition-delay: .56s; }
.fade-in-delay-5 { transition-delay: .70s; }

/* ---------- Páginas legales ---------- */
.legal-page { padding-top: var(--header-h); }

.legal-page #header { background: rgba(31,29,30,.94); border-bottom-color: var(--line-silver-soft); }

.legal-hero {
  background: var(--color-surface);
  padding: 76px 0 64px;
  text-align: center;
  border-bottom: 1px solid var(--line-silver-soft);
}

.legal-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 14px;
}

.legal-hero p {
  color: var(--color-text-muted);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 76px 28px 100px;
}

.legal-content h2 {
  font-size: 1.5rem;
  color: var(--color-silver-bright);
  margin-top: 52px;
  margin-bottom: 16px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content p,
.legal-content li {
  font-size: .94rem;
  font-weight: 300;
  color: var(--color-silver);
  line-height: 1.95;
  margin-bottom: 14px;
}

.legal-content strong { color: var(--color-silver-bright); font-weight: 500; }

.legal-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 14px;
}

.legal-content ul li {
  position: relative;
  padding-left: 24px;
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 10px;
  height: 1px;
  background: var(--color-accent);
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .85em;
  color: var(--color-accent);
  background: rgba(201,169,110,.08);
  padding: 2px 6px;
}

/* Tablas de las políticas */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
  margin-bottom: 16px;
}

.legal-table th {
  text-align: left;
  padding: 13px 15px;
  border: 1px solid var(--line-silver-soft);
  background: var(--color-surface);
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-silver-bright);
}

.legal-table td {
  padding: 13px 15px;
  border: 1px solid var(--line-silver-soft);
  color: var(--color-silver);
  font-weight: 300;
  line-height: 1.75;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .section { padding: 100px 0; }

  .nosotros-grid { grid-template-columns: 1fr; gap: 56px; }
  .nosotros-img-wrap { max-width: 520px; margin: 0 auto; aspect-ratio: 4/3; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 44px 32px 48px; }

  /* Proceso: dos filas de columnas se vuelven ilegibles; pasamos a vertical */
  .proceso-timeline { grid-template-columns: 1fr; gap: 0; }

  .proceso-timeline::before {
    top: 0;
    bottom: 0;
    left: 34px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(to bottom,
      transparent 0%,
      var(--line-silver) 6%,
      var(--line-silver) 94%,
      transparent 100%);
  }

  .proceso-step {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: 28px;
    align-items: start;
    text-align: left;
    padding-bottom: 44px;
  }

  .proceso-step:last-child { padding-bottom: 0; }
  .proceso-num { margin: 0; }
  .proceso-step h3 { padding: 0; margin-top: 14px; }

  .contacto-grid { grid-template-columns: 1fr; gap: 56px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 44px; }
}

/* El menú horizontal (5 enlaces + CTA) deja de caber antes del breakpoint móvil */
@media (max-width: 1040px) {
  .hamburger { display: flex; }

  .nav-list {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(22,20,21,.985);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line-silver-soft);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 22px 34px;
    gap: 2px;
    transform: translateY(-120%);
    transition: transform .45s cubic-bezier(.22,.61,.36,1);
    z-index: 999;
  }

  .nav-list.open { transform: translateY(0); }

  .nav-list a { padding: 15px 4px; }
  .nav-list a::after { left: 4px; right: 4px; bottom: 8px; }

  .nav-cta { margin-left: 0; margin-top: 16px; }
  .nav-list a.nav-cta { padding: 16px 26px; }

  /* En móvil el header siempre lleva fondo: si no, el menú "flota" */
  #header { background: rgba(31,29,30,.94); border-bottom-color: var(--line-silver-soft); }

  :root { --header-h: 80px; }
  .logo img,
  #header.scrolled .logo img { height: 50px; }
}

@media (max-width: 768px) {
  :root { --header-h: 74px; }

  .logo img,
  #header.scrolled .logo img { height: 44px; }

  .section { padding: 80px 0; }
  .section-header { margin-bottom: 52px; }

  .container { padding: 0 22px; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-stats { gap: 32px; margin-top: 52px; }
  .hero-scroll { display: none; }

  .strengths-list { grid-template-columns: 1fr; gap: 26px; }

  .equipo-nota { padding: 32px 26px; }

  .contacto-form-wrap { padding: 32px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .form-actions { grid-column: 1; }
  .form-group-check { grid-column: 1; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { justify-content: center; }

  .legal-content { padding: 52px 22px 72px; }

  /* Las tablas legales se desbordan en móvil: scroll horizontal controlado */
  .legal-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .legal-table { min-width: 560px; }
}

@media (max-width: 480px) {
  .nosotros-img-wrap { aspect-ratio: 3/2; }
  .nosotros-badge { padding: 18px 20px; }
  .hero-stats { flex-direction: column; gap: 22px; }
  .whatsapp-fab { bottom: 22px; right: 22px; width: 52px; height: 52px; }
  .proceso-step { grid-template-columns: 56px 1fr; gap: 20px; }
  .proceso-num { width: 56px; height: 56px; font-size: 1.2rem; }
  .proceso-timeline::before { left: 28px; }
}

/* ---------- Foco visible ---------- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }

  .fade-in { opacity: 1; transform: none; }
}

/* ---------- Impresión ---------- */
@media print {
  #header, .whatsapp-fab, #cookie-banner, .hero-scroll { display: none; }
  body { background: #fff; color: #000; }
}
