 /* 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 computadoras ====== */
.desktop-nav {
    background-color: #333;
    padding: 10px 0;
    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ú en móviles ====== */
.mobile-header {
    display: none; /* Se oculta en computadoras */
}

/* ====== Menú móvil con logo centrado ====== */
@media (max-width: 768px) {
    /* Oculta el menú de escritorio */
    .desktop-nav {
        display: none;
    }

    /* Contenedor del logo y menú en móviles */
    .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;
    }

    /* Estilos del logo */
    .mobile-header .logo img {
        height: 60px;
    }

    /* Menú móvil debajo del logo */
    .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 a:hover {
        color: #9ccc65;
    }

    /* Ajuste del espacio para que el contenido no quede tapado */
    body {
        padding-top: 100px;
    }
}

/* Sección Hero (Banner Principal) */
.hero {
    position: relative;
    text-align: center;
    margin-bottom: 50px;
    height: 80vh;
    max-height: 800px;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(60%);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

.hero h1 {
    font-size: 4em;
    margin: 0;
    font-weight: bold;
}

.hero p {
    font-size: 1.5em;
    margin: 15px 0;
}

/* Main Content Section */
main {
    padding: 50px 20px;
}

/* Contenedor principal */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* Contenido centrado */
.content {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    max-width: 900px;
    width: 90%;
    gap: 20px;
}

/* Texto */
.text {
    font-size: 1.5rem;
    color: #043d15;
    width: 40%;
}

/* 📄 Texto */
.text {
    font-size: 1.2rem;
    color: #023B08;
    width: 40%;
    text-align: justify;
    line-height: 1.5;
}

/* 🗺 Imagen del mapa */
.image {
    position: relative;
    width: 20%;
    max-width: 400px; /* Ajuste para computadoras */
    display: flex;
    justify-content: center;
    align-items: center;
}

.image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 🔴 Epicentro del sismo */
.quake {
    position: absolute;
    top: 45%; /* Ajustar la posición del epicentro */
    left: 58%;
    transform: translate(-45%, -45%);
    width: 15px;
    height: 15px;
    background-color: orange;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.8);
}

/* 🔄 Ondas sísmicas */
.quake::before, .quake::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    border: 2px solid orange;
    border-radius: 50%;
    opacity: 0.7;
    animation: quake-animation 2s infinite ease-out;
}

.quake::after {
    width: 50px;
    height: 50px;
    animation-delay: 0.8s;
}

/* 🔄 Animación de las ondas */
@keyframes quake-animation {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

/* 📱 Diseño adaptable para móviles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        text-align: center;
    }

    .text {
        width: 90%;
        font-size: 1rem;
    }

    .image {
        width: 80%;
    }

    .quake {
        width: 12px;
        height: 12px;
    }

    .quake::before {
        width: 25px;
        height: 25px;
    }

    .quake::after {
        width: 40px;
        height: 40px;
    }
}

/* 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;
}

/**/
.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: #0077cc;
  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;
    }
}