:root {
  --verde: #0e5a52;
  --verde-oscuro: #08342f;
  --aqua: #3fc1b0;
  --aqua-claro: #e6f7f4;
  --ambar: #d98a1c;
  --ambar-claro: #fff3de;
  --texto: #1f2a2a;
  --gris: #5b6767;
  --borde: #d5e4e1;
  --blanco: #ffffff;
  --radio: 16px;
  --sombra: 0 10px 30px rgba(8, 52, 47, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--texto);
  line-height: 1.7;
  background: #fafdfc;
}
img, svg { max-width: 100%; }
a { color: var(--verde); }
h1, h2, h3, h4 { line-height: 1.25; color: var(--verde-oscuro); }
h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 0.6rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
p { margin-bottom: 1rem; }
ul { padding-left: 1.2rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

.contenedor { width: min(1140px, 92%); margin: 0 auto; }
.seccion { padding: 4.5rem 0; }
.seccion.alt { background: var(--aqua-claro); }
.seccion.oscura { background: var(--verde-oscuro); color: #e8f5f3; }
.seccion.oscura h2, .seccion.oscura h3 { color: #fff; }
.centrado { text-align: center; }
.intro { max-width: 760px; color: var(--gris); font-size: 1.08rem; }
.centrado .intro { margin-inline: auto; }
.etiqueta {
  display: inline-block; background: var(--ambar-claro); color: #8a5300;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: 0.8rem;
}

/* Cabecera */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
}
.cabecera .contenedor { display: flex; align-items: center; justify-content: space-between; min-height: 70px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-weight: 800; color: var(--verde-oscuro); font-size: 1.15rem; }
.logo span.icono {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--aqua), var(--verde)); color: #fff; font-size: 1.3rem;
}
.menu { display: flex; gap: 0.2rem; list-style: none; padding: 0; margin: 0; }
.menu a {
  display: block; padding: 0.5rem 0.9rem; border-radius: 999px; text-decoration: none;
  color: var(--texto); font-weight: 600; font-size: 0.95rem;
}
.menu a:hover { background: var(--aqua-claro); }
.menu a.activo { background: var(--verde); color: #fff; }
.boton-menu { display: none; background: none; border: 1px solid var(--borde); border-radius: 10px; font-size: 1.4rem; padding: 0.3rem 0.7rem; cursor: pointer; }

/* Botones */
.btn {
  display: inline-block; padding: 0.85rem 1.6rem; border-radius: 999px; font-weight: 700;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sombra); }
.btn-primario { background: var(--ambar); color: #fff; }
.btn-secundario { background: transparent; border-color: #fff; color: #fff; }
.btn-borde { border-color: var(--verde); color: var(--verde); }
.acciones { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(63, 193, 176, 0.35), transparent 40%),
    linear-gradient(135deg, var(--verde-oscuro), var(--verde));
  color: #e8f5f3; padding: 5rem 0 4.5rem;
}
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: #ffc46b; }
.hero .grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
.hero p { font-size: 1.1rem; max-width: 620px; }
.hero-visual { display: flex; justify-content: center; }
.hero-visual svg { width: min(340px, 100%); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3)); }
.hero-pagina { padding: 3.5rem 0 3rem; }
.hero-pagina p { max-width: 760px; }

/* Rejillas y tarjetas */
.rejilla { display: grid; gap: 1.4rem; margin-top: 2.2rem; }
.rejilla.c2 { grid-template-columns: repeat(2, 1fr); }
.rejilla.c3 { grid-template-columns: repeat(3, 1fr); }
.rejilla.c4 { grid-template-columns: repeat(4, 1fr); }
.tarjeta {
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio);
  padding: 1.6rem; box-shadow: 0 2px 8px rgba(8, 52, 47, 0.04); transition: transform 0.2s, box-shadow 0.2s;
}
.tarjeta:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.tarjeta .emoji { font-size: 2.2rem; display: block; margin-bottom: 0.6rem; }
.tarjeta p:last-child, .tarjeta ul:last-child { margin-bottom: 0; }
.tarjeta.ambar { border-top: 4px solid var(--ambar); }
.tarjeta.verde { border-top: 4px solid var(--aqua); }

.datos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
.dato { text-align: center; padding: 1.2rem; border-radius: var(--radio); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); }
.dato strong { display: block; font-size: 2rem; color: #ffc46b; }

/* Pasos del método */
.pasos { counter-reset: paso; display: grid; gap: 1.2rem; margin-top: 2.2rem; }
.paso {
  counter-increment: paso; position: relative; background: #fff; border: 1px solid var(--borde);
  border-radius: var(--radio); padding: 1.5rem 1.5rem 1.5rem 5rem; box-shadow: 0 2px 8px rgba(8, 52, 47, 0.04);
}
.paso::before {
  content: counter(paso); position: absolute; left: 1.3rem; top: 1.4rem; width: 2.8rem; height: 2.8rem;
  border-radius: 50%; background: linear-gradient(135deg, var(--ambar), #f0b04d); color: #fff;
  font-weight: 800; font-size: 1.3rem; display: grid; place-items: center;
}
.paso p:last-child, .paso ul:last-child { margin-bottom: 0; }

/* Tablas */
.tabla-envoltorio { overflow-x: auto; margin-top: 1.6rem; border-radius: var(--radio); border: 1px solid var(--borde); background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--borde); font-size: 0.95rem; vertical-align: top; }
th { background: var(--verde); color: #fff; }
tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: #f4fbf9; }

/* Preguntas */
.faq { max-width: 860px; margin: 2rem auto 0; }
.faq h2 { margin-top: 2.4rem; font-size: 1.5rem; }
details { background: #fff; border: 1px solid var(--borde); border-radius: 12px; margin-bottom: 0.8rem; overflow: hidden; }
summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; color: var(--verde-oscuro); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; color: var(--ambar); line-height: 1; }
details[open] summary::after { content: "−"; }
details[open] summary { background: var(--aqua-claro); }
details .respuesta { padding: 1rem 1.2rem 0.4rem; }

/* Llamado a la acción y formulario */
.cta { background: linear-gradient(135deg, var(--ambar), #f0a63b); color: #fff; border-radius: 24px; padding: 3rem 2rem; text-align: center; }
.cta h2 { color: #fff; }
.cta .btn-primario { background: var(--verde-oscuro); }
.formulario { display: grid; gap: 1rem; background: #fff; padding: 2rem; border-radius: var(--radio); border: 1px solid var(--borde); box-shadow: var(--sombra); }
.formulario label { font-weight: 600; font-size: 0.92rem; display: grid; gap: 0.3rem; }
.formulario input, .formulario select, .formulario textarea {
  font: inherit; padding: 0.7rem 0.9rem; border: 1px solid var(--borde); border-radius: 10px; background: #fcfefd;
}
.formulario input:focus, .formulario select:focus, .formulario textarea:focus { outline: 2px solid var(--aqua); border-color: var(--aqua); }
.dos-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contacto-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: start; }
.nota { font-size: 0.85rem; color: var(--gris); }

/* Pie */
.pie { background: var(--verde-oscuro); color: #bcd6d2; padding: 3.5rem 0 1.5rem; }
.pie h4 { color: #fff; margin-bottom: 0.8rem; }
.pie a { color: #bcd6d2; text-decoration: none; }
.pie a:hover { color: #fff; text-decoration: underline; }
.pie ul { list-style: none; padding: 0; }
.pie-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.pie-fin { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 2rem; padding-top: 1.2rem; font-size: 0.85rem; text-align: center; }

.whatsapp {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; background: #25d366; color: #fff;
  text-decoration: none; font-weight: 700; padding: 0.8rem 1.2rem; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.whatsapp:hover { background: #1ebe5a; }

@media (max-width: 900px) {
  .hero .grid, .contacto-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-visual svg { width: 180px; }
  .rejilla.c3, .rejilla.c4, .datos { grid-template-columns: repeat(2, 1fr); }
  .pie-grid { grid-template-columns: 1fr 1fr; }
  .boton-menu { display: block; }
  .menu {
    display: none; position: absolute; top: 70px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 0.8rem 4%; border-bottom: 1px solid var(--borde); box-shadow: var(--sombra);
  }
  .menu.abierto { display: flex; }
}
@media (max-width: 600px) {
  .rejilla.c2, .rejilla.c3, .rejilla.c4, .datos, .pie-grid, .dos-cols { grid-template-columns: 1fr; }
  .seccion { padding: 3rem 0; }
  .paso { padding-left: 4.3rem; }
  .whatsapp span { display: none; }
}

/* ===== Portada ===== */
.portada {
  position: relative; overflow: hidden; color: #e8f5f3; padding: 4.5rem 0 0;
  background:
    radial-gradient(circle at 78% 35%, rgba(63, 193, 176, 0.35), transparent 45%),
    radial-gradient(circle at 5% 100%, rgba(217, 138, 28, 0.18), transparent 40%),
    linear-gradient(135deg, #06282a 0%, var(--verde-oscuro) 40%, var(--verde) 100%);
}
.portada::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 80%);
}
.portada-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2.5rem; align-items: center; }
.insignia {
  display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.4rem 1rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.85rem; font-weight: 600; margin-bottom: 1.2rem; backdrop-filter: blur(6px);
}
.insignia i { width: 9px; height: 9px; border-radius: 50%; background: #ffc46b; box-shadow: 0 0 0 4px rgba(255, 196, 107, 0.25); }
.portada h1 { color: #fff; margin-bottom: 1rem; max-width: 560px; }
.portada h1 em { font-style: normal; display: block; color: #ffc46b; margin-top: 0.2rem; }
.portada-texto > p { font-size: 1.08rem; max-width: 540px; color: #cfe6e2; }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.45rem; }
.checks li { position: relative; padding-left: 1.8rem; margin: 0; font-weight: 500; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 2px; width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: #ffc46b; color: #6b3d00; font-size: 0.75rem; font-weight: 800; display: grid; place-items: center;
}
.portada .btn-primario { box-shadow: 0 8px 22px rgba(217, 138, 28, 0.45); }

.portada-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 420px; }
.portada-visual svg { position: relative; width: min(500px, 100%); filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.35)); }
.resplandor {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 220, 200, 0.45), rgba(63, 193, 176, 0.05) 65%, transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.flota { animation: flotar 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.f2 { animation-delay: -2s; }
.f3 { animation-delay: -4s; }
.destello { animation: brillar 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes brillar { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.chip {
  position: absolute; background: rgba(255, 255, 255, 0.95); color: var(--verde-oscuro); font-size: 0.85rem;
  padding: 0.55rem 0.9rem; border-radius: 14px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25); line-height: 1.3;
}
.chip strong { display: block; font-size: 0.95rem; }
.c-a { top: 8%; right: 2%; }
.c-b { bottom: 12%; left: 0; }

.burbuja { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.06); animation: subir 14s linear infinite; }
.b1 { width: 22px; height: 22px; left: 8%; bottom: -30px; }
.b2 { width: 14px; height: 14px; left: 42%; bottom: -30px; animation-delay: -5s; animation-duration: 11s; }
.b3 { width: 30px; height: 30px; left: 60%; bottom: -40px; animation-delay: -8s; animation-duration: 17s; }
.b4 { width: 18px; height: 18px; left: 90%; bottom: -30px; animation-delay: -3s; }
@keyframes subir { to { transform: translateY(-620px); opacity: 0; } }

.franja {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 2.5rem;
  background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.12);
}
.franja div { padding: 1.3rem 1.2rem; text-align: center; border-right: 1px solid var(--borde); }
.franja div:last-child { border-right: none; }
.franja strong { display: block; color: var(--verde); font-size: 1.05rem; }
.franja span { color: var(--gris); font-size: 0.85rem; }

@media (max-width: 900px) {
  .portada { padding-top: 3rem; }
  .portada-grid { grid-template-columns: 1fr; }
  .portada-visual { order: -1; min-height: 300px; }
  .portada-visual svg { width: min(380px, 100%); }
  .franja { grid-template-columns: repeat(2, 1fr); }
  .franja div:nth-child(2) { border-right: none; }
  .franja div:nth-child(-n+2) { border-bottom: 1px solid var(--borde); }
}
@media (max-width: 600px) {
  .c-a, .c-b { display: none; }
  .franja span { font-size: 0.78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .flota, .destello, .burbuja { animation: none; }
}

/* ===== Imágenes ===== */
.tarjeta.foto { padding: 0; overflow: hidden; }
.tarjeta.foto img { display: block; width: 100%; height: 190px; object-fit: cover; transition: transform 0.4s; }
.tarjeta.foto:hover img { transform: scale(1.05); }
.tarjeta.foto > h3 { padding: 1.1rem 1.4rem 0; }
.tarjeta.foto > p, .tarjeta.foto > ul { padding: 0 1.4rem 1.4rem; }
.figura { margin: 2rem 0 0.5rem; border-radius: 22px; overflow: hidden; box-shadow: var(--sombra); background: #fff; }
.figura img { display: block; width: 100%; max-height: 440px; object-fit: cover; }
.figura figcaption { padding: 0.7rem 1.2rem; font-size: 0.88rem; color: var(--gris); border-top: 1px solid var(--borde); }
.contacto-grid .figura { grid-column: auto; }

/* ===== Textos largos ===== */
.articulo { max-width: 860px; margin: 0 auto; }
.articulo h2 { margin-bottom: 1rem; }
.articulo h3 { margin-top: 1.8rem; font-size: 1.25rem; color: var(--verde); }
.articulo p { font-size: 1.05rem; color: #2c3a3a; }
.articulo .nota { background: var(--ambar-claro); border-left: 4px solid var(--ambar); padding: 0.8rem 1rem; border-radius: 8px; color: #6b4a10; }
.lista-num { list-style: none; counter-reset: n; padding: 0; margin: 1rem 0 1.4rem; }
.lista-num li {
  counter-increment: n; position: relative; background: #fff; border: 1px solid var(--borde);
  border-radius: 12px; padding: 0.9rem 1rem 0.9rem 3.4rem; margin-bottom: 0.7rem; font-size: 1.02rem;
}
.lista-num li::before {
  content: counter(n); position: absolute; left: 0.9rem; top: 0.85rem; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--verde); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 0.95rem;
}
.glosario dl { display: grid; grid-template-columns: 1fr 2fr; gap: 0; margin-top: 1.5rem; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); overflow: hidden; }
.glosario dt, .glosario dd { padding: 0.85rem 1.1rem; border-bottom: 1px solid var(--borde); margin: 0; }
.glosario dt { font-weight: 700; color: var(--verde-oscuro); background: #f4fbf9; }
.glosario dt:last-of-type, .glosario dd:last-of-type { border-bottom: none; }
@media (max-width: 600px) {
  .glosario dl { grid-template-columns: 1fr; }
  .glosario dt { border-bottom: none; padding-bottom: 0.2rem; }
}

/* ===== Contacto directo ===== */
.contacto-directo { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.2rem 1.4rem; margin: 1.2rem 0; box-shadow: 0 2px 8px rgba(8, 52, 47, 0.04); }
.contacto-directo h3 { margin-bottom: 0.5rem; }
.contacto-directo ul { list-style: none; padding: 0; margin: 0; }
.contacto-directo li { margin-bottom: 0.4rem; }
.pie a[href^="mailto"], .pie a[href^="tel"] { word-break: break-all; }
