/* ==========================================================================
   Reformas Ibarra — styles.css
   Hoja de estilos única, mobile-first, sin frameworks.
   ========================================================================== */

:root {
  /* Colores — muestreados directamente del logotipo real (chevron + punto) */
  --color-primary: #2d5a3c;      /* verde del logo */
  --color-primary-dark: #1b3924; /* variante oscura, para fondos */
  --color-primary-light: #47825a;
  --color-accent: #c1672f;       /* terracota, complementario del verde */
  --color-accent-dark: #9c5023;
  --color-bg: #f6f3ec;           /* papel cálido */
  --color-bg-alt: #ece5d4;       /* papel algo más oscuro, para alternar secciones */
  --color-white: #ffffff;
  --color-text: #23291f;
  --color-text-light: #5c6155;
  --color-border: #ddd5c1;
  --color-success: #1e5c3d;
  --color-error: #a3402a;

  /* Tipografía */
  --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-brand: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Consolas, monospace;

  /* Espaciados */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;

  /* Otros */
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 8px 24px rgba(16, 26, 35, 0.12);
  --shadow-sm: 0 2px 8px rgba(16, 26, 35, 0.08);
  --container: 1180px;
  --header-h: 72px;
  --mobile-bar-h: 60px;
}

/* ---- Reset básico ---- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}

body.has-mobile-bar { padding-bottom: var(--mobile-bar-h); }

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

/* Los iconos SVG inline se dimensionan por defecto en 1em (relativo al
   texto que los acompaña); cada componente que necesite otro tamaño lo
   sobreescribe con una regla más específica más abajo. Evita el bug de los
   SVG sin width/height, que el navegador renderiza a 300×150px por defecto. */
svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  color: var(--color-primary);
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.3rem; font-weight: 600; }

p { margin: 0 0 var(--space-sm); }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

input, select, textarea {
  font-family: inherit;
  font-size: 1rem;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section--alt { background: var(--color-bg-alt); }

.section-head {
  max-width: 680px;
  margin: 0 auto var(--space-lg);
  text-align: center;
}

.section-head p { color: var(--color-text-light); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  margin-bottom: var(--space-xs);
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-accent);
  flex-shrink: 0;
}
.eyebrow svg { width: 1.15em; height: 1.15em; }
.page-hero .eyebrow::before { background: var(--color-accent); }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 0.75rem 1.25rem;
  z-index: 2000;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---- Botones ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.6rem;
  border-radius: 3px;
  border: 2px solid transparent;
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn--accent:hover { background: var(--color-accent-dark); }

.btn--outline {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}
.btn--outline:hover { background: rgba(255,255,255,0.12); }

.btn--dark {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn--dark:hover { background: var(--color-primary-dark); }

.btn--whatsapp {
  background: #25D366;
  color: #06341c;
}
.btn--whatsapp:hover { background: #1fb757; }

.btn--block { width: 100%; }
.btn--lg { padding: 1.1rem 2rem; font-size: 1.05rem; }

.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--color-primary);
  height: var(--header-h);
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.logo {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.logo span { color: var(--color-accent); }
.logo .logo-mark {
  width: 46px;
  height: 29px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-brand .logo-mark {
  width: 40px;
  height: 25px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
}
.nav-toggle svg { width: 22px; height: 22px; }

.main-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--color-primary);
  padding: var(--space-lg) var(--space-md);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}
.main-nav.is-open { transform: translateX(0); }

.main-nav ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.15rem;
}
.main-nav a { color: var(--color-white); }
.main-nav a:hover { color: var(--color-accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* El botón "Pedir presupuesto" de cabecera solo cabe con comodidad junto al
   logo, la navegación y el teléfono a partir de escritorio: por debajo se
   ocultaba fuera de la pantalla y forzaba scroll horizontal en todo el
   sitio. En móvil ya hay CTA de sobra (barra inferior fija + WhatsApp). */
.header-actions .btn--accent { display: none; }

.header-phone {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-white);
  font-weight: 500;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}
.header-phone svg { width: 1.1em; height: 1.1em; color: var(--color-accent); }

@media (min-width: 940px) {
  .nav-toggle { display: none; }
  .main-nav {
    position: static;
    transform: none;
    background: transparent;
    padding: 0;
    inset: auto;
    overflow: visible;
  }
  .main-nav ul { flex-direction: row; align-items: center; gap: var(--space-md); font-size: 0.98rem; }
  .header-phone { display: inline-flex; }
  .header-actions .btn--accent { display: inline-flex; }
}

/* ---- Hero ---- */
/* Motivo "hoja de plano": rejilla fina + marcas de esquina, como un plano de
   obra acotado. Es la firma visual del sitio, reaparece en las fotos de
   trabajos realizados y en el fondo alterno de las secciones. */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  background:
    linear-gradient(180deg, rgba(18,58,38,0.78), rgba(18,58,38,0.94)),
    var(--color-primary);
  background-size: cover;
  background-position: center;
  padding: var(--space-2xl) 0 var(--space-xl);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, black, transparent 85%);
}

.hero-inner { max-width: 720px; position: relative; }

.hero h1 { color: var(--color-white); }

.hero-sub {
  font-size: 1.15rem;
  color: #dfe6ec;
  margin-bottom: var(--space-md);
}

.hero-sub strong { color: var(--color-accent); }

/* ---- Barra de confianza ---- */
.trust-bar {
  background: var(--color-primary-dark);
  color: var(--color-white);
  padding: var(--space-sm) 0;
}
.trust-bar ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.trust-bar li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.trust-bar svg { width: 1.05em; height: 1.05em; color: var(--color-accent); }
@media (min-width: 700px) {
  .trust-bar ul { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Grid de servicios ---- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 640px) { .services-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: var(--space-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { border-color: var(--color-primary); transform: translateY(-3px); }

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
  border: 1px solid var(--color-border);
}
.card-icon svg { width: 24px; height: 24px; }

.card p { color: var(--color-text-light); flex-grow: 1; }

.card-link {
  font-weight: 600;
  color: var(--color-accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: var(--space-xs);
}

/* ---- Proceso ---- */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
@media (min-width: 700px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-step {
  text-align: left;
  padding: var(--space-md);
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  position: relative;
}
.process-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

/* ---- Zonas de servicio ---- */
.zones-text { color: var(--color-text-light); }
.zones-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}
.zones-list li {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.8rem;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; gap: var(--space-xs); max-width: 820px; margin: 0 auto; }

details.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
}
details.faq-item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--color-accent);
  flex-shrink: 0;
}
details.faq-item[open] summary::after { content: '−'; }
details.faq-item p { margin-top: var(--space-sm); color: var(--color-text-light); }

/* ---- CTA final ---- */
.cta-final {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  padding: var(--space-xl) 0;
}
.cta-final h2 { color: var(--color-white); }
.cta-final p { color: #dfe6ec; }
.cta-final .cta-group { justify-content: center; }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-primary-dark);
  color: #c3ceb7;
  padding: var(--space-xl) 0 var(--space-md);
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
.site-footer h3 { color: var(--color-white); font-size: 1.05rem; }
.site-footer a:hover { color: var(--color-accent); }
.footer-list li { margin-bottom: 0.6rem; }
.footer-list a,
.footer-list span {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.55rem;
}
.footer-list svg {
  width: 1.05em;
  height: 1.05em;
  margin-top: 0.15em;
  color: var(--color-primary-light);
  flex-shrink: 0;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-brand);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--color-white);
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: 0.82rem;
}
.footer-bottom a { text-decoration: underline; }

/* ---- Breadcrumbs ---- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--color-text-light);
  padding: var(--space-sm) 0;
}
.breadcrumbs a { color: var(--color-text-light); text-decoration: underline; }
.breadcrumbs a:hover { color: var(--color-accent-dark); }

/* ---- Página interna genérica ---- */
.page-hero {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-xl) 0 var(--space-lg);
}
.page-hero h1 { color: var(--color-white); }
.page-hero p { color: #dfe6ec; max-width: 640px; }

.checklist li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}
.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 700;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: start;
}
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }

.internal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.internal-links a {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  padding: 0.5rem 1rem;
  border-radius: 3px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
}
.internal-links a:hover { border-color: var(--color-accent); color: var(--color-accent-dark); }

/* ---- Galería de trabajos ---- */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--space-lg);
  justify-content: center;
}
.filter-btn {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  padding: 0.5rem 1.1rem;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--color-text);
}
.filter-btn.is-active,
.filter-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
@media (min-width: 700px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }

.gallery-item[hidden] { display: none; }

.photo-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}
/* Marcas de esquina tipo plano acotado: la firma visual del sitio,
   reaparece en el hero y en cada fotografía de trabajo. */
.photo-card::before,
.photo-card::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-white);
  z-index: 5;
  pointer-events: none;
  opacity: 0.85;
}
.photo-card::before { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.photo-card::after { bottom: 8px; right: 8px; border-left: none; border-top: none; }
.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-caption {
  font-weight: 600;
  margin-top: var(--space-sm);
  color: var(--color-primary);
}

/* ---- Formulario ---- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm) var(--space-md);
}
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }
.form-field.full { grid-column: 1 / -1; }

.form-field label {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-primary);
}
.required-mark { color: var(--color-error); }

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  color: var(--color-text);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--color-accent);
}

.form-field textarea { resize: vertical; min-height: 120px; }

.field-error {
  color: var(--color-error);
  font-size: 0.85rem;
  min-height: 1.2em;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
}
.checkbox-field input { margin-top: 0.25rem; width: 18px; height: 18px; flex-shrink: 0; }

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}
.form-status.is-error { background: #fbe9e7; color: var(--color-error); }
.form-status.is-success { background: #e6f4ea; color: var(--color-success); }

.contact-panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
}
.contact-panel h3 { margin-top: 0; }
.contact-info-list li { display: flex; gap: 0.6rem; margin-bottom: var(--space-sm); align-items: flex-start; }
.contact-info-list svg { width: 1.3em; height: 1.3em; color: var(--color-accent-dark); flex-shrink: 0; margin-top: 2px; }

/* ---- WhatsApp flotante ---- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 950;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.whatsapp-float.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.whatsapp-float svg { width: 30px; height: 30px; }

body.has-mobile-bar .whatsapp-float { bottom: calc(var(--mobile-bar-h) + 16px); }
@media (min-width: 769px) { .whatsapp-float { bottom: 24px; } }

/* ---- Barra móvil fija ---- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 940;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: var(--mobile-bar-h);
  box-shadow: 0 -4px 14px rgba(0,0,0,0.12);
}
.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
}
.mobile-bar .call { background: var(--color-primary); color: var(--color-white); }
.mobile-bar .wa { background: #25D366; color: #06341c; }
.mobile-bar svg { width: 1.2em; height: 1.2em; }

@media (min-width: 769px) {
  .mobile-bar { display: none; }
  body.has-mobile-bar { padding-bottom: 0; }
}

/* ---- Reseñas ---- */
.stars-widget {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 0.25rem;
}
.stars-widget input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-widget label {
  font-size: 2.5rem;
  color: var(--color-border);
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s ease;
}
.stars-widget input:checked ~ label,
.stars-widget label:hover,
.stars-widget label:hover ~ label {
  color: var(--color-accent);
}
.stars-widget input:focus-visible + label {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.review-panel {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.review-step { display: none; }
.review-step.is-active { display: block; animation: fade-in 0.3s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.google-link-note {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: 0.92rem;
  color: var(--color-text-light);
}

/* ---- Legal ---- */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h2 { margin-top: var(--space-lg); }
.legal-content ul { list-style: disc; padding-left: 1.4rem; margin-bottom: var(--space-sm); }
.legal-content li { margin-bottom: 0.4rem; }
mark.pending { background: #fff3cd; padding: 0 0.3rem; border-radius: 3px; }

/* ---- 404 / gracias ---- */
.center-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-2xl) 0;
}
.center-page .container { max-width: 560px; }
.success-icon {
  width: 56px;
  height: 56px;
  color: var(--color-success);
  margin: 0 auto var(--space-md);
}

/* ---- Placeholders de imagen ---- */
/* Marco reservado para las fotos definitivas: mantiene la proporción y evita
   saltos de layout mientras no hay material fotográfico real. */
.img-placeholder {
  display: block;
  width: 100%;
  height: auto;
  background: var(--color-bg-alt);
  border: 1px dashed var(--color-border);
}

/* ---- Utilidades ---- */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
