/* Estilos propios añadidos en la reconstrucción (no tocar base.css ni main.css,
   que son los originales). Usa los tokens de diseño --sg-* del sitio. */

/* Navegación por anclas (CTA del header -> formulario de la home) */
html { scroll-behavior: smooth; }
#presupuesto { scroll-margin-top: 6rem; }

/* ---- Botón flotante de WhatsApp (verde corporativo + globo de aviso) ---- */
.wa-wrap {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 60; /* por debajo del menú móvil (70/80) */
  display: flex;
  align-items: center;
  gap: .6rem;
}
.wa-flotante {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--sg-color-primary, #2d5f55);
  color: #fff;
  /* anillo claro + sombra: contrasta también sobre el footer verde oscuro */
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .15s ease-out, box-shadow .15s ease-out;
}
.wa-flotante:hover {
  transform: scale(1.07);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .95), 0 8px 22px rgba(0, 0, 0, .4);
  color: #fff;
}
.wa-globo {
  background: #fff;
  color: var(--sg-color-primary, #2d5f55);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.25;
  padding: .55rem .8rem;
  border-radius: .75rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
  max-width: 13rem;
  opacity: 1;
  transform: translateX(0);
  transition: opacity .35s ease-out, transform .35s ease-out;
  pointer-events: none;
}
.wa-globo.wa-globo-oculto { opacity: 0; transform: translateX(.5rem); }
@media (max-width: 767px) {
  /* deja sitio a la barra fija de "Llámanos" en móvil */
  .wa-wrap { bottom: calc(4.4rem + env(safe-area-inset-bottom)); }
}

/* ---- Variables que las páginas catalanas usan en estilos inline pero que el
   desarrollador NUNCA definió (títulos salían pequeños y sin fondo). Se mapean
   a los tokens reales del diseño. ---- */
:root {
  --sg-color-cream: var(--sg-color-bg-subtle, #e8ede9);
  --sg-color-ink: var(--sg-color-text, #1a2520);
  --sg-color-ink-soft: var(--sg-color-text-muted, #5a6661);
  --sg-color-primary: var(--sg-color-brand-600, #244c44);
  --sg-font-size-h1: var(--sg-text-4xl, 2.5rem);
  --sg-font-size-h2: var(--sg-text-2xl, 1.6rem);
  --sg-font-size-lead: var(--sg-text-lg, 1.15rem);
}

/* ---- Tarjetas "Por qué": títulos h3 de una palabra (v2) ---- */
h3.TrustMatrix_value__4ABpB {
  margin: 0;
  font-size: var(--sg-text-2xl); /* palabra en vez de cifra: un punto menos que el 3xl original */
}
@media (min-width: 1024px) {
  /* en escritorio el 2xl rompía a dos líneas ("A prop teu"); un punto menos */
  h3.TrustMatrix_value__4ABpB { font-size: var(--sg-text-xl); }
}
.TrustMatrix_pilar__uqgxZ { justify-content: center; }
/* el ul de la rejilla llevaba el padding-left de 40px por defecto del navegador */
ul.TrustMatrix_grid__QeSUr { padding: 0; margin: 0; list-style: none; }

/* ---- Reseñas: rellenar el ancho con las que haya (hoy 3; con 4 se adapta solo) ---- */
@media (min-width: 1024px) {
  .ReviewsPlaceholder_grid__enwTK { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* ---- Migas de pan: ahora van SIEMPRE arriba del main (movidas en sept 2026;
   el original las tenía abajo en ES y arriba en CA) y con contenedor propio ---- */
.Breadcrumb_nav__xQuNj {
  max-width: var(--sg-container-base, 1200px);
  margin-inline: auto;
  padding-inline: var(--sg-space-6, 1.5rem);
  padding-block: var(--sg-space-3, .75rem);
}

/* ---- Botón flotante izquierdo: contactar por formulario ---- */
.form-flotante {
  position: fixed;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  background: var(--sg-color-accent-500, #e07a3c);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 6px 18px rgba(0, 0, 0, .35);
  transition: transform .15s ease-out, box-shadow .15s ease-out;
}
.form-flotante:hover {
  transform: scale(1.07);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .95), 0 8px 22px rgba(0, 0, 0, .4);
  color: #fff;
}
@media (max-width: 767px) {
  .form-flotante { bottom: calc(4.4rem + env(safe-area-inset-bottom)); }
}

/* ---- Modal de política de privacidad ---- */
.modal-fondo {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(26, 37, 32, .6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.modal-caja {
  position: relative;
  background: var(--sg-color-bg-elevated, #fff);
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  width: min(46rem, 100%);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.modal-cerrar {
  position: absolute;
  top: .6rem;
  right: .6rem;
  z-index: 1;
  background: var(--sg-color-bg-subtle, #eef4f2);
  border: 0;
  border-radius: 50%;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.05rem;
  cursor: pointer;
}
.modal-contenido {
  overflow-y: auto;
  padding: 0 1.5rem 1.5rem;
}
.modal-contenido main { min-height: auto; }

/* ---- Panel de datos del agua (sustituye al hueco de foto de la sección equipo) ----
   El hueco original era un retrato 4/5 (demasiado alto): ahora la altura la marca
   el contenido del panel. ---- */
.FounderSection_photo__dT_r9 { aspect-ratio: auto; }
.panel-datos {
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--sg-color-water-light, #dcebe6) 0%, var(--sg-color-brand-100, #cfe0db) 100%);
}
.panel-datos-titulo {
  font-size: var(--sg-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--sg-color-brand-600, #244c44);
}
.panel-datos ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.panel-datos li { display: flex; flex-direction: column; }
.panel-datos li strong { font-size: var(--sg-text-xl); color: var(--sg-color-brand-600, #244c44); line-height: 1.2; }
.panel-datos li span { color: var(--sg-color-text-muted, #5a6661); font-size: var(--sg-text-sm); }

/* ---- Contacto: dos columnas (datos | formulario), unificado es/ca ---- */
.contacto-seccion .ProseSection_container__oBTos { max-width: var(--sg-container-base, 1200px); }
.contacto-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) {
  .contacto-grid { grid-template-columns: 1fr 1.1fr; align-items: start; }
}
.contacto-form {
  background: var(--sg-color-bg-elevated, #fff);
  border: 1px solid var(--sg-color-border, #d5dcd7);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--sg-shadow-sm, 0 2px 8px rgba(0, 0, 0, .06));
}

/* ---- Aviso en /contacto/: los presupuestos van al formulario de la home.
   Vistoso (tinte naranja del CTA) y colocado ENCIMA del título del formulario. ---- */
.aviso-presupuesto {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  background: #fdf0e3;
  border: 2px solid var(--sg-color-accent-500, #e07a3c);
  border-radius: .75rem;
  padding: 1rem 1.1rem;
  margin: 0 0 1.5rem;
}
.aviso-presupuesto p { margin: 0; font-size: 1.05rem; }
.aviso-presupuesto a { white-space: nowrap; }

/* ---- Mensaje de estado de los formularios ---- */
.form-estado { margin-top: .75rem; font-weight: 600; }
.form-estado--ok { color: var(--sg-color-primary, #2d5f55); }
.form-estado--error { color: #b3261e; }

/* ---- <select> con las clases de input de los formularios ---- */
select.ContactForm_input__2BcNF,
select.BudgetForm_input__7CYGf {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232d5f55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

/* Idioma en el menú móvil: icono y texto juntos (la clase base los separa) */
.nav-movil-idioma { justify-content: flex-start; gap: .5rem; }

/* "Información legal" del footer quedaba pegada a la lista de Empresa */
.Footer_legalHeading__81gqP { margin-top: var(--sg-space-10, 2.5rem) !important; }

/* ---- Botón de cierre del menú móvil (elemento recreado) ---- */
.MobileNav_closeBtn__JqOtb { font-size: 1.25rem; line-height: 1; cursor: pointer; background: none; border: 0; padding: .5rem; }

/* ---- Información básica de protección de datos junto a la casilla de los
   formularios (art. 13.1 RGPD / art. 11 LOPDGDD). Letra pequeña, sin peso visual. ---- */
.nota-privacidad {
  margin: var(--sg-space-3, .75rem) 0 0;
  font-size: .75rem;
  line-height: 1.4;
  color: var(--sg-color-text-muted, #5a6661);
}
.nota-privacidad a { color: var(--sg-color-brand-600, #244c44); text-decoration: underline; }
