/* News List Page */
.news__wrapper {
    background-color: var(--c-primary-000);
    padding: 4rem 0;
}

.news {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0;
}

.news__column {
    position: relative;
    border-radius: 1rem;
    background-color: white;
    box-shadow: 0 0 30px rgba(20, 74, 76, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news__column:hover {
    transform: translateY(-0.75rem);
    box-shadow: 0 1rem 40px rgba(20, 74, 76, 0.1);
}

.news__img {
    position: relative;
    overflow: hidden;
}

.news__img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.news__column:hover .news__img::after {
    opacity: 1;
}

.news__img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.news__column:hover .news__img img {
    transform: scale(1.05);
}

.news__info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news__date {
    color: var(--c-primary-400);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.news .subtitle {
    font-size: 1.5rem;
    line-height: 1.3;
    margin: 0.5rem 0;
    color: var(--c-primary-500);
    transition: color 0.3s ease;
}

.news__column:hover .subtitle {
    color: var(--c-primary-400);
}

.news__text {
    color: var(--c-font-400);
    margin: 1rem 0;
    line-height: 1.6;
    flex-grow: 1;
}

.news__a {
    display: inline-flex;
    align-items: center;
    color: var(--c-primary-400);
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.news__a svg {
    width: 1rem;
    height: 1rem;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.news__column:hover .news__a {
    color: var(--c-primary-500);
}

.news__column:hover .news__a svg {
    transform: translateX(0.25rem);
}

/* News Detail Page */
article {
    overflow-x: hidden;
}

.new-detail__hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    background-color: var(--c-primary-600);
    margin-top: calc(-1 * var(--header-height));
    padding-top: calc(var(--header-height) + 2rem);
    display: flex;
    align-items: flex-end;
}

.new-detail__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0,0,0,0.4) 30%,
        rgba(0,0,0,0.9) 100%
    );
    z-index: 1;
}

.new-detail__hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.new-detail__hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 6rem 0 4rem;
    width: 100%;
}

.new-detail__hero-content .title {
    font-size: 3rem;
    line-height: 1.2;
    margin: 1rem 0;
    max-width: 900px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.new-detail__hero-content .subtitle {
    font-size: 1.5rem;
    line-height: 1.4;
    max-width: 800px;
    margin: 0;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.new-detail__info {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.new-detail__info .date,
.new-detail__info .author {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.new-detail__info svg {
    width: 1.2rem;
    height: 1.2rem;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.new-detail__content {
    max-width: 1100px;
    margin: 4rem auto;
    padding: 0 3rem;
}

.new-detail__content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--c-font-500);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.new-detail__content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--c-primary-500);
    margin: 3.5rem 0 1.5rem;
    line-height: 1.3;
}

.new-detail__content h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--c-primary-400);
    margin: 2.5rem 0 1rem;
}

.new-detail__content img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 1rem;
    margin: 3rem auto;
    display: block;
    box-shadow: 0 10px 40px rgba(20, 74, 76, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    object-fit: contain;
}

.new-detail__content img:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 15px 50px rgba(20, 74, 76, 0.18);
}

/* Asegurar que todas las imágenes estén contenidas */
.new-detail__content p img,
.new-detail__content figure img {
    max-width: 100%;
    height: auto;
}

.new-detail__content figcaption,
.new-detail__content em {
    display: block;
    text-align: center;
    color: var(--c-font-400);
    font-style: italic;
    font-size: 0.95rem;
    margin-top: 1rem;
}

.new-detail__content blockquote {
    position: relative;
    border-left: 4px solid var(--c-primary-400);
    background: linear-gradient(to right, var(--c-primary-000), transparent);
    padding: 2rem 2rem 2rem 2.5rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: var(--c-primary-500);
    border-radius: 0 0.5rem 0.5rem 0;
}

.new-detail__content blockquote p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.new-detail__content blockquote p:last-child {
    margin-bottom: 0;
}

.new-detail__content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--c-primary-200), transparent);
    margin: 3rem 0;
}

.new-detail__content a {
    color: var(--c-primary-400);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.new-detail__content a:hover {
    color: var(--c-primary-500);
}

.new-detail__content strong {
    color: var(--c-primary-500);
    font-weight: 600;
}

.new-detail__content ul,
.new-detail__content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.new-detail__content li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

.new-detail__share {
    border-top: 1px solid var(--c-primary-100);
    margin-top: 4rem;
    padding-top: 2rem;
    text-align: center;
}

.new-detail__share .subtitle {
    color: var(--c-primary-400);
    margin-bottom: 1.5rem;
}

.new-detail__ul {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.new-detail__li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--c-primary-000);
    color: var(--c-primary-400);
    transition: all 0.3s ease;
}

.new-detail__li a:hover {
    background-color: var(--c-primary-400);
    color: white;
    transform: translateY(-0.25rem);
}

.new-detail__li svg {
    width: 1.25rem;
    height: 1.25rem;
}

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

    .new-detail__hero-content .title {
        font-size: 2.5rem;
        max-width: 700px;
    }

    .new-detail__hero-content .subtitle {
        font-size: 1.3rem;
        max-width: 600px;
    }

    .new-detail__content {
        max-width: 900px;
        padding: 0 2.5rem;
    }

    .new-detail__content h2 {
        font-size: 2rem;
    }

    .new-detail__content h3 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 992px) {
    .new-detail__content {
        max-width: 95%;
        padding: 0 2rem;
    }

    .new-detail__content img {
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .news {
        grid-template-columns: 1fr;
    }

    .new-detail__hero {
        height: auto;
        min-height: 400px;
    }

    .new-detail__hero-content {
        padding: 4rem 0 3rem;
    }

    .new-detail__hero-content .title {
        font-size: 2rem;
    }

    .new-detail__hero-content .subtitle {
        font-size: 1.2rem;
    }

    .new-detail__info {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .new-detail__content {
        padding: 0 1rem;
        margin: 2rem auto;
        max-width: 100%;
    }

    .new-detail__content p {
        font-size: 1rem;
        line-height: 1.7;
        text-align: left;
        margin-bottom: 1.25rem;
    }

    .new-detail__content h2 {
        font-size: 1.75rem;
        margin: 2rem 0 1rem;
        line-height: 1.25;
    }

    .new-detail__content h3 {
        font-size: 1.35rem;
        margin: 1.75rem 0 0.75rem;
    }

    .new-detail__content blockquote {
        padding: 1.25rem 1rem 1.25rem 1.5rem;
        margin: 1.75rem 0;
        font-size: 1rem;
    }

    .new-detail__content blockquote p {
        font-size: 1rem;
    }

    .new-detail__content img {
        width: 100%;
        max-width: 100%;
        margin: 2rem 0;
        border-radius: 0.75rem;
    }

    .new-detail__content hr {
        margin: 2rem 0;
    }

    .new-detail__content ul,
    .new-detail__content ol {
        padding-left: 1.5rem;
        margin: 1.25rem 0;
    }

    .new-detail__content li {
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    .new-detail__content a {
        word-break: break-word;
    }

    .new-detail__share {
        margin-top: 3rem;
        padding: 2rem 1rem 1rem;
    }

    .new-detail__share .subtitle {
        font-size: 1.25rem;
    }

    .new-detail__ul {
        gap: 0.75rem;
    }

    .new-detail__li a {
        width: 2.75rem;
        height: 2.75rem;
    }

    .new-detail__li svg {
        width: 1.1rem;
        height: 1.1rem;
    }
}
