@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   Encina Reformas Las Rozas — hoja de estilo principal
   Paleta tomada del logo: verde oliva + pizarra oscura + crema
   Titulares en serif (Fraunces) · cuerpo en Inter
   Iconografía SVG propia · diseño sobrio y editorial
   ============================================================ */

:root {
  /* Color — del logo */
  --c-bg: #fffdf8;
  --c-surface: #f1ece0;        /* crema cálida — secciones alternas */
  --c-hero-bg: #e8e9da;        /* verde-crema suave */
  --c-text: #2b2e27;
  --c-text-soft: #5f6358;
  --c-heading: #2a352f;        /* pizarra verdosa oscura (logo "Encina") */
  --c-border: #e2dcca;
  --c-primary: #2a352f;        /* pizarra — botones principales */
  --c-primary-dark: #1b2420;
  --c-accent: #6e7d43;         /* verde oliva (logo "Reformas" / encina) */
  --c-accent-dark: #55612f;
  --c-accent-tint: #e7e8d2;    /* oliva pálido */
  --c-whatsapp: #55612f;
  --c-whatsapp-dark: #424d24;
  --c-link: #55612f;
  --c-link-hover: #2a352f;
  --c-focus: #6e7d43;
  --c-footer-bg: #242c26;
  --c-footer-text: #c3c5b6;
  --c-footer-text-soft: #888b7c;
  --c-footer-link: #e4e4d7;

  /* Tipografía */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;

  /* Medidas */
  --maxw: 1180px;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(34,38,30,.04);
  --shadow: 0 10px 30px -14px rgba(34,38,30,.30);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--c-accent); color: #fff; }
:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 3px; border-radius: 2px; }

/* ---------- Tipografía ---------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--c-heading);
  margin: 0 0 .5em;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
h3, h4 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--c-heading);
  margin: 0 0 .55em;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 3.65rem); }
h2 { font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.65rem); }
h3 { font-size: clamp(1.12rem, 1rem + .5vw, 1.3rem); }
p { margin: 0 0 1rem; }
strong { font-weight: 600; color: var(--c-heading); }
a { color: var(--c-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover, a:focus { color: var(--c-link-hover); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
main { display: block; }
main > section,
main > article > section { padding: clamp(3.25rem, 1.5rem + 5.5vw, 6rem) 0; }
main > section:nth-of-type(even),
main > article > section:nth-of-type(even) { background: var(--c-surface); }

/* Encabezado de sección — filete de acento + serif */
main section > .container > h2 { position: relative; max-width: 24ch; }
main section > .container > h2::before {
  content: "";
  display: block;
  width: 38px;
  height: 2px;
  background: var(--c-accent);
  margin-bottom: 1.35rem;
}
main section > .container > h2 + p {
  font-size: 1.13rem;
  color: var(--c-text-soft);
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; padding-top: .7rem; padding-bottom: .7rem;
}
.logo { display: inline-block; flex: none; text-decoration: none; line-height: 0; }
.logo img { width: auto; height: 54px; mix-blend-mode: multiply; }

.main-nav { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; }
.main-nav a {
  text-decoration: none; font-weight: 500; font-size: .97rem;
  color: var(--c-heading); padding: .35rem 0; position: relative; white-space: nowrap;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; background: var(--c-accent); transition: right .22s ease;
}
.main-nav a:hover, .main-nav a:focus { color: var(--c-accent-dark); }
.main-nav a:hover::after, .main-nav a:focus::after { right: 0; }
@media (min-width: 940px) { .main-nav { display: block; } }

.header-actions { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  display: none; align-items: center; gap: .5rem;
  text-decoration: none; font-weight: 600; font-size: .97rem;
  color: var(--c-heading); white-space: nowrap;
}
.header-phone:hover { color: var(--c-accent-dark); }
.phone-icon {
  flex: none; width: 1.05rem; height: 1.05rem;
  text-indent: -9999px; overflow: hidden;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355612f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15.5 21A12.5 12.5 0 0 1 3 8.5 2.5 2.5 0 0 1 5.5 6h2.1a1 1 0 0 1 1 .82l.55 2.7a1 1 0 0 1-.42 1.02L7.3 11.6a10.5 10.5 0 0 0 5.1 5.1l1.06-1.43a1 1 0 0 1 1.02-.42l2.7.55a1 1 0 0 1 .82 1V18.5A2.5 2.5 0 0 1 15.5 21z'/%3E%3C/svg%3E");
}
@media (min-width: 1200px) { .header-phone { display: inline-flex; } }

.header-cta {
  display: inline-flex; align-items: center;
  padding: .72rem 1.3rem; background: var(--c-primary); color: #fff;
  text-decoration: none; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .94rem; white-space: nowrap;
  transition: background .18s ease;
}
.header-cta:hover, .header-cta:focus { background: var(--c-primary-dark); color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--c-hero-bg); border-bottom: 1px solid var(--c-border); }
.hero .container { max-width: 1040px; }
.hero h1 { max-width: 17ch; }
.hero h1::before { display: none; }
.hero .lead {
  font-size: clamp(1.1rem, 1rem + .55vw, 1.32rem);
  color: var(--c-text-soft); max-width: 54ch; margin: 1.25rem 0 0;
}
.ctas { display: flex; flex-wrap: wrap; gap: .85rem; margin: 2.1rem 0 0; }

/* ---------- Botones ---------- */
.btn-primary, .btn-secondary, .form-presupuesto button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .92rem 1.7rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  text-decoration: none; min-height: 52px; border: 1.5px solid transparent;
  cursor: pointer; transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.btn-primary, .form-presupuesto button { background: var(--c-primary); color: #fff; }
.btn-primary:hover, .btn-primary:focus,
.form-presupuesto button:hover, .form-presupuesto button:focus {
  background: var(--c-primary-dark); color: #fff;
}
.btn-secondary { background: transparent; color: var(--c-heading); border-color: var(--c-heading); }
.btn-secondary:hover, .btn-secondary:focus {
  background: var(--c-heading); color: #fff; border-color: var(--c-heading);
}

/* ---------- Trust bar ---------- */
.trust-bar {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  list-style: none; padding: 1.4rem 0 0; margin: 2rem 0 0;
  border-top: 1px solid var(--c-border);
}
.trust-bar li {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .92rem; font-weight: 500; color: var(--c-text);
}
.trust-bar li::before {
  content: ""; flex: none; width: 1.1rem; height: 1.1rem;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355612f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-11'/%3E%3C/svg%3E");
}

/* ---------- Rejilla de tarjetas ---------- */
.servicios-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 1.4rem; margin-top: 1.75rem;
}
.servicio-card {
  display: block; padding: 1.9rem;
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.servicio-card h3 { margin-top: 0; }
.servicio-card p { margin-bottom: 0; color: var(--c-text-soft); }

a.servicio-card { text-decoration: none; color: var(--c-text); }
a.servicio-card h3 { transition: color .18s ease; }
a.servicio-card::after {
  content: "Ver el servicio"; display: inline-block; margin-top: 1.1rem;
  font-weight: 600; font-size: .9rem; color: var(--c-accent-dark);
  border-bottom: 1.5px solid var(--c-accent-tint); padding-bottom: 2px;
  transition: border-color .18s ease;
}
a.servicio-card:hover, a.servicio-card:focus {
  border-color: var(--c-accent); transform: translateY(-3px); box-shadow: var(--shadow);
}
a.servicio-card:hover h3, a.servicio-card:focus h3 { color: var(--c-accent-dark); }
a.servicio-card:hover::after { border-color: var(--c-accent); }

/* Icono de cada servicio (badge superior) */
a.servicio-card::before {
  content: ""; display: block;
  width: 3rem; height: 3rem; margin-bottom: 1.15rem;
  border-radius: 50%;
  background: var(--c-accent-tint) no-repeat center / 1.55rem;
}
a.servicio-card[href*="reforma-integral"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355612f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 11.5 12 4l8.5 7.5'/%3E%3Cpath d='M6 10v9.5h12V10'/%3E%3Cpath d='M10 19.5V14h4v5.5'/%3E%3C/svg%3E"); }
a.servicio-card[href*="reforma-de-bano"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355612f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.2s6.5 7.3 6.5 11.3a6.5 6.5 0 0 1-13 0C5.5 10.5 12 3.2 12 3.2z'/%3E%3C/svg%3E"); }
a.servicio-card[href*="reforma-de-cocina"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355612f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Ccircle cx='9.2' cy='9.2' r='1.9'/%3E%3Ccircle cx='14.8' cy='9.2' r='1.9'/%3E%3Ccircle cx='9.2' cy='14.8' r='1.9'/%3E%3Ccircle cx='14.8' cy='14.8' r='1.9'/%3E%3C/svg%3E"); }
a.servicio-card[href*="reforma-de-local"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355612f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9.5 5.6 4.5h12.8L20 9.5'/%3E%3Cpath d='M5 9.5V19.5h14V9.5'/%3E%3Cpath d='M4 9.5h16'/%3E%3Cpath d='M9.5 19.5v-5h5v5'/%3E%3C/svg%3E"); }
a.servicio-card[href*="reforma-de-chalet"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355612f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.4 12 12 4.4 20.6 12'/%3E%3Cpath d='M6 10v9.5h12V10'/%3E%3Cpath d='M15.8 6.3V4.5H18v3.5'/%3E%3Cpath d='M10 19.5v-5h4v5'/%3E%3C/svg%3E"); }
a.servicio-card[href*="rehabilitacion-de-fachadas"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355612f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3.5' width='14' height='17' rx='1'/%3E%3Cpath d='M9 7.5h2M13 7.5h2M9 11.5h2M13 11.5h2M9 15.5h2M13 15.5h2'/%3E%3C/svg%3E"); }
a.servicio-card[href*="reformas-parciales"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355612f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4.5' width='11' height='5' rx='1'/%3E%3Cpath d='M14.5 7h3a1.6 1.6 0 0 1 1.6 1.6v1.3a1.6 1.6 0 0 1-1.6 1.6h-7'/%3E%3Cpath d='M10.5 11.5V16'/%3E%3Crect x='8.5' y='16' width='4' height='4' rx='1'/%3E%3C/svg%3E"); }

/* ---------- Compromisos (triple combo) ---------- */
.garantias .servicio-card { background: var(--c-bg); }
.garantias .servicio-card > p[aria-hidden="true"] {
  width: 3.4rem; height: 3.4rem; margin: 0 0 1.1rem;
  text-indent: -9999px; overflow: hidden; border-radius: 50%;
  background-color: var(--c-accent-tint);
  background-repeat: no-repeat; background-position: center; background-size: 1.7rem;
}
.garantias .servicio-card:nth-of-type(1) > p[aria-hidden="true"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355612f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 3v5h5'/%3E%3Cpath d='M9 14.5l2 2 4-4'/%3E%3C/svg%3E"); }
.garantias .servicio-card:nth-of-type(2) > p[aria-hidden="true"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355612f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s7-3.4 7-9V6l-7-3-7 3v6c0 5.6 7 9 7 9z'/%3E%3Cpath d='M9 11.5l2 2 4-4'/%3E%3C/svg%3E"); }
.garantias .servicio-card:nth-of-type(3) > p[aria-hidden="true"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355612f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5' width='16' height='15' rx='1.5'/%3E%3Cpath d='M16 3v4M8 3v4M4 10h16'/%3E%3C/svg%3E"); }

/* ---------- "Por qué nosotros" ---------- */
.por-que-nosotros .servicio-card { background: var(--c-bg); }
.por-que-nosotros .servicio-card h3 { color: var(--c-accent-dark); }

/* ---------- Fotos / imágenes ---------- */
.proyecto-card img,
.antes-despues img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; display: block;
  transition: transform .55s ease;
}
.proyecto-card:hover img { transform: scale(1.06); }
.hero-foto {
  width: 100%;
  margin-top: clamp(1.75rem, 1rem + 2.5vw, 2.75rem);
  aspect-ratio: 16 / 10;
  max-height: 56vh;
  object-fit: cover; object-position: center; display: block;
  border-radius: var(--radius);
}

/* Hero a 2 columnas en escritorio cuando hay foto (texto | imagen) */
@media (min-width: 880px) {
  .hero .container:has(> .hero-foto),
  article > header:has(> .hero-foto) {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    column-gap: clamp(2.5rem, 1rem + 4vw, 4.5rem);
    align-items: center;
  }
  .hero .container:has(> .hero-foto) > :not(.hero-foto),
  article > header:has(> .hero-foto) > :not(.hero-foto) {
    grid-column: 1;
  }
  .hero .container:has(> .hero-foto) > .hero-foto,
  article > header:has(> .hero-foto) > .hero-foto {
    grid-column: 2;
    grid-row: 1 / 30;
    align-self: stretch;
    width: 100%;
    height: 100%;
    margin-top: 0;
    aspect-ratio: auto;
    min-height: 420px;
    max-height: 580px;
  }
}
figure.foto { margin: 1.5rem 0 0; }
figure.foto img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover;
  border-radius: var(--radius); display: block;
}
figure.foto figcaption { margin-top: .65rem; font-size: .9rem; color: var(--c-text-soft); }
.fotos-duo { display: grid; gap: 1.3rem; grid-template-columns: 1fr; margin-top: 1.75rem; }
@media (min-width: 640px) { .fotos-duo { grid-template-columns: 1fr 1fr; } }

img[src*="PENDIENTE"] {
  width: 100%; aspect-ratio: 4 / 3; background: var(--c-accent-tint);
  border: 1px dashed #c4c4a4; border-radius: var(--radius-sm); font-size: 0; position: relative;
}
img[src*="PENDIENTE"]::after {
  content: "Foto pendiente"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--c-accent-dark);
}

/* ---------- Portfolio ---------- */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.6rem; margin-top: 1.75rem;
}
.proyecto-card {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.proyecto-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.proyecto-card figure { margin: 0; }
.proyecto-card h3 { margin: 1.15rem 1.3rem .35rem; }
.proyecto-card > p { margin: 0 1.3rem 1.4rem; color: var(--c-text-soft); font-size: .96rem; }
.proyecto-card figcaption {
  font-weight: 600; font-size: .74rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--c-accent-dark); padding: 1rem 1.3rem 0;
}
.antes-despues { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.antes-despues > div { position: relative; }
.antes-despues figcaption {
  position: absolute; top: .6rem; left: .6rem; padding: .2rem .6rem;
  background: rgba(42,53,47,.85); color: #fff;
}

/* ---------- Proceso ---------- */
.pasos {
  list-style: none; counter-reset: paso; padding: 0; margin: 1.75rem 0 0;
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.pasos li {
  counter-increment: paso; position: relative;
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 1.6rem 1.6rem 1.6rem 4.6rem;
}
.pasos li::before {
  content: counter(paso); position: absolute; left: 1.5rem; top: 1.55rem;
  width: 2.3rem; height: 2.3rem; display: flex; align-items: center; justify-content: center;
  background: var(--c-accent); color: #fff;
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; border-radius: 50%;
}
.pasos li strong { display: block; margin-bottom: .25rem; font-size: 1.05rem; }

/* ---------- Zona de servicio ---------- */
.zona-servicio nav ul {
  display: flex !important; flex-wrap: wrap; gap: .6rem !important; list-style: none; padding: 0;
}
.zona-servicio nav a {
  display: inline-block; background: var(--c-bg);
  border: 1px solid var(--c-border); border-radius: 999px;
  padding: .55rem 1.1rem; text-decoration: none; font-weight: 500; font-size: .92rem;
  color: var(--c-heading); transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.zona-servicio nav a:hover, .zona-servicio nav a:focus {
  background: var(--c-accent); border-color: var(--c-accent); color: #fff;
}

/* ---------- Testimonios ---------- */
.testimonio, .testimonios blockquote {
  background: var(--c-bg); border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-accent); border-radius: var(--radius-sm);
  padding: 1.7rem 1.85rem; margin: 0 0 1rem;
}
.testimonio p:first-child, .testimonios blockquote p:first-child {
  font-family: var(--font-display); font-size: 1.15rem; color: var(--c-heading);
}
.testimonio-autor { font-weight: 600; font-size: .92rem; color: var(--c-text-soft); margin-top: .6rem; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 1.75rem; max-width: 60rem; }
.faq-item {
  border-bottom: 1px solid var(--c-border); background: transparent;
}
.faq-item summary {
  cursor: pointer; list-style: none; display: flex;
  justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 0; font-weight: 600; font-size: 1.06rem; color: var(--c-heading);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 1.5rem; height: 1.5rem;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2355612f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform .2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item summary:hover { color: var(--c-accent-dark); }
.faq-item > p, .faq-item > div { padding: 0 0 1.3rem; margin: 0; color: var(--c-text-soft); max-width: 70ch; }

/* ---------- Contacto / formulario ---------- */
.contacto { background: var(--c-surface); }
.form-presupuesto {
  display: grid; gap: 1.1rem; background: var(--c-bg);
  border: 1px solid var(--c-border); border-radius: var(--radius); padding: 2.1rem;
}
.form-presupuesto label {
  display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: var(--c-heading);
}
.form-presupuesto input,
.form-presupuesto select,
.form-presupuesto textarea {
  width: 100%; padding: .82rem .9rem; font-family: var(--font-body); font-size: 1rem;
  color: var(--c-text); background: var(--c-bg);
  border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-presupuesto input:focus,
.form-presupuesto select:focus,
.form-presupuesto textarea:focus {
  outline: none; border-color: var(--c-accent);
  box-shadow: 0 0 0 3px var(--c-accent-tint);
}
.form-presupuesto textarea { min-height: 130px; resize: vertical; }
.form-presupuesto button { width: 100%; margin-top: .25rem; }
.form-consent {
  display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--c-text-soft);
}
.form-consent input { width: auto; margin-top: .2rem; flex: none; }
.form-consent label { font-weight: 400; margin: 0; }
.contacto address {
  font-style: normal; background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--radius); padding: 1.85rem;
}
.contacto address h3 { margin-top: 0; }

/* ---------- Migas de pan ---------- */
nav[aria-label="Migas de pan"] ol {
  display: flex; flex-wrap: wrap; gap: .5rem; list-style: none;
  padding: 1.4rem 0 0; margin: 0; font-size: .87rem; color: var(--c-text-soft);
}
nav[aria-label="Migas de pan"] a { color: var(--c-text-soft); }
nav[aria-label="Migas de pan"] a:hover { color: var(--c-accent-dark); }
nav[aria-label="Migas de pan"] li + li::before { content: "/"; margin-right: .5rem; color: var(--c-border); }
nav[aria-label="Migas de pan"] [aria-current="page"] { color: var(--c-heading); font-weight: 600; }

/* ---------- Sticky CTA móvil ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  display: flex; gap: 1px; background: var(--c-border);
  box-shadow: 0 -6px 22px rgba(34,38,30,.16);
}
.sticky-cta a {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 1rem; text-decoration: none; font-weight: 600; font-size: 1rem;
  color: #fff; min-height: 58px;
}
.btn-sticky-presupuesto { background: var(--c-primary); }
.btn-sticky-presupuesto:hover { background: var(--c-primary-dark); color: #fff; }
.btn-sticky-whatsapp { background: var(--c-accent-dark); }
.btn-sticky-whatsapp:hover { background: var(--c-whatsapp-dark); color: #fff; }
@media (min-width: 1024px) { .sticky-cta { display: none; } }
@media (max-width: 1023px) { body { padding-bottom: 58px; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-footer-bg); color: var(--c-footer-text); padding: 3.75rem 0 1.5rem;
}
.site-footer .container {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 2.5rem;
}
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1.1rem; }
.site-footer address, .site-footer p { color: var(--c-footer-text); font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: var(--c-footer-link); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.4rem;
  text-align: center; font-size: .86rem; color: var(--c-footer-text-soft);
}
.footer-bottom a { color: var(--c-footer-text-soft); }

/* ---------- Utilidades ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Menú: dropdowns + mobile ---------- */
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  width: 44px; height: 44px;
  background: transparent; border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  cursor: pointer; padding: 0;
  transition: border-color .18s ease;
}
.nav-toggle:hover { border-color: var(--c-heading); }
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--c-heading);
  transition: transform .25s ease, opacity .15s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 940px) { .nav-toggle { display: none; } }

@media (max-width: 939px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: block;
    position: fixed;
    top: 70px; left: 0; right: 0; bottom: 0;
    background: var(--c-bg);
    padding: 1.5rem;
    overflow-y: auto;
    z-index: 49;
    border-top: 1px solid var(--c-border);
  }
  .main-nav.is-open ul {
    flex-direction: column; gap: 0;
    padding: 0; margin: 0; list-style: none;
  }
  .main-nav.is-open > ul > li {
    padding: .9rem 0;
    border-bottom: 1px solid var(--c-border);
  }
  .main-nav.is-open > ul > li > a {
    font-size: 1.1rem; font-weight: 600;
  }
  .main-nav.is-open .has-dropdown > a::after {
    content: " +"; color: var(--c-accent); margin-left: .4rem; font-weight: 700;
  }
  .main-nav.is-open .has-dropdown.is-open > a::after { content: " −"; }
  .main-nav.is-open .has-dropdown .dropdown {
    display: none; padding: .75rem 0 0 1rem; margin: 0; list-style: none;
  }
  .main-nav.is-open .has-dropdown.is-open .dropdown { display: block; }
  .main-nav.is-open .has-dropdown .dropdown li {
    padding: .45rem 0; border: none;
  }
  .main-nav.is-open .has-dropdown .dropdown a {
    font-size: .97rem; font-weight: 500; color: var(--c-text);
  }
}

@media (min-width: 940px) {
  .has-dropdown { position: relative; }
  .has-dropdown .dropdown {
    position: absolute; top: 100%; left: -1rem;
    background: var(--c-bg);
    border: 1px solid var(--c-border); border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: .5rem; margin: .35rem 0 0;
    min-width: 240px;
    list-style: none;
    display: none;
    z-index: 60;
  }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { display: block; }
  .has-dropdown .dropdown li { display: block; padding: 0; }
  .has-dropdown .dropdown a {
    display: block; padding: .6rem .9rem;
    text-decoration: none; color: var(--c-heading);
    font-size: .94rem; border-radius: 4px;
    font-weight: 500;
  }
  .has-dropdown .dropdown a:hover, .has-dropdown .dropdown a:focus {
    background: var(--c-accent-tint); color: var(--c-accent-dark);
  }
  .has-dropdown .dropdown a::after { display: none; }
  .main-nav .has-dropdown > a::after {
    content: " \25BE"; font-size: .7em; color: var(--c-text-soft);
    margin-left: .25rem; transition: color .18s ease;
  }
  .main-nav .has-dropdown:hover > a::after { color: var(--c-accent); }
}

/* ---------- Responsive ---------- */
@media (min-width: 880px) {
  .contacto .container > div { grid-template-columns: 1.5fr 1fr !important; align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
