:root {
  --color-bg: #ebf2f2;
  --color-bg-alt: #96c9b1;
  --color-acento-1: #bcebdf;
  --color-acento-2: #ade0db;
  --color-texto-principal-i: #5779d6;
  --color-texto-secundario: #555555;
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: 10px;
}

/* ====== SECCIÓN INICIO ====== */
.inicio {
  text-align: center;
  padding: 2.1rem 2rem;
  background: var(--color-bg); /* elegante y profesional */
  color: white;
}

.inicio h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-texto-principal-i);
}

.subtexto {
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--color-texto-secundario);
}

/* ====== GRID DE SECCIONES ====== */
.grid-secciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* ====== TARJETAS ====== */
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  text-decoration: none;
  padding: 2rem;
  border-radius: 1rem;
  color: var(--color-texto-principal);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(102, 178, 165, 0.6) 0%, transparent 70%);
  animation: pulseGlow 1.8s ease-in-out infinite alternate;
  transform: scale(0);
  transition: transform 0.4s ease;
  pointer-events: none;
  z-index: -1;
}

.card:hover::before {
  opacity: 1;
  transform: scale(1);
}

.card:hover {
  transform: translateY(-8px) scale(1.03) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.card.visible {
  opacity: 1;
}

.card[data-index]:nth-child(odd).visible {
  transform: translateY(0);
  animation: slideUp 0.6s ease-out forwards;
}

.card[data-index]:nth-child(even).visible {
  transform: translateY(0);
  animation: slideDown 0.6s ease-out forwards;
}

.card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--color-texto-principal-i);
}

.card p {
  font-family: 'Poppins', sans-serif;
  color: var(--color-texto-secundario);
  font-size: 1rem;
  margin-bottom: 1.6rem;
}

/* ====== CTA FINAL ====== */
.cta-final {
  text-align: center;
  margin: 2.45rem;
}

.cta-final h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--color-texto-principal-i);
}

.boton-folleto {
  font-family: 'Poppins', sans-serif;
  display: inline-block;
  padding: 0.75em 1.5em;
  background: var(--color-btn-bg);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.boton-folleto:hover {
  background: var(--color-btn-hover);
}

.boton-folleto:focus-visible {
  outline: 3px solid var(--color-acento-1);
  outline-offset: 2px;
}

/* ====== SIN JAVASCRIPT AVISO ====== */
.aviso-no-js {
  background: #ffeaea;
  color: #a00;
  text-align: center;
  font-weight: bold;
  padding: 1em;
  border: 2px solid #f88;
}

@keyframes pulseGlow {
  0% {
    background: radial-gradient(circle at center, rgba(102, 178, 165, 0.5) 0%, transparent 70%);
  }
  100% {
    background: radial-gradient(circle at center, rgba(102, 178, 165, 0.65) 0%, transparent 75%);
  }
}

@media screen and (max-width: 480px) {
  .inicio {
    padding: 2rem 1rem;
  }
}

.subtexto {
  color: #444;
}

/* ====== RESPONSIVE ====== */
@media screen and (max-width: 768px) {
  .grid-secciones {
    gap: 1rem;
  }

  .inicio h1 {
    font-size: 2.2rem;
  }

  .cta-final h3 {
    font-size: 1.6rem;
  }
}