/* ============================================================
   components.css — Baños Perfectos
   Estilos de todos los componentes del theme
   ============================================================ */

/* ============================================================
   SKIP LINK (accesibilidad)
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  z-index: var(--z-toast);
  font-weight: 600;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  /* Sin height fijo — el padding + el logo dictan la altura real */
  padding-block: var(--header-padding-y);
  transition: padding var(--transition-base),
              background-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base);
  background-color: transparent;
}

.site-header--scrolled {
  padding-block: var(--header-padding-y-sticky);
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.site-header--hidden {
  transform: translateY(-100%);
}

/* Header transparente → texto blanco cuando está sobre hero */
.page-home .site-header:not(.site-header--scrolled) .site-header__logo-text,
.page-home .site-header:not(.site-header--scrolled) .nav-menu a,
.page-home .site-header:not(.site-header--scrolled) .site-header__tel {
  color: var(--color-white);
}

.page-home .site-header:not(.site-header--scrolled) .site-header__cta-btn {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* ── Logo ──────────────────────────────────────────────────── */
.site-header__logo {
  flex-shrink: 0;
}

.site-header__logo a {
  display: flex;
  align-items: center;
}

.site-header__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-primary);
  white-space: nowrap;
  line-height: 1;
  transition: color var(--transition-base);
}

/* Logo único (sin sticky): solo transición de opacidad al cambiar estado */
.site-header__logo-img {
  height: var(--logo-height-desktop, 45px);
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity 400ms ease, transform 400ms ease;
}

/* ── Modo crossfade: cuando existen --normal y --sticky ── */

/* El contenedor posiciona ambos superpuestos */
.site-header__logo--has-sticky a {
  position: relative;
  display: flex;
  align-items: center;
}

.site-header__logo--has-sticky .site-header__logo-img--normal,
.site-header__logo--has-sticky .site-header__logo-img--sticky {
  transition: opacity 400ms ease, transform 400ms ease;
}

/* Normal: visible, sticky: encima invisible */
.site-header__logo--has-sticky .site-header__logo-img--normal {
  opacity: 1;
  transform: scale(1);
  position: relative;
}
.site-header__logo--has-sticky .site-header__logo-img--sticky {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scale(0.97);
  height: var(--logo-height-sticky, var(--logo-height-desktop, 45px));
  width: auto;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
}

/* Al hacer scroll: intercambio */
.site-header--scrolled .site-header__logo--has-sticky .site-header__logo-img--normal {
  opacity: 0;
  transform: scale(0.97);
  pointer-events: none;
}
.site-header--scrolled .site-header__logo--has-sticky .site-header__logo-img--sticky {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
}

.site-header__nav {
  flex: 1;
}

.nav-menu {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.nav-menu a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-menu a:hover {
  color: var(--color-primary);
}

.nav-menu a:hover::after {
  width: 100%;
}

.site-header__cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.site-header__tel {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.site-header__tel:hover {
  color: var(--color-accent);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.nav-toggle.is-active .nav-toggle__line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.is-active .nav-toggle__line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active .nav-toggle__line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--color-white);
  padding-top: var(--header-height);
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

/* YouTube iframe — cubre todo el hero sin mostrar bordes ni controles */
.hero__video-wrap--youtube {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Fallback imagen en móvil (se oculta en desktop) */
.hero__youtube-mobile-bg {
  display: none;
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero__youtube {
  position: absolute;
  /* Trucco clásico: el iframe es más grande que el contenedor
     para ocultar los bordes negros y la UI de YouTube */
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;   /* ratio 16:9 basado en el ancho */
  min-height: 100vh;
  min-width: 177.78vh; /* ratio 16:9 basado en el alto */
  transform: translate(-50%, -50%);
  border: 0;
  pointer-events: none;
}

/* En móvil iOS el autoplay del iframe no funciona → mostramos imagen */
@media (max-width: 768px) {
  .hero__youtube { display: none; }
  .hero__youtube-mobile-bg { display: block; }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 46, 68, 0.75) 0%,
    rgba(26, 46, 68, 0.5) 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 700px;
  padding-block: var(--space-3xl);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  background: rgba(200, 169, 110, 0.2);
  border: 1px solid rgba(200, 169, 110, 0.5);
  color: var(--color-accent);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

.hero__title {
  font-size: var(--text-hero);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero__subtitle {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.88);
  margin-bottom: var(--space-lg);
  max-width: 55ch;
  line-height: 1.5;
}

.hero__garantias {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.hero__garantias li {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}

.hero__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-xl);
}

.hero__tel-btn svg {
  flex-shrink: 0;
}

.hero__scroll {
  display: flex;
  justify-content: flex-start;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
}

/* ============================================================
   CONFIANZA
   ============================================================ */

.confianza {
  background-color: var(--color-primary);
  padding-block: var(--space-lg);
}

.confianza__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.confianza__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xs);
  padding: var(--space-sm);
}

.confianza__numero {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}

.confianza__texto {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  font-weight: 400;
}

/* ============================================================
   SERVICIOS
   ============================================================ */

.servicios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.servicio-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  display: flex;
  flex-direction: column;
}

.servicio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.servicio-card--destacado {
  border-color: var(--color-accent);
  border-width: 2px;
}

.servicio-card__badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--color-accent);
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  z-index: 2;
}

.servicio-card__imagen {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.servicio-card__imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.servicio-card:hover .servicio-card__imagen img {
  transform: scale(1.04);
}

.servicio-card__content {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: var(--space-sm);
}

.servicio-card__titulo {
  font-size: var(--text-xl);
}

.servicio-card__descripcion {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  flex: 1;
}

.servicio-card__precio {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-accent);
}

.servicio-card__duracion {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.servicio-card__incluye {
  font-size: var(--text-sm);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.servicio-card__incluye li::before {
  content: '✓ ';
  color: var(--color-success);
  font-weight: 700;
}

.servicio-card__cta {
  margin-top: auto;
}

.servicios__footer-cta {
  text-align: center;
  padding-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  color: var(--color-text-muted);
}

/* ============================================================
   PRESUPUESTO INFO
   ============================================================ */

.presupuesto-info__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.presupuesto-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.presupuesto-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.presupuesto-card__icono {
  font-size: 2rem;
  flex-shrink: 0;
  line-height: 1;
  padding-top: 2px;
}

.presupuesto-card__titulo {
  font-size: var(--text-base);
  margin-bottom: 0.375rem;
}

.presupuesto-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.presupuesto-info__cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.presupuesto-info__nota {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ============================================================
   PROYECTOS HOME
   ============================================================ */

.proyectos-home__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.proyecto-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.proyecto-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.proyecto-card__imagen {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.proyecto-card__imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.proyecto-card:hover .proyecto-card__imagen img {
  transform: scale(1.04);
}

.proyecto-card__antes {
  position: absolute;
  bottom: var(--space-xs);
  right: var(--space-xs);
  width: 90px;
  border: 2px solid var(--color-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.proyecto-card__antes img {
  width: 100%;
  height: 68px;
  object-fit: cover;
}

.proyecto-card__antes-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  padding: 2px;
}

.proyecto-card__content {
  padding: var(--space-md);
}

.proyecto-card__titulo {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}

.proyecto-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.proyecto-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.proyectos-home__footer {
  text-align: center;
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */

.testimonios__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.testimonio-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.testimonio-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.estrellas {
  display: flex;
  gap: 2px;
}

.estrella--llena { color: #f5a623; }
.estrella--vacia { color: var(--color-border); }

.testimonio-card__fuente {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.testimonio-card__texto {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.7;
  flex: 1;
}

.testimonio-card__texto p {
  margin: 0;
}

.testimonio-card__autor {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-sm);
}

.testimonio-card__ubicacion {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ============================================================
   FORMULARIO
   ============================================================ */

.formulario-wrap {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-2xl);
  align-items: start;
}

.formulario-info {
  position: sticky;
  top: calc( var(--header-height) + var(--space-lg) );
}

.formulario-info__sub {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  font-size: var(--text-lg);
}

.formulario-info__datos {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.formulario-info__datos li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-base);
}

.formulario-info__datos svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.formulario-info__datos a {
  font-weight: 600;
  color: var(--color-primary);
  transition: color var(--transition-fast);
}

.formulario-info__datos a:hover {
  color: var(--color-accent);
}

.formulario-info__garantias {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  color: var(--color-success);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Formulario */
/* Formulario */
.formulario-contenedor {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .formulario-contenedor {
    padding: var(--space-xl);
  }
}

.formulario-presupuesto {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Honeypot */
.formulario-presupuesto__honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-required {
  color: var(--color-error);
  margin-left: 2px;
}

.form-optional {
  color: var(--color-text-muted);
  font-weight: 400;
  font-size: var(--text-xs);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-base);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 46, 68, 0.1);
  background: var(--color-white);
}

.form-input.is-valid {
  border-color: var(--color-success);
}

.form-input.is-invalid {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.08);
}

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

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  font-weight: 500;
}

/* Checkbox */
.form-field--checkbox {
  flex-direction: row;
  align-items: flex-start;
}

.form-checkbox-label {
  display: flex;
  gap: var(--space-xs);
  align-items: flex-start;
  cursor: pointer;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.form-checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.form-checkbox-label a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Submit */
.form-field--submit {
  justify-content: center;
}

.form-submit {
  width: 100%;
  position: relative;
}

/* Response */
.form-response {
  grid-column: 1 / -1;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: var(--text-sm);
}

.form-response--success {
  background: rgba(45, 122, 79, 0.1);
  color: var(--color-success);
  border: 1px solid rgba(45, 122, 79, 0.2);
}

.form-response--error {
  background: rgba(192, 57, 43, 0.08);
  color: var(--color-error);
  border: 1px solid rgba(192, 57, 43, 0.15);
}

/* ============================================================
   FAQ — Acordeón nativo HTML details/summary
   ============================================================ */

.faq__lista {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.faq__item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq__item[open] {
  border-color: var(--color-accent);
}

.faq__pregunta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: color var(--transition-fast);
}

.faq__pregunta::-webkit-details-marker { display: none; }
.faq__pregunta::marker { display: none; }

.faq__pregunta:hover {
  color: var(--color-accent);
}

.faq__icono {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq__icono::before,
.faq__icono::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform var(--transition-base);
}

.faq__icono::before {
  width: 14px;
  height: 2px;
}

.faq__icono::after {
  width: 2px;
  height: 14px;
}

.faq__item[open] .faq__icono::after {
  transform: rotate(90deg);
}

.faq__respuesta {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.faq__respuesta p { margin: 0; }

.faq__footer {
  text-align: center;
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.faq__footer a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.75);
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-lg);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.site-footer__logo-text {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-white);
  display: block;
  margin-bottom: var(--space-sm);
}

.site-footer__tagline {
  font-size: var(--text-sm);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.site-footer__tel {
  display: block;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: var(--space-xs);
  transition: color var(--transition-fast);
}

.site-footer__tel:hover {
  color: var(--color-white);
}

.site-footer__horario {
  font-size: var(--text-sm);
}

.footer-menu,
.legal-menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-menu a,
.legal-menu a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  transition: color var(--transition-fast);
}

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

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-lg);
}

.site-footer__copy {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */

.whatsapp-float {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: #25d366;
  color: var(--color-white);
  padding: 0.75rem 1.25rem 0.75rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  transform: translateY(120px);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base), box-shadow var(--transition-base);
  text-decoration: none;
}

.whatsapp-float.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.whatsapp-float:hover {
  background: #1ebe57;
  box-shadow: var(--shadow-xl);
  transform: translateY(-2px);
}

.whatsapp-float__label {
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}

/* ============================================================
   ANIMATE ON SCROLL
   ============================================================ */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PÁGINAS GENÉRICAS
   ============================================================ */

.page-content__header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.page-content__title {
  font-size: var(--text-3xl);
}

.entry-content {
  line-height: 1.8;
  font-size: var(--text-base);
  color: var(--color-text);
}

.entry-content h2,
.entry-content h3 {
  margin-top: var(--space-xl);
  margin-bottom: var(--space-md);
}

.entry-content p {
  margin-bottom: var(--space-md);
}

.entry-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ============================================================
   ARCHIVE HERO (páginas de archivo)
   ============================================================ */

.archive-hero {
  padding-block: var(--space-xl);
  padding-top: calc( var(--header-height) + var(--space-xl) );
  text-align: center;
}

.archive-hero__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

.archive-hero__sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 55ch;
  margin-inline: auto;
}

/* ============================================================
   SINGLE SERVICIO
   ============================================================ */

.single-servicio__hero {
  position: relative;
  overflow: hidden;
  padding-top: var(--header-height);
}

.single-servicio__imagen {
  aspect-ratio: 21/7;
  overflow: hidden;
}

.single-servicio__imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-servicio__hero-content {
  padding-block: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.single-servicio__titulo {
  font-size: var(--text-3xl);
}

.single-servicio__precio {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-accent);
}

.single-servicio__body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-2xl);
  align-items: start;
}

.single-servicio__aside {
  position: sticky;
  top: calc( var(--header-height) + var(--space-lg) );
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.aside-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: 1px solid var(--color-border);
}

.aside-card h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-sm);
}

.aside-card__lista {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.aside-card--cta {
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.aside-card--cta h3 {
  color: var(--color-white);
}

.aside-card--cta p {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-sm);
}

/* ============================================================
   ADMIN CSS (bp-meta-grid)
   ============================================================ */

.bp-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 8px 0;
}

.bp-meta-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bp-meta-row--full {
  grid-column: 1 / -1;
}

.bp-meta-row label {
  font-weight: 600;
  font-size: 13px;
}

.bp-meta-row input[type="text"],
.bp-meta-row input[type="number"],
.bp-meta-row input[type="email"],
.bp-meta-row input[type="url"],
.bp-meta-row select,
.bp-meta-row textarea {
  width: 100%;
  padding: 6px 10px;
  border: 1px solid #dcdcde;
  border-radius: 4px;
  font-size: 13px;
}

.bp-meta-row textarea {
  resize: vertical;
}

.bp-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .formulario-wrap {
    grid-template-columns: 1fr;
  }

  .formulario-info {
    position: static;
  }

  .single-servicio__body {
    grid-template-columns: 1fr;
  }

  .single-servicio__aside {
    position: static;
    order: -1;
  }

  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  /* Header mobile */
  .site-header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-base), opacity var(--transition-base);
    z-index: var(--z-dropdown);
  }

  .site-header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-menu a {
    color: var(--color-text) !important;
    font-size: var(--text-lg);
  }

  .nav-toggle {
    display: flex;
  }

  .site-header__tel {
    display: none;
  }

  /* Confianza */
  .confianza__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Formulario */
  .formulario-presupuesto {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  /* Hero */
  .hero__cta-group {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__cta-group .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .confianza__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .servicios__grid,
  .presupuesto-info__grid,
  .proyectos-home__grid,
  .testimonios__grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float__label {
    display: none;
  }

  .whatsapp-float {
    padding: 0.875rem;
    border-radius: 50%;
  }
}
