/* =========================================================
   BASE
   ========================================================= */
body {
  font-family: 'Work Sans', sans-serif;
  background-color: #F7F1E4; /* crema */
  color: #173A5E; /* navy */
}

h1, h2, h3, .font-display {
  font-family: 'Poppins', sans-serif;
}

.font-mono { font-family: 'Space Mono', monospace; }
.font-script { font-family: 'Caveat', cursive; }

html { scroll-behavior: smooth; }

/* Respaldo de seguridad: si el CDN de Tailwind no carga (sin internet,
   bloqueador de anuncios, firewall, etc.), esta regla evita que las
   imágenes se muestren a su tamaño nativo (a veces gigante). */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Evita que el header sticky tape el inicio de la sección al saltar con un ancla */
section[id] { scroll-margin-top: 100px; }
@media (min-width: 640px) {
  section[id] { scroll-margin-top: 120px; }
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #3F7D3F;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* =========================================================
   SELLO / INSIGNIA
   ========================================================= */
.sello {
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}
.sello::before {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px dashed currentColor;
  border-radius: 50%;
}

/* =========================================================
   TARJETAS (pasos, valores, categorías, "por qué elegirnos")
   ========================================================= */
.tarjeta-valor {
  border-top: 4px solid #C1272D; /* rojo */
  background: #FFFFFF;
}

.ticket {
  position: relative;
  border: 2px dashed #173A5E;
}

/* =========================================================
   CHIPS (productos más solicitados)
   ========================================================= */
.chip {
  display: inline-block;
  background: #FFFFFF;
  border: 2px solid #173A5E;
  color: #173A5E;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.9rem;
}

/* =========================================================
   PREGUNTAS FRECUENTES (usa <details>/<summary>, sin JS)
   ========================================================= */
details.faq {
  background: #FFFFFF;
  border: 2px solid #173a5e1a;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}
details.faq + details.faq { margin-top: 0.75rem; }
details.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  color: #C1272D;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin-top: 0.75rem; color: #173a5ecc; line-height: 1.6; }

/* =========================================================
   FORMULARIOS
   ========================================================= */
.campo-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}
.campo-form input,
.campo-form select,
.campo-form textarea {
  width: 100%;
  border: 2px solid #173a5e33;
  border-radius: 0.6rem;
  padding: 0.65rem 0.9rem;
  background: #FFFFFF;
  font-family: 'Work Sans', sans-serif;
  color: #173A5E;
}
.campo-form input:focus,
.campo-form select:focus,
.campo-form textarea:focus {
  border-color: #3F7D3F;
  outline: none;
}
input[type="checkbox"],
.campo-form input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  padding: 0;
  border: none;
  background: none;
  accent-color: #3F7D3F;
  cursor: pointer;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer-columna h4 {
  font-family: 'Space Mono', monospace;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #F2A93B;
  margin-bottom: 0.75rem;
}
.footer-columna a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(247, 241, 228, 0.75);
  font-size: 0.9rem;
  padding: 0.2rem 0;
}
.footer-columna a svg { color: #F2A93B; }
.footer-columna a:hover { color: #F7F1E4; }
