@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

nav {
    background-color: #333;
    padding: 5px;
    text-align: center;
    width: 100%;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-size: 20px;
    text-shadow: 0 0 5px #00ff00;
    font-weight: 600;
}

nav a:hover {
    text-decoration: underline;
}

h1 {
    color: #000000;
    text-shadow: 0 0 10px #46ff08;
    font-size: 70px;
    font-weight: 600;
}

.content {
    text-align: center;
    padding: 5px;
    font-size: 20px;
    width: 100%;
    background: rgb(0, 128, 90);
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
}

.grid-item {
    background-color: rgb(147, 147, 147);
    padding: 20px;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 20px;
    border-radius: 8%;
}

footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.noticias-container {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
    padding: 20px;
}

article.noticia {
    background-color: #ffffff;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 5px solid #4CAF50;
}

article.noticia:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

aside.destacado {
    background-color: #f4f4f4;
    padding: 10px;
    border-left: 4px solid #ff9800;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

aside.destacado:hover {
    transform: scale(1.05);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

article.noticia, aside.destacado {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

article.noticia:nth-child(1),
aside.destacado:nth-child(2) {
    animation-delay: 0.2s;
}

article.noticia:nth-child(3),
aside.destacado:nth-child(4) {
    animation-delay: 0.4s;
}

.noticia {
    margin-bottom: 20px;
}

.noticia h2 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 28px;
}

.noticia img,
.noticia p {
    vertical-align: top;
}

.noticia-contenido {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.noticia img {
    flex-shrink: 0;
    border-radius: 10px;
}

.noticia p {
    text-align: justify;
    line-height: 1.6;
}

h2 {
    color: #000000;
    text-shadow: 0 0 10px #fbff08;
    font-size: 40px;
    font-weight: 600;
    text-align: center;
}

.subscription-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
    background-color: #fcff38;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.subscription-form label {
    font-size: 18px;
    margin-bottom: 5px;
}

.subscription-form input {
    padding: 10px;
    font-size: 16px;
    margin-bottom: 15px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.subscription-form button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
}

.subscription-form button:hover {
    background-color: #45a049;
}

button {
    background-color: #4CAF50;
    color: rgb(0, 0, 0);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.5s ease; 
}

button:hover {
    background-color: #f0ed3b; 
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Estilo para las pestañas */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tab-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    font-size: 18px;
    margin: 0 10px;
}

.tab-button:hover {
    background-color: #45a049;
}

/* Estilo para el contenido de las pestañas */
.tab-content {
    text-align: center;
}

.tab-item {
    display: none;
}

.tab-item.active {
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 18px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

table thead {
    background-color: #4CAF50;
    color: white;
}

table th, table td {
    padding: 12px 15px;
    border: 1px solid #dddddd;
}

table tbody tr:nth-child(even) {
    background-color: #f3f3f3;
}

table tbody tr:nth-child(odd) {
    background-color: #fff;
}

table tbody tr:hover {
    background-color: #f1f1f1;
    cursor: pointer;
}

table tbody tr td:first-child {
    font-weight: bold;
}

table tbody tr td:nth-child(2) {
    text-align: left;
    padding-left: 20px;
}

.uniform-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Divide en 4 columnas iguales */
    grid-gap: 10px; /* Espacio entre los elementos */
    width: 100%;
    padding: 20px;
}

.uniform-item {
    background-color: #f2f2f2;
    padding: 20px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.container {
    padding: 10px 20px;
    position: relative;
    background: rgb(240, 182, 73);
    width: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.container.left {
    left: -6%;
}

.container.right {
    left: 52%;
}

.container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    top: 15px;
    background-color: #4CAF50;
    border: 4px solid white;
    border-radius: 50%;
    z-index: 1;
}

.container.left::after {
    right: -17px;
}

.container.right::after {
    left: -17px;
}

.content-timeline {
    padding: 20px 30px;
    background: #fff;
    border-radius: 10px;
    position: relative;
}

.content-timeline h3 {
    color: #000000;
    margin-top: 0;
}

.content-timeline p {
    margin: 10px 0;
    color: #555;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: #4CAF50;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

@media screen and (max-width: 600px) {
    .container {
        width: 100%;
        left: 0;
    }

    .container.right {
        left: 0;
    }

    .timeline::before {
        left: 20px;
    }

    .container.left::after, .container.right::after {
        left: 15px;
    }
}

/* Estilo para el formulario */
.comentario-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px;
    background: #8f7a7a;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comentario-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.comentario-form input,
.comentario-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.comentario-form button {
    background-color: #4CAF50;
    color: rgb(0, 0, 0);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
}

.comentario-form button:hover {
    background-color: #45a049;
}

/* Barra de redes sociales */
.social-bar {
    text-align: center;
    margin-top: 10px;
}

.social-bar h3 {
    margin-bottom: 20px;
}

.social-icon {
    margin: 0 100px;
}

.social-icon img {
    width: 100px;
    height: 80px;
    transition: transform 0.3s;
}

.social-icon img:hover {
    transform: scale(1.1);
}

/* Estilo para el mensaje de éxito */
.mensaje {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    padding: 20px; 
    margin: 20px 0; 
    background-color: #f9f9f9; 
    border: 1px solid #d1e7dd; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); 
}

#mensaje {
    font-size: 1.2em; 
    text-align: center; 
    color: #155724; 
    background-color: #d4edda; 
    padding: 15px; 
    border: 1px solid #c3e6cb; 
    border-radius: 5px; 
}


