
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  background-color: #000000;
  font-family:  'Nunito Sans';
  color: #1D1D1D;
}

.portada {
  width: 100%;
  margin: 50px auto 0 auto;
  overflow: hidden;
  background-image: url('imagenes/logo.jpeg');
  background-size: cover;
  background-position: center;
  min-height: 80vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.portada::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.portada .overlay {
  position: relative;
  z-index: 2;
}



/* --------- GRID DESTACADA --------- */
.grid-destacada {
  padding: 40px 20px;
  text-align: center;
  background-color: #934156;
}

.grid-destacada .bloque-texto {
  text-align: center;
  padding: 30px 30px 30px 30px;
  background-color: #934156;
}

.grid-destacada .bloque-texto p {
  font-size: 2rem;
  font-weight: 500;
  font-family: "Comfortaa", sans-serif;
  color: #EDE2E2;
  letter-spacing: 3px;
  line-height: 1.5;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}


/* --------- CAROUSEL --------- */
.carousel-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  background-color: rgb(211, 178, 178);
  padding: 60px 0;
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
  will-change: transform;
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track .item {
  flex: 0 0 33.3333%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 0.05px;
  box-sizing: border-box;
  
}

.carousel-track .item img {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  
}
.carousel-track .item .image-wrapper {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
}

.carousel-track .item .image-wrapper img {
  width: 130%;
  height: 130%;
  object-fit: cover;
  position: absolute;
  top: -15%;
  left: -15%;
}


.carousel-track .item img:hover {
  transform: scale(1.40);
}

.carousel-track .item p {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 10px 0 0;
  color: #934156;
  font-family: "Comfortaa", sans-serif;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #934156;
  color: white;
  border: none;
  font-size: 2rem;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 6px;
  z-index: 1;
}

.carousel-btn.left {
  left: 10px;
}

.carousel-btn.right {
  right: 10px;
}

/* --------- UBICACIÓN --------- */
.ubicacion {
  background-color: rgb(211, 178, 176);
  padding: 80px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  text-align: center;
}

.ubicacion .contenido-ubicacion {
  max-width: 500px;
}

.ubicacion h3 {
  font-family: 'Marquette', cursive;
  color: #1D1D1D; /*cambiar letra*/
  font-size: 4rem;
  color: #934156;

}

.ubicacion p {
  font-size: 1.3rem;
  color: #1D1D1D;
  line-height: 1.6;
}

.mapa-embebido {
  width: 100%;        /* Ocupa todo el ancho disponible */
  max-width: 400px;   /* Máximo ancho reducido */
  height: auto;       /* altura automática para mantener proporción */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-left: 0;     /* quitar margen para evitar desplazamiento */
}

.mapa-embebido img {
  width: 100%;
  max-width: 500px;
  height: auto;
  max-height: 500px;
  display: block;
  border-radius: 20px;
  object-fit: cover;
}
.btn-mapa {
  background-color: #934156;
  color: #EDE2E2;
  padding: 14px 28px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-mapa:hover {
  background-color: #e0356b;
  color: white;
}

/* CONTACTO */
.contacto {
  background-color: #934156;
  padding: 80px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: right;
  text-align: center;
}

.contacto .contenido-contacto {
  max-width: 500px;
}

.contacto h2 {
  font-family: "Comfortaa", sans-serif;;
  font-size: 2.6rem;
  font-weight: 600;
  color: #fff3f3;
  margin-bottom: 20px;
}



.contacto p {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 10px;
}
/* --------- IR A CURSOS --------- */
.aprender {
  background-color: rgb(237, 226, 226);
  padding: 80px 20px;
}

.aprender img {
  margin-top: 10%;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  max-width: 100%;
  margin-left: 15%;
  height: 500px; /* <-- altura fija para que quede cuadrada */
  width: 500px;
  object-fit: cover;
  margin-bottom: 20px;
}

.aprender h2 {
  font-size: 4rem;
  font-weight: 600;
  color: #934156;
  margin-bottom: 10px;
  margin-left: 1%;
  font-family: "Comfortaa", sans-serif;
  
}

.aprender h5 {
  font-family: 'Marquette', cursive;
  font-size: 4rem;
  color:#934156;
  margin-bottom: 20px;
}

.aprender p {
  font-size: 1.2rem;
  color:#934156;
  margin-bottom: 30px;
  line-height: 1.6;
}

.aprender .btn {
  background-color: #934156;
  color: white;
  padding: 14px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.aprender .btn:hover {
  background-color: #e0356b;
  color: white;
}


/* giftcards */
.giftcard-section {
  position: relative;
  background-color: #934156;
  color: #F4E7E7;
  padding: 120px 20px;
  text-align: center;
  font-family: 'Comfortaa', sans-serif;
  overflow: visible;
}

.giftcard-contenido {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.giftcard-texto {
  position: absolute;
  top: 0;
  left: 45%;
  top: 32%;
  transform: translateX(-30%);
  font-family: 'Marquette', cursive;
  font-size: 7rem;
  color: #E2B5B5;
  margin: 0;
  pointer-events: none;
  z-index: 3;
  user-select: none;
}

.giftcard-contenido h2 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  color: #F4E7E7;
  position: relative;
  z-index: 1;
}

.giftcard-contenido p {
  font-size: 1rem;
  color: #F8EDEE;
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
  margin-top: 20%;
  
}

.btn-giftcard {
  background-color: transparent;
  border: 2px solid #F4E7E7;
  color: #F4E7E7;
  padding: 10px 30px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
  z-index: 2;
}

.btn-giftcard:hover {
  background-color: #F4E7E7;
  color: #934156;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .giftcard-section {
    padding: 80px 15px;
  }
  
  .giftcard-texto {
    font-size: 6rem;
    left: 45%;
    transform: translateX(-50%);
  }
  
  .giftcard-contenido h2 {
    font-size: 3rem;
  }
  
  .btn-giftcard {
    padding: 8px 25px;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .giftcard-section {
    padding: 80px 15px;
  }
  
  .giftcard-texto {
    font-size: 6rem;
    left: 50%;
    transform: translateX(-50%);
  }
  
  .giftcard-contenido h2 {
    font-size: 3rem;
  }
  
  .btn-giftcard {
    padding: 8px 25px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .giftcard-section {
    padding: 60px 10px;
  }
  
  .giftcard-texto {
    font-size: 4rem;
    left: 55%;
    transform: translateX(-60%);
  }
  
  .giftcard-contenido h2 {
    font-size: 2.4rem;
  }
  
  .giftcard-contenido p {
    font-size: 0.9rem;
  }
  
  .btn-giftcard {
    padding: 6px 20px;
    font-size: 0.85rem;
  }
}

@media (max-width: 370px) {
  .giftcard-section {
    padding: 60px 10px;
  }
  
  .giftcard-texto {
    font-size: 4rem;
    left: 55%;
    transform: translateX(-60%);
  }
  
  .giftcard-contenido h2 {
    font-size: 2rem;
  }
  
  .giftcard-contenido p {
    font-size: 0.9rem;
  }
  
  .btn-giftcard {
    padding: 6px 20px;
    font-size: 0.85rem;
  }
}


/* --------- MEDIA QUERIES RESPONSIVE --------- */

/* Para móviles (pantallas menores a 600px) */
@media (max-width: 600px) {
  .portada {
    min-height: 40vh;
  }
.grid-destacada .bloque-texto p {
  font-size: 0.8rem;
  padding: 0 5%;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.7;
}
  .grid-destacada2 .imagenes {
    gap: 30px;
    padding: 20px 0;
  }
  .grid-destacada2 .imagenes img {
    width: 200px;
    height: 200px;
  }
  .carousel-track .item {
    flex: 0 0 100%;
  }
  .carousel-track .item img {
    width: 180px;
    height: 180px;
  }
    .carousel-btn {
    padding: 6px 12px;
    font-size: 1.8rem;
  }
  .cards {
    flex-direction: column;
    align-items: center;
  }
  .card {
    width: 90%;
    min-width: unset;
  }
  .ubicacion {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }
    .ubicacion h3 {
      font-size: 3.5rem;
  }
  .ubicacion .contenido-ubicacion {
    max-width: 100%;
  }
  .mapa-embebido {
    height: auto;
    max-width: 100%;
  }
  .contacto {
    flex-direction: column;
    padding: 40px 20px;
    text-align: center;
  }
  .contacto .contenido-contacto {
    max-width: 100%;
  }

}

@media (min-width: 601px) and (max-width: 1024px) {
  .portada h1 {
    font-size: 3.8rem;
    margin-top: 65%;
  }
  .grid-destacada .bloque-texto p {
    font-size: 1.5rem;
    padding: 0 20px;
  }
  .grid-destacada2 .imagenes img {
    width: 300px;
    height: 300px;
  }
  .carousel-track .item {
    flex: 0 0 50%;
  }
  .carousel-track .item img {
    width: 220px;
    height: 220px;
  }
  .cards {
    flex-wrap: wrap;
  }
  .card {
    width: 45%;
  }
  .ubicacion {
    padding: 60px 20px;
  }
  .mapa-embebido {
    height: auto;
    max-width: 60%;
  }
}

/* Para pantallas grandes (mayores a 1024px) */
@media (min-width: 1025px) {
  .portada h1 {
    font-size: 4.8rem;
    margin-top: 67%;
  }

  .grid-destacada2 .imagenes img {
    width: 400px;
    height: 400px;
  }
  .carousel-track .item {
    flex: 0 0 33.3333%;
  }
  .carousel-track .item img {
    width: 250px;
    height: 250px;
  }
  .card {
    width: 30%;
  }
  .ubicacion {
    flex-wrap: nowrap;
    gap: 40px;
    justify-content: center;
  }

  .mapa-embebido {
    height: auto;
    max-width: 500px;
    margin-left: 0;
  }

}
@media (max-width: 1280px) {
  .aprender h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-left: 0;
  }

  .aprender h5 {
    text-align: center;
    font-size: 2.5rem;
  }

  .aprender p {
    text-align: center;
    font-size: 1rem;
  }

.aprender .btn {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px auto 0 auto;
  font-size: 1rem;
}

  .aprender .row {
    flex-direction: column;
    text-align: center;
  }

  .aprender .col-md-6 {
    width: 100%;
  }

  .aprender img {
    margin: 0 auto 20px auto;
    height: auto;
    width: 100%;
    max-width: 400px;
    object-fit: cover;
  }
}

@media screen and (max-width: 768px) {

  .contacto {
    padding: 60px 5%;
    flex-direction: column;
    gap: 30px;
  }

  .contacto h2 {
    font-size: 2rem;
  }

  .contacto .btn {
    width: 100%;
    justify-content: center;
  }
}

@media screen and (max-width: 480px) {


  .contacto h2 {
    font-size: 1.6rem;
  }

  .contacto p {
    font-size: 1rem;
  }

  .contacto {
    padding: 40px 4%;
  }
}

@font-face {
  font-family: 'Marquette';
  src: url('fonts/Marquette.woff') format('woff2'),
       url('fonts/Marquette.woff2') format('woff');
  font-weight: normal;
  font-style: normal;
}