/* Estilos globales compartidos (complementan a Tailwind CDN) */
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
html, body { margin: 0; padding: 0; }
body { overscroll-behavior: none; font-family: "Montserrat", system-ui, sans-serif; }

.material-symbols-outlined { font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24; user-select: none; }
.icon-fill { font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24; }
.tabular-nums { font-variant-numeric: tabular-nums; }

/* Foco accesible (DESIGN.md › Buttons) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid #5BB3F1; outline-offset: 2px; border-radius: 0.5rem;
}

/* Campos de formulario */
.field {
  width: 100%; background: #fff; border: 1px solid #CBD5E1; border-radius: 0.5rem;
  padding: 0.625rem 0.875rem; font-size: 14px; line-height: 20px; color: #111d26;
  transition: border-color .15s, box-shadow .15s;
}
.field::placeholder { color: #94a3b8; }
.field:focus { outline: none; border-color: #1E73EB; box-shadow: 0 0 0 3px rgba(30,115,235,0.15); }
.field[aria-invalid="true"] { border-color: #ba1a1a; box-shadow: 0 0 0 3px rgba(186,26,26,0.12); }
.field-label { display: block; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; color: #0B2E6B; margin-bottom: .375rem; }
input[type="checkbox"].check, input[type="radio"].check { width: 18px; height: 18px; accent-color: #1E73EB; cursor: pointer; }

/* Range slider */
input[type="range"].range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 9999px; background: #e3effc; cursor: pointer; }
input[type="range"].range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #1E73EB; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(11,46,107,.3); }
input[type="range"].range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #1E73EB; border: 3px solid #fff; box-shadow: 0 2px 6px rgba(11,46,107,.3); }

/* Acordeón (details/summary) */
details.faq > summary { list-style: none; cursor: pointer; }
details.faq > summary::-webkit-details-marker { display: none; }
details.faq[open] > summary .faq-icon { transform: rotate(45deg); }
details.faq .faq-icon { transition: transform .2s ease; }

/* Contenido legal / artículos */
.prose-legal { color: #424754; font-size: 15px; line-height: 1.75; }
.prose-legal h2 { color: #0B2E6B; font-size: 20px; line-height: 28px; font-weight: 700; margin: 2.25rem 0 .75rem; scroll-margin-top: 6rem; }
.prose-legal h3 { color: #111d26; font-size: 16px; font-weight: 600; margin: 1.5rem 0 .5rem; }
.prose-legal p { margin: 0 0 1rem; }
.prose-legal ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 1rem; }
.prose-legal ol { list-style: decimal; padding-left: 1.25rem; margin: 0 0 1rem; }
.prose-legal li { margin: .35rem 0; }
.prose-legal a { color: #0058be; text-decoration: underline; text-underline-offset: 2px; }
.prose-legal strong { color: #111d26; }
.prose-legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 13px; }
.prose-legal th { background: #0B2E6B; color: #fff; text-align: left; padding: .6rem .75rem; font-weight: 600; }
.prose-legal td { border-bottom: 1px solid #E2E8F0; padding: .6rem .75rem; vertical-align: top; }
.placeholder-data { background: #fef3c7; color: #78350f; padding: 0 .3rem; border-radius: .25rem; font-weight: 600; }

/* Animación de aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Scroll horizontal suave para tablas en móvil */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { scrollbar-width: none; }

/* Hero: recorte de la foto en punta de tienda (chevron hacia el texto) */
.hero-photo { clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 100%, 0 88%); }
@media (min-width: 1024px) {
  .hero-photo { clip-path: polygon(0 0, 86% 0, 100% 50%, 86% 100%, 0 100%); }
}
