@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;700&display=swap");

:root {
  --color-primary: #57178b;
  --color-secundary: #ffffff;
  --color-btn: #57178b;
  --color-btn2: #ffd700;
  --text-btn: #fff;
  --align-title: left;
  --padding-container: 100px 0;
  --width-container: 90%;
  --max-width-container: 1200px;

  --padding-btn: 20px 35px;
  --height-shape: 18em;
}

body {
  font-family: "Ancizar Serif", serif;
  font-optical-sizing: auto;
  font-weight: weight;
  font-style: normal;
}

.buttons {
  margin-top: 2.3em;
  display: flex;
  flex-direction: column;
  gap: 2em;
  text-align: center;
  border-radius: 20%;
}

.buttons__cta {
  background-color: #ffd700;
  color: #fff;
  text-decoration: none;
  border-radius: 2em;
  font-weight: 600;
  padding: 1em 0;
  box-shadow: 0 0 10px -5px var(--strong-cyan);
}

.buttons__cta--blue {
  box-shadow: 0 0 10px -5px var(--color-btn2);
  background-color: var(--color-btn2);
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: var(--padding-container);
}

.background-clip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0000008c 0%, #0000008c 100%);
  z-index: -1;
}

.hero {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 800px;
  position: relative;
  display: grid;
  grid-template-rows: 100px 1fr;
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%),
    url("//assets/video.mp4");
  background-size: cover;

  z-index: -1;
}
/* formas-pago*/
.formas-pago {
  background-color: #111827;
  color: #fff;
  padding: 4rem 2rem;
  text-align: center;
}

.titulo__formas-pago {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
  color: #facc15;
}

.contenedor-pagos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.pago-opcion {
  background-color: #1f2937;
  border: 2px solid #facc15;
  padding: 1rem;
  border-radius: 1rem;
  width: 150px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.pago-opcion:hover {
  transform: scale(1.05);
}

.pago-opcion img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.pago-opcion p {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.modal-pago {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.modal-contenido {
  background-color: #fff;
  margin: auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.cerrar {
  position: absolute;
  right: 20px;
  top: 10px;
  font-size: 28px;
  color: #333;
  cursor: pointer;
}

.qr-img {
  margin-top: 15px;
  width: 180px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/* Nav */

.nav {
  --padding-container: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav__title {
  font-weight: 300;
}

.nav__link {
  margin-left: auto;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  gap: 2em;
}

.nav__items {
  list-style: none;
}

.nav__links {
  color: #fff;
  text-decoration: none;
}

.nav__menu {
  margin-left: auto;
  cursor: pointer;
  display: none;
}

.nav__img {
  display: block;
  width: 30px;
}

.nav__logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  position: relative;
}

.nav__logo-img img,
.nav__icon {
  width: 100px;
  height: auto;
  object-fit: contain;
}

/* Opcional: Espaciado alrededor del logo */
.nav__logo-img {
  margin-bottom: 4px;
}

.nav__close {
  display: var(--show, none);
}

.redes-sociales {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.redes-sociales img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.redes-sociales img:hover {
  transform: scale(1.1);
}

.redes_s {
  color: floralwhite;
}

/* Hero container */

.hero__container {
  max-width: 800px;
  --padding-container: 0;
  display: grid;
  grid-auto-rows: max-content;
  align-content: center;
  gap: 1em;
  padding-bottom: 100px;
  text-align: center;
}

.hero__title {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
  margin-bottom: 1rem;
  word-wrap: break-word; /* 🔑 Rompe texto largo si es necesario */
  overflow-wrap: break-word; /* 🔑 Compatibilidad amplia */
  white-space: normal; /* 🔑 Permite saltos de línea */
  padding: 0 1rem;
}

.hero__paragraph {
  font-size: 1.2rem;
  color: #fff;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 1rem;
  line-height: 1.6;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 1rem; /* Espacio entre botones */
  flex-wrap: wrap; /* Permite que se ajusten en pantallas pequeñas */
}

.buttons__cta {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  text-decoration: none;
  color: #57178b;
  background-color: var(--color-btn2);
  border-radius: 0.5rem;
  transition: background-color 0.3s;
  display: inline-block;
}

.buttons__cta--blue {
  background-color: var(--color-primary);
}

/* Main */

.main {
  background: #fff;
}

.title {
  font-size: 2.5rem;
  text-align: var(--align-title);
  color: var(--color-title);
}

.title--border::after {
  content: "";
  display: block;
  width: 100px;
  margin-top: 20px;
  height: 4px;
  background-color: var(--color-primary);
}

/* Instrcutor */

.instructor {
  text-align: center;
  border-bottom: 2px solid #57178b;
  --padding-container: 30px 0 60px;
}

.instructor__container {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
  color: #fff;
  word-wrap: break-word; /* 🔑 Evita corte de texto */
  overflow-wrap: break-word; /* 🔑 Evita corte de texto */
}

.instructor__name {
  margin: 20px 0;

  margin-bottom: 0.5rem;
}

.instructor__tag {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  white-space: normal;
}

.instructor__paragraph {
  text-align: left;
  line-height: 1.5;
  font-style: italic;
  color: #615a5a;
}

.instructor__img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
}

.conexion-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem;
  max-width: 1300px;
  margin: auto;
  text-align: center;
}

.titulo-centro {
  width: 100%;
}

.titulo {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #2c2c2c;
}

.contenido-texto {
  flex: 1 1 30%;
  min-width: 280px;
  text-align: left;
}

.descripcion {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
}

.mensaje-destacado {
  border-left: 5px solid #ffd700;
  padding: 1rem 1.5rem;
  margin: 2rem auto;
  font-size: 1.2rem;
  font-weight: bold;
  max-width: 800px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(240, 14, 248, 0.774);
}
.botones-centro {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.btn {
  padding: 0.8rem 1.5rem;
  border: 2px solid #57178b;
  background-color: transparent;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  width: 200px;
  text-align: center;
}

.btn:hover {
  background-color: #ffd700;
  color: #57178b;
}

.contenido-imagen {
  flex: 1 1 30%;
  text-align: center;
}

.contenido-imagen img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 992px) {
  .conexion-container {
    flex-direction: column;
    text-align: center;
  }

  .contenido-texto {
    text-align: center;
  }

  .contenido-texto,
  .botones-centro,
  .contenido-imagen {
    flex: 1 1 100%;
  }
}

.texto {
  flex: 1 1 50%;
  min-width: 280px;
}

.titulo {
  font-size: 2em;
  margin-bottom: 1em;
  color: #57178b;
}

.descripcion {
  font-size: 1.1em;
  line-height: 1.6;
  color: #444;
}

.seccion__planes {
  background: #f3f0ff;
  padding: 3rem 2rem;
  text-align: center;
}

.titulo__planes {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: #57178b;
}

.contenedor__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2rem;
}

.card__plan {
  background-color: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card__plan:hover {
  transform: translateY(-5px);
}

.plan__nombre {
  font-size: 1.2rem;
  color: #57178b;
  margin-bottom: 1rem;
}

.precio__cop,
.precio__usd,
.precio__mxn {
  font-size: 1rem;
  color: #444;
  margin: 0.3rem 0;
}

.btn__comprar {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #ffd700;
  color: #57178b;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn__comprar:hover {
  background-color: #57178b;
  transform: scale(1.05);
}

.zona-ferial {
  padding: 3em 1em;
  text-align: center;
  max-width: 1200px;
  margin: auto;
}

.subtitle__info {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  color: #57178b;
}

.subtitle__intro {
  font-size: 1.5em;
  margin-bottom: 1em;
  color: #333;
}
.subtitle__info_poenentes {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  color: #57178b;
}
.subtitle__info_CARDS {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  color: #57178b;
}
.subtitle__intro_ponentes {
  font-size: 1.5em;
  margin-bottom: 1em;
  color: #302f2f;
}

.description,
.experience {
  font-size: 1em;
  line-height: 1.6;
  margin: 0 auto 2em;
  max-width: 800px;
  color: #444;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5em;
  padding: 0 1em;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 1.5em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

.card h5 {
  font-size: 1.2em;
  color: #070707;
  margin-bottom: 0.5em;
}

.cards__des {
  font-size: 0.95em;
  color: #ffffff;
}

@media (max-width: 768px) {
  .subtitle__info {
    font-size: 2em;
  }
  .subtitle__intro {
    font-size: 1.2em;
  }
  .description,
  .experience {
    font-size: 0.95em;
  }
}

/* Card */

.card {
  background: #ffd700;
}
.cards2 {
  background: #724ae0c0;
}

.card__copy {
  margin-top: 20px;
}

.card__container {
  width: 99%;
  margin: 0 auto;
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 20px;
  grid-template-areas:
    ".      card1   .    "
    "card2  card1   card3"
    "card2  card4   card3"
    ".      card4   .   ";
}

.card__item {
  padding: 20px;
  background: #ffffffc2;
  border-top: 5px solid #9d39fa;
  box-shadow: 0 0 3px rgba(14, 13, 13, 0.87);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card__img {
  background: var(--color-secundary);
  margin-top: 20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card__title {
  margin: 20px 0;
  font-size: 1.5rem;
  color: rgb(12, 12, 11);
}

.card__paragraph1 {
  font-weight: 300;
  margin-bottom: 20px;
  color: rgb(12, 12, 11);
}

.card__item:nth-last-of-type(1) {
  grid-area: card1;
}

.card__item:nth-last-of-type(2) {
  grid-area: card2;
}

.card__item:nth-last-of-type(3) {
  grid-area: card3;
}

.card__item:nth-last-of-type(4) {
  grid-area: card4;
}

/* about */

.about {
  display: grid;
  grid-template-columns: 5fr 4fr;
  place-items: center;
}

.about__course {
  width: 90%;
}

.about__paragraph {
  margin: 20px 0;
  line-height: 1.5;
  font-weight: 300;
}

.about__picture {
  text-align: center;
}

.about__img {
  width: 95%;
}

.popup-card {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.7s ease;
}

.popup-content {
  background-color: #fff8e1;
  padding: 2rem;
  border-radius: 20px;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 0 20px gold;
  position: relative;
  font-family: "Arial", sans-serif;
}

.popup-content h2 {
  color: #a67300;
  margin-bottom: 10px;
}

.popup-content p {
  color: #4a4a4a;
  font-size: 1rem;
}

.popup-btn {
  display: inline-block;
  margin-top: 15px;
  background-color: gold;
  color: black;
  padding: 10px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.popup-btn:hover {
  background-color: #ffcc00;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #333;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* course */

.course {
  --color-title: #fff;
  --color-btn: #fff;
  --text-btn: #9d39fa;
  color: var(--color-title);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  /* align-items: center; */
}

.course__about {
  z-index: 100;
  align-self: center;
  width: 97%;
  margin: 0 auto;
  padding: 30px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  background: var(--color-primary);
  grid-column: 1/4;
  grid-row: 2/-2;
}

.course__picture {
  margin: 0;
  grid-column: 3/-1;
  grid-row: 1/-1;
}

.course__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course__picture--right {
  grid-column: 1/4;
}

.course__about--left {
  grid-column: 3/-1;
}

/* Footer */

.footer {
  position: relative;
  --padding-container: 160px 0 50px;
}

.footer::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100px;
  background: #fff;
  top: 0;
  left: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.footer__contact {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  place-items: center;
  margin-bottom: 30px;
}

.footer__copy {
  margin: 20px 0;
  font-weight: 300;
}

.footer__social {
  display: flex;
  padding-top: 30px;
  flex-wrap: wrap;
}

.footer__link {
  width: 60px;
  height: 60px;
  border: 1px solid #000;
  border-radius: 50%;
  margin-right: 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer__icon {
  width: 30px;
}

.footer__picture {
  margin: 0;
}

.footer__img {
  width: 100%;
}

.footer__copyright {
  padding-top: 30px;
  border-top: 2px solid #918484;
  text-align: center;
}

.footer__copyright::after {
  content: " ";
}

.float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
}
.float:hover {
  text-decoration: none;
  color: #fff;
  background-color: #1ab152;

  animation: shake 1s;

  animation-iteration-count: infinite;
}

.my-float {
  margin-top: 16px;
}

.nav__link--menu {
  position: fixed;
  background-color: #000;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: 0.7s opacity;
}

.nav__link--show {
  --show: block;
  opacity: 1;
  pointer-events: unset;
}

.nav__close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 30px;
  cursor: pointer;
}

.hero__title {
  font-size: 2.5rem;
}

@media screen and (max-width: 768px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__paragraph {
    font-size: 1rem;
  }
}

/* ✅ Responsivo para pantallas <= 480px */
@media screen and (max-width: 480px) {
  .hero__title {
    font-size: 1.6rem;
  }

  .hero__paragraph {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --height-shape: 14em;
  }

  /* Quite el height y limite el width de la imagen */

  /* About */

  .about {
    grid-template-columns: 1fr;
    grid-template-rows: max-content 1fr;
    gap: 80px;
  }

  .about__course {
    width: 100%;
  }

  .about__picture {
    order: -1;
  }

  .about__img {
    width: 100%;
  }

  /* Card */

  .card__container {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 15px;
    grid-template-areas:
      "card1      ."
      "card1  card2"
      "card3  card2"
      "card3  card4"
      ".      card4";
  }

  /* Course */

  .course {
    grid-template-columns: repeat(6, 1fr);
  }

  .course__about {
    grid-column: 1/6;
  }

  .course__about--left {
    grid-column: 2/-1;
  }

  .course__picture {
    grid-column: 2/-1;
  }

  .course__picture--right {
    grid-column: 1/6;
  }

  .footer__contact {
    grid-template-columns: 1fr;
  }

  .footer__texts {
    order: 1;
    --align-title: center;
  }

  .footer__social {
    justify-content: space-evenly;
  }
}

@media screen and (max-width: 500px) {
  :root {
    --padding-btn: 20px 0;
  }

  .title {
    font-size: 2rem;
  }

  .cta {
    display: block;
  }

  /* About */

  .about {
    gap: 40px;
  }

  .about__course {
    width: 100%;
  }

  /* Card */

  .card__container {
    width: 97%;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    grid-template-areas:
      "card1"
      "card2"
      "card3"
      "card4";
  }

  /* Course */

  .course {
    grid-template-columns: 1fr;
    --padding-container: 80px 0 30px;
  }

  .course--modifier {
    --padding-container: 0 0 80px;
  }

  .course__about {
    padding: 20px 20px;
    width: 95%;
    grid-column: 1/-1;
    grid-row: 1/-1;
  }

  .course__picture {
    display: none;
  }
}

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

  .instructor__img {
    width: 180px;
    height: 180px;
  }

  .instructor__name {
    font-size: 1.6 rem;
  }

  .instructor__tag {
    font-size: 1rem;
  }

  .instructor__paragraph {
    font-size: 1rem;
  }
}

/* ✅ Móviles más pequeños (480px o menos) */
@media screen and (max-width: 480px) {
  .instructor__container {
    padding: 1.5rem 1rem;
  }

  .instructor__img {
    width: 150px;
    height: 150px;
  }

  .instructor__name {
    font-size: 1.4rem;
  }

  .instructor__tag {
    font-size: 0.95rem;
  }

  .instructor__paragraph {
    font-size: 0.95rem;
  }
}

/* Opcional: Estilo cuando se apilan en pantallas pequeñas */
@media screen and (max-width: 480px) {
  .buttons {
    flex-direction: column;
    align-items: center;
  }

  .buttons__cta {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }
}
