@import url('https://fonts.googleapis.com/css2?family=Lexend+Deca:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


/* -------------------- RESET -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Lexend Deca", serif;
  font-weight: 275;
  color: #000;
  background: #fff;
}

/* -------------------- NAVBAR -------------------- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 1.4rem 3rem;
  position: sticky;
  top: 0;
  z-index: 99;
}

nav .logo img {
  height: 70px;
}

@media (max-width: 767px) {
  nav .logo img {
    height: 40px;
  }
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s;
}

nav ul li a:hover {
  color: #999;
}

/* Botón hamburguesa */
#menu-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  position: fixed;     
  top: 20px;          
  right: 30px;        
  z-index: 1001;
}


/* Submenú desktop */
nav ul li.submenu {
  position: relative;
}

nav ul li.submenu .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}

nav ul li.submenu .dropdown li {
  display: block;
}

nav ul li.submenu .dropdown li a {
  display: block;
  padding: 1rem;
}

nav ul li.submenu .dropdown li a:hover {
  background: #f0f0f0;
}

/* Hover SOLO desktop */
@media (min-width: 768px) {
  nav ul li.submenu:hover .dropdown {
    display: block;
  }
}

/* -------------------- NAV MOBILE -------------------- */
@media (max-width: 767px) {

  #menu-toggle {
    display: block;
  }

  #nav-links {
    position: fixed;
    top: 0;
    right: -250px;
    height: 100%;
    width: 250px;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding-top: 4rem;
    transition: right 0.3s ease;
    box-shadow: -4px 0 8px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow-y: auto;
  }

  #nav-links.active {
    right: 0;
  }

  #nav-links > li {
    width: 100%;
    padding: 15px 20px;
    border-top: 1px solid #eee;
  }

  #nav-links > li > a {
    display: block;
    width: 100%;
  }

  /* Submenú mobile */
  nav ul li.submenu .dropdown {
    display: none;
    position: relative;
    top: 0;
    left: 0;
    background: #fafafa;
    box-shadow: none;
    padding-left: 1rem;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  nav ul li.submenu.active .dropdown {
    display: flex;
  }

  .dropdown li {
    padding: 0;
    border-top: none;
  }

  .dropdown li a {
    padding: 12px 1rem;
  }

  /* Evita que el hover se quede "pegado" al tocar en pantallas táctiles */
  .dropdown li a:hover {
    background: transparent;
  }

  .dropdown li a:active {
    background: #f0f0f0;
  }
}

/* -------------------- TITULOS -------------------- */

h1.titulo {
  margin-top: 1rem;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  color: #000;
  font-style: normal;
}

p.lugar {
  text-decoration: none;
  text-align: center;
  font-family: "Lexend Deca", serif;
  font-size: 1rem;
  color: #000000;
  margin-top: .8rem;
}

.lugar a {
  text-decoration: none;
  color: #000000;
}

/* -------------------- GALERÍA -------------------- */

.row {
  display: flex;
  gap: 25px;
  padding: 45px;
}

.column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.column img {
  width: 100%;
  margin-bottom: 25px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.column img:hover {
  transform: scale(1.02);
}

/* MOBILE */
@media (max-width: 767px) {
  .row {
    flex-direction: column;
    padding: 10px;
  }

  .column img {
    margin-bottom: 15px;
  }
}


/* -------------------- RESPONSIVE -------------------- */
@media (max-width: 900px) {
  .row {
    column-count: 2;
    padding: 25px;
  }
}

@media (max-width: 600px) {
  .row {
    column-count: 1;
    padding: 15px;
  }
}
/* -------------------- MODAL IMAGEN -------------------- */
.full_img {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.full_img img {
  max-width: 90%;
  max-height: 80%;
}

#left_btn,
#right_btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0,0,0,0.1);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}

#left_btn { left: 3%; }
#right_btn { right: 3%; }

#close_img {
  position: absolute;
  top: 5%;
  right: 2%;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
}

/* -------------------- Blog -------------------- */

.post {
  background-color: #f8f8f8;
  margin: 40px auto;
  max-width: 800px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.3);
  border-image: linear-gradient(90deg, #383838, #000000, #292929) 1;
  border-radius: 12px;

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

.contenido_post {
  font-size: 18px;
  margin: 25px 30px;
  line-height: 1.8;
}

.title {
  font-family: "Roboto", serif;
  font-weight: 600;
  font-size: 2.5rem;
  color: #000;
}

.date {
  font-family: "Roboto", serif;
  font-weight: 300;
  font-size: 1rem;
  margin-bottom: 10px;
  color: #7c7c7c;
}

/* Texto */
.content {
  font-family: "Roboto", serif;
  font-weight: 300;
  font-size: 18px;
  color: #000;
  margin-bottom: 25px;
  line-height: 1.8;
}

/* Imagen */
.image {
  width: 100%;
  border-radius: 5px;
  display: block;
}

/* Contenido oculto */
.extra-content {
  display: none;
}

.extra-content.show {
  display: block;
}

/* CONTENEDOR */
.image-wrapper {
  position: relative;
}

/* IMAGEN */
.image {
  width: 100%;
  display: block;
  margin: 1em 0em;
  border-radius: 5px;
}

/* FADE ENCIMA DE LA IMAGEN */
.fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%; /* 👈 aquí controlas el 1/4 aprox */

  background: linear-gradient(
    to bottom,
    rgba(248,248,248,0) 0%,
    rgba(248,248,248,1) 100%
  );

  pointer-events: none;
}

/* BOTÓN */
.ver-mas-btn {
  padding: 12px 24px;
  border: none;
  background: #000;
  color: #fff;
  border-radius: 30px;
  cursor: pointer;
}

/* -------------------- FOOTER -------------------- */
footer {
  background: #111;
  width: 100%;
  color: #fff;
  padding: 3rem 1rem 2rem;
  text-align: center;
  position: relative;
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-socials a {
  color: #fff;
  font-size: 1.5rem;
  transition: opacity 0.3s;
}

.footer-socials a:hover {
  opacity: 0.7;
}

.footer-text {
  font-size: 0.9rem;
  color: #ccc;
}

/* Botón subir */
#scrollTopBtn {
  position: absolute;
  top: -22px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #222;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

#scrollTopBtn:hover {
  background: #333;
}

/* -------------------- CONTACTO -------------------- */




.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1;

    /* Animación */
    animation: pulse 2s infinite;
}

/* Icono */
.whatsapp-icon {
    width: 40px;
    height: 40px;
}

/* Efecto de pulso */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Hover más interactivo */
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    transition: all 0.3s ease;
}

.video{
  position: relative;
  text-align: center;
  padding: 2em;
}
.video, h1{
  padding-bottom: .5em;
}

.video video {
  width: 100%;
  max-width: 920px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/*contacto*/
/* CONTENEDOR GENERAL */
.contacto {
    padding: 80px 10%;
    background: #f8f8f8;
    font-family: 'Helvetica Neue', sans-serif;
}

.contacto h2 {
    font-size: 40px;
    margin-bottom: 40px;
    letter-spacing: 2px;
    font-weight: 600;
}

/* GRID PRINCIPAL */
.contacto .fila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* COLUMNAS */
.contacto .col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* INPUTS */
.contacto input,
.contacto textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.contacto input:focus,
.contacto textarea:focus {
    border-color: #000;
}

/* TEXTAREA */
.contacto textarea {
    resize: none;
    height: 180px;
}

/* BOTÓN */
.contacto button {
    position: relative;
    padding: 15px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    overflow: hidden;
    transition: 0.3s;
}

.contacto button:hover {
    background: #222;
}

/* MAPA */
.contacto iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    filter: grayscale(100%);
    transition: 0.4s;
}

.contacto iframe:hover {
    filter: grayscale(0%);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contacto .fila {
        grid-template-columns: 1fr;
    }

    .contacto iframe {
        height: 400px;
    }
}

/* -------------------- GRADUACIONES -------------------- */
.grad-hero {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
}
.grad-subtitulo {
  font-family: "Lexend Deca", serif;
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.3rem;
}
.grad-hero-img {
  max-width: 900px;
  margin: 2rem auto 0;
  border: 0.5px solid #ddd;
}
.grad-hero-img img {
  width: 100%;
  display: block;
}
.grad-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 0;
}
.grad-label {
  text-align: center;
  font-family: "Lexend Deca", serif;
  font-size: 0.75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1.5rem;
}
.grad-escuelas {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 0.5px solid #eee;
  flex-wrap: wrap;
}
.grad-escuelas a {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.3rem;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.grad-escuelas a:hover {
  border-color: #000;
}
.grad-escuelas img {
  height: 140px;
  width: auto;
  object-fit: contain;
}
.grad-galeria {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #eee;
}
.grad-galeria img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.grad-bastidores {
  font-family: "Lexend Deca", serif;
  font-size: 0.95rem;
}
.grad-item {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 0.25rem;
  border-bottom: 0.5px solid #eee;
}
.grad-precio {
  color: #999;
}
.grad-cta {
  text-align: center;
  padding: 3rem 1rem 4rem;
}
.grad-cta a {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border: 0.5px solid #000;
  border-radius: 30px;
  font-family: "Lexend Deca", serif;
  font-size: 0.9rem;
  color: #000;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}
.grad-cta a:hover {
  background: #000;
  color: #fff;
}

.grad-carousel-section {
  padding: 2.5rem 0 0;
}

.grad-carousel {
  position: relative;
  width: 100%;
  height: 85vh;
  overflow: hidden;
  background: #000;
}

.grad-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.grad-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.85);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.grad-carousel-btn:hover {
  background: #fff;
}

.grad-carousel-btn.prev { left: 20px; }
.grad-carousel-btn.next { right: 20px; }

@media (max-width: 767px) {
  .grad-carousel {
    height: 55vh;
  }
  .grad-carousel-btn {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }
  .grad-carousel-btn.prev { left: 10px; }
  .grad-carousel-btn.next { right: 10px; }
}

.grad-carousel img {
  transition: opacity 0.5s ease;
}

.grad-carousel-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.25);
  z-index: 5;
}

.grad-carousel-progress-bar {
  height: 100%;
  width: 0%;
  background: #fff;
}

.grad-carousel-progress-bar.animate {
  animation: grad-progress linear forwards;
}

@keyframes grad-progress {
  from { width: 0%; }
  to { width: 100%; }
}

/* RESPONSIVE */
@media (max-width: 767px) {
  .grad-galeria {
    grid-template-columns: repeat(2, 1fr);
  }
  .grad-galeria img {
    height: 150px;
  }
  .grad-escuelas {
    gap: 1.5rem;
  }
  .grad-escuelas a {
    font-size: 1.1rem;
  }
  .grad-escuelas img {
    height: 50px;
  }
  h1.titulo {
    font-size: 2.2rem;
  }
}


/* -------------------- PAQUETES GRADUACIÓN -------------------- */
.grad-paquetes-section {
  width: 95%;
  max-width: 1800px;
  margin: 0 auto;
  padding: 2.5rem 0 0;
}

.grad-paquetes {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(380px, 1fr);
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2.5rem;
  border-bottom: 0.5px solid #eee;
  scrollbar-width: thin;
}

.grad-paquete {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 0.5px solid #ddd;
  background: #fff;
  scroll-snap-align: start;
  transition: box-shadow 0.3s;
}

.grad-paquete:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.grad-paquete-img {
  aspect-ratio: 4 / 3;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  overflow: hidden;
}

.grad-paquete-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Variantes (Clásico) */
.grad-paquete-img[data-variantes] img {
  display: none;
}

.grad-paquete-img[data-variantes] img.activa {
  display: block;
}

.grad-variantes {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1rem 0;
}

.grad-variantes button {
  font-family: "Lexend Deca", serif;
  font-weight: 300;
  font-size: 0.75rem;
  padding: 0.35rem 0.9rem;
  border: 0.5px solid #ccc;
  border-radius: 30px;
  background: #fff;
  color: #666;
  cursor: pointer;
  transition: all 0.3s;
}

.grad-variantes button.activa {
  border-color: #000;
  background: #000;
  color: #fff;
}

.grad-paquete-info {
  flex: 1;
  padding: 1.4rem 1.4rem 1rem;
}

.grad-paquete-info h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
}

.grad-paquete-precio {
  font-size: 1.15rem;
  margin: 0.6rem 0 1rem;
}

.grad-paquete-precio span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #999;
  margin-top: 0.2rem;
}

.grad-paquete-info ul {
  list-style: none;
}

.grad-paquete-info li {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.5;
  padding: 0.55rem 0;
  border-bottom: 0.5px solid #eee;
}

.grad-paquete-medida {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.9rem;
}

.grad-paquete-btn {
  margin: 0 1.4rem 1.5rem;
  padding: 0.75rem;
  text-align: center;
  border: 0.5px solid #000;
  border-radius: 30px;
  font-size: 0.85rem;
  color: #000;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.grad-paquete-btn:hover {
  background: #000;
  color: #fff;
}

/* CELULAR: carrusel con una tarjeta a la vez */
@media (max-width: 767px) {
  .grad-paquetes-section {
    width: 100%;
  }

  .grad-paquetes {
    grid-auto-columns: 82%;
    gap: 1rem;
    padding: 0 1.25rem 2rem;
    scroll-padding: 0 1.25rem;
    scrollbar-width: none;
  }

  .grad-paquetes::-webkit-scrollbar {
    display: none;
  }

  .grad-paquete {
    scroll-snap-align: center;
  }

  .grad-paquete:hover {
    box-shadow: none;
  }
}