/* ==================================================
   GENERAL.CSS — SISTEMA BASE RESPONSIVE
   Blanco · Azul · Rojo
================================================== */

/* =========================
   VARIABLES GLOBALES
========================= */
:root {
  --azul: #145094;
  --rojo: #db0000;
  --blanco: #ffffff;

  --fondo-pagina: var(--blanco);
  --fondo-contenido: var(--blanco);

  --texto-oscuro: var(--azul);
  --texto-claro:  var(--blanco);

  --borde-base: 1px solid var(--azul);

  --pad-section-desktop: 80px;
  --pad-box-desktop:     80px;

  --pad-section-mobile: 56px;
  --pad-box-mobile:     40px;
}

/* =========================
   RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

/* =========================
   BODY
========================= */
body {
  font-family: 'Montserrat', system-ui, sans-serif;
  background-color: var(--fondo-pagina);
  color: var(--texto-oscuro);
  line-height: 1.7;
  overflow-x: hidden;
}

/* =========================
   SECCIONES
========================= */
.pd-section {
  padding: var(--pad-section-desktop) 0;
}

/* =========================
   CONTENEDOR
========================= */
.pd-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================
   PLANO DE CONTENIDO
========================= */
.pd-box,
.pd-card {
  background-color: var(--fondo-contenido);
  padding: var(--pad-box-desktop);
  border: var(--borde-base);
}

/* =========================
   TEXTO
========================= */
h1, h2, h3 {
  color: var(--azul);
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2 { font-size: 2rem; margin-bottom: 28px; }
h3 { font-size: 1.3rem; }

p {
  max-width: 820px;
  margin: 0 auto 20px;
  font-size: 1.05rem;
}
.h2-home a{
  color:#ffffff;
  text-decoration:none;
}

.h2-home a:hover{
  text-decoration:underline;
}
/* =========================
   IMÁGENES
========================= */
.pd-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.pd-box img,
.pd-card img,
.pd-media img {
  display: block;
  max-width: 820px;
  width: 100%;
  height: auto;
  margin: 0 auto;
}
.hero-slider img {
  max-width: 820px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =========================
   GRILLAS (DESKTOP)
========================= */
.pd-cols-2,
.pd-cols-3,
.pd-cols-4 {
  display: grid;
  gap: 48px;
}

.pd-cols-2 { grid-template-columns: repeat(2, 1fr); }
.pd-cols-3 { grid-template-columns: repeat(3, 1fr); }
.pd-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* =========================
   BOTONES
========================= */
.pd-btn {
  display: inline-block;
  padding: 16px 32px;
  background-color: var(--rojo);
  color: var(--texto-claro);
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
  border: none;
}

.pd-btn:hover {
  background-color: var(--azul);
}
.pd-separador {
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--azul) 0%,
    var(--azul) 50%,
    var(--rojo) 50%,
    var(--rojo) 100%
  );
}

/* =========================
   ESPACIADOR (AIRE)
========================= */
.pd-spacer {
  width: 100%;
  height: 40px;
}

@media (max-width: 768px) {
  .pd-spacer {
    height: 24px;
  }
}
/* =========================
   VARIANTES COLOR BASE
   (sin romper el sistema)
========================= */
.pd-spacer.is-base {
  background-color: var(--fondo-pagina);
}

.pd-separador.is-base {
  background: var(--fondo-pagina);
}

/* =========================
   RESPONSIVE
   MOBILE = 1 COLUMNA SIEMPRE
========================= */
@media (max-width: 768px) {

  .pd-section {
    padding: var(--pad-section-mobile) 0;
  }

  .pd-box,
  .pd-card {
    padding: var(--pad-box-mobile);
  }

  p {
    max-width: 100%;
    font-size: 1.1rem;
  }

  .pd-cols-2,
  .pd-cols-3,
  .pd-cols-4 {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
