/* Estilos generales */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: #f8f9fa; color: #333; }
/* Header */
.header { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; background: #fff; border-bottom: 2px solid #ddd; flex-wrap: wrap; }
.header-icons { display: flex; gap: 15px; }
.header-icons a { font-size: 24px; color: #555; text-decoration: none; transition: transform 0.3s ease, color 0.3s ease; }
.header-icons a:hover { transform: scale(1.1); color: #ff69b4; }
.header-address { font-size: 14px; color: #444; display: flex; align-items: center; }
.header-address a { display: flex; align-items: center; color: #444; text-decoration: none; font-weight: 500; transition: color 0.3s ease; }
.header-address a:hover { color: #ff69b4; }
.header-address i { font-size: 18px; margin-right: 6px; }
@media (max-width: 768px) {
  .header { flex-direction: column; text-align: center; gap: 10px; }
  .header-icons a { font-size: 22px; }
  .header-address { font-size: 13px; }
}
@media (max-width: 480px) {
  .header-address { font-size: 12px; }
  .header-icons a { font-size: 20px; }
}
/* Banner */
.banner.home .text {
  position: absolute; top: 50%; left: 5%; transform: translateY(-50%);
  text-align: left; padding: 15px 20px; background-color: rgba(0,0,0,0.3);
  border-radius: 5px; max-width: 60%;
}
.banner.home .text h1 {
  color: #fff; font-weight: bold; font-size: 60px; padding: 10px 20px; margin: 0; line-height: 1.2;
}
@media (max-width: 768px) {
  .banner.home .text {
    position: relative; top: unset; left: 50%; transform: translateX(-50%);
    text-align: center; max-width: 90%; padding: 10px; margin-top: 10px; background-color: transparent;
  }
  .banner.home .text h1 {
    color: #000; font-size: 36px; font-weight: 800; padding: 5px; white-space: pre-line; line-height: 1.3;
  }
}
/* Tarjetas de Información */
.container1 { display: flex; gap: 20px; justify-content: center; margin-top: 30px; flex-wrap: wrap; padding: 0 15px; }
.container1 .card {
  background: white; padding: 40px; border-radius: 10px; text-align: center;
  transition: transform 0.3s, box-shadow 0.3s; margin-bottom: 20px;
  border: 2px solid #ff69b4; box-shadow: 0 2px 4px rgba(255,105,180,0.3); max-width: 300px;
}
.container1 .card:hover { transform: translateY(-10px); box-shadow: 0 4px 6px rgba(0,0,0,0.2); }
.container1 .card h2 { color: #d9534f; }
/* Disciplinas */
.disciplina-card {
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
  border: 2px solid #ff69b4; border-radius: 0.75rem; box-shadow: 0 2px 4px rgba(255,105,180,0.3);
  cursor: pointer; background-color: #fff; height: 100%; display: flex; flex-direction: column;
}
.disciplina-card:hover { transform: translateY(-2px); box-shadow: 0 4px 6px rgba(255,192,203,0.3); }
.disciplina-card .card-body { padding: 1.5rem; text-align: center; }
.disciplina-card h3 { font-size: 1.15rem; margin-bottom: 0.75rem; color: #212529; }
.disciplina-card p { font-size: 0.95rem; color: #666; margin-bottom: 1rem; line-height: 1.4; }
.disciplina-card img { width: 100%; height: 200px; object-fit: cover; }
.service-images { margin-bottom: 15px; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  gap: 10px; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
}
.service-images::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
/* Carrusel */
.carousel-container { position: relative; overflow: hidden; }
.carousel-arrow { position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,105,180,0.7); border: none; color: white; font-size: 24px; padding: 10px;
  cursor: pointer; z-index: 10;
}
.left-arrow { left: 5px; }
.right-arrow { right: 5px; }
@media (max-width: 768px) {
  .service-images img { width: 80%; margin: 0 auto; height: auto; }
}
/* Nuestra Directora */
.directora-container {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 100%; max-width: 800px; margin: 40px auto; padding: 30px; background: white;
  border-radius: 12px; text-align: center; box-shadow: 0 4px 20px rgba(242,120,139,0.4);
  border: 2px solid rgba(242,120,139,0.6);
}
.directora-container h2 { margin-bottom: 20px; font-size: 2em; }
.directora-container p { font-size: 1.1em; line-height: 1.6; margin-bottom: 30px; }
.image-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 15px;
  width: 100%; margin-bottom: 20px;
}
.image-grid img { width: 100%; height: 200px; object-fit: cover; border-radius: 8px;
  transition: box-shadow 0.3s ease; cursor: pointer;
}
.image-grid img:hover { box-shadow: 0 4px 15px rgba(242,120,139,0.5); }
.social-buttons { display: flex; gap: 15px; margin-top: 20px; flex-wrap: wrap; justify-content: center; }
/* Galería */
.gallery-container { position: relative; max-width: 900px; margin: 0 auto; }
.product-grid { display: flex; gap: 1rem; overflow-x: scroll; flex-wrap: nowrap;
  scroll-snap-type: x mandatory; padding-bottom: 10px; justify-content: flex-start;
  scrollbar-width: none; -ms-overflow-style: none;
}
.product-grid::-webkit-scrollbar { display: none; }
.product { min-width: 300px; border: 2px solid #ff69b4; box-shadow: 0 2px 4px rgba(255,182,193,0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease; scroll-snap-align: start;
}
.product img, .product video { width: 100%; height: auto; border-radius: 8px; object-fit: cover; transition: transform 0.3s ease; }
.product:hover { transform: scale(1.05); }
.product img:hover, .product video:hover { transform: scale(1.05); box-shadow: 0 4px 8px rgba(255,105,180,0.5); }
.arrow { position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,105,180,0.7); border: none; color: white; font-size: 24px; padding: 10px;
  cursor: pointer; z-index: 10;
}
.arrow.left { left: -20px; }
.arrow.right { right: -20px; }
@media (max-width: 576px) {
  .arrow.left { left: 10px; }
  .arrow.right { right: 10px; }
}
/* Noticias */
.news-container { position: relative; }
.news-title { font-size: 2rem; margin-bottom: 20px; text-align: center; }
.news-grid { display: flex; gap: 1rem; overflow-x: scroll; flex-wrap: nowrap;
  scroll-snap-type: x mandatory; padding-bottom: 10px; justify-content: flex-start;
  scrollbar-width: none; -ms-overflow-style: none;
}
.news-grid::-webkit-scrollbar { display: none; }
.news { min-width: 300px; border: 2px solid #ff69b4; box-shadow: 0 2px 4px rgba(255,182,193,0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease; scroll-snap-align: start;
  background-color: #fff; padding: 20px; border-radius: 8px; text-align: center;
  overflow: hidden; margin: 10px;
}
.news img, .news video { width: 100%; height: auto; border-radius: 8px; object-fit: cover; transition: transform 0.3s ease; }
.news h3 { font-size: 1.3rem; margin: 15px 0; color: #333; }
.news p { font-size: 0.95rem; color: #666; }
.news:hover { transform: scale(1.05); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.news:hover img, .news:hover video { transform: scale(1.05); }
.news.active { transform: scale(1.05); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.news.active img, .news.active video { transform: scale(1.05); }
/* Mapa */
#map { width: 90%; max-width: 800px; height: 350px; margin: 20px auto; border: 3px solid #f1c6d9; border-radius: 8px; box-shadow: 0px 4px 8px rgba(242,120,139,0.5); }
.map-section { text-align: center; }
/* Footer */
.site-footer { background: linear-gradient(135deg, #ff66b2, #ff99cc); color: white; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; font-size: 16px; text-align: center; box-shadow: 0 -4px 6px rgba(0,0,0,0.1); }
.footer-content-left { font-weight: bold; font-size: 18px; }
.footer-content-right { display: flex; align-items: center; gap: 15px; }
.footer-content-right span { font-size: 14px; }
.social-icon { color: white; font-size: 20px; transition: transform 0.3s ease, color 0.3s ease; text-decoration: none; }
.social-icon:hover { transform: scale(1.2); color: #ffe6f2; }
@media (max-width: 768px) {
  .site-footer { flex-direction: column; text-align: center; gap: 10px; }
  .footer-content-left { font-size: 16px; }
  .footer-content-right { flex-direction: column; gap: 10px; }
  .social-icon { font-size: 18px; }
  .arrow.left { left: 10px; }
  .arrow.right { right: 10px; }
}
/* Botón flotante de WhatsApp */
.whatsapp-float { position: fixed; bottom: 80px; right: 20px; background-color: #25D366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.2); text-decoration: none; z-index: 1000; }
.whatsapp-float:hover { background-color: #1ebe57; }
@media (max-width: 768px) { .whatsapp-float { bottom: 100px; right: 15px; } }
/* Modal para video */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); justify-content: center; align-items: center; }
.modal video { max-width: 90%; max-height: 90%; }
.close { position: absolute; top: 10px; right: 20px; font-size: 30px; color: white; cursor: pointer; }
.prev, .next { position: absolute; top: 50%; font-size: 40px; color: white; background: none; border: none; cursor: pointer; transform: translateY(-50%); padding: 10px; }
.prev { left: 20px; }
.next { right: 20px; }

/* Galería simple, sin tarjetas, solo borde rosa */
.gallery-container { position: relative; max-width: 900px; margin: 0 auto; }
.product-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  justify-content: flex-start;
  scrollbar-width: none; -ms-overflow-style: none;
}
.product-grid::-webkit-scrollbar { display: none; }

.gallery-media {
  min-width: 300px;
  scroll-snap-align: start;
  border: 3px solid #ff69b4;
  border-radius: 12px;
  background: none;
  box-shadow: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s, box-shadow 0.2s;
}

.gallery-media img,
.gallery-media video {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.25s;
  background: none;
}

.gallery-media:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(255,105,180,0.13);
}

.gallery-media img:hover,
.gallery-media video:hover {
  transform: scale(1.05);
}

/* Flechas galería */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,105,180,0.7);
  border: none;
  color: white;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
}
.arrow.left { left: -20px; }
.arrow.right { right: -20px; }
@media (max-width: 576px) {
  .arrow.left { left: 10px; }
  .arrow.right { right: 10px; }
  .gallery-media { min-width: 220px; }
}


/* Galería */
.gallery-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.product-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  flex-wrap: nowrap;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  justify-content: flex-start;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.product-grid::-webkit-scrollbar {
  display: none;
}

.gallery-media {
  min-width: 300px;
  scroll-snap-align: start;
  border: 3px solid #ff69b4;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  transition: transform 0.25s, box-shadow 0.2s;
  overflow: hidden;
}

.gallery-media img,
.gallery-media video {
  width: 100%;
  height: 250px;                /* 🔒 Altura fija */
  object-fit: cover;            /* 🔒 Relleno sin deformar */
  border-radius: 8px;
  transition: transform 0.25s ease;
  background-color: #000;       /* 🔒 Color de fondo si no hay poster */
}

.gallery-media:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(255,105,180,0.15);
}

/* Flechas galería */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #ff69b4;
  border: 2px solid #000;
  color: white;
  font-size: 20px;
  padding: 6px 12px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}
.arrow.left {
  left: -20px;
}
.arrow.right {
  right: -20px;
}

@media (max-width: 576px) {
  .arrow.left {
    left: 10px;
  }
  .arrow.right {
    right: 10px;
  }
  .gallery-media {
    min-width: 220px;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.modal video {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 10px;
}
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.prev { left: 30px; }
.next { right: 30px; }


.gallery-media {
  min-width: 300px;
  height: 250px;
  border: 3px solid #ff69b4;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  transition: transform 0.25s ease;
}
.gallery-media:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(255,105,180,0.2);
}

.gallery-media video.news-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none; /* ✅ evita que el usuario interactúe directamente */
  border-radius: 8px;
}
.video-preview-wrapper {
  position: relative;
  min-width: 300px;
  height: 250px;
  border: 3px solid #ff69b4;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.news-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  pointer-events: none;
}

.custom-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  padding: 10px 16px;
  pointer-events: none;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
.modal video {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 10px;
}
.close {
  position: absolute;
  top: 20px; right: 30px;
  color: white;
  font-size: 30px;
  cursor: pointer;
}
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.prev { left: 30px; }
.next { right: 30px; }


.news {
  min-width: 300px;
  max-width: 320px;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  overflow: hidden;
  border: 2px solid #ff69b4;
  border-radius: 12px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(255,182,193,0.3);
  scroll-snap-align: start;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.news:hover {
  transform: scale(1.03);
}

.news p {
  font-size: 0.9rem;
  color: #444;
  text-align: center;
}

.news h3 {
  font-size: 1.2rem;
  color: #333;
  text-align: center;
  margin-top: 10px;
}

/* Imagen de preview */
.video-preview-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  border: 3px solid #ff69b4;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.news-preview-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  border-radius: 10px;
}

/* Botón tipo "play" o galería */
.custom-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 42px;
  color: white;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 10px 16px;
  pointer-events: none;
}

@media (max-width: 576px) {
  .carousel-arrow,
  .arrow {
    font-size: 18px;
    padding: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .arrow.left {
    left: 10px !important;
  }

  .arrow.right {
    right: 10px !important;
  }
}
