/* =============================================================================
   LOTES DE ESPAÑA — Página de Empresas
   Archivo: assets/css/style.css
   Descripción: Estilos principales de la landing page /empresas
   Responsive: móvil (≤480px), tablet (≤768px), desktop-medio (≤1024px), desktop full
   ============================================================================= */

/* ─────────────────────────────────────────────
   1. RESET & BASE
   Normaliza estilos de navegador
   ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #2c2c2c;
  background: #fff;
  overflow-x: hidden;
  /* Evita scroll horizontal en móvil */
}

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

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

ul {
  list-style: none;
}


/* ─────────────────────────────────────────────
   2. VARIABLES CSS
   Paleta de colores corporativa y tokens de diseño.
   Editar aquí para cambiar la identidad visual global.
   ───────────────────────────────────────────── */
:root {
  --rojo: #8b1a1a;
  /* Color corporativo principal */
  --rojo-oscuro: #6e1414;
  /* Hover/pressed de botones rojos */
  --rojo-claro: #a52020;
  --dorado: #c9a84c;
  /* Acento secundario corporativo */
  --dorado-claro: #e8c96a;
  /* Hover de botones dorados */
  --crema: #faf8f4;
  /* Fondo secciones alternas */
  --crema-oscura: #f0ece2;
  /* Fondo badges de confianza */
  --oscuro: #1a1a1a;
  /* Textos oscuros / footer bg */
  --gris: #555;
  /* Textos secundarios */
  --gris-claro: #888;
  /* Textos terciarios */
  --borde: #ddd8cc;
  /* Bordes de separación */
  --sombra: 0 4px 20px rgba(0, 0, 0, 0.10);
  --sombra-lg: 0 8px 40px rgba(0, 0, 0, 0.15);
}


/* ─────────────────────────────────────────────
   3. UTILIDADES COMPARTIDAS
   Clases reutilizables en toda la página
   ───────────────────────────────────────────── */

/* Contenedor centrado con padding lateral */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Título principal de sección */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 4vw, 38px);
  /* Escala fluida entre tamaños */
  color: var(--oscuro);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.3;
}

/* Subtítulo descriptivo bajo el título */
.section-subtitle {
  text-align: center;
  color: var(--gris);
  max-width: 680px;
  margin: 0 auto 48px;
  font-size: 16px;
  font-weight: 300;
}

/* Línea decorativa dorada bajo títulos */
.divider {
  width: 60px;
  height: 3px;
  background: var(--dorado);
  margin: 16px auto 32px;
}

/* Espaciado vertical estándar de secciones */
section {
  padding: 64px 0;
}

/* ── Botones ── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all .25s;
  font-family: 'Lato', sans-serif;
}

/* Botón dorado (CTA principal, hero) */
.btn-primary {
  background: var(--dorado);
  color: #1a1a1a;
}

.btn-primary:hover {
  background: var(--dorado-claro);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

/* Botón rojo (CTA secundario, tarjetas) */
.btn-secondary {
  background: var(--rojo);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--rojo-oscuro);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(139, 26, 26, .4);
}

/* Asterisco de campo obligatorio */
.required {
  color: var(--rojo);
}


/* ─────────────────────────────────────────────
   4. BARRA SUPERIOR (#topbar)
   Franja informativa con teléfono y horario.
   Fondo oscuro, texto claro.
   ───────────────────────────────────────────── */
#topbar {
  background: var(--oscuro);
  color: #ccc;
  font-size: 12px;
  text-align: center;
  padding: 8px 16px;
  line-height: 1.4;
}

#topbar a {
  color: #ccc;
}

#topbar strong {
  color: #fff;
}


/* ─────────────────────────────────────────────
   5. HEADER (#site-header)
   Cabecera pegajosa (sticky) con logo y acciones.
   Se queda fija al hacer scroll.
   ───────────────────────────────────────────── */
#site-header {
  background: #fff;
  border-bottom: 1px solid var(--borde);
  position: sticky;
  top: 0;
  z-index: 1000;
  /* Por encima de todo el contenido */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 16px;
}

/* Logo */
#site-header .logo img {
  height: 52px;
  width: auto;
}

/* Agrupación de acciones (login, teléfono, hamburger) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.header-actions a {
  color: var(--gris);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}

.header-actions a:hover {
  color: var(--rojo);
}

.header-actions .icon-svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ── Botón hamburger (visible solo en móvil) ── */
#btn-menu-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  /* Se activa vía media query */
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

#btn-menu-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--oscuro);
  transition: all .3s;
}

/* Animación de las 3 líneas → X al abrir */
#btn-menu-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#btn-menu-hamburger.open span:nth-child(2) {
  opacity: 0;
}

#btn-menu-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ─────────────────────────────────────────────
   6. NAVEGACIÓN DESKTOP (#nav-desktop)
   Barra de navegación roja con submenús desplegables.
   Oculta en móvil; reemplazada por menú lateral.
   ───────────────────────────────────────────── */
#nav-desktop {
  background: var(--rojo);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-list {
  display: flex;
    flex-direction: row;  /* ← añadir esto */
  align-items: stretch;
}

/* Cada ítem del menú */
.nav-item {
  position: relative;
}

.nav-item>a {
  display: block;
  padding: 14px 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background .2s;
  white-space: nowrap;
}

.nav-item>a:hover,
.nav-item.activo>a {
  background: var(--rojo-oscuro);
}

/* Submenú desplegable al hacer hover */
.nav-item:hover .sub-menu {
  display: block;
}

.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--borde);
  box-shadow: var(--sombra);
  min-width: 220px;
  z-index: 100;
}

.sub-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--oscuro);
  border-bottom: 1px solid var(--borde);
  transition: background .2s, color .2s;
}

.sub-menu a:last-child {
  border-bottom: none;
}

.sub-menu a:hover {
  background: var(--crema);
  color: var(--rojo);
}


/* ─────────────────────────────────────────────
   7. MENÚ MÓVIL (#mobile-nav-overlay)
   Panel lateral deslizante para navegación en móvil.
   Se activa con el botón hamburger (#btn-menu-hamburger).
   ───────────────────────────────────────────── */
#mobile-nav-overlay {
  display: none;
  /* Oculto por defecto */
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  /* Capa oscura de fondo */
  z-index: 999;
}

#mobile-nav-overlay.abierto {
  display: block;
}

/* Panel blanco que desliza desde la derecha */
.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  height: 100%;
  background: #fff;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s ease;
}

#mobile-nav-overlay.abierto .mobile-nav-panel {
  transform: translateX(0);
}

/* Cabecera del panel móvil */
.mobile-nav-header {
  background: var(--rojo);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-header span {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

#btn-cerrar-menu-movil {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* Enlace principal del menú móvil */
.mobile-nav-list a {
  display: block;
  padding: 14px 20px;
  border-bottom: 1px solid var(--borde);
  font-size: 14px;
  color: var(--oscuro);
  font-weight: 600;
}

/* Sub-enlaces (categorías anidadas) */
.mobile-nav-sub a {
  padding-left: 36px;
  font-weight: 400;
  font-size: 13px;
  color: var(--gris);
}

/* Separador de sección dentro del menú móvil */
.mobile-nav-seccion {
  font-size: 11px;
  padding: 10px 20px 4px;
  color: var(--rojo);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--crema);
  border-bottom: 1px solid var(--borde);
}


/* ─────────────────────────────────────────────
   8. BREADCRUMB (#breadcrumb)
   Ruta de navegación. Ayuda al SEO y UX.
   ───────────────────────────────────────────── */
#breadcrumb {
  background: var(--crema);
  padding: 10px 0;
  border-bottom: 1px solid var(--borde);
}

#breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  font-size: 12px;
  color: var(--gris);
}

#breadcrumb ul li a {
  color: var(--gris);
}

#breadcrumb ul li a:hover {
  color: var(--rojo);
}

#breadcrumb ul li::after {
  content: ' /';
  margin-left: 4px;
}

#breadcrumb ul li:last-child::after {
  content: '';
}


/* ─────────────────────────────────────────────
   9. HERO (#hero)
   Imagen de cabecera con texto superpuesto.
   Usa clamp() para tipografía fluida.
   ───────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Imagen de fondo del hero (cubre todo el área) */
#hero .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay oscuro para legibilidad del texto */
#hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .35) 60%, transparent 100%);
}

/* Contenido textual del hero */
#hero .hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
  width: 100%;
}

#hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 5vw, 52px);
  color: #fff;
  line-height: 1.2;
  max-width: 560px;
  margin-bottom: 16px;
}

#hero p {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255, 255, 255, .88);
  max-width: 480px;
  margin-bottom: 28px;
  font-weight: 300;
}


/* ─────────────────────────────────────────────
   10. SECCIÓN POR QUÉ NOSOTROS (#por-que-nosotros)
   Layout de 2 columnas: texto izquierda, imagen derecha.
   ───────────────────────────────────────────── */
#por-que-nosotros {
  background: var(--crema);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3.5vw, 34px);
  color: var(--oscuro);
  margin-bottom: 16px;
  line-height: 1.3;
}

.why-text>p {
  color: var(--gris);
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 300;
}

/* Fila de estadísticas numéricas destacadas */
.why-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 38px;
  color: var(--rojo);
  font-weight: 700;
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* Lista de puntos diferenciales con check dorado */
.lista-ventajas li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--gris);
  font-size: 15px;
  border-bottom: 1px solid var(--borde);
}

.lista-ventajas li:last-child {
  border-bottom: none;
}

.lista-ventajas li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--dorado);
  font-weight: 700;
}

/* Imagen derecha del bloque */
.why-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: var(--sombra-lg);
}


/* ─────────────────────────────────────────────
   11. SECCIÓN MODELOS DE SERVICIO (#modelos-servicio)
   3 tarjetas: estructura TEXTO+BOTÓN arriba / IMAGEN abajo.
   Los botones se alinean a la misma altura usando flexbox
   con flex-direction:column y margin-top:auto en .btn.
   Las imágenes tienen esquinas redondeadas (border-radius).
   ───────────────────────────────────────────── */
#modelos-servicio {
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  /* align-items: stretch asegura que todas las tarjetas tengan la misma altura */
  align-items: stretch;
}

/* Tarjeta individual de servicio.
   Usa flexbox en columna para poder empujar el botón
   y la imagen a posiciones fijas con flex y margin-top:auto */
.service-card {
  border: 1px solid var(--borde);
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, transform .3s;
}

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

/* Zona de texto superior (h3, p, ul) */
.service-card-body {
  padding: 24px 24px 0 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  /* Ocupa todo el espacio disponible */
}

/* Etiqueta de modelo (ej. "MODELO 1") */
.service-tag {
  display: inline-block;
  background: var(--rojo);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: 14px;
  align-self: flex-start;
  /* No estira el badge a ancho completo */
}

.service-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--oscuro);
  margin-bottom: 12px;
  line-height: 1.35;
  /* Sin Playfair para coincidir con el original (sans-serif bold) */
}

.service-card-body>p {
  font-size: 14px;
  color: var(--gris);
  margin-bottom: 16px;
  font-weight: 400;
  line-height: 1.65;
}

/* Lista de beneficios: bullets con punto negro como en el original */
.service-card ul {
  margin-bottom: 0;
  flex: 1;
  /* Empuja el botón hacia abajo cuando la lista es más corta */
}

.service-card ul li {
  font-size: 13px;
  color: var(--gris);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.service-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--oscuro);
  font-size: 14px;
}

/* Botón CTA dentro de la tarjeta:
   El .btn-spacer (div vacío en el HTML) con flex:1 absorbe
   el espacio sobrante y empuja el botón a la misma altura
   en todas las tarjetas, independientemente del contenido.
   width:100% para que ocupe todo el ancho como en el original. */
.service-card .btn-spacer {
  flex: 1;
  /* Absorbe el espacio sobrante entre lista y botón */
  min-height: 16px;
}

.service-card .btn {
  width: 100%;
  text-align: center;
  display: block;
  margin-top: 20px;
  margin-bottom: 24px;
  box-sizing: border-box;
}

/* Zona inferior de la tarjeta: imagen con esquinas redondeadas
   como en la web original */
.service-card-footer {
  padding: 0 16px 16px 16px;
}

/* Imagen inferior de la tarjeta (debajo del botón) */
.service-card .card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
  /* Esquinas redondeadas como en el original */
  display: block;
}


/* ─────────────────────────────────────────────
   12. SECCIÓN VIDEO (#seccion-video)
   Embed de Vimeo con ratio 16:9 adaptativo.
   ───────────────────────────────────────────── */
#seccion-video {
  background: var(--crema);
  padding: 48px 0;
}

/* Contenedor con aspect-ratio 16:9 via padding-bottom */
.video-wrap {
  max-width: 840px;
  margin: 0 auto;
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  overflow: hidden;
  box-shadow: var(--sombra-lg);
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}


/* ─────────────────────────────────────────────
   13. SECCIÓN VENTAJAS (#ventajas)
   4 tarjetas sobre fondo rojo corporativo.
   ───────────────────────────────────────────── */
#ventajas {
  background: var(--rojo);
}

#ventajas .section-title {
  color: #fff;
}

#ventajas .section-subtitle {
  color: rgba(255, 255, 255, .75);
}

#ventajas .divider {
  background: var(--dorado);
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Tarjeta de ventaja con fondo semitransparente */
.adv-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .15);
  padding: 32px 20px;
  text-align: center;
  transition: background .3s;
}

.adv-card:hover {
  background: rgba(255, 255, 255, .14);
}

/* Icono SVG invertido a blanco */
.adv-card img {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  filter: brightness(0) invert(1);
}

.adv-card h3 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.adv-card p {
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  font-weight: 300;
}


/* ─────────────────────────────────────────────
   14. SECCIÓN FORMULARIO DE CONTACTO (#formulario-contacto)
   Layout de 2 columnas: texto/info izquierda, form derecha.
   ───────────────────────────────────────────── */
#formulario-contacto {
  background: #FAF8F4 !important;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Columna de introducción y datos de contacto */
.form-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(22px, 3.5vw, 32px);
  color: var(--oscuro);
  margin-bottom: 16px;
  line-height: 1.3;
}

.form-intro>p {
  color: var(--gris);
  font-size: 15px;
  font-weight: 300;
  margin-bottom: 28px;
}

/* Datos de contacto (teléfono, email, dirección) */
.info-contacto a,
.info-contacto span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--gris);
  font-size: 15px;
  margin-bottom: 12px;
}

.info-contacto a:hover {
  color: var(--rojo);
}

.info-contacto .icono {
  flex-shrink: 0;
  font-style: normal;
  margin-top: 2px;
}

/* ── Campos del formulario ── */
.form-fields label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--gris);
  margin-bottom: 6px;
  margin-top: 16px;
}

.form-fields label:first-child {
  margin-top: 0;
}

.form-fields input:not([type="checkbox"]):not([type="radio"]),
.form-fields select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--borde);
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  color: var(--oscuro);
  background: #fff;
  outline: none;
  transition: border-color .2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-fields input:not([type="checkbox"]):not([type="radio"]):focus,
.form-fields select:focus {
  border-color: var(--rojo);
}

/* Fila de 2 campos en paralelo (tablet+) */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row label {
  margin-top: 0;
}

/* Checkbox de privacidad */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--gris);
}

.form-check input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
}

.form-check-label {
  font-size: 13px;
  color: var(--gris);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin-top: 0 !important;
  cursor: pointer;
}

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

/* Placeholder del reCAPTCHA */
.captcha-placeholder {
  margin-top: 16px;
  background: var(--crema);
  border: 1px solid var(--borde);
  padding: 16px;
  font-size: 13px;
  color: var(--gris);
  text-align: center;
}

/* Botón de envío a ancho completo */
.btn-form-submit {
  margin-top: 20px;
  width: 100%;
}


/* ─────────────────────────────────────────────
   15. SECCIÓN FAQ (#faq)
   Acordeón de preguntas frecuentes en grid 2 columnas.
   La apertura/cierre se gestiona desde main.js
   ───────────────────────────────────────────── */
#faq {
  background: var(--crema);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Ítem de FAQ (contenedor pregunta + respuesta) */
.faq-item {
  background: #fff;
  border: 1px solid var(--borde);
  overflow: hidden;
}

/* Cabecera clicable de la pregunta */
.faq-pregunta {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--oscuro);
  transition: background .2s;
  user-select: none;
}

.faq-pregunta:hover {
  background: var(--crema);
}

/* Icono + / × del acordeón */
.faq-icono {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--rojo);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
  transition: transform .3s;
}

.faq-item.abierto .faq-icono {
  transform: rotate(45deg);
  /* + se convierte en × */
}

/* Respuesta con animación de despliegue */
.faq-respuesta {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  font-size: 14px;
  color: var(--gris);
  font-weight: 300;
  line-height: 1.7;
}

.faq-item.abierto .faq-respuesta {
  max-height: 300px;
  padding: 0 24px 20px;
}


/* ─────────────────────────────────────────────
   16. BADGES DE CONFIANZA (#trust-badges)
   Franja horizontal con iconos de garantías.
   ───────────────────────────────────────────── */
#trust-badges {
  background: var(--crema-oscura);
  padding: 32px 0;
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  align-items: center;
}

/* Ítem individual de badge */
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--gris);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: center;
}

.trust-item .trust-emoji {
  font-size: 28px;
}

.trust-item img {
  height: 40px;
  width: auto;
  opacity: .8;
}


/* ─────────────────────────────────────────────
   17. FOOTER (#site-footer)
   Pie de página de 4 columnas con enlaces,
   contacto, redes sociales y métodos de pago.
   ───────────────────────────────────────────── */
#site-footer {
  background: var(--oscuro);
  color: #ccc;
}

/* Área principal del footer */
.footer-top {
  padding: 56px 0 40px;
}

/* Grid de 4 columnas del footer */
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
}

/* Título de columna del footer */
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.footer-col p {
  font-size: 13px;
  color: #999;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 8px;
}

/* Logo en footer (invertido a blanco) */
.footer-logo {
  margin-bottom: 16px;
}

.footer-logo img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .8;
}

/* Links del footer */
.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  font-size: 13px;
  color: #999;
  transition: color .2s;
}

.footer-col ul li a:hover {
  color: var(--dorado);
}

/* Iconos de redes sociales */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #ccc;
  transition: background .2s, color .2s;
}

.social-link:hover {
  background: var(--rojo);
  color: #fff;
}

/* Columna de contacto */
.footer-col-contacto a {
  color: #999;
  font-size: 13px;
  transition: color .2s;
  display: block;
  margin-bottom: 6px;
}

.footer-col-contacto a:hover {
  color: var(--dorado);
}

/* Sello ISO 9001 */
.iso-badge {
  margin-top: 16px;
}

.iso-badge img {
  height: 56px;
  width: auto;
  opacity: .7;
}

/* Imagen de métodos de pago */
.payment-img {
  margin-top: 32px;
}

.payment-img img {
  max-width: 260px;
  opacity: .7;
}

/* Barra inferior del footer (copyright + links legales) */
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #666;
}

.footer-bottom-inner a {
  color: #666;
  transition: color .2s;
}

.footer-bottom-inner a:hover {
  color: #aaa;
}

.footer-links-legales {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* Advertencia de alcohol */
.footer-disclaimer {
  text-align: center;
  padding: 12px 24px;
  background: rgba(0, 0, 0, .3);
  font-size: 11px;
  color: #555;
}


/* =============================================================================
   18. RESPONSIVE — MEDIA QUERIES
   Breakpoints:
     • ≤1024px → tablet paisaje / desktop pequeño
     • ≤768px  → tablet retrato / móvil grande
     • ≤480px  → móvil estándar
   ============================================================================= */

/* ── Tablet paisaje y desktop pequeño (≤1024px) ── */
@media (max-width: 1024px) {

  /* Ventajas: de 4 a 2 columnas */
  .adv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer: de 4 a 2 columnas */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Servicios: de 3 a 1 columna centrada */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ── Tablet retrato y móvil grande (≤768px) ── */
@media (max-width: 768px) {

  /* Espaciado de secciones reducido */
  section {
    padding: 48px 0;
  }

  .container {
    padding: 0 16px;
  }

  /* Header: ocultar nav desktop, mostrar hamburger */
  #btn-menu-hamburger {
    display: flex;
  }

  #nav-desktop {
    display: none;
  }

  /* Ocultar enlace de login en header (espacio limitado) */
  .header-actions .login-link {
    display: none;
  }

  /* Hero: overlay vertical en móvil */
  #hero {
    min-height: 360px;
  }

  #hero .hero-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, .65) 0%, rgba(0, 0, 0, .5) 100%);
  }

  #hero .hero-content {
    padding: 48px 16px;
  }

  #hero p {
    max-width: 100%;
  }

  /* Por qué nosotros: imagen arriba, texto abajo */
  .why-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .why-image {
    order: -1;
    /* Imagen primero en móvil */
  }

  .why-stats {
    justify-content: center;
  }

  /* Servicios: 1 columna a ancho completo */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  /* Formulario: 1 columna, campos apilados */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* FAQ: 1 columna */
  .faq-grid {
    grid-template-columns: 1fr;
  }

  /* Footer: 1 columna */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links-legales {
    justify-content: center;
  }
}

/* ── Móvil estándar (≤480px) ── */
@media (max-width: 480px) {

  /* Hero más compacto */
  #hero {
    min-height: 300px;
  }

  #hero .hero-content {
    padding: 40px 16px;
  }

  /* Ventajas: 1 columna */
  .adv-grid {
    grid-template-columns: 1fr;
  }

  /* Estadísticas: menos espacio */
  .why-stats {
    gap: 20px;
  }

  .stat-num {
    font-size: 30px;
  }

  /* Top bar más pequeño */
  #topbar {
    font-size: 11px;
  }

  /* Breadcrumb más pequeño */
  #breadcrumb ul {
    font-size: 11px;
  }
}

/* Igualar checkbox de privacidad al estilo nativo */
._form-fieldset input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  flex-shrink: 0;
  accent-color: var(--rojo);
}

/* Teléfono: solo icono en móvil, texto + icono en tablet/desktop */
.tel-link .tel-texto {
  display: inline;
}

@media (max-width: 767px) {
  .tel-link .tel-texto {
    display: none !important;
  }
}