* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Header */
header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background-color: transparent;
    position: fixed;
    width: 100%;
    z-index: 9999;
    transition: background-color 0.5s ease;
    font-family: Arial, sans-serif;

}

header.scrolled {
    background-color: #000000;
}

header:hover {
    background-color: #000000;
}


.logo img {
    height: 60px;
}

.menu {
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    list-style-type: none;
    display: flex;
    gap: 60px;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-weight: bold;
    font-size: 16px;
}

.menu a {
    list-style-type: none;
    text-decoration: none;
    color: white;

}

.menu a:hover {
    color: grey;
}

.menu img {
    width: 25px;
}

.menu img:hover {
    transform: scale(1.2);
}


.iconos-redes {
    display: flex;
    align-items: center;
    gap: 20px;
}


/*Menú hamburguesa para pantallas pequeñas*/

.hamburguesa {
    display: none;
    font-size: 30px;
    cursor: pointer;
}


/*Reponsive del menú*/
@media (max-width: 1024px) {
    header {
        background-color: #000000;
    }

    .menu {
        width: 50%;
        text-align: center;
        box-sizing: border-box;
        display: none;
        flex-direction: column;
        flex-wrap: wrap;
        position: absolute;
        top: 50px;
        right: 0;
        padding: 5%;
    }

    .menu li {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .menu img:hover {
        transform: scale(1.2);
    }

    .menu.activo,
    .iconos-redes {
        display: flex;
        background-color: #181818;
        gap: 20px;
    }

    .hamburguesa {
        display: block;
        color: white;
        margin-top: -40px;
    }

    body {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    header {
        background-color: #000000;
    }

    .menu {
        width: 50%;
        text-align: center;
        box-sizing: border-box;
        display: none;
        flex-direction: column;
        flex-wrap: wrap;
        position: absolute;
        top: 50px;
        right: 0;
        padding: 5%;
    }

    .menu li {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .menu img:hover {
        transform: scale(1.2);
    }

    .menu.activo,
    .iconos-redes {
        display: flex;
        background-color: #181818;
        gap: 20px;
    }

    .hamburguesa {
        display: block;
        color: white;
        margin-top: -40px;
    }

    body {
        overflow-x: hidden;
    }
}

/* Body */
body {
    background-color: #FEA100;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.fondo {
    background-image: url(../images/feray_central.png);
    background-size: cover;
    background-repeat: no-repeat;
    height: 100vh;
}

.inicio {
    margin-top: 25%;
    padding: 100px 0px;
    backdrop-filter: blur(0px);
}

.main-container {
    margin-left: 4%;
    margin-right: 4%;
    padding-top: 5%;
    background: linear-gradient(to top, rgba(254, 161, 0, 0.5) 91%, rgba(254, 161, 0, 0) 100%);
    background-size: 100% 2000px;
}

.filtros {
    margin-bottom: 50px;
    display: flex;
    gap: 25px;
}

.filtro {
    border: none;
    background-color: transparent;
    color: #ffffff;
    font-size: 25px;
    cursor: pointer;
}

.activo,
.filtro:hover {
    color: #fcda9e;
    border: none;
    background-color: transparent;
    font-size: 25px;
    cursor: pointer;
}

.tarjetas {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    flex-wrap: wrap;
}

.tarjeta {
    background-color: #ffffff;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    max-width: 600px;
    overflow: hidden;
    padding-bottom: 8%;
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 0.3s ease-out, transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.tarjeta.mostrar {
    opacity: 1;
    transform: translateY(0);
}


.tarjeta img {
    width: 100%;
    max-width: 600px;
    height: 400px;
    object-fit: cover;
    object-position: top center;
    transition: 0.8s ease;
}

.tarjeta img:hover {
    transform: scale(1.2);
}

.tarjeta a {
    text-decoration: none;
    color: #010101;
    display: block;
}

.tarjeta time {
    font-weight: 600;
    font-family: Arial, Helvetica, sans-serif;
}

.tarjeta h2 {
    margin-top: 10px;
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 20px;
    font-weight: 900;
    font-family: Arial, Helvetica, sans-serif;
}

.tarjeta p {
    color: gray;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 15px;
    text-align: justify;
}

.tarjeta-texto {
    margin-top: 15px;
    margin-left: 30px;
    margin-right: 30px;
}

/*Versión responsive de inicio*/
@media (max-width: 1440px) {

    .tarjetas {
        grid-template-columns: repeat(3, 1fr);
    }

    .inicio {
        margin-top: 25%;
    }

    .filtros {
        gap: 25px;
    }

    .fondo {
        background-size: 100%;
        background-repeat: no-repeat;
        background-position: center -50%;
    }
}

@media (max-width: 1200px) {

    .tarjetas {
        grid-template-columns: repeat(2, 1fr);
    }

    .inicio {
        margin-top: 28%;
    }

    .filtros {
        gap: 20px;
    }

    .filtro,
    .activo {
        font-size: 20px;
    }

    .activo,
    .filtro:hover {
        font-size: 20px;
    }

    .fondo {
        background-size: 100%;
        background-repeat: no-repeat;
        background-position: center -50%;
    }
}

@media (max-width: 768px) {

    .tarjetas {
        grid-template-columns: repeat(1, 1fr);
    }

    .inicio {
        margin-top: 35%;
    }

    .filtros {
        gap: 20px;
    }

    .filtro,
    .activo {
        font-size: 20px;
    }

    .activo,
    .filtro:hover {
        font-size: 20px;
    }

    .fondo {
        background-size: 100%;
        background-repeat: no-repeat;
        background-position: center -100%;
    }
}

@media (max-width: 480px) {

    .tarjetas {
        grid-template-columns: repeat(1, 1fr);
    }

    .inicio {
        margin-top: 70%;
    }

    .filtros {
        gap: 15px;
    }

    .filtro,
    .activo {
        font-size: 15px;
    }

    .activo,
    .filtro:hover {
        font-size: 15px;
    }

    .fondo {
        background-size: 220%;
        background-repeat: no-repeat;
        background-position: center;
    }

}

.compartir {
    position: fixed;
    bottom: 50px;
    right: 6px;
    width: 70px;
    z-index: 9999;
}

.compartir:hover {
    animation: vibrar 0.2s linear;
}

.compartir-articulos {
    position: fixed;
    bottom: 20px;
    right: 30px;
    width: 80px;
    z-index: 9999;
}

.compartir-articulos:hover {
    animation: vibrar 0.2s linear;
}

@keyframes vibrar {
    0% {
        transform: translate(0);
    }

    25% {
        transform: translate(-2px, 2px);
    }

    50% {
        transform: translate(2px, -2px);
    }

    75% {
        transform: translate(-2px, -2px);
    }

    100% {
        transform: translate(2px, 2px);
    }
}

/* ----------------Páginas Articulos Social Media / Presnsa--------------*/
.header-articulos {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
}

.body-articulos {
    background-color: white;
}

#main-header {

    background-size: contain;
    background-position: center;
    position: relative;
    height: 75vh;
    margin-top: 0;
    padding-top: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: #fff;
    z-index: 1;
    /* Está detrás del header */
    transition: opacity 0.5s ease, transform 0.5s ease;
    /* Agregado para animación de ocultamiento */
}

/* Botón flecha */
.arrow-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 3;
    transition: filter 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arrow-img {
    width: 15px;
    height: auto;
    transition: transform 0.3s ease;
    transform-origin: center center;
    /* Escala desde el centro */
}

.arrow-btn:hover .arrow-img {
    transform: scale(1.3);
}

/* Estilos para el main (asegura que ocupe toda la pantalla cuando el header se oculte) */
#main-content {
    min-height: 100vh;
    transition: margin-top 0.5s ease;
    background: #fff;
    padding: 3% 20%;
    color: #909090;
    font-family: Arial, sans-serif;
    width: 90%;
    margin: 0 auto;
}

/* Cuando el header esté oculto, el main sube para ocupar el espacio */
#main-content.expanded {
    margin-top: 0;
    /* Sin margen superior */
}

/* Imagen de fondo*/
.header-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    object-fit: cover;
    z-index: 1;
}

/* Capa oscura sobre la imagen */
.header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Texto encima de la imagen */
#main-header h1 {
    position: relative;
    z-index: 2;
    font-weight: 900;
    line-height: 1.1;
    max-width: 75%;
    font-family: Arial, sans-serif;
    font-size: 86px;
    margin-top: 0;
    transition: opacity 0.5s ease, transform 0.5s ease;

}

.post-meta {
    color: #e8e8e8;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    z-index: 2;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 1rem;
}

.post-meta a.meta-link {
    color: #e8e8e8;
    text-decoration: none;

}

.post-meta a.meta-link:hover {
    color: #000000;
}

article p,
ul {
    text-align: justify;
    margin-top: 0;
    margin-bottom: 1.25rem;
    font-size: 15px;
    line-height: 1.7;
    list-style-position: inside;
}

.titulo {
    font-size: 35px;
    color: #000000;
    margin-top: 5%;
    margin-bottom: 3%;
    font-weight: 0;
}

article h2 {
    color: #000000;
    font-size: 37px;
    margin-top: 5%;
    margin-bottom: 3%;
}

article h3 {
    color: #000000;
    font-size: 30px;
    margin-bottom: 0.9rem;
}

article h4 {
    color: #000000;
    font-size: 28px;
    margin-bottom: 0.9rem;
}

article h5 {
    color: #000000;
    font-size: 23px;
    margin-bottom: 0.9rem;
}

article h6 {
    color: #000000;
    font-size: 20px;
    margin-bottom: 0.9rem;
}

article strong {
    color: #272727;
}


.lista {
    list-style: none;
    /* quita los puntos */
}

.publicacion-instagram {
    display: flex;
    justify-content: center;
    align-items: center;
}

.instagram-media {
    max-width: 700px;
    width: 100%;
    margin: auto;
}

.cita-malagaldia {
    width: 140%;
    margin-top: 10%;
    margin-left: -20%;
    display: flex;
    justify-content: center;
    gap: 20%;
    overflow: visible;
}

.cita-malagaldia img {
    width: 70%;
    margin-right: -22%;
    margin-left: 0;
    display: block;
}


#texto-cita {
    width: 120%;
    font-size: 2.3rem;
    font-weight: 600;
    color: #000000;
}

article a {
    text-decoration: none;
    color: #000000;
}

.footer-articulos {
    background-color: #f7f7f7;
    text-align: center;
    padding: 2% 5%;
    width: 100%;
}

.footer-articulos h3 {
    margin-bottom: 2%;
    font-size: 30px;
    font-family: Arial, Helvetica, sans-serif;

}

.footer-articulos .tarjetas {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    flex-wrap: wrap;
}

.nav-articulos {
    display: flex;
    justify-content: space-between;
    margin: 70px 300px;
}

.nav-articulos a {
    text-decoration: none;
    color: #494847;
    font-weight: 800;
    font-size: 15px;
    font-family: Arial, Helvetica, sans-serif;
}

.enlace-categoria {
    border: 1px solid #ccc;
    padding: 3px 6px;
}


/*Categorias*/

.header-categoria {
    background-color: #000000;
    color: #e8e8e8;
    display: flex;
    justify-content: center;
    position: absolute;
    z-index: 2;
    font-family: Arial, sans-serif;
    top: 0;
    height: 35rem;
    font-size: 2rem;
}

.tarjetas-categoria {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 28rem;
}



/* ----------------------Página Contacto ----------------------------*/
.contact-container {
    flex: 1;
    /* ocupa todo el espacio entre header y footer */
}

/*PRENSA*/

.tarjeta-secundaria {
    background-color: #ffffff;
    border-radius: 8px;
    width: 100%;
    height: 100%;
    max-width: 600px;
    overflow: hidden;
    padding-bottom: 8%;
    box-shadow: #d2d2d2 0 0 30px;
}


/* Contacto, prensa y social media */

.header-secundario {
    background-color: #000000;
}

.contact-container,
.main-prensa,
.main-social-media {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 150px 20px;
}

/* Formulario */
.contact-form {
    font-family: Arial, sans-serif;
    width: 100%;
    max-width: 700px;
    /* limita el ancho en pantallas grandes */
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.contact-form input,
.contact-form textarea {
    font-family: Arial, sans-serif;
    margin-bottom: 20px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f8f8f8;
    font-size: 15px;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #181818;
    outline: none;
}

/* Botón */
.contact-form button {
    background-color: #181818;
    color: white;
    border: none;
    padding: 12px 20px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 4px;
}

.contact-form button:hover {
    background-color: #494847;
}

/*footer articulo */
.article-footer {
    border-top: 1px solid #eee;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* para que se adapte en pantallas pequeñas */
    gap: 1rem;
}

.categorias {
    display: inline-block;
    padding: 0.4rem 0.3rem;
    font-size: 12px;
    border: 1px solid #dbd9d9;
    font-weight: 400;
    color: #6d6c6c;
    text-decoration: none;
}


.social-links img {
    width: 20px;
    height: auto;
    display: block;
}

.social-links img:hover {
    filter: invert(63%) sepia(77%) saturate(1700%) hue-rotate(1deg) brightness(100%) contrast(105%);
}

.social-links li {
    margin: 0;
    padding: 0;
}

.social-links ul {
    list-style: none;
    text-decoration: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 10px;
}




/* Responsive */
@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
}

/* Footer */
.footer {
    background-color: #181818;
    color: #fff;
    padding: 36px 36px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* para que se adapte en pantallas pequeñas */
}

.footer-divider {
    height: 40px;
    /* grosor de la franja */
    background-color: #f0eded;
    width: 100%;
}

.social-icons img {
    color: #fff;
    text-decoration: none;
    margin-left: 10px;
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

.footer a:hover img {
    transform: scale(1.2);
    /* agranda ligeramente */
}

/* Botones Anterior y Sicuiente */
.nav-articulos {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    margin: 2rem 0;
}

.nav-articulos a {
    color: #000000;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}


/* Versión responsive */
@media (max-width: 600px) {
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

/*Tablets */
@media (max-width: 1024px) {
    .header-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
}

/*Móviles */
@media (max-width: 768px) {
    .header-overlay {
        background: rgba(0, 0, 0, 0.7);
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 10px;
    }
}

/* Pequeños*/
@media (max-width: 480px) {
    .header-overlay {
        background: rgba(0, 0, 0, 0.7);
        padding: 8px;
        height: 100%;
    }
}


/*Tablets */
@media (max-width: 1024px) {
    #main-content {
        padding: 60px 20px;
    }
}

/*Pequeño */
@media (max-width: 480px) {
    #main-content {
        padding: 40px 15px;
    }
}


/* Tablets */
@media (max-width: 1024px) {
    #main-header h1 {
        font-size: 4rem;
        max-width: 80%;
    }
}

/*Móviles */
@media (max-width: 768px) {
    #main-header h1 {
        font-size: 3rem;
        max-width: 95%;
    }
}

/* Pequeños */
@media (max-width: 480px) {
    #main-header h1 {
        font-size: 2.5rem;
        max-width: 100%;
    }
}

/* Responsive para las tarjetas del footer de artículos */
@media (max-width: 1200px) {
    .footer-articulos .tarjetas {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-articulos .tarjetas {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* Responsive para las tarjetas de las categorias de los artículos */
@media (max-width: 1440px) {
    .tarjetas-categoria {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .tarjetas-categoria {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tarjetas-categoria {
        grid-template-columns: repeat(1, 1fr);
    }
}


/* Responsive botones de siguiente y anterior en articulos */
@media (max-width: 480px) {
    .nav-articulos {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

}