:root {
  --verde-profundo: #1b4635;
  --verde-salvia: #3d6f54;
  --verde-sombra: rgba(29, 71, 53, 0.08);
  --arena: #f3efe2;
  --arena-suave: #faf8f1;
  --terracota: #c96f4a;
  --terracota-oscuro: #9a4e2d;
  --gris-urbano: #5a5a5a;
  --gris-suave: #d7d7d7;
  --blanco: #ffffff;
  --negro: #1a1a1a;
  --transition: all 0.3s ease-in-out;
  --radio: 16px;
  --fuente-base: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --fuente-titulos: "Source Serif 4", "Times New Roman", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fuente-base);
  color: var(--negro);
  background: var(--arena-suave);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: calc(var(--radio) - 4px);
}

a {
  color: var(--verde-profundo);
  text-decoration: none;
  transition: var(--transition);
}

a:hover,
a:focus {
  color: var(--terracota);
}

h1, h2, h3, h4, h5 {
  font-family: var(--fuente-titulos);
  color: var(--verde-profundo);
  margin: 0 0 12px;
  line-height: 1.2;
}

p {
  margin: 0 0 16px;
}

ul, ol {
  margin: 0;
  padding-left: 20px;
}

li {
  margin-bottom: 8px;
}

.encabezado {
  background: linear-gradient(90deg, rgba(27, 70, 53, 0.95) 0%, rgba(61, 111, 84, 0.95) 100%);
  color: var(--blanco);
  position: relative;
  z-index: 100;
}

.sticky {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
}

.encabezado__contenido {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.contenedor {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.logo {
  font-weight: 600;
  color: var(--blanco);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 18px;
}

.logo--pie {
  color: var(--arena);
  display: inline-block;
  margin-bottom: 12px;
}

.navegacion {
  display: flex;
}

.menu {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.menu a {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--arena);
  font-size: 15px;
  font-weight: 500;
}

.menu a:hover,
.menu a:focus {
  background: rgba(255, 255, 255, 0.12);
  color: var(--blanco);
}

.menu a.activo {
  background: var(--arena);
  color: var(--verde-profundo);
  box-shadow: 0 8px 24px rgba(27, 70, 53, 0.2);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--arena);
  transition: var(--transition);
}

.hero {
  position: relative;
  padding: 96px 0 72px;
}

.hero--principal {
  background: radial-gradient(circle at left, rgba(61,111,84,0.35) 0%, rgba(250,248,241,0.8) 60%), linear-gradient(120deg, var(--arena-suave) 0%, #ffffff 100%);
}

.hero--secundario {
  background: linear-gradient(160deg, #ffffff 0%, var(--arena-suave) 50%, rgba(61,111,84,0.12) 100%);
}

.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

.hero__texto h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.hero__descripcion {
  font-size: 18px;
  color: var(--gris-urbano);
  max-width: 520px;
}

.hero__acciones {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
}

.hero__imagen {
  position: relative;
  overflow: hidden;
  border-radius: var(--radio);
  box-shadow: 0 30px 60px rgba(27, 70, 53, 0.25);
}

.hero__tarjeta {
  position: absolute;
  bottom: -32px;
  right: -32px;
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 24px;
  max-width: 260px;
}

.hero__marcas {
  margin-top: 32px;
  color: var(--gris-urbano);
  font-size: 14px;
}

.hero__ondas {
  position: absolute;
  inset: auto 0 -40px 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg width='1440' height='80' viewBox='0 0 1440 80' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 40L60 33.3C120 27 240 13 360 16C480 19 600 39 720 42.7C840 46 960 33 1080 26.7C1200 20 1320 20 1380 20H1440V80H1380C1320 80 1200 80 1080 80C960 80 840 80 720 80C600 80 480 80 360 80C240 80 120 80 60 80H0V40Z' fill='%23f3efe2'/%3E%3C/svg%3E");
  background-size: cover;
}

.etiqueta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracota);
  background: rgba(201, 111, 74, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
}

.etiqueta--invertida {
  color: var(--arena);
  background: rgba(27, 70, 53, 0.65);
}

.etiqueta--mini {
  font-size: 11px;
  padding: 4px 10px;
}

.seccion {
  padding: 80px 0;
}

.seccion--clara {
  background: var(--arena);
}

.seccion--oscura {
  background: linear-gradient(140deg, var(--verde-profundo) 0%, #0d2221 100%);
  color: var(--arena);
}

.seccion--oscura h2 {
  color: var(--arena);
}

.seccion--llamado {
  background: linear-gradient(115deg, rgba(27, 70, 53, 0.9), rgba(61,111,84,0.8)), url("https://picsum.photos/1400/800?random=12") center/cover;
  color: var(--arena);
  text-align: center;
}

.seccion__encabezado {
  margin-bottom: 40px;
}

.seccion__encabezado--centrado {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.seccion__descripcion {
  color: var(--gris-urbano);
  max-width: 520px;
}

.seccion--oscura .seccion__descripcion,
.seccion--oscura p {
  color: rgba(255,255,255,0.8);
}

.seccion--llamado .seccion__descripcion {
  color: rgba(255,255,255,0.85);
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--dos {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid--tres {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.seccion__grid {
  display: grid;
  gap: 32px;
  align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.tarjeta {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(27, 70, 53, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.tarjeta:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(27, 70, 53, 0.12);
}

.tarjeta--icono {
  display: flex;
  flex-direction: column;
}

.tarjeta__icono {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  margin-bottom: 20px;
  font-size: 24px;
  color: var(--blanco);
}

.gradiente-verde {
  background: linear-gradient(135deg, var(--verde-profundo), var(--verde-salvia));
}

.gradiente-terracota {
  background: linear-gradient(135deg, var(--terracota), var(--terracota-oscuro));
}

.gradiente-arena {
  background: linear-gradient(135deg, #d8c8a8, var(--terracota));
}

.tarjeta__imagen {
  margin-bottom: 18px;
  box-shadow: 0 12px 24px rgba(27, 70, 53, 0.15);
}

.tarjeta--testimonio {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--arena);
}

.tarjeta--testimonio h3 {
  color: var(--arena);
}

.tarjeta__perfil {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.tarjeta__perfil img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
}

.tarjeta__texto {
  font-style: italic;
}

.tarjeta__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.lista-beneficios {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.lista-beneficios li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.badge {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(27, 70, 53, 0.12);
  color: var(--verde-profundo);
  font-weight: 600;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 20px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--terracota), rgba(201,111,74,0));
}

.timeline li {
  position: relative;
  padding-left: 60px;
}

.timeline__hora {
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 600;
  color: var(--terracota);
}

.timeline--compacto::before {
  left: 16px;
}

.timeline--compacto li {
  padding-left: 48px;
}

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--terracota) 0%, var(--terracota-oscuro) 100%);
  color: var(--blanco);
  box-shadow: 0 14px 28px rgba(201, 111, 74, 0.2);
  transition: var(--transition);
}

.boton:hover {
  box-shadow: 0 18px 36px rgba(201, 111, 74, 0.25);
  transform: translateY(-2px);
}

.boton--secundario {
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(243,239,226,0.95) 100%);
  color: var(--verde-profundo);
  border: 1px solid rgba(27, 70, 53, 0.16);
}

.boton--mini {
  padding: 8px 16px;
  font-size: 13px;
}

.boton--blanco {
  background: var(--blanco);
  color: var(--verde-profundo);
}

.formulario {
  display: grid;
  gap: 16px;
}

.formulario fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.formulario legend {
  font-family: var(--fuente-titulos);
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--verde-profundo);
}

.formulario__campo {
  display: grid;
  gap: 8px;
}

.formulario__campo label {
  font-weight: 500;
  color: var(--gris-urbano);
}

input,
select,
textarea {
  border-radius: 12px;
  border: 1px solid rgba(27, 70, 53, 0.2);
  padding: 12px 16px;
  font: inherit;
  transition: var(--transition);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--terracota);
  box-shadow: 0 0 0 4px rgba(201, 111, 74, 0.2);
}

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

.formulario--contacto {
  background: var(--blanco);
  padding: 32px;
  border-radius: var(--radio);
  box-shadow: 0 20px 40px rgba(27, 70, 53, 0.1);
}

.formulario--newsletter {
  max-width: 600px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px 24px;
}

.formulario--mini {
  grid-template-columns: 1fr auto;
}

.formulario--mini input {
  border-radius: 999px;
}

.formulario--mini button {
  border-radius: 999px;
}

.formulario__acepto {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--gris-urbano);
}

.formulario__acepto input {
  margin-top: 2px;
}

.panel {
  background: var(--blanco);
  padding: 32px;
  border-radius: var(--radio);
  box-shadow: 0 20px 40px rgba(27, 70, 53, 0.08);
  display: grid;
  gap: 24px;
}

.panel__seccion h3 {
  margin-bottom: 8px;
}

.panel--mini {
  padding: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(27, 70, 53, 0.12);
  color: var(--verde-profundo);
  font-size: 13px;
  font-weight: 500;
}

.chip--verde {
  background: rgba(27, 70, 53, 0.18);
}

.chip--terracota {
  background: rgba(201, 111, 74, 0.18);
  color: var(--terracota-oscuro);
}

.chip--gris {
  background: rgba(90, 90, 90, 0.12);
  color: var(--gris-urbano);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lista-simple {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.lista-ordenada {
  margin: 16px 0;
  padding-left: 20px;
}

.banner {
  margin-top: 40px;
  padding: 32px;
  background: linear-gradient(135deg, rgba(27,70,53,0.9), rgba(61,111,84,0.8));
  color: var(--blanco);
  border-radius: var(--radio);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 20px 40px rgba(27, 70, 53, 0.2);
}

.banner--invertido {
  background: linear-gradient(135deg, rgba(243,239,226,0.95), rgba(255,255,255,0.95));
  color: var(--negro);
}

.mapa {
  overflow: hidden;
  border-radius: var(--radio);
  border: 1px solid rgba(27, 70, 53, 0.12);
  box-shadow: 0 14px 28px rgba(27, 70, 53, 0.1);
}

.mapa--grande img {
  width: 100%;
  border-radius: var(--radio);
}

.tabla-responsive {
  overflow-x: auto;
}

.tabla {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.tabla th,
.tabla td {
  padding: 16px 20px;
  text-align: left;
  font-size: 15px;
}

.tabla thead {
  background: rgba(27, 70, 53, 0.08);
  color: var(--verde-profundo);
}

.tabla tbody tr:nth-child(even) {
  background: rgba(27, 70, 53, 0.04);
}

.tabla tbody tr:hover {
  background: rgba(201, 111, 74, 0.08);
}

.contenido-legal {
  background: var(--blanco);
  padding: 32px;
  border-radius: var(--radio);
  box-shadow: 0 20px 40px rgba(27, 70, 53, 0.08);
}

.contenido-legal h2 {
  margin-top: 32px;
}

.faq details {
  background: var(--blanco);
  border-radius: var(--radio);
  padding: 20px 24px;
  margin-bottom: 12px;
  box-shadow: 0 12px 24px rgba(27, 70, 53, 0.08);
  cursor: pointer;
}

.faq summary {
  list-style: none;
  font-weight: 600;
  color: var(--verde-profundo);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] {
  border-left: 4px solid var(--terracota);
}

.pie {
  background: linear-gradient(160deg, #102420 0%, #0a1918 100%);
  color: var(--arena);
  padding: 64px 0 32px;
  margin-top: 80px;
}

.pie__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  align-items: start;
}

.pie h4 {
  margin-bottom: 12px;
  color: var(--arena);
  font-family: var(--fuente-base);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
}

.lista-enlaces {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.lista-enlaces a {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
}

.lista-enlaces a:hover {
  color: var(--terracota);
}

.pie__legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}

.cookie-banner {
  position: fixed;
  bottom: 24px;
  right: 24px;
  left: 24px;
  max-width: 540px;
  margin-left: auto;
  background: rgba(27, 70, 53, 0.96);
  color: var(--arena);
  padding: 20px 24px;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  transform: translateY(150px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
}

.cookie-banner.activo {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-banner__contenido {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cookie-banner__acciones {
  display: flex;
  gap: 12px;
}

.error {
  display: grid;
  place-items: center;
  height: 100vh;
  background: linear-gradient(135deg, rgba(27, 70, 53, 0.9), rgba(61, 111, 84, 0.8));
  color: var(--arena);
  text-align: center;
  padding: 40px;
}

.error__contenedor {
  max-width: 480px;
  display: grid;
  gap: 16px;
}

.error img {
  margin-top: 16px;
  border-radius: var(--radio);
  box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}

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

@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual.hero__visual--pequeño img {
    max-width: 360px;
    margin: 0 auto;
  }

  .hero__tarjeta {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: -32px;
  }
}

@media (max-width: 768px) {
  .menu {
    position: absolute;
    inset: 64px 16px auto 16px;
    flex-direction: column;
    background: rgba(27, 70, 53, 0.95);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
  }

  .menu.activo {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    padding: 72px 0 48px;
  }

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

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

  .cookie-banner {
    left: 16px;
    right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}