﻿/* ==========================================================================
   E-RENOVA · Reformas Coruña — Hoja de estilos global (v2)
   HTML + CSS puro · mobile-first · sin frameworks · iconos SVG (sin emojis)
   Lenguaje visual basado en la web de referencia + paleta del logo E-Renova
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. FUENTES AUTOALOJADAS (sin Google Fonts CDN — privacidad + rendimiento)
   Subset latin (incluye á é í ó ú ñ ü ¡ ¿). font-display: swap.
   -------------------------------------------------------------------------- */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/barlow-400.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/barlow-500.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/barlow-600.woff2') format('woff2'); }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fonts/barlow-condensed-700.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-style: normal; font-weight: 800; font-display: swap; src: url('../fonts/barlow-condensed-800.woff2') format('woff2'); }

/* --------------------------------------------------------------------------
   1. VARIABLES
   -------------------------------------------------------------------------- */
:root {
  --naranja:       #E8620A;   /* Acento principal (logo) */
  --naranja-dark:  #C4520A;   /* Hover */
  --naranja-soft:  rgba(232,98,10,0.12);
  --negro:         #111111;
  --negro-soft:    #1A1A1A;
  --hero-bg:       #1C1C1E;
  --zinc-900:      #18181B;
  --zinc-950:      #0E0E10;
  --blanco:        #FFFFFF;
  --gris-claro:    #F5F5F5;
  --gris-warm:     #F7F6F4;   /* Fondo cálido para reseñas */
  --gris-texto:    #555555;
  --gris-300:      #D4D4D8;
  --gris-400:      #A1A1AA;
  --borde:         #E5E2DD;
  --whatsapp:      #25D366;

  --container:     1200px;
  --radio:         16px;       /* rounded-2xl */
  --radio-sm:      12px;
  --radio-pill:    999px;

  --sombra-sm:     0 2px 16px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.04);
  --sombra-lg:     0 8px 32px rgba(0,0,0,.13), 0 0 0 1px rgba(0,0,0,.05);
  --sombra-xl:     0 25px 50px -12px rgba(0,0,0,.25);

  --fuente-titulo: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
  --fuente-cuerpo: 'Barlow', system-ui, -apple-system, Segoe UI, sans-serif;

  --ease: cubic-bezier(.4,0,.2,1);
  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--fuente-cuerpo);
  font-size: 17px; line-height: 1.65; color: var(--negro);
  background: var(--blanco); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--naranja); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--naranja-dark); }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--fuente-titulo);
  font-weight: 800; line-height: 1.05; letter-spacing: -0.01em; color: var(--negro);
}
h1 { font-size: clamp(2.4rem, 6vw, 4rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); text-transform: uppercase; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.45rem); }
p  { margin-bottom: 1rem; } p:last-child { margin-bottom: 0; }
strong { font-weight: 700; }

/* --------------------------------------------------------------------------
   3. ICONOS SVG
   -------------------------------------------------------------------------- */
.icon {
  width: 1.25em; height: 1.25em; display: inline-block; vertical-align: middle;
  flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon.is-solid { fill: currentColor; stroke: none; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Enlace "saltar al contenido" — solo visible al recibir foco (accesibilidad/teclado) */
.skip-link {
  position: absolute; top: -120%; left: 0; z-index: 9999;
  background: var(--naranja); color: #fff; padding: 10px 18px;
  font-family: var(--fuente-cuerpo); font-weight: 700; font-size: 0.9rem;
  text-decoration: none; border-radius: 0 0 8px 0;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; outline: 3px solid #fff; outline-offset: -3px; }

/* --------------------------------------------------------------------------
   4. LAYOUT / UTILIDADES
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--gris  { background: var(--gris-claro); }
.section--warm  { background: var(--gris-warm); }
.section--dark  { background: var(--zinc-900); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head p { color: var(--gris-texto); font-size: 1.12rem; margin-top: 14px; }
.section--dark .section-head p { color: var(--gris-400); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fuente-cuerpo); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; font-size: 0.75rem; color: var(--naranja); margin-bottom: 14px;
}
.eyebrow .icon { width: 1rem; height: 1rem; }

/* eyebrow tipo "pill" sobre fondo oscuro */
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--naranja-soft); border: 1px solid rgba(232,98,10,0.35);
  color: var(--naranja); padding: 7px 14px; border-radius: var(--radio-pill);
  font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.72rem;
  margin-bottom: 22px;
}
.badge-pill .icon { width: 1rem; height: 1rem; }

.text-naranja { color: var(--naranja); }
.lead { font-size: 1.18rem; color: var(--gris-texto); }
.section--dark .lead { color: var(--gris-300); }
.center { text-align: center; }
.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; }

/* --------------------------------------------------------------------------
   5. BOTONES
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--fuente-cuerpo); font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: var(--radio-pill); border: 2px solid transparent;
  cursor: pointer; line-height: 1; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .icon { width: 1.15em; height: 1.15em; }
.btn--cta { background: var(--naranja); color: #fff; }
.btn--cta:hover { background: var(--naranja-dark); color: #fff; transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 28px rgba(232,98,10,0.45); }
.btn--whatsapp { background: var(--whatsapp); color: #fff; }
.btn--whatsapp:hover { color: #fff; transform: translateY(-2px) scale(1.02); box-shadow: 0 12px 28px rgba(37,211,102,0.45); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--ghost:hover { background: #fff; color: var(--negro); border-color: #fff; transform: translateY(-2px); }
.btn--dark { background: var(--negro); color: #fff; }
.btn--dark:hover { background: var(--negro-soft); color: #fff; transform: translateY(-2px); }
.btn--outline { background: #fff; color: var(--negro); border-color: var(--borde); }
.btn--outline:hover { border-color: var(--naranja); color: var(--naranja); }
.btn--lg { padding: 17px 34px; font-size: 1.1rem; }
.btn--block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* --------------------------------------------------------------------------
   6. HEADER / NAV (oscuro, sticky)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--zinc-900); border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow .2s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 18px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 46px; width: auto; }

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block; color: var(--gris-300); font-weight: 600; font-size: 0.96rem;
  padding: 9px 12px; border-radius: 8px;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }

.btn-cta-header {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--naranja); color: #fff; font-weight: 700; padding: 11px 18px;
  border-radius: var(--radio-pill); white-space: nowrap;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-cta-header:hover { background: var(--naranja-dark); color: #fff; transform: scale(1.05); box-shadow: 0 8px 20px rgba(232,98,10,0.4); }
.btn-cta-header .icon { width: 1.1em; height: 1.1em; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; background: none; border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; margin: 0 auto; transition: .2s var(--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); }

/* --------------------------------------------------------------------------
   7. HERO (split oscuro)
   -------------------------------------------------------------------------- */
.hero { background: var(--hero-bg); color: #fff; }
.hero .container {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding-top: 84px; padding-bottom: 84px;
}
.hero h1 { color: #fff; margin-bottom: 20px; letter-spacing: -0.02em; }
.hero h1 .text-naranja { color: var(--naranja); }
.hero .hero-sub { font-size: 1.3rem; color: var(--gris-300); max-width: 600px; margin-bottom: 16px; line-height: 1.5; }
.hero .hero-sub2 { font-size: 1rem; color: var(--gris-400); max-width: 600px; margin-bottom: 32px; }
.hero .btn-group { margin-bottom: 28px; }

.media-frame { position: relative; }
.media-frame::before {
  content: ""; position: absolute; top: -18px; left: -18px; width: 110px; height: 110px;
  background: var(--naranja-soft); border-radius: 50%; z-index: 0;
}
.media-frame img, .media-frame .img-placeholder {
  position: relative; z-index: 1; width: 100%; border-radius: var(--radio);
  box-shadow: var(--sombra-xl); aspect-ratio: 5 / 4; object-fit: cover;
}

.hero-trust { display: flex; flex-wrap: wrap; gap: 14px 26px; font-size: 0.95rem; color: var(--gris-300); }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust .icon { color: var(--naranja); width: 1.15em; height: 1.15em; }

/* --------------------------------------------------------------------------
   8. TRUST BAR (banda naranja con iconos)
   -------------------------------------------------------------------------- */
.trust-bar { background: var(--naranja); color: #fff; }
.trust-bar .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 40px 24px; }
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.trust-item .icon { width: 2.2rem; height: 2.2rem; }
.trust-item strong { font-family: var(--fuente-titulo); font-size: 1.15rem; text-transform: uppercase; }
.trust-item span { font-size: 0.92rem; color: rgba(255,255,255,0.88); }

/* --------------------------------------------------------------------------
   9. TARJETAS DE SERVICIO (grid)
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 2px solid transparent; border-radius: var(--radio);
  padding: 32px; box-shadow: var(--sombra-sm); height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--sombra-lg); border-color: var(--naranja); }
.card .card-icon { color: var(--naranja); width: 2.6rem; height: 2.6rem; margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--gris-texto); font-size: 0.98rem; }
.card .card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; margin-top: 16px; }
.card .card-link .icon { width: 1.1em; height: 1.1em; transition: transform .2s var(--ease); }
a.card { color: inherit; display: block; }
a.card h3 { transition: color .2s var(--ease); }
a.card:hover h3 { color: var(--naranja); }
a.card:hover .card-link .icon { transform: translateX(4px); }
.section--gris .card { background: #fff; }

/* --------------------------------------------------------------------------
   10. FEATURES / "POR QUÉ" (lista con iconos en caja)
   -------------------------------------------------------------------------- */
.feature-list { display: grid; gap: 26px; }
.feature-row { display: flex; align-items: flex-start; gap: 18px; }
.feature-row .feature-ic { background: var(--naranja-soft); color: var(--naranja); padding: 12px; border-radius: var(--radio-sm); flex-shrink: 0; }
.feature-row .feature-ic .icon { width: 1.5rem; height: 1.5rem; }
.feature-row h3 { margin-bottom: 6px; }
.feature-row p { color: var(--gris-texto); font-size: 0.97rem; }
.section--dark .feature-row p { color: var(--gris-400); }

/* --------------------------------------------------------------------------
   11. SPLIT IMAGEN + TEXTO
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .media-frame img, .split .media-frame .img-placeholder { aspect-ratio: 16 / 11; }

/* --------------------------------------------------------------------------
   12. PASOS (proceso)
   -------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 30px 26px; position: relative; box-shadow: var(--sombra-sm); }
.section--gris .step { background: #fff; }
.step .step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px;
  border-radius: 12px; background: var(--naranja); color: #fff;
  font-family: var(--fuente-titulo); font-weight: 800; font-size: 1.35rem; margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(232,98,10,0.4);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--gris-texto); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   13. GALERÍA + PLACEHOLDERS DE IMAGEN
   -------------------------------------------------------------------------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery figure { margin: 0; border-radius: var(--radio); overflow: hidden; box-shadow: var(--sombra-sm); background: #fff; }
.gallery img, .gallery .img-placeholder { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 0; }
.gallery figcaption { font-size: 0.85rem; color: var(--gris-texto); padding: 12px 16px 16px; }
.gallery figcaption strong { display: block; color: var(--negro); font-weight: 700; font-size: 0.95rem; margin-bottom: 5px; }
.gallery .fig-desc { display: block; font-size: 0.84rem; color: var(--gris-texto); line-height: 1.5; }

.img-placeholder {
  background: var(--negro-soft);
  border: 2px dashed #38383d; border-radius: var(--radio);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-height: 220px; color: #5a5a62; text-align: center; padding: 24px;
}
.img-placeholder .icon { width: 2.4rem; height: 2.4rem; opacity: 0.5; }
.img-placeholder p { font-size: 0.72rem; letter-spacing: 1.5px; text-transform: uppercase; margin: 0; font-weight: 700; }
/* placeholder sobre fondo claro */
.img-placeholder--light { background: #efeeec; border-color: #d8d6d1; color: #a8a5a0; }

/* --------------------------------------------------------------------------
   14. ZONAS (grid de tarjetas)
   -------------------------------------------------------------------------- */
.zonas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.zona-link {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 24px 16px; font-weight: 700; color: var(--negro);
  transition: .3s var(--ease);
}
.zona-link .icon { color: var(--naranja); width: 1.6rem; height: 1.6rem; transition: color .2s var(--ease); }
.zona-link span.z-sub { font-weight: 500; font-size: 0.82rem; color: var(--gris-texto); }
.zona-link:hover { background: var(--naranja); color: #fff; transform: translateY(-4px); box-shadow: var(--sombra-lg); }
.zona-link:hover .icon, .zona-link:hover span.z-sub { color: #fff; }

/* --------------------------------------------------------------------------
   15. RESEÑAS
   -------------------------------------------------------------------------- */
.review { background: #fff; border: 1px solid var(--borde); border-radius: 14px; padding: 26px 24px; height: 100%; position: relative; overflow: hidden; transition: transform .28s var(--ease), box-shadow .28s var(--ease); box-shadow: var(--sombra-sm); }
.review::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--naranja), #f3914e); opacity: 0; transition: opacity .28s var(--ease); }
.review:hover { transform: translateY(-3px); box-shadow: var(--sombra-lg); }
.review:hover::before { opacity: 1; }
.review .stars { color: #f59e0b; display: flex; gap: 2px; margin-bottom: 12px; }
.review .stars .icon { width: 1.05rem; height: 1.05rem; }
.review p { color: #333; }
.review .review-author { margin-top: 14px; font-weight: 700; color: var(--negro); }
.review .review-source { display: block; font-weight: 500; font-size: 0.82rem; color: var(--gris-texto); margin-top: 2px; }
.reviews-summary { text-align: center; margin-top: 36px; }
.reviews-summary p { color: var(--gris-texto); margin-bottom: 16px; font-size: 1.05rem; }
.reviews-summary .rating-num { color: var(--negro); font-family: var(--fuente-titulo); font-weight: 800; font-size: 1.3rem; }
.reviews-summary .stars-inline { color: #f59e0b; }
.reviews-summary .stars-inline .icon { width: 1.05rem; height: 1.05rem; }
.review.is-placeholder { border-style: dashed; color: var(--gris-texto); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 160px; gap: 8px; box-shadow: none; }
.review.is-placeholder .icon { color: var(--gris-300); width: 1.8rem; height: 1.8rem; }

/* --------------------------------------------------------------------------
   16. CTA BANDA FINAL
   -------------------------------------------------------------------------- */
.cta-band { background: linear-gradient(135deg, var(--zinc-950) 0%, var(--negro-soft) 55%, #2a1405 100%); color: #fff; text-align: center; padding: 84px 0; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: var(--gris-300); font-size: 1.18rem; max-width: 640px; margin: 0 auto 30px; }
.cta-band .btn-group { justify-content: center; }
.cta-note { margin-top: 20px; font-size: 0.9rem; color: var(--gris-400); display: inline-flex; align-items: center; gap: 8px; }
.cta-note .icon { width: 1.1em; height: 1.1em; color: var(--naranja); }

/* --------------------------------------------------------------------------
   17. BREADCRUMB
   -------------------------------------------------------------------------- */
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 18px 0; font-size: 0.9rem; color: var(--gris-texto); }
.breadcrumb a { color: var(--gris-texto); font-weight: 600; }
.breadcrumb a:hover { color: var(--naranja); }
.breadcrumb .icon { width: 0.9rem; height: 0.9rem; color: var(--gris-300); }

/* --------------------------------------------------------------------------
   18. PROSA (contenido largo)
   -------------------------------------------------------------------------- */
.prose { max-width: 820px; }
.prose h2 { margin: 40px 0 16px; } .prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 10px; }
.prose p { color: #333; }
.prose ul { margin: 0 0 1rem 0; }
.prose ul li { position: relative; padding-left: 30px; margin-bottom: 10px; color: #333; }
.prose ul li .icon { position: absolute; left: 0; top: 3px; color: var(--naranja); width: 1.2rem; height: 1.2rem; }

/* --------------------------------------------------------------------------
   19. CREDENCIALES (sobre nosotros)
   -------------------------------------------------------------------------- */
.cred { text-align: center; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 32px 26px; box-shadow: var(--sombra-sm); }
.cred .cred-ic { display: inline-flex; padding: 14px; background: var(--naranja-soft); color: var(--naranja); border-radius: var(--radio-sm); margin-bottom: 14px; }
.cred .cred-ic .icon { width: 1.8rem; height: 1.8rem; }
.cred h3 { margin-bottom: 8px; }
.cred p { color: var(--gris-texto); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   20. AVISO / NOTICE
   -------------------------------------------------------------------------- */
.notice { background: #fff7f0; border-left: 4px solid var(--naranja); border-radius: 10px; padding: 20px 22px; color: #4a2c11; display: flex; gap: 12px; }
.notice .icon { color: var(--naranja-dark); width: 1.4rem; height: 1.4rem; flex-shrink: 0; }
.notice strong { color: var(--naranja-dark); }

/* --------------------------------------------------------------------------
   21. CONTACTO / FORMULARIO
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: start; }
.contact-method { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 20px; margin-bottom: 16px; box-shadow: var(--sombra-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.contact-method:hover { transform: translateY(-3px); box-shadow: var(--sombra-lg); }
.contact-method .cm-icon { width: 54px; height: 54px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.contact-method .cm-icon .icon { width: 1.5rem; height: 1.5rem; }
.contact-method.is-phone .cm-icon { background: var(--naranja-soft); color: var(--naranja); }
.contact-method.is-whatsapp .cm-icon { background: rgba(37,211,102,0.14); color: var(--whatsapp); }
.contact-method.is-email .cm-icon { background: var(--gris-claro); color: var(--negro); }
.contact-method.is-email .cm-value { font-size: 1.15rem; }
.contact-method .cm-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; color: var(--gris-texto); }
.contact-method .cm-value { font-family: var(--fuente-titulo); font-weight: 800; font-size: 1.5rem; color: var(--negro); display: block; }
.contact-method:hover .cm-value { color: var(--naranja); }

.form-card { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 34px; box-shadow: var(--sombra-lg); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font-family: var(--fuente-cuerpo); font-size: 1rem; padding: 13px 14px; border: 1px solid var(--borde); border-radius: 10px; background: #fff; color: var(--negro); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--naranja); box-shadow: 0 0 0 3px var(--naranja-soft); }
.field textarea { min-height: 120px; resize: vertical; }
.field input.is-invalid, .field textarea.is-invalid, .field select.is-invalid { border-color: #d63333; box-shadow: 0 0 0 3px rgba(214,51,51,0.12); }
.field-error { color: #d63333; font-size: 0.85rem; margin-top: 5px; display: none; }
.field.has-error .field-error { display: block; }
.field-check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--gris-texto); }
.field-check input { width: auto; margin-top: 4px; flex-shrink: 0; }
.form-note { font-size: 0.88rem; color: var(--gris-texto); margin-top: 14px; text-align: center; }
.form-success { display: none; background: rgba(37,211,102,0.10); border: 1px solid var(--whatsapp); color: #1a7a3e; border-radius: var(--radio); padding: 16px 18px; margin-bottom: 18px; font-weight: 600; }
.form-success.is-visible { display: flex; gap: 10px; align-items: center; }
.form-success .icon { width: 1.4rem; height: 1.4rem; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   22. FAQ (acordeón nativo <details>)
   -------------------------------------------------------------------------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--borde); border-radius: var(--radio); background: #fff; overflow: hidden; box-shadow: var(--sombra-sm); }
.faq-item > summary { display: flex; align-items: center; gap: 16px; cursor: pointer; padding: 20px 22px; list-style: none; font-weight: 700; font-size: 1.08rem; color: var(--negro); transition: background .2s var(--ease); }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { background: var(--naranja-soft); }
.faq-item .faq-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--naranja-soft); color: var(--naranja); font-family: var(--fuente-titulo); font-weight: 800; flex-shrink: 0; transition: .2s var(--ease); }
.faq-item[open] .faq-num { background: var(--naranja); color: #fff; }
.faq-item .faq-q-text { flex: 1; }
.faq-item .faq-chevron { color: var(--naranja); transition: transform .25s var(--ease); width: 1.3rem; height: 1.3rem; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item .faq-a { display: flex; gap: 14px; padding: 4px 22px 22px 22px; border-top: 1px solid rgba(0,0,0,0.05); }
.faq-item .faq-a::before { content: ""; width: 3px; border-radius: 3px; background: var(--naranja); flex-shrink: 0; }
.faq-item .faq-a p { color: var(--gris-texto); padding-top: 14px; }

/* --------------------------------------------------------------------------
   23. FOOTER
   -------------------------------------------------------------------------- */
.site-footer { background: var(--zinc-950); color: var(--gris-400); padding-top: 56px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 40px; }
.footer-logo { display: inline-block; margin-bottom: 16px; }
.footer-logo img { height: 54px; width: auto; }
.footer-col h3 { color: #fff; font-size: 1rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p { margin-bottom: 9px; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col a { color: var(--gris-400); }
.footer-col a:hover { color: var(--naranja); }
.footer-col .f-contact { display: inline-flex; align-items: center; gap: 8px; }
.footer-col .f-contact .icon { width: 1.05em; height: 1.05em; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 18px 0; text-align: center; font-size: 0.84rem; color: #6b6b73; }
.footer-bottom a { color: #8a8a92; }

/* --------------------------------------------------------------------------
   24. WHATSAPP FLOTANTE + BARRA CTA MÓVIL
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed; bottom: calc(24px + env(safe-area-inset-bottom)); right: calc(24px + env(safe-area-inset-right)); background: var(--whatsapp); color: #fff;
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45); z-index: 800; transition: transform .2s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.whatsapp-float .icon { width: 30px; height: 30px; }

.mobile-cta-bar { display: none; }

/* --------------------------------------------------------------------------
   25. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .zonas-grid { grid-template-columns: repeat(3, 1fr); }
  .hero .container { grid-template-columns: 1fr; gap: 36px; }
  .media-frame { order: -1; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .trust-bar .container { grid-template-columns: repeat(2, 1fr); gap: 26px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }

  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; background: var(--zinc-900);
    border-bottom: 1px solid rgba(255,255,255,0.1); box-shadow: 0 12px 24px rgba(0,0,0,0.4);
    transform: translateY(-130%); transition: transform .28s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .main-nav.is-open { transform: translateY(0); }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .main-nav a { padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,0.08); border-radius: 0; }
  .main-nav li:last-child a { border-bottom: 0; }
  .nav-toggle { display: flex; }
  .btn-cta-header { display: none; }

  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .zonas-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-col .f-contact { justify-content: center; }
  .trust-bar .container { grid-template-columns: repeat(2, 1fr); }
  .btn-group .btn { width: 100%; }
  .hero .container { padding-top: 52px; padding-bottom: 52px; }

  /* WhatsApp float oculto en móvil; barra CTA fija en su lugar */
  .whatsapp-float { display: none; }
  .mobile-cta-bar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 850; background: var(--negro); border-top: 1px solid #262626; padding-bottom: env(safe-area-inset-bottom); }
  .mobile-cta-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 9px 6px 11px; font-weight: 700; color: #fff; font-size: 11px; letter-spacing: 0.4px; text-transform: uppercase; min-height: 56px; }
  .mobile-cta-bar a svg { width: 22px; height: 22px; }
  .mobile-cta-bar a:active { background: rgba(255,255,255,0.08); }
  .mobile-cta-bar .m-wa { background: var(--whatsapp); }
  .mobile-cta-bar .m-form { color: #b8b8b8; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* --------------------------------------------------------------------------
   26. OPTIMIZACIÓN MÓVIL / TÁCTIL
   -------------------------------------------------------------------------- */
html { font-size: 16px; }            /* nunca menos — accesibilidad / evita zoom iOS */
body { min-width: 320px; }           /* soporte móviles pequeños */

/* Zona segura para el notch/Dynamic Island del iPhone */
.site-header { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }

/* Select sin estilos nativos + flecha propia (evita zoom y look inconsistente en iOS) */
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
/* Checkbox RGPD: área táctil cómoda */
.field-check input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; accent-color: var(--naranja); }

/* En pantallas táctiles: sin "hover atascado", feedback al pulsar */
@media (hover: none) {
  .card:hover { transform: none; box-shadow: var(--sombra-sm); border-color: transparent; }
  .card:active { background: var(--gris-claro); }
  a.card:active h3 { color: var(--naranja); }
  .zona-link:hover, .btn:hover, .contact-method:hover, .review:hover { transform: none; }
}

/* Áreas táctiles mínimas en móvil (44–48px) */
@media (max-width: 760px) {
  .main-nav a { min-height: 48px; }
  .btn { min-height: 48px; }
  .breadcrumb { font-size: 0.85rem; }
}

/* --------------------------------------------------------------------------
   27. MENÚS DESPLEGABLES (Servicios / Zonas)
   -------------------------------------------------------------------------- */
.main-nav .has-submenu { position: relative; }
.main-nav .nav-parent {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  background: none; border: 0; font-family: var(--fuente-cuerpo); font-weight: 600;
  font-size: 0.96rem; color: var(--gris-300); padding: 9px 12px; border-radius: 8px;
}
.main-nav .nav-parent:hover { color: #fff; background: rgba(255,255,255,0.06); }
.main-nav .nav-caret { transition: transform .2s var(--ease); flex-shrink: 0; }
.main-nav .submenu {
  position: absolute; top: 100%; left: 0; min-width: 240px; list-style: none; margin: 0;
  background: #fff; border-radius: 12px; box-shadow: var(--sombra-lg); padding: 8px;
  display: flex; flex-direction: column; align-items: stretch; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s var(--ease), visibility .18s var(--ease), transform .18s var(--ease);
  z-index: 60;
}
.main-nav .has-submenu:hover .submenu,
.main-nav .has-submenu:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .has-submenu:hover .nav-caret { transform: rotate(180deg); }
.main-nav .submenu a {
  display: block; width: 100%; padding: 10px 14px; border-radius: 8px; color: var(--negro);
  font-weight: 600; font-size: 0.93rem; white-space: nowrap; text-align: center;
}
.main-nav .submenu a:hover { background: var(--gris-claro); color: var(--naranja); }

/* Submenús en móvil: acordeón dentro del menú a pantalla completa */
@media (max-width: 760px) {
  .main-nav .has-submenu { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .main-nav li:last-child a { border-bottom: 0; }
  .main-nav .nav-parent { width: 100%; justify-content: center; padding: 14px 8px; font-size: 1rem; min-height: 48px; }
  .main-nav .nav-parent:hover { background: transparent; }
  .main-nav .submenu {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: rgba(255,255,255,0.04); border-radius: 0; padding: 0; min-width: 0;
    max-height: 0; overflow: hidden; transition: max-height .28s var(--ease);
  }
  .main-nav .has-submenu.is-sub-open .submenu { max-height: 560px; }
  .main-nav .has-submenu.is-sub-open .nav-caret { transform: rotate(180deg); }
  .main-nav .submenu a { color: var(--gris-300); text-align: center; padding: 13px 8px; font-size: 0.95rem; border-bottom: 1px solid rgba(255,255,255,0.05); white-space: normal; min-height: 0; }
  .main-nav .submenu a:hover { color: var(--naranja); background: transparent; }
  .main-nav .submenu li:last-child a { border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   28. BOTÓN DE LLAMAR FLOTANTE (escritorio, a la izquierda de WhatsApp)
   -------------------------------------------------------------------------- */
.call-float {
  position: fixed; bottom: calc(24px + env(safe-area-inset-bottom));
  right: calc(96px + env(safe-area-inset-right));
  background: var(--naranja); color: #fff; width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(232,98,10,0.45); z-index: 800; transition: transform .2s var(--ease);
}
.call-float:hover { transform: scale(1.08); color: #fff; }
.call-float .icon { width: 28px; height: 28px; }
@media (max-width: 760px) { .call-float { display: none; } }

/* --------------------------------------------------------------------------
   29. MAPA CON CARGA AL CLIC (no carga Google Maps hasta que el usuario pulsa)
   -------------------------------------------------------------------------- */
.map-embed {
  min-height: 420px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(135deg, #1f2430 0%, #111418 100%);
  display: flex; align-items: center; justify-content: center;
}
.map-embed iframe { display: block; }
.map-load-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer;
  background: none; border: 0; color: #fff; font-family: var(--fuente-cuerpo); padding: 24px;
  text-align: center;
}
.map-load-btn .icon { width: 42px; height: 42px; color: var(--naranja); margin-bottom: 4px; }
.map-load-btn span { font-family: var(--fuente-titulo); font-weight: 700; font-size: 1.25rem; text-transform: uppercase; letter-spacing: .5px; }
.map-load-btn small { color: var(--gris-300); font-size: 0.85rem; }
.map-load-btn:hover span { color: var(--naranja); }
