/*
Theme Name: Astra Child
*/

/* =========================
   GLOBAL
========================= */

.elementor-button {
  border-radius: 10px;
  padding: 14px 26px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.elementor-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

section {
  margin-bottom: 80px;
}

/* =========================
   HEADER
========================= */

.site-primary-header-wrap {
  background: #ffffff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  position: sticky;
  top: 0;
  z-index: 999;
}

.main-header-menu .menu-link {
  transition: all 0.2s ease;
}

.main-header-menu .menu-link:hover {
  color: #6FA9B4;
}

/* quitar espacio arriba */
.home .ast-separate-container #primary {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* =========================
   HERO
========================= */

.elementor-element-0328298 {
  border-top: 2px solid #5aa7bb;
  background: linear-gradient(180deg, #eef6f8 0%, #d9ebf0 100%);
}

.elementor-element-2370137 img {
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.18);
}

/* HERO — CARD SUTIL IZQUIERDA */

.elementor-element-7c0d30e {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);

  padding: 40px;
  border-radius: 18px;

  /* sombra elegante (no pesada) */
  box-shadow:
    0 20px 50px rgba(0,0,0,0.08),
    0 5px 10px rgba(0,0,0,0.04);

  /* borde muy fino premium */
  border: 1px solid rgba(255,255,255,0.4);

  transition: all 0.3s ease;
}

/* hover MUY sutil (pro, no exagerado) */
.elementor-element-7c0d30e:hover {
  transform: translateY(-2px);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.12),
    0 10px 20px rgba(0,0,0,0.06);
}

.elementor-element-7c0d30e {
  background: linear-gradient(
    to right,
    rgba(240,244,246,0.04),
    rgba(240,244,246,0.01),
    rgba(240,244,246,0)
  );
  padding: 60px 40px;
  border-left: 3px solid rgba(255,255,255,0.4);
  border-top: none;
  border-right: none;
  border-bottom: none;
  box-shadow: none;
}

/* =========================
   QUÈ OFERIM
========================= */

.elementor-element-3a1dfb4 {
  background: linear-gradient(180deg, #ffffff 0%, #f6fbfd 100%);
  padding: 80px 0;
}

/* contenedor */
.elementor-element-77eaaed {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

/* cards */
.elementor-element-f99d5bc,
.elementor-element-84bff93,
.elementor-element-187600d {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 30px;
  flex: 1;

  box-shadow: 
    0 10px 30px rgba(0,0,0,0.04),
    0 1px 2px rgba(0,0,0,0.06);

  border: 1px solid rgba(0,0,0,0.04);

  transition: all 0.35s ease;
}

.elementor-element-f99d5bc:hover,
.elementor-element-84bff93:hover,
.elementor-element-187600d:hover {
  transform: translateY(-10px) scale(1.02);

  box-shadow: 
    0 30px 60px rgba(0,0,0,0.08),
    0 10px 20px rgba(113,190,209,0.15);

  border-color: rgba(113,190,209,0.25);
}

/* icono */
.hfe-icon {
  background: linear-gradient(135deg, #71bed1, #5aa6b8);
  color: white;
  padding: 16px;
  border-radius: 14px;
  font-size: 18px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.elementor-element-f99d5bc:hover .hfe-icon,
.elementor-element-84bff93:hover .hfe-icon,
.elementor-element-187600d:hover .hfe-icon {
  transform: rotate(-5deg) scale(1.1);
}

/* listas */
.elementor-icon-list-text {
  color: #555;
  line-height: 1.5;
}

.elementor-icon-list-icon {
  color: #71bed1;
}

/* =========================
   ÚLTIMES INSCRIPCIONS
========================= */

.elementor-element-0d74e3c {
  border-top: 2px solid #5aa6b8;
}

/* =========================
   CTA MATRÍCULA — BOTÓN PRO
========================= */

.cta-link-wrapper {
  display: block;
  text-decoration: none;
}

/* BLOQUE */
#cta-inscripciones {
  max-width: 900px;
  margin: 0 auto;

  padding: 40px 40px; /* 👈 más compacto = más botón */
  border-radius: 18px;

  /* 👇 MÁS OSCURO = contraste real */
  background: linear-gradient(
    135deg,
    #5aa6b8,
    #3f7f8f
  );

  border: 2px solid #1b3a44;

  text-align: center;

  box-shadow: 
    0 15px 35px rgba(0,0,0,0.15);

  transition: all 0.25s ease;
}

/* HOVER = CTA REAL */
.cta-link-wrapper:hover #cta-inscripciones {
  transform: translateY(-4px) scale(1.01);

  background: linear-gradient(
    135deg,
    #6bb7c9,
    #4f95a8
  );

  box-shadow: 
    0 25px 50px rgba(0,0,0,0.2);
}

/* TEXTO MÁS “BOTÓN” */
#cta-inscripciones h2 {
  color: #ffffff;
  font-size: 24px; /* 👈 más compacto */
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

/* SUBTEXTO MÁS CTA */
#cta-inscripciones h4 {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 400;
  margin: 0;
}

/* QUITAMOS DECORACIONES DE SECCIÓN */
#cta-inscripciones::after {
  display: none;
}

/* =========================
   CTA FINAL (VINE A PROVAR)
========================= */

.elementor-element-bccc9ad {
  position: relative;
  padding: 120px 20px;
  text-align: center;

  background: linear-gradient(135deg, #71bed1, #5aa6b8);
  color: white;

  overflow: hidden;
}

/* glow sutil */
.elementor-element-bccc9ad::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: rgba(255,255,255,0.15);
  filter: blur(80px);
}

/* título */
.elementor-element-bccc9ad h2 {
  font-size: 40px;
  color: white;
  margin-bottom: 20px;
}

/* texto */
.elementor-element-050ebe6 p {
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* botón FINAL CORREGIDO */
.elementor-element-7d2c8de .elementor-button {
  background: rgba(255,255,255,0.95);
  color: #2f4f5a;

  padding: 16px 32px;
  border-radius: 12px;

  font-weight: 600;

  box-shadow: 0 10px 25px rgba(0,0,0,0.15);

  transition: all 0.25s ease;
}

.elementor-element-7d2c8de .elementor-button:hover {
  background: #ffffff;
  color: #1f2a37;

  transform: translateY(-2px) scale(1.02);

  box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* =========================
   GRID INSCRIPCIONES
========================= */

.inscripciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin-top: 60px;
}

.inscripciones-grid > * {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.inscripciones-grid > *:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.12);
}

.inscripciones-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

/* =========================
   FOOTER
========================= */

footer {
  background: #0f1f23;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  padding: 60px 20px;
}

footer a {
  color: #a0c4cc;
  text-decoration: none;
  font-size: 14px;
}

footer a:hover {
  opacity: 0.7;
}

footer p {
  color: #7faeb8;
  font-size: 13px;
  margin-top: 10px;
}

/* 1. Quitar cualquier subrayado posible */
.ast-header-button-1 a,
.ast-header-button-1 .menu-link,
.ast-header-button-1 .ast-custom-button-link {
  text-decoration: none !important;
  border-bottom: none !important;
}

/* 2. Quitar la línea fake de Astra */
.ast-header-button-1 .menu-link::after {
  display: none !important;
}

/* 3. Ocultar el link duplicado */
.ast-header-button-1 .menu-link {
  display: none !important;
}

/* 4. Asegurar que el botón no hereda estilos raros */
.ast-custom-button {
  text-decoration: none !important;
}

/* =========================
   LISTING INSCRIPCIONES FIX
========================= */

.listing-item {
  background: #ffffff;
  border-radius: 16px;

  padding: 16px; /* 👈 aire interno */

  box-shadow: 
    0 10px 25px rgba(0,0,0,0.06);

  transition: all 0.3s ease;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* hover pro */
.listing-item:hover {
  transform: translateY(-6px);
  box-shadow: 
    0 20px 40px rgba(0,0,0,0.12);
}

/* imagen */
.listing-item .image img {
  border-radius: 12px;
  width: 100%;
  height: auto;
}

/* título */
.listing-item .title {
  font-size: 18px;
  font-weight: 600;
  color: #1f2a37;
  text-decoration: none;
}

/* quitar subrayado */
.listing-item .title:hover {
  text-decoration: none;
  opacity: 0.8;
}

/* texto */
.listing-item .content p {
  font-size: 14px;
  color: #555;
  margin: 0;
}

@media (max-width: 768px) {

  /* HERO CONTAINER (quita aire arriba/abajo) */
  .elementor-element-0328298 {
    padding-top: 20px !important;
    padding-bottom: 10px !important;
  }

  /* INNER (pegar todo) */
  .elementor-element-0328298 .e-con-inner {
    gap: 10px !important;
  }

  /* CARD */
  .elementor-element-7c0d30e {

    padding: 20px 16px !important;

    border-radius: 18px;

    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(4px);

    box-shadow: 0 10px 30px rgba(0,0,0,0.06);

    margin: 0 auto;
  }

  /* TÍTULO (más pequeño) */
  .elementor-element-aaff18d h1 {
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 10px;
  }

  /* TEXTO (más compacto) */
  .elementor-element-e43658c p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 18px;
  }

  /* CONTENEDOR BOTONES */
  .elementor-element-8e6b196 {
    gap: 10px;
  }

  /* BOTONES MÁS COMPACTOS */
  .elementor-element-689e911 .elementor-button,
  .elementor-element-33eb294 .elementor-button {

    width: 75%;
    max-width: 240px;

    padding: 12px 16px;
    font-size: 14px;

    border-radius: 10px;
  }

  /* IMAGEN MÁS PEGADA */
  .elementor-element-7a37f83 {
    margin-top: 10px !important;
  }

}

.elementor-element-7c0d30e {
  opacity: 0;
  transform: translateY(20px);

  animation: fadeBlock 0.8s ease forwards;
  animation-delay: 0s; /* 👈 aparece primero */
}

.elementor-element-7c0d30e h1 {
  opacity: 0;
  transform: translateY(20px);

  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.8s; /* 👈 ESPERA */
}

.elementor-element-7c0d30e p {
  opacity: 0;
  transform: translateY(20px);

  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1.2s;
}

.elementor-element-7c0d30e .elementor-button-wrapper {
  opacity: 0;
  transform: translateY(20px);

  animation: fadeUp 0.8s ease forwards;
  animation-delay: 1.3s;
}

@keyframes fadeBlock {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   CHINCHETA COMPLETA REALISTA
========================= */

#cta-inscripciones {
  position: relative;
  transform: rotate(-1deg);
  transform-origin: top center;
}

/* CABEZA */
#cta-inscripciones::before {
  content: "";

  position: absolute;
  top: -10px;
  left: 52%;

  width: 22px;
  height: 22px;
  border-radius: 50%;

  background: radial-gradient(
    circle at 30% 30%,
    #ffb3b3 0%,
    #ff5c5c 40%,
    #e53935 70%,
    #8e0000 100%
  );

  box-shadow:
    0 4px 8px rgba(0,0,0,0.3),
    inset 3px 3px 5px rgba(255,255,255,0.5),
    inset -3px -4px 6px rgba(0,0,0,0.4);

  transform: translateX(-50%);
  z-index: 4;
}

/* CUELLO (parte roja que baja) */
#cta-inscripciones::after {
  content: "";

  position: absolute;
  top: -2px;
  left: 52%;

  width: 8px;
  height: 14px;
  border-radius: 4px;

  background: linear-gradient(
    to bottom,
    #ff6f6f,
    #c62828
  );

  transform: translateX(-50%);
  z-index: 3;

  box-shadow:
    inset 1px 1px 2px rgba(255,255,255,0.3),
    inset -1px -2px 3px rgba(0,0,0,0.3);
}

/* AGUJA (con otro pseudo vía child hack) */
#cta-inscripciones span::after {
  content: "";

  position: absolute;
  top: 8px;
  left: 52%;

  width: 2px;
  height: 36px;

  background: linear-gradient(
    to bottom,
    #eeeeee 0%,
    #9e9e9e 50%,
    #5f5f5f 100%
  );

  transform: translateX(-50%) rotate(18deg);
  transform-origin: top center;
  opacity: 0.9; /* más visible */

  box-shadow: 0 2px 3px rgba(0,0,0,0.25);

  z-index: 2;
}

/* HERO BOTONES MÁS OSCUROS */
.elementor-element-689e911 .elementor-button,
.elementor-element-33eb294 .elementor-button {

  background: linear-gradient(
    135deg,
    #5aa6b8,
    #4b97a8
  ); /* 👈 un poco más oscuro */

  color: #ffffff;

  box-shadow: 
    0 6px 15px rgba(0,0,0,0.15);
}

/* HOVER MÁS PRO */
.elementor-element-689e911 .elementor-button:hover,
.elementor-element-33eb294 .elementor-button:hover {

  background: linear-gradient(
    135deg,
    #6bb7c9,
    #5aa6b8
  );

  transform: translateY(-2px);
}

.single-inscripciones #primary-site-navigation-desktop,
.single-inscripciones .main-header-bar-navigation,
.single-inscripciones .ast-builder-menu-1 {
  display: none !important;
}

.turbo-footer-template {
	margin-top: 50px !important;
}

.elementor-element-f47cae0,
.elementor-element-9fb25a4,
.elementor-element-0263206,
.elementor-element-0ac07f9 {
  transition: all 0.3s ease;
}

.elementor-element-f47cae0:hover,
.elementor-element-9fb25a4:hover,
.elementor-element-0263206:hover,
.elementor-element-0ac07f9:hover {
  transform: scale(1.05);
  z-index: 2;
}

.elementor-heading-title a {
  position: relative;
  text-decoration: none;
}

.elementor-heading-title a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

.elementor-heading-title a:hover::after {
  width: 100%;
}