/* ==========================================================================
   YADEA MÉXICO - NOTICIAS (UI/UX PREMIUM)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. HOME NEWS SECTION
   -------------------------------------------------------------------------- */
.yadea-home-news {
    padding: 80px 0;
    background-color: #fcfcfc;
    position: relative;
    overflow: hidden;
}

.yadea-home-news__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.yadea-home-news__title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111111;
    margin: 0;
    letter-spacing: -0.05em;
    position: relative;
}

.yadea-home-news__title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background-color: #ff5000;
    margin-top: 10px;
    border-radius: 2px;
}

.yadea-home-news__view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: #ff5000;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.yadea-home-news__view-all:hover {
    gap: 12px;
}

/* --------------------------------------------------------------------------
   2. NEWS GRID & CARDS
   -------------------------------------------------------------------------- */
.yadea-news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.yadea-news-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0,0,0,0.03);
}

.yadea-news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.yadea-news-card__image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 60%; /* Aspect ratio balanceado */
    overflow: hidden;
    background-color: #f5f5f5;
}

.yadea-news-card__image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.yadea-news-card:hover .yadea-news-card__image-wrapper img {
    transform: scale(1.05);
}

/* Categoría debajo del título */
.yadea-news-card__category {
    display: inline-block;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-top: auto;
    align-self: flex-start;
    transition: background-color 0.3s ease, color 0.3s ease;
    z-index: 2; /* Para que sea clickeable si alguna vez lleva link, o este arriba del layer del link global */
}

.yadea-news-card:hover .yadea-news-card__category {
    background: #ff5000;
    color: #fff;
}

.yadea-news-card__content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.yadea-news-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #666666;
    font-weight: 500;
}

.yadea-news-card__date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.yadea-news-card__share {
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 20; /* Asegurar que quede por encima del enlace */
}

.yadea-news-card__share:hover {
    color: #ff5000;
}

.yadea-news-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 15px 0;
    color: #111111;
    transition: color 0.3s ease;
}

.yadea-news-card:hover .yadea-news-card__title {
    color: #ff5000;
}

.yadea-news-card__link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Menor que el z-index del share (20) */
    opacity: 0;
}

/* --------------------------------------------------------------------------
   3. RESPONSIVE NEWS GRID
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .yadea-news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .yadea-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .yadea-home-news {
        padding: 60px 0;
    }
    
    .yadea-home-news__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .yadea-news-grid {
        grid-template-columns: 1fr;
    }
    
    .yadea-news-card__title {
        font-size: 1.15rem;
    }
}

/* --------------------------------------------------------------------------
   4. ARCHIVE NEWS (LANDING)
   -------------------------------------------------------------------------- */
.yadea-news-landing {
    padding-top: 0;
}

.yadea-news-hero {
    background: #111111;
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.yadea-news-hero__title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin: 0 0 15px 0;
}

.yadea-news-filters {
    background: #ffffff;
    padding: 20px 0;
    border-bottom: 1px solid #eeeeee;
    display: flex;
    align-items: center;
    position: sticky;
    top: 65px;
    z-index: 100;
    box-shadow: 0 10px 20px rgba(0,0,0,0.02);
}

.yadea-news-filters form {
    display: flex;
    gap: 15px;
    width: 100%;
    flex-wrap: wrap;
}

.yadea-news-filter__select {
    padding: 12px 20px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333333;
    background-color: #ffffff;
    min-width: 200px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.yadea-news-filter__select:focus {
    outline: none;
    border-color: #ff5000;
}

.yadea-news-filter__search {
    padding: 12px 20px;
    border: 1px solid #dddddd;
    border-radius: 8px;
    font-size: 0.95rem;
    flex-grow: 1;
    min-width: 250px;
}

.yadea-news-filter__submit {
    padding: 12px 25px;
    background: #ff5000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.yadea-news-filter__submit:hover {
    background: #e04500;
}

.yadea-news-archive-grid {
    padding: 60px 0;
    min-height: 50vh;
}

/* --------------------------------------------------------------------------
   5. SINGLE NEWS POST
   -------------------------------------------------------------------------- */
.yadea-single-news {
    background: #ffffff;
}

.yadea-single-news__hero {
    position: relative;
    width: 100%;
    background-color: #111;
    display: flex;
    overflow: hidden;
    padding: 120px 0 60px 0;
}

.yadea-single-news__hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.yadea-single-news__hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    color: #ffffff;
}

.yadea-single-news__title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 15px 0;
    letter-spacing: -0.05em;
}

.yadea-single-news__meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #dddddd;
}

.yadea-single-news__content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 5%;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #333333;
}

.yadea-single-news__content p {
    margin-bottom: 30px;
}

.yadea-single-news__content h2,
.yadea-single-news__content h3 {
    color: #111111;
    margin-top: 50px;
    margin-bottom: 20px;
    font-weight: 700;
}

.yadea-single-news__content img {
    border-radius: 12px;
    margin: 40px 0;
    width: 100%;
    height: auto;
}

/* Responsivo para Single y Landing */
@media (max-width: 767px) {
    .yadea-news-hero__title {
        font-size: 2.5rem;
    }
    .yadea-news-filters {
        position: static; /* Deshabilitar sticky en móvil para no estorbar */
    }
    .yadea-news-filters form {
        flex-direction: column;
    }
    .yadea-news-filter__select, 
    .yadea-news-filter__search,
    .yadea-news-filter__submit {
        width: 100%;
    }
    .yadea-single-news__title {
        font-size: 2rem;
    }
    .yadea-single-news__content {
        font-size: 1.05rem;
        padding: 40px 5%;
    }
}

/* ==========================================
   YADEA - BOTONES NARANJAS EN NOTICIAS
   ========================================== */

/* Etiquetas de categorías */
#noticias .yadea-news-card__category,
.yadea-news-card__category {
    background-color: #ff4300 !important;
    color: #ffffff !important;

    display: inline-block !important;
    padding: 10px 16px !important;
    border-radius: 5px !important;

    font-size: 12px !important;
    font-weight: 700 !important;
    text-align: center !important;
    text-decoration: none !important;
}

/* Enlaces dentro de las etiquetas */
.yadea-news-card__category a {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Efecto al pasar el cursor */
.yadea-news-card__category:hover {
    background-color: #d93600 !important;
}
