    :root{
      --verde: rgb(35, 184, 35);
      --negro:#111;
      --blanco:#fff;
    }
    *{box-sizing:border-box;margin:0;padding:0;font-family:Arial, Helvetica, sans-serif}
    
    body{
      color:var(--negro);
        background:var(--blanco);
        line-height:1.6  
        
    }

    /* HEADER & MENU - ENCABEZADO */
    header{
      position:fixed;
      top:0;left:0;
      width:100%;
      background:var(--blanco);
      box-shadow:0 2px 10px rgba(0,0,0,.1);
      z-index:1000;
    }
    .nav{
      max-width:1200px;
      margin:auto;
      display:flex;
      align-items:center;
      justify-content:space-between;
      padding:0px 20px;
    }
    .logo{
      display:flex;
      align-items:center;
      gap:10px;
      font-weight:bold;
      color:yellow;
    }
    .logo img{
      height: 120px;
    }
    nav ul{
      list-style:none;display:flex;gap:20px}
    nav a{
      text-decoration:none;
      color:var(--negro);
      font-weight:600;
      transition:.3s;
    }
    nav a:hover{color:var(--verde)}

    h4{
      
      font-family: Arial, Helvetica, sans-serif;
    }

    /* MENU MOVIL */
    .menu-toggle{display:none;font-size:28px;cursor:pointer}

    /* HERO VIDEO */
    .hero{
      margin-top:100px;
      height:70vh;
      position:relative; left: 0; right: 0;
      overflow:hidden;
    }
    .hero video{
      width:100%;
      height:100%;
      object-fit:cover;
    }
    .hero .overlay{
      position:absolute;
      inset:0;
      background:rgba(0,0,0,.45);
      display:flex;
      align-items:center;
      justify-content:center;
      text-align:center;
      color:var(--blanco);
      padding:20px;
    }
    .hero h1{font-size:clamp(28px,5vw,52px)}

    section{
      max-width:1200px;
      margin:auto;
      padding:40px 20px;
    }
    section h2{
      color:black;
      margin-bottom:20px;
      text-align:center;
      font-size:32px;
    }

    .cards{
      display:grid;
      grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
      gap:20px;
    }
    .card{
      background:#f7f7f7;
      padding:25px;
      border-radius:10px;
      box-shadow:0 5px 15px rgba(0,0,0,.08);
    }

    /* MAPA */
    .map iframe{
      width:100%;
      height:400px;
      border:0;
      border-radius:10px;
    }

    footer{
      background:var(--negro);
      color:var(--blanco);
      text-align:center;
      padding:30px 20px;
    }

    /* RESPONSIVE */
    @media(max-width:768px){
      nav ul{
        position:absolute;
        top:80px;left:0;
        width:100%;
        background:var(--blanco);
        flex-direction:column;
        display:none;
      }
      nav ul.show{display:flex}
      .menu-toggle{display:block}
    }
.justificado {
  text-align: justify;
}

/* pie de pagina */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 40px 0 20px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    margin: 10px 20px;
    min-width: 200px;
}

.footer-section h3 {
    color: yellow;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    line-height: 1.6;
    color: #bbbbbb;
}

/* Enlaces */
.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bbbbbb;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: green;
}

/* Iconos Sociales */
.social-icons a {
    display: inline-block;
    margin-right: 15px;
    color: #ffffff;
    text-decoration: none;
    border: 1px solid #ffffff;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: yellow;
    border-color: #00d4ff;
}

/* Parte Inferior */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
    color: #777777;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .social-icons {
        margin-top: 10px;
    }
}

/* boton de desplazamiento */
#btnScrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: #2e7d32; /* Verde profesional */
  color: #ffffff;
  border: none;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

#btnScrollTop:hover {
  background-color: #1b5e20;
  transform: scale(1.1);
}

#btnScrollTop:active {
  transform: scale(1);
}

/* Linea verde en el centro */
.linea-animada {
  width: 80%;
  height: 4px;
  margin: 30px auto;
  border-radius: 10px;
  background: linear-gradient(
    90deg,
    
    #1e9951
    
  );
  background-size: 300% 100%;
  animation: moverLinea 3s ease-in-out infinite;
}

@keyframes moverLinea {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.mensaje-institucional {
  font-size: 34px;
  color: #4CAF7A; /* verde profesional no oscuro */
  font-family: "Segoe UI", "Poppins", "Arial Rounded MT Bold", Arial, sans-serif;
  font-weight: 600;
  text-align: center;
  letter-spacing:1.5px;
  line-height: 1.5;
}

/* iconos religiosos */
.institucional {
  width: 100%;
  padding: 30px 10px;
  background-color: #ffffff;
}

/* Imagen superior */
.imagen-superior {
  text-align: center;
  margin-bottom: 40px;
}

.imagen-superior img {
  max-width: 90%;
  height: auto;
}

/* iconos */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    padding: 60px 10%;
    background: #fff;
    overflow: hidden;
}

.stat {
    text-align: center;
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease;
}

.stat.show {
    opacity: 1;
    transform: translateX(0);
}

.stat i {
    font-size: 45px;
    color: #1e7f34; /* verde institucional */
    margin-bottom: 10px;
}

.stat h2 {
    font-size: 42px;
    color: green; /* rojo como la imagen */
    margin: 10px 0;
}

.stat p {
    font-size: 16px;
    color: #000;
    font-weight: 500;
}


/* Quienes somos */
.contenedor {
            max-width: 1100px;
            margin: auto;
            padding: 40px 20px;
            
        }

        .fila {
            display: flex;
            align-items: center;
            gap: 30px;
            margin-bottom: 60px;
        }

        .fila img {
            width: 100%;
            max-width: 500px;
            border-radius: 12px;
        }

        .texto {
            flex: 1;
        }

        .texto h2 {
            color: #1e7f3c; /* verde profesional */
            margin-bottom: 15px;
        }

        .texto p {
            font-size: 16px;
            line-height: 1.6;
            color: #333;
        }

        .seccion {
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 40px 10%;
            gap: 30px;
        }

        .seccion img {
            width: 100%;
            max-width: 400px;
            border-radius: 10px;
        }

        .texto {
            max-width: 500px;
        }

        .texto h2 {
            margin-bottom: 15px;
        }

        /* Invertir contenido */
        .invertido {
            flex-direction: row-reverse;
        }

        /* Responsive para celulares */
        @media (max-width: 768px) {
            .seccion,
            .invertido {
                flex-direction: column;
                text-align: center;
            }
        }

        /* AUTORIDADES */
       
        .contenedor {
            max-width: 1200px;
            margin: auto;
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        .perfil {
            background-color: #ffffff;
            border-radius: 15px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.15);
            overflow: hidden;
            text-align: center;
        }

        .perfil img {
            width: 100%;
            height: auto;
            display: block;
        }

        .nombre {
            padding: 20px;
            font-size: 1.8rem;
            font-weight: bold;
            color: #222;
        }

        /* Tablets */
        @media (max-width: 900px) {
            .contenedor {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Celulares */
        @media (max-width: 500px) {
            .contenedor {
                grid-template-columns: 1fr;
            }

            .nombre {
                font-size: 1.5rem;
            }
        }

 /* Contacto */



.contacto-contenedor {
            max-width: 1100px;
            margin: 40px auto;
            background: #ffffff;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .contacto-titulo {
            text-align: center;
            margin-bottom: 30px;
        }

        .contacto-titulo h1 {
            margin: 0;
            color: black;
        }

        .contacto-titulo p {
            color: #555;
        }

        .contacto-grid {
            display: flex;
            gap: 30px;
            flex-wrap: wrap;
        }

        .info-institucion,
        .formulario-contacto {
            flex: 1;
            min-width: 280px;
        }

        .info-institucion h2,
        .formulario-contacto h2 {
            color: green;
            margin-bottom: 15px;
        }

        .info-institucion p {
            margin: 10px 0;
            color: #333;
        }

        .info-institucion span {
            font-weight: bold;
        }

        form input,
        form textarea {
            width: 100%;
            padding: 12px;
            margin-bottom: 15px;
            border: 1px solid #ccc;
            border-radius: 5px;
            font-size: 14px;
        }

        form textarea {
            resize: none;
            height: 120px;
        }

        form button {
            background-color: green;
            color: #ffffff;
            border: none;
            padding: 12px;
            width: 100%;
            border-radius: 5px;
            font-size: 16px;
            cursor: pointer;
        }

        form button:hover {
            background-color: #14406b;
        }

        @media (max-width: 768px) {
            .contacto-contenedor {
                margin: 20px;
                padding: 20px;
            }
        }


        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: Arial, Helvetica, sans-serif;
        }

        body {
            background-color: #f4f4f4;
            color: #333;
        }

        .container {
            max-width: 1100px;
            margin: auto;
            padding: 20px;
        }

        /* ENCABEZADO */
        .header {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 20px;
            background: #fff;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 25px;
        }

        .header img {
            max-width: 150px;
        }

        .header-text h1 {
            color: #0a3d62;
            margin-bottom: 10px;
        }

        .header-text p {
            text-align: justify;
            line-height: 1.6;
            font-size: 14px;
        }

        /* SECCIÓN TARJETAS */
        .cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 20px;
        }

        .card {
            background: #fff;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        }

        .card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
        }

        .card-title {
            background: #0a3d62;
            color: #fff;
            text-align: center;
            padding: 10px;
            font-weight: bold;
            text-transform: uppercase;
        }

        .card-content {
            padding: 15px;
            font-size: 14px;
            line-height: 1.6;
            text-align: justify;
        }

        /* RESPONSIVE EXTRA */
        @media (max-width: 600px) {
            .header {
                text-align: center;
            }

            .header img {
                margin: auto;
            }
        }


/* CONTENEDOR GENERAL */
.secciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

/* TARJETA */
.card {
    background: #fff;
    border: 2px solid #444;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* IMAGEN */
.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* BANDA AZUL */
.card h2 {
    margin: 0;
    padding: 12px;
    background: green;
    color: white;
    text-align: center;
    font-size: 18px;
}

/* CONTENIDO */
.card .contenido {
    padding: 15px;
    font-size: 14px;
    text-align: justify;
}

.card .contenido h3 {
    text-align: center;
    margin-top: 0;
    color: #1e3c5a;
}

/* RESPONSIVE EXTRA */
@media (max-width: 480px) {
    .card img {
        height: 170px;
    }
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 900px; /* ancho máximo opcional */
    margin: auto;
    padding-top: 56.25%; /* Relación 16:9 */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
}
