/* ==========================
   VARIABLES Y RESET
========================== */
:root {
    /* Un rosa fuerte profesional */
    --primary-color: #ff9cce;
    /* Azul oscuro para contraste */
    --secondary-color: #083d77; 
    /*Blanco Central*/
    --accent-color: #f8f9fa; 
    /*Color de texto grisáceo*/
    --text-color: #333;
    /*Color neutro de fondo*/
    --back-color: #efeaf5;
    
  /**variables de card cursos */
  --color-bg: #f4f2fa;
  --color-surface: #ffffff;
  --color-surface-soft: #faf7ff;

  --color-text-main: #1f1630;
  --color-text-muted: #6b6275;

  --radius-lg: 18px;
  --radius-md: 12px;

  --shadow-sm: 0 10px 25px rgba(0,0,0,0.08);
  --shadow-md: 0 14px 35px rgba(0,0,0,0.12);
    
}

* {
   margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.catalogo-body {
    background-color: var(--back-color);
    color: var(--text-color);
    line-height: 1.6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


/* ==========================
   HERO SECTION
========================== */


/* Asegura que TODO el CSS solo afecte al catálogo */
.catalogo-body {
  font-family: 'montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--color-bg);
  color: var(--color-text-main);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
}

/* ==========================
   HERO CATÁLOGO
========================== */
.catalogo-body .hero--catalogo {
  background: linear-gradient(135deg, #f5ea59, #f189bd); /* Degradado Amarillo/Rosado */
    color: white;
    text-align: center;
    padding: 70px 20px;
    margin-bottom: 50px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.catalogo-body .hero__content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.catalogo-body .hero__title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.catalogo-body .hero__subtitle {
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 28px;
  color: var(--color-text-muted);
}

/* CTA del hero */

.catalogo-body .hero__cta {
    background: #083d77;
    color: #ffffff;
    padding: 12px 22px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
    text-decoration: none;
}

.catalogo-body .hero__cta.hero__cta:hover {
    background: #ff9cce;
    color: #083d77;
}



/* ==========================
   SECCIONES GENERALES
========================== */
.catalogo-body .section {
  padding: 72px 20px;
}

.catalogo-body .section--light {
  background: var(--color-surface);
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 48px 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}



.catalogo-body .section__title {
  font-size: 2rem;
  font-weight: bold;
}

.catalogo-body .section__subtitle {
  color: var(--color-text-muted);
  max-width: 520px;
  margin: 10px auto 0;
}

/* ==========================
   GRID DEL CATÁLOGO
========================== */
.catalogo-body .catalogo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  
}

/* ==========================
   CARDS
========================== */
.catalogo-body .card {
  background: whitesmoke;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: 0.25s ease;
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
}

.catalogo-body .card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.catalogo-body .card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: rgba(96,165,250,0.4);
}


.catalogo-body .card__image {
  width: 100%;
  height: 190px;
  object-fit: cover;
  image-orientation: from-image;
}

.catalogo-body .card__body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.catalogo-body .card__title {
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
}

.catalogo-body .card__description {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: justify;
  padding-top: 20px;
}

.catalogo-body .card__price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-top: auto;
  text-align: center;
}
/* ==========================
   ANIMACIÓN ENTRADA CARDS JS
========================== */
.catalogo-body .curso-card {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  animation: cardFadeUp 0.6s ease forwards;
}

/* Delay automático según orden */
.catalogo-body .curso-card:nth-child(1) { animation-delay: 0.1s; }
.catalogo-body .curso-card:nth-child(2) { animation-delay: 0.2s; }
.catalogo-body .curso-card:nth-child(3) { animation-delay: 0.3s; }
.catalogo-body .curso-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes cardFadeUp {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* ==========================
   BOTÓN DE CARDS (sin afectar navbar)
========================== */
.catalogo-body .card__btn {
  padding: 10px 20px;
  background: var(--color-primary);
  color: #ffffff;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-decoration: none;
  width: fit-content;
  transition: 0.25s ease;
  border-radius: 30px;
}

.btn {
  color: var(--secondary-color);
  margin: 20px;
  padding: 20px;
  border-radius: 30px;
  border-style:unset;
  background-color: var(--back-color);
}

.btn:hover {
  background-color: var(--primary-color);
  color: white;
  cursor: pointer;
}

.catalogo-body .card__btn:hover {
  background: #063a6bb9;
  transform: translateY(-2px);
}


/* ==========================
   RESPONSIVE
========================== */
@media (max-width: 768px) {
  .catalogo-body .section--light {
    margin-inline: 16px;
    padding: 32px 20px;
  }

  .catalogo-body .card__image {
    height: 170px;
  }
}

@media (max-width: 480px) {
  .catalogo-body .hero__title {
    font-size: 1.7rem;
  }

  .catalogo-body .catalogo-grid {
    gap: 20px;
  }
}

/* ==========================
   FIN CSS CATÁLOGO