/* Reset */
body, h1, h2, p, a {
    margin: 0; padding: 0;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background: #f1f8f6;
  color: #333;
}


/* Hero */
.hero {
    background: rgb(147, 150, 152);
    height: 40lvh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(71, 52, 60, 0.665);
    text-align: center;
}
.hero-content h1 { font-size: 3rem; margin-bottom: 20px; }
.hero-content p { font-size: 1.2rem; margin-bottom: 30px; }
.btn-hero {
    background: #00bcd4;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: 0.3s;
}
.btn-hero:hover { background: #0097a7; }

/* Info Cards */
.info {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 50px 20px;
    flex-wrap: wrap;
}
.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(19, 65, 129, 0.2);
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    text-align: center;
}
.card h2 { margin-bottom: 15px; color: #00796b; }
.card p { margin-bottom: 20px; }
.btn-small {
    display: inline-block;
    padding: 8px 15px;
    background: #00796b;
    color: white;
    border-radius: 5px;
    text-decoration: none;
}
.btn-small:hover { background: #004d40; }

/* Footer */
footer {
    background: #010b03;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}


/* Encabezado de páginas internas */
.page-header {
    background: linear-gradient(135deg, #00796b, #00bcd4);
    color: white;
    padding: 40px 20px;
    text-align: center;
}
.page-header h1 {
    margin: 0;
    font-size: 2.5rem;
}

/* Contenido */
.page-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
}

/* Tarjeta */
.content-card {
    background: white;
    max-width: 800px;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    text-align: justify;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Botón de regreso */
.btn-back {
    display: inline-block;
    padding: 10px 20px;
    background: #00796b;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.btn-back:hover {
    background: #18e1bf;
}

/* ===== Slider ===== */
.slider {
  position: relative;
  max-width: 1100px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.slides {
  display: flex;
  transition: transform 0.6s ease;
  will-change: transform;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
}

.slide img {
  display: block;
  width: 100%;
  height: 420px;         /* ajusta si quieres más/menos alto */
  object-fit: cover;
}

/* botones prev/next */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 2;
  line-height: 1;
}
.prev { left: 14px; }
.next { right: 14px; }

.prev:focus, .next:focus { outline: 2px solid #fff; }

/* puntos (dots) */
.dots {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
}
.dot.active {
  background: #fff;
  border-color: #fff;
}

.video-gallery {
    text-align: center;
    margin-top: 40px;
}

.video-gallery h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #333;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
}



/*modificacion faq*/
 details {
      margin: 10px 0;
      padding: 10px;
      border: 2px solid #0d691f;
      border-radius: 8px;
    }
    summary {
      font-weight: bold;
      cursor: pointer;}

     .btn-back {
    display: inline-block;
    padding: 10px 20px;
    background: #00796b;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}
.btn-back:hover {
    background: #18e1bf;
} 

/* modificacion de videos en mision */


.videos-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-top: 20px;
            justify-content: flex-start;
        }

        .video-card {
            flex: 1 1 300px;
            max-width: 480px;
        }

        .video-card iframe, .video-card video {
            width: 100%;
            height: 270px;
            border: none;
        }

        /* Título de la sección de videos */
        .page-content h2 {
            margin-top: 40px;
            font-size: 1.5rem;
            color: #333;
        }

        /* galeria imagenes de quienes_somos 

        /* Estilos de la galería */
        .gallery-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 15px;
            margin-top: 30px;
        }

        .gallery-container img {
            width: 100%;
            height: auto;
            border-radius: 8px;
            transition: transform 0.3s, box-shadow 0.3s;
            cursor: pointer;
        }

    

      

/* Responsivo */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
    .info { flex-direction: column; align-items: center; }
}

@media (max-width: 900px) {
  .slide img { height: 300px; }
}
@media (max-width: 480px) {
  .slide img { height: 200px; }
  .prev, .next { padding: 8px; font-size: 18px; }
  .dots { bottom: 8px; }
}