/* ==========================================================================
   Reef · estilos compartidos de las subpáginas (CSS normal, sin @apply:
   el Tailwind del navegador solo procesa <style type="text/tailwindcss">).
   Los colores replican el @theme de la página principal.
   ========================================================================== */
html { background: #fff; scroll-behavior: smooth; }
.container { margin-inline: auto; max-width: 1200px; padding-inline: 1.5rem; }

/* ---- Fondo del hero: halos suaves + retícula de puntos que se desvanece ---- */
.fondo-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(640px 320px at 88% 8%, rgba(16, 185, 129, .16), transparent 70%),
    radial-gradient(520px 300px at 0% 100%, rgba(30, 41, 59, .08), transparent 70%),
    linear-gradient(#fff, #f8fafc);
}
.fondo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(30, 41, 59, .10) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 80%);
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
  pointer-events: none;
}
.fondo-hero > * { position: relative; }

/* Franja oscura con brillo (CTA final) */
.fondo-marino {
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(16, 185, 129, .22), transparent 70%),
    #1e293b;
}

/* ---- Texto largo ---- */
.prosa { color: #334155; font-size: 1.0625rem; line-height: 1.8; }
.prosa > * + * { margin-top: 1.1em; }
.prosa h2 {
  margin-top: 2.2em;
  font-size: 1.75rem; line-height: 1.25; font-weight: 800; letter-spacing: -.02em;
  color: #1e293b; scroll-margin-top: 6rem;
}
.prosa h3 { margin-top: 1.8em; font-size: 1.25rem; line-height: 1.35; font-weight: 700; color: #1e293b; }
.prosa h2 + *, .prosa h3 + * { margin-top: .6em; }
.prosa strong { color: #1e293b; font-weight: 650; }
.prosa em { color: #1e293b; }
.prosa a {
  color: #059669; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(16, 185, 129, .45);
}
.prosa a:hover { text-decoration-color: currentColor; }
/* Bloques visuales dentro del artículo (tarjetas, tablas): sin estilo de texto largo. */
.prosa a.not-prose, .prosa .not-prose a { color: inherit; font-weight: inherit; text-decoration: none; }
.prosa ul { list-style: none; padding-left: 0; }
.prosa ul > li { position: relative; padding-left: 2em; }
.prosa ul > li + li { margin-top: .55em; }
.prosa ul > li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 1.2em; height: 1.2em; border-radius: 999px;
  background: rgba(16, 185, 129, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23059669' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.prosa blockquote {
  border-left: 4px solid #10b981; background: #f0fdf4; border-radius: 0 12px 12px 0;
  padding: .9em 1.2em; color: #1e293b; font-weight: 500;
}

/* ---- Preguntas frecuentes (acordeón con <details>) ---- */
.faq details {
  border: 1px solid #e2e8f0; border-radius: 14px; background: #fff;
  transition: box-shadow .2s, border-color .2s;
}
.faq details + details { margin-top: .75rem; }
.faq details[open] { border-color: rgba(16, 185, 129, .45); box-shadow: 0 10px 28px -14px rgba(15, 23, 42, .25); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.25rem; cursor: pointer; list-style: none;
  font-weight: 600; color: #1e293b;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex-shrink: 0; display: grid; place-items: center;
  width: 1.75rem; height: 1.75rem; border-radius: 999px;
  background: rgba(16, 185, 129, .12); color: #059669; font-size: 1.2rem; line-height: 1;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.25rem 1.15rem; color: #475569; line-height: 1.7; }

/* ---- Índice lateral de los artículos ---- */
.indice a { display: block; border-left: 2px solid #e2e8f0; padding: .35rem 0 .35rem .9rem; color: #64748b; font-size: .875rem; }
.indice a:hover { color: #1e293b; border-color: #94a3b8; }
.indice a.activo { color: #059669; border-color: #10b981; font-weight: 600; }

/* ---- Detalles ---- */
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.flotar { animation: flotar 6s ease-in-out infinite; }
.flotar-lento { animation: flotar 8s ease-in-out infinite; animation-delay: -3s; }
@media (prefers-reduced-motion: reduce) { .flotar, .flotar-lento { animation: none; } html { scroll-behavior: auto; } }

.firma { font-family: "Segoe Script", "Brush Script MT", cursive; }
