/* ---------------------------------------------------
   VARIABLES GLOBALES
--------------------------------------------------- */

:root {
  --color-primary: #10b65c;
  --color-primary-dark: #0e9e51;
  --color-accent: #10B65C;
  --color-accent-strong: #000000;
  --color-text: #000000;
  --color-light: #FFFFFF;
  --color-muted: #929292;

  --shadow-soft: 0 6px 18px rgba(0,0,0,0.08);
  --shadow-card: 0 12px 28px rgba(0,0,0,0.10);
  --shadow-strong: 0 12px 32px rgba(0,0,0,0.12);
  --shadow-hover: 0 10px 25px rgba(0,0,0,0.15);

  --transition-base: all .35s ease;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 20px;
}

/* ---------------------------------------------------
   FUENTES
--------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;900&display=swap');

body {
  font-family: 'Montserrat', sans-serif;

}



/* ===================================================================
   ANIMACIONES UNIVERSALES PARA TODAS LAS SECCIONES Y ELEMENTOS
=================================================================== */

/* Animación base: aparece suave (fade + slide) */
@keyframes fadeUp {
  0% {
    opacity: 0.01;
    transform: translateY(25px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aplica animación a cualquier sección */
.reveal {
  opacity: 0.8;
  transform: translateY(6px);
}

.reveal.active {
  animation: fadeUp 0.9s ease forwards;
}


/* Animación para títulos */


h2 {
  font-size: 2rem;
  margin-bottom: 16px;
  color: #222;
  font-weight: 700;
  text-align: center;
}

/* Animación para párrafos */
p {
  max-width: 700px;
  margin: 0 auto 50px;
  font-size: 1.2rem;
  color: #000;
  line-height: 1.6;
} 

a {
  font-size: 1.2rem;
  text-decoration: none;
  color: #10B65C;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
  transition: 0.3s ease, color 0.3s ease;
}

/* Para imágenes */
img {
  opacity: 0.01;
  animation: fadeUp 1.1s ease forwards;
  animation-delay: 0.4s;
}

/* Para botones */
button, .btn {
  opacity: 0.01;
  animation: fadeUp 1.1s ease forwards;
  animation-delay: 0.45s;
}
/* Fondo para cubrir el contenido fixed */
.contenido {
  position: relative;          /* CLAVE */
  background: #e8f7ef;
  padding: 40px 0px 60px;    /* espacio para el SVG */
  overflow: hidden;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  z-index: 9;
}


.contenido::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 0;

  width: 100%;
  height: 100%;

  background-image: url("/static/core/img/background-home.svg");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: cover;

  border-top-left-radius: 20px;
  border-top-right-radius: 20px;

  z-index: 8;
}

.contenido > * {
  position: relative;
  z-index: 10;
}


/* Encuadre de acuerdo al viewport */
@media (max-width: 768px) {
  .contenido {
    padding-top: 2px;
  }
}



/* ===================================================================
   TARJETAS: animación + mismo tamaño + estabilidad visual
=================================================================== */

.card, .tarjeta, .item, .service-card, .curso-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  opacity: 0.01;
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.3s;
}

/* Asegura que el texto dentro de tarjetas no haga crecer una más que otra */
.card p,
.tarjeta p,
.item p,
.service-card p,
.curso-card p {
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 8;   /* ← Ajusta cuántas líneas quieres */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}



/* ===================================================================
   APARICIÓN SECUENCIAL (efecto escalonado)
=================================================================== */

.fade-seq > * {
  opacity: 0.01;
  transform: translateY(20px);
  animation: fadeUp 0.9s ease forwards;
}

.fade-seq > *:nth-child(1) { animation-delay: 0.1s; }
.fade-seq > *:nth-child(2) { animation-delay: 0.2s; }
.fade-seq > *:nth-child(3) { animation-delay: 0.3s; }
.fade-seq > *:nth-child(4) { animation-delay: 0.4s; }
.fade-seq > *:nth-child(5) { animation-delay: 0.5s; }



/* ===================================================================
   OPCIONAL: Animación suave al hacer hover (sin modificar tu diseño)
=================================================================== */
.card:hover,
.tarjeta:hover,
.item:hover,
.service-card:hover,
.curso-card:hover {
  transform: translateY(-6px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
