 /* Reseteo de márgenes y rellenos para tener un diseño limpio */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fondo general de la página */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
}

/* =======================================================
   ANIMACIÓN DE LOGO INICIAL (pantalla de presentación)
   ======================================================= */

.pantalla-logo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #1a472a; /* Verde institucional (puedes cambiar el color) */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: desaparecer 1s ease forwards;
    animation-delay: 3s; /* Duración del logo en pantalla */
}

.pantalla-logo img {
    width: 600px;
    animation: zoom 2s ease-in-out;
}

@keyframes zoom {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes desaparecer {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Hace que el contenido principal aparezca suavemente después */
.contenido-principal {
    opacity: 0;
    transform: translateY(20px);
    animation: aparecer 1s ease forwards;
    animation-delay: 3s;
}

@keyframes aparecer {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/**/
header {
    background-color: #333;
    padding: 10px 0;
    width: 100%;
}

/* ====== MENÚ EN PANTALLAS GRANDES ====== */

.desktop-nav {
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 180px;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 15px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    transition: color 0.3s ease;
    padding: 5px 10px;
}

.nav-links a:hover {
    color: #9ccc65;
}

/* ========================= */
/* MENÚ MÓVIL */
/* ========================= */

.mobile-header {
    display: none;
}

/* ====== ESTILOS PARA MÓVILES ====== */

@media (max-width: 768px) {

    .desktop-nav {
        display: none;
    }

    .mobile-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 0;
        width: 100%;
        background-color: #333;
        padding: 10px 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .mobile-header .logo img {
        height: 60px;
    }

    .mobile-nav ul {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding: 10px 0;
    }

    .mobile-nav li {
        list-style: none;
        text-align: center;
    }

    .mobile-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: white;
        text-decoration: none;
        font-size: 0.9em;
    }

    .mobile-nav img {
        width: 30px;
        height: 30px;
        margin-bottom: 5px;
    }

    .mobile-nav a:hover {
        color: #9ccc65;
    }

    body {
        padding-top: 100px;
    }
}

/* Sección Hero (Banner Principal) */
/* HERO FULL SCREEN */
.hero{
    position:relative;
    height:100vh; /* pantalla completa */
    overflow:hidden;
}

/* SLIDER */
.slider{
    position:relative;
    height:100%;
}

/* CADA SLIDE */
.slide{
    display:none;
    position:relative;
    height:100vh;
}

/* IMAGEN PANTALLA COMPLETA */
.slide img{
    width:100%;
    height:100vh;
    object-fit:cover;
}

/* CAPA OSCURA PARA QUE EL TEXTO SE VEA */
.slide::after{
    content:"";
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.4);
}

/* TEXTO ENCIMA */
.hero h1{
    position:absolute;
    top:25%;
    left:50%;
    transform:translateX(-50%);
    color:white;
    font-size:60px;
    font-weight:900;
    z-index:2;
    text-align:center;
}

.description{
    position:absolute;
    bottom:15%;
    left:50%;
    transform:translateX(-50%);
    color:white;
    font-size:20px;
    z-index:2;
    max-width:700px;
    text-align:center;
}

/* FLECHAS */
.prev, .next{
    cursor:pointer;
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    font-size:45px;
    font-weight:bold;
    color:white;
    padding:15px;
    user-select:none;
    z-index:3;
}

.prev{ left:20px; }
.next{ right:20px; }

/* DOTS */
.dots{
    position:absolute;
    bottom:5%;
    width:100%;
    text-align:center;
    z-index:3;
}

.dot{
    height:15px;
    width:15px;
    margin:0 5px;
    background-color:white;
    border-radius:50%;
    display:inline-block;
    cursor:pointer;
    opacity:0.5;
}

.dot.active{
    opacity:1;
}

/* RESPONSIVE */
@media(max-width:768px){

    .hero h1{
        font-size:32px;
        top:20%;
        padding:0 10px;
    }

    .description{
        font-size:16px;
        bottom:12%;
        padding:0 15px;
    }

    .prev, .next{
        font-size:30px;
    }
}

/* Main Content Section */
main {
    padding: 50px 20px;
}

/* Contenedor principal */
/* ===== Contenedor ===== */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    max-width: 1000px;
    margin: auto;
}


/* ===== Texto ===== */
.text {
    width: 48%;
    margin-right: -20px;
}

.subtitulo {
    font-size: 14px;
    font-weight: 600;
    color: #2f7d32;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text h2 {
    font-size: 32px;
    margin: 15px 0 20px;
    color: #043d15;
}

.text p {
    font-size: 17px;
    color: #333;
    line-height: 1.7;
    text-align: justify;
}

/* ===== Imagen ===== */
.image {
    position: relative;
    width: 40%;
    display: flex;
    justify-content: center;
}

.image img {
    width: 100%;
    height: auto;
    transition: 0.4s ease;
}

.image img:hover {
    transform: scale(1.05);
}

/* ===== Punto Animado ===== */
.quake {
    position: absolute;
    top: 45%;
    left: 58%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background-color: #ff7b00;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(255, 123, 0, 0.8);
}

/* Ondas */
.quake::before,
.quake::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #ff7b00;
    border-radius: 50%;
    opacity: 0.6;
    animation: quake-animation 2.5s infinite ease-out;
}

.quake::before {
    width: 30px;
    height: 30px;
}

.quake::after {
    width: 50px;
    height: 50px;
    animation-delay: 1s;
}

/* Animación */
@keyframes quake-animation {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    .text {
        max-width: 100%;
    }

    .text p {
        text-align: center;
    }

    .image {
        margin-top: 40px;
        max-width: 300px;
    }
}

/* Espacio entre la sección de información y los videos */
.info-section {
    margin-bottom: 30px; /* Agrega un pequeño espacio debajo de la sección */
}

/*Titulos*/
.videos-title {
    font-size: 45px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    color: #000;
    text-align: center;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

.videos-title::before {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: #66bb6a;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
}

/* ===== GALERÍA ===== */
.galeria-horizontal{
  display:flex;
  gap:20px;
  overflow-x:auto;
  padding:40px;
  scroll-behavior:smooth;
}

.galeria-horizontal img{
  height:250px;
  border-radius:15px;
  cursor:pointer;
  transition:all .4s ease;
  flex-shrink:0;
}

.galeria-horizontal img:hover{
  transform:scale(1.05);
  box-shadow:0 10px 25px rgba(0,0,0,0.3);
}

/* Scroll elegante */
.galeria-horizontal::-webkit-scrollbar{
  height:8px;
}

.galeria-horizontal::-webkit-scrollbar-thumb{
  background:#2e7d32;
  border-radius:10px;
}

/* ===== MODAL ===== */

.modal{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.6); /* menos oscuro */
  justify-content:center;
  align-items:center;
  z-index:999;
  animation:fadeIn .4s ease;
}

@keyframes fadeIn{
  from{opacity:0;}
  to{opacity:1;}
}

.modal img{
  max-width:80%;
  max-height:80%;
  border-radius:20px;
  box-shadow:0 20px 50px rgba(0,0,0,0.5);
  animation:zoom .4s ease;
}

@keyframes zoom{
  from{transform:scale(.8);}
  to{transform:scale(1);}
}

/* Flechas */

.flecha{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  font-size:40px;
  color:white;
  cursor:pointer;
  padding:15px;
  user-select:none;
}

.flecha:hover{
  color:#2e7d32;
}

.izquierda{ left:30px; }
.derecha{ right:30px; }

/* Responsive */
@media(max-width:768px){
  .galeria-horizontal img{
    height:180px;
  }
  .modal img{
    max-width:95%;
    max-height:75%;
  }
}

/*
.carousel-container {
        width: 60%;
        height: 30%;
        margin: auto;
        overflow: hidden;
        position: relative;
        border-radius: 10px;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    }

    .carousel {
        display: flex;
        width: 100%;
        height: 100%;
        transition: transform 0.5s ease-in-out;
    }

    .carousel img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
*/
  
/* Espacio entre la sección de información y los videos */
.info-section {
    margin-bottom: 30px; /* Agrega un pequeño espacio debajo de la sección */
}

/*-------Noticias-------*/

/* Contenedor Principal */
.news-container {
  padding: 2rem;
  background-color: #f5f5f5;
}

.videos-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.news-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.news-card:hover {
  transform: translateY(-5px);
}

.news-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-date,
.news-author {
  font-size: 0.8rem;
  color: #777;
  margin: 0.5rem 1rem 0 1rem;
}

.news-title {
  font-size: 1.2rem;
  margin: 0.5rem 1rem;
  font-weight: bold;
}

.news-description {
  font-size: 0.95rem;
  margin: 0.5rem 1rem 1rem 1rem;
  color: #333;
  flex-grow: 1;
}

.read-more {
  margin: 0 1rem 1rem 1rem;
  align-self: start;
  color:  #146c2e;
  font-weight: bold;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}


/* Espacio entre la sección de información y los videos */
.info-section {
    margin-bottom: 30px; /* Agrega un pequeño espacio debajo de la sección */
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1a472a, #2a6041);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}
.footer-heading {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    font-family: 'Raleway', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.social-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}
.social-link:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.social-link svg {
    width: 30px;
    height: 30px;
    fill: white;
    transition: transform 0.3s ease;
}
.footer-text {
    color: #fff;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    opacity: 0.9;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
    .footer {
        padding: 2rem 0;
    }
    
    .footer-heading {
        font-size: 1.5rem;
    }
    
    .social-container {
        gap: 1.5rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
    }
    
    .social-link svg {
        width: 25px;
        height: 25px;
    }
}

/* ============================================================
   📱 CONFIGURACIÓN COMPLETA PARA TELÉFONOS CELULARES
   ============================================================ */
@media (max-width: 480px) {

    /* Ajuste general del cuerpo */
    body {
        padding: 0;
        margin: 0;
        font-size: 14px;
    }

    /* Banner principal */
    .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1em;
    }

    /* Texto principal */
    .text {
        width: 100%;
        font-size: 1rem;
        padding: 10px;
        text-align: justify;
    }

    /* Imagen principal */
    .image {
        width: 100%;
        margin-top: 15px;
    }

    /* Noticias */
    .news-container {
        padding: 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        margin-bottom: 1rem;
    }

    .news-title {
        font-size: 1rem;
    }

    .news-description {
        font-size: 0.9rem;
    }

    /* Carrusel */
    .carousel-container {
        width: 90%;
        height: auto;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0;
        text-align: center;
    }

    .social-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-text {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    /* Logo móvil */
    .mobile-header .logo img {
        height: 50px;
    }

    /* Menú móvil */
    .mobile-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .mobile-nav a {
        font-size: 1rem;
    }
}

/* ============================================================
   📱 CONFIGURACIÓN COMPLETA PARA TELÉFONOS CELULARES
   ============================================================ */
@media (max-width: 480px) {

    /* Ajuste general del cuerpo */
    body {
        padding: 0;
        margin: 0;
        font-size: 14px;
    }

    /* Banner principal */
    .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1em;
    }

    /* Texto principal */
    .text {
        width: 100%;
        font-size: 1rem;
        padding: 10px;
        text-align: justify;
    }

    /* Imagen principal */
    .image {
        width: 100%;
        margin-top: 15px;
    }

    /* Noticias */
    .news-container {
        padding: 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        margin-bottom: 1rem;
    }

    .news-title {
        font-size: 1rem;
    }

    .news-description {
        font-size: 0.9rem;
    }

    /* Carrusel */
    .carousel-container {
        width: 90%;
        height: auto;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0;
        text-align: center;
    }

    .social-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-text {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    /* Logo móvil */
    .mobile-header .logo img {
        height: 50px;
    }

    /* Menú móvil */
    .mobile-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .mobile-nav a {
        font-size: 1rem;
    }
}

/* ============================================================
   📱 CONFIGURACIÓN COMPLETA PARA TELÉFONOS CELULARES
   ============================================================ */
@media (max-width: 480px) {

    /* Ajuste general del cuerpo */
    body {
        padding: 0;
        margin: 0;
        font-size: 14px;
    }

    /* Banner principal */
    .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1em;
    }

    /* Texto principal */
    .text {
        width: 100%;
        font-size: 1rem;
        padding: 10px;
        text-align: justify;
    }

    /* Imagen principal */
    .image {
        width: 100%;
        margin-top: 15px;
    }

    /* Noticias */
    .news-container {
        padding: 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        margin-bottom: 1rem;
    }

    .news-title {
        font-size: 1rem;
    }

    .news-description {
        font-size: 0.9rem;
    }

    /* Carrusel */
    .carousel-container {
        width: 90%;
        height: auto;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0;
        text-align: center;
    }

    .social-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-text {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    /* Logo móvil */
    .mobile-header .logo img {
        height: 50px;
    }

    /* Menú móvil */
    .mobile-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .mobile-nav a {
        font-size: 1rem;
    }
}

/* ============================================================
   📱 CONFIGURACIÓN COMPLETA PARA TELÉFONOS CELULARES
   ============================================================ */
@media (max-width: 480px) {

    /* Ajuste general del cuerpo */
    body {
        padding: 0;
        margin: 0;
        font-size: 14px;
    }

    /* Banner principal */
    .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1em;
    }

    /* Texto principal */
    .text {
        width: 100%;
        font-size: 1rem;
        padding: 10px;
        text-align: justify;
    }

    /* Imagen principal */
    .image {
        width: 100%;
        margin-top: 15px;
    }

    /* Noticias */
    .news-container {
        padding: 1rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        margin-bottom: 1rem;
    }

    .news-title {
        font-size: 1rem;
    }

    .news-description {
        font-size: 0.9rem;
    }

    /* Carrusel */
    .carousel-container {
        width: 90%;
        height: auto;
    }

    /* Footer */
    .footer {
        padding: 1.5rem 0;
        text-align: center;
    }

    .social-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .footer-text {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    /* Logo móvil */
    .mobile-header .logo img {
        height: 50px;
    }

    /* Menú móvil */
    .mobile-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .mobile-nav a {
        font-size: 1rem;
    }
}