/* Estilos compartidos de las páginas de servicios de Estilo Hierro */
:root {
  --bg: #121212;
  --bg-card: #1b1b1b;
  --border: #2c2c2c;
  --text: #f2f0ea;
  --text-muted: #a8a49a;
  --accent: #c9a35a;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); }

/* Cabecera y menú */
header {
  padding: 28px 20px 18px;
  text-align: center;
}
.logo {
  width: 52px; height: 52px;
  margin: 0 auto 10px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: Georgia, serif; font-weight: bold; letter-spacing: 1px;
  color: var(--accent); font-size: 18px;
  text-decoration: none;
}
.brand {
  display: block;
  font-size: 20px; letter-spacing: 3px; text-transform: uppercase;
  margin: 0 0 6px; font-weight: 600;
  color: var(--text); text-decoration: none;
}
header p { color: var(--text-muted); font-size: 13px; margin: 0; }
.site-nav {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav ul {
  list-style: none; margin: 0 auto; padding: 0 10px;
  display: flex; gap: 2px; justify-content: center;
  min-width: max-content;
}
.site-nav a {
  display: block; padding: 13px 12px 11px;
  font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }
@media (max-width: 700px) { .site-nav ul { justify-content: flex-start; } }

/* Portada de cada servicio */
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(ellipse at 85% 40%, rgba(201,163,90,0.14), transparent 55%), var(--bg);
}
.page-hero .inner {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 46px 20px 40px; text-align: center;
}
.eyebrow {
  font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin: 0 0 12px; font-weight: 600;
}
.page-hero h1 { font-size: 27px; line-height: 1.3; margin: 0 0 14px; font-weight: 600; }
.page-hero h1 span { color: var(--accent); }
.page-hero p.lead { color: #dcd9d1; font-size: 15px; line-height: 1.65; margin: 0 auto 22px; max-width: 600px; }
.hero-icon {
  position: absolute; right: -40px; top: 50%; transform: translateY(-50%);
  width: 340px; height: 340px; opacity: 0.08; z-index: 0;
  color: var(--accent);
}
@media (min-width: 768px) {
  .page-hero .inner { text-align: left; padding: 64px 40px; min-height: 380px; display: flex; flex-direction: column; justify-content: center; }
  .page-hero h1 { font-size: 34px; max-width: 640px; }
  .page-hero p.lead { margin-left: 0; }
  .page-hero .hero-btns { justify-content: flex-start; }
  .hero-icon { right: 6%; width: 300px; height: 300px; opacity: 0.22; }
}
.hero-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  display: inline-block; padding: 13px 22px; border-radius: 6px;
  font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1px solid var(--accent); font-family: inherit;
}
.btn-primary { background: var(--accent); color: #1a1a1a; }
.btn-ghost { background: transparent; color: var(--accent); }

.trust {
  border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--border);
}
.trust div {
  padding: 16px 12px; text-align: center; font-size: 12.5px;
  color: var(--text-muted); background: var(--bg); line-height: 1.45;
}
.trust strong { display: block; color: var(--text); font-size: 13.5px; margin-bottom: 3px; }

/* Secciones */
.section { max-width: 960px; margin: 0 auto; padding: 48px 14px 0; }
.section h2 {
  font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin: 0 0 8px; text-align: center; font-weight: 700;
}
.section .sub {
  text-align: center; color: var(--text-muted); font-size: 14.5px; line-height: 1.6;
  margin: 0 auto 26px; max-width: 620px;
}
.items { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px 18px;
}
.item h3 { margin: 0 0 8px; font-size: 15.5px; font-weight: 600; display: flex; gap: 10px; align-items: center; }
.item h3::before { content: ""; width: 14px; height: 2px; background: var(--accent); flex: none; }
.item p { margin: 0; color: var(--text-muted); font-size: 13.5px; line-height: 1.6; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.step { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 18px 16px; }
.step .num { color: var(--accent); font-family: Georgia, serif; font-size: 22px; margin-bottom: 6px; }
.step h3 { margin: 0 0 6px; font-size: 14.5px; font-weight: 600; }
.step p { margin: 0; color: var(--text-muted); font-size: 13px; line-height: 1.55; }
.about { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 26px 22px; }
.about p { color: var(--text-muted); font-size: 14.5px; line-height: 1.7; margin: 0 0 12px; }
.about p:last-child { margin-bottom: 0; }
.about strong { color: var(--text); }

/* Formulario de presupuesto */
.quote {
  background: var(--bg-card); border: 1px solid var(--accent); border-radius: 12px;
  padding: 28px 22px; max-width: 640px; margin: 0 auto;
}
.quote h2 { margin-bottom: 6px; }
.quote .sub { margin-bottom: 20px; }
.field { margin-bottom: 12px; }
.field label {
  display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--text-muted); margin-bottom: 5px;
}
.field input, .field textarea, .field select {
  width: 100%; background: #111; border: 1px solid var(--border); color: var(--text);
  padding: 10px 11px; border-radius: 6px; font-size: 16px; font-family: inherit;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 90px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; gap: 0; } }
.send-btn {
  width: 100%; background: var(--accent); color: #1a1a1a; border: none; padding: 14px;
  border-radius: 6px; font-size: 14px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; cursor: pointer; margin-top: 6px; font-family: inherit;
}
.note { font-size: 12px; color: var(--text-muted); margin: 12px 0 0; line-height: 1.5; text-align: center; }

/* Preguntas frecuentes */
.faq details { border-bottom: 1px solid var(--border); padding: 14px 2px; }
.faq summary {
  cursor: pointer; font-size: 14.5px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--text-muted); font-size: 13.5px; line-height: 1.65; margin: 10px 0 0; }

/* Otros servicios */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.service-link {
  display: block; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; text-decoration: none; color: var(--text);
  transition: border-color .15s;
}
.service-link:hover { border-color: var(--accent); }
.service-link strong { display: block; font-size: 14.5px; margin-bottom: 4px; }
.service-link span { display: block; font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }
.service-link em { display: block; font-style: normal; color: var(--accent); font-size: 12px; font-weight: 600; margin-top: 10px; letter-spacing: .5px; text-transform: uppercase; }

/* Pie */
footer {
  border-top: 1px solid var(--border); margin-top: 56px; padding: 30px 20px 96px;
  text-align: center; color: var(--text-muted); font-size: 13px; line-height: 1.7;
}
footer a { color: var(--accent); text-decoration: none; }
.foot-name { color: var(--text); font-size: 14px; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 6px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin: 14px 0; font-size: 12.5px; }
.social { display: flex; gap: 16px; justify-content: center; margin: 12px 0 16px; flex-wrap: wrap; }
.footer-links { margin-top: 12px; font-size: 12px; }
.footer-links a { margin: 0 8px; }

.wa-fab {
  position: fixed; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); right: 18px;
  background: var(--accent); color: #1a1a1a; border-radius: 30px; padding: 12px 18px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4); z-index: 50;
}

/* Cookies */
.cookie-bar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  max-width: 560px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--accent);
  border-radius: 12px; padding: 14px 16px; z-index: 150; display: none;
  font-size: 13px; line-height: 1.5; color: var(--text-muted); box-shadow: 0 6px 24px rgba(0,0,0,0.5);
}
.cookie-bar.open { display: block; }
.cookie-btns { display: flex; gap: 8px; margin-top: 10px; }
.cookie-btns button {
  flex: 1; padding: 10px; border-radius: 6px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; font-family: inherit; border: 1px solid var(--accent);
}
.cookie-accept { background: var(--accent); color: #1a1a1a; }
.cookie-reject { background: transparent; color: var(--accent); }
.overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75); display: none;
  align-items: flex-end; justify-content: center; z-index: 100;
}
.overlay.open { display: flex; }
.modal {
  background: var(--bg-card); border-top: 1px solid var(--border); border-radius: 16px 16px 0 0;
  width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto;
  padding: 18px 18px calc(26px + env(safe-area-inset-bottom, 0px));
}
.modal-close { display: block; margin: 0 0 10px auto; background: none; border: none; color: var(--text-muted); font-size: 20px; cursor: pointer; }
.cookie-policy h2 { font-size: 17px; margin: 0 0 10px; }
.cookie-policy p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0 0 10px; }
