/* ===== Variables de color ===== */
:root {
  --azul:        #1c24a2;
  --azul-claro:  #2563eb;
  --amarillo:    #facc15;
  --naranja:     #e9252c;
  --rojo:        #dc2626;
  --gris:        #f4f4f5;
  --texto:       #1f2937;
  --blanco:      #ffffff;
}

/* ===== Reset básico ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--gris);
  color: var(--texto);
  min-height: 100vh;
}

/* ===== Hero / encabezado ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--azul) 0%, var(--azul-claro) 100%);
  color: var(--blanco);
  position: relative;
  overflow: hidden;
}

 .hero::before {
  content: "";
  position: absolute;
  width: 250px; height: 250px;
  background: var(--rojo);
  border-radius: 50%;
  top: -80px; left: -80px;
  opacity: 0.25;
}
.hero::after {
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  background: var(--amarillo);
  border-radius: 50%;
  bottom: -100px; right: -100px;
  opacity: 0.25;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .8rem;
  z-index: 1;
}
.logo h1 {
  font-size: 2.2rem;
  letter-spacing: 2px;
}
.logo h1 span { color: var(--amarillo); }
.paint-drop { font-size: 2.4rem; }

.slogan {
  font-style: italic;
  margin-bottom: 2rem;
  color: #dbeafe;
  z-index: 1;
}

/* ===== Botón principal ===== */
.btn-primary {
  background: var(--amarillo);
  color: var(--azul);
  border: none;
  padding: .9rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: all .25s ease;
  z-index: 1;
  box-shadow: 0 6px 15px rgba(0,0,0,.2);
}
.btn-primary:hover {
  background: var(--rojo);
  color: var(--blanco);
  transform: translateY(-2px);
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .75);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
  z-index: 1000;
}
.modal-overlay.activo {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--blanco);
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
  transform: translateY(30px) scale(.95);
  transition: transform .3s ease;
}
.modal-overlay.activo .modal {
  transform: translateY(0) scale(1);
}

/* Encabezado del modal con degradado tricolor */
.modal-header {
  background: linear-gradient(90deg, var(--azul) 0%, var(--azul-claro) 50%, var(--naranja) 100%);
  color: var(--blanco);
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.modal-header h2 {
  font-size: 1.35rem;
  letter-spacing: 1px;
}

.btn-cerrar {
  background: transparent;
  border: none;
  color: var(--blanco);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s;
}
.btn-cerrar:hover { color: var(--amarillo); }

/* Cuerpo del modal */
.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  font-size: .95rem;
  line-height: 1.6;
}
.modal-body p { margin-bottom: .8rem; }
.modal-body .intro {
  background: var(--gris);
  border-left: 5px solid var(--amarillo);
  padding: .9rem 1rem;
  border-radius: 6px;
  margin-bottom: 1.2rem;
}
.modal-body h3 {
  color: var(--azul);
  margin: 1.1rem 0 .4rem;
  font-size: 1.05rem;
  border-bottom: 2px solid var(--amarillo);
  display: inline-block;
  padding-bottom: 2px;
}
.modal-body ul {
  margin: .3rem 0 .8rem 1.3rem;
}
.modal-body ul li { margin-bottom: .25rem; }
.modal-body .fecha {
  margin-top: 1.2rem;
  font-size: .85rem;
  color: #6b7280;
  text-align: right;
  font-style: italic;
}

/* Footer del modal */
.modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e5e7eb;
  text-align: right;
  background: #fafafa;
}

/* Scrollbar bonito */
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-thumb {
  background: var(--azul-claro);
  border-radius: 4px;
}
.modal-body::-webkit-scrollbar-track { background: #e5e7eb; }

/* ===== Responsive ===== */
@media (max-width: 480px) {
  .logo h1 { font-size: 1.5rem; }
  .modal-header h2 { font-size: 1.1rem; }
  .modal-body { padding: 1rem; }
  .modal { max-height: 95vh; }
}
