/* ===================================================
   base.css
   Estilos base globales para toda la web
   Tipografías, cuerpo, enlaces, encabezados, tablas...
   =================================================== */


/* ======================================
   1. FUENTES PERSONALIZADAS (Poppins)
   ====================================== */

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.woff2') format('woff2'),
       url('../fonts/Poppins-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Bold.woff2') format('woff2'),
       url('../fonts/Poppins-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Italic.woff2') format('woff2'),
       url('../fonts/Poppins-Italic.woff') format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}


/* ======================================
   2. HTML
   ====================================== */

html {
  scroll-behavior: smooth;
}


/* ======================================
   3. ENLACES (a)
   ====================================== */

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  padding: 0.2em 0.5em;
  border-radius: 0.5em;
}

a:hover {
  background-color: #ffee03;
  color: #000 !important;
  box-shadow: 0 0 4px #01fe55;
}


/* ======================================
   4. ENCABEZADOS (h1–h4)
   ====================================== */

h1 {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #5c3dc4;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: #333;
}

h3 {
  font-size: 1.6rem;
  margin-bottom: 0.85rem;
  color: #4329a1;
  font-weight: 600;
  text-align: left;
}

h4 {
  font-size: 1.2rem;
  color: #333;
  text-align: center;
}


/* ======================================
   5. PÁRRAFOS Y TEXTO
   ====================================== */

p {
  font-size: 1em;
  text-align: justify;
  text-indent: 2em;
  line-height: 1.7;
}

blockquote {
  border-left: 4px solid #5c3dc4;
  padding-left: 1rem;
  color: #555;
  font-style: italic;
}

ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}


/* ======================================
   6. BOTONES GENÉRICOS
   ====================================== */

button {
  display: inline-block;
  font-family: inherit;
  font-weight: bold;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  background-color: #ffce00;
  color: #000;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #01fe55;
}


/* ======================================
   7. IMÁGENES
   ====================================== */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.leyenda-imagen {
  font-size: 0.95rem;
  color: #444;
  margin-top: 1rem;
  line-height: 1.5;
}


/* ======================================
   8. TABLAS
   ====================================== */

table {
  width: 100%;
  border-collapse: collapse;
  background-color: #f7f3ff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
}

th,
td {
  padding: 12px;
  border: 1px solid #ccc;
  text-align: left;
}

th {
  background-color: #e0d4ff;
  color: #333;
}

tr:hover {
  background-color: #f0f0f0;
}

/* =========================
   Base: Modelo de caja global
   ========================= */
*, *::before, *::after {
  box-sizing: border-box;
}