/* =========================
   RESET GLOBAL
========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

/* =========================
   ROOT & BODY
========================= */

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f7fa;
  color: #1e293b;
  line-height: 1.5;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* Evita scroll lateral raro */
  overflow-x: hidden;
}

/* =========================
   LINKS
========================= */

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s ease;
}

/* =========================
   MEDIA
========================= */

img,
video {
  max-width: 100%;
  display: block;
}

/* =========================
   LISTAS
========================= */

ul,
ol {
  list-style: none;
}

/* =========================
   FORM ELEMENTS
========================= */

input,
textarea,
button {
  font-family: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
}

/* Evita zoom raro en iOS */
input,
textarea {
  font-size: 16px;
  background: #ffffff;
}

/* =========================
   TABLES (por si se usan)
========================= */

table {
  border-collapse: collapse;
  width: 100%;
}

/* =========================
   UTILIDADES
========================= */

.w-100 {
  width: 100%;
}

.h-100 {
  height: 100%;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5f5;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* =========================
   SELECCIÓN DE TEXTO
========================= */

::selection {
  background: #2563eb;
  color: white;
}

/* =========================
   TRANSICIONES SUAVES
========================= */

body,
a,
button {
  transition: all 0.2s ease;
}

/* =========================
   ACCESIBILIDAD
========================= */

:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* =========================
   SAFE AREA (móviles notch)
========================= */

body {
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

/* =========================
   AVISO MODAL
========================= */

.aviso-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 9999;
}

/* CAJA */
.aviso-box {
  background: #ffffff;
  padding: 25px;
  border-radius: 14px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
}

/* CERRAR */
.aviso-close {
  position: absolute;
  top: 10px;
  right: 12px;
  cursor: pointer;
  font-size: 18px;
}

/* TEXTO */
.aviso-box p {
  margin: 10px 0;
  font-size: 14px;
}