/* ------------------ VARIABLES ------------------ */
:root {
    --verde: #808000;
    --amarelo: #fffd45;
    --branco: #ffffff;
    --texto-oscuro: #151f28;

    --font-titulo: 'League Spartan', serif;
    --font-texto: 'Source Sans Pro', sans-serif;
    --font-destacada: 'League Spartan', sans-serif;
}

/* ===========================
   Selección de texto
=========================== */
::selection {
    background-color: var(--amarelo);
    color: var(--verde);
}

::-moz-selection {
    background-color: var(--amarelo);
    color: var(--verde);
}

/* ===========================
   Hover en títulos h1-h6
=========================== */
:is(h1, h2, h3, h4, h5, h6):hover {
    color: var(--amarelo);
    cursor: pointer;
    transition: color 0.3s ease;
}

/* ===========================
   RESET GENERAL
=========================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-texto);
    background-color: var(--branco);
    color: var(--texto-oscuro);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ===========================
   CONTAINERS
=========================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

main {
    padding-top: 80px; 
    padding-bottom: 3rem;
}

/* ===========================
   HEADER FIXO
=========================== */
header.site-header {
    background-color: var(--verde);
    color: var(--amarelo);
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    transition: top 0.4s;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

header.hidden {
    top: -80px;
}

.logo-link img.logo-img {
    height: 60px;
    cursor: pointer;
}

.menu-trigger {
    font-size: 1.5rem;
    color: var(--amarelo);
    background: none;
    border: none;
    cursor: pointer;
}

/* ===========================
   MODAL DE IMAXE
=========================== */
#modal-img {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#modal-img img {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    border-radius: 8px;
}

/* ===========================
   MENÚ DESPEGABLE
=========================== */
nav#menu-panel {
    position: absolute;
    top: 80px;
    right: 0;
    width: 250px;
    background-color: var(--verde);
    display: none;
    flex-direction: column;
    padding: 1rem;
}

nav#menu-panel.active {
    display: flex;
}

nav#menu-panel ul.nav-links {
    list-style: none;
    text-transform: uppercase;
}

nav#menu-panel ul.nav-links li {
    margin: 0.8rem 0;
}

nav#menu-panel ul.nav-links li a {
    color: var(--amarelo);
    font-weight: 700;
}

.search-container input {
    width: 100%;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--amarelo);
    margin-top: 1rem;
    color: var(--verde);
    background: var(--branco);
}

/* ===========================
   TITULARES
=========================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titulo);
}

.featured-title {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--amarelo);
    margin-bottom: 0.5rem;
    text-align: left;
}

.featured-sub {
    font-size: 1.2rem;
    line-height: 1.3;
    text-align: left;
}

.news-item h3 {
    font-size: 1.2rem;
    line-height: 1;
    color: var(--verde);
    margin: 0.5rem 0;
    text-align: center;
}

/* ===========================
   BOTONES
=========================== */
.featured-link .read-more {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--amarelo);
    color: var(--verde);
    font-family: var(--font-destacada);
    font-weight: 600;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.featured-link .read-more:hover {
    background-color: #f2f200;
}

/* ===========================
   SECCIÓN DESTACADA
=========================== */
.featured {
    position: relative;
    margin-top: 0;
}

.featured-image {
    width: 100%;
    height: 70vh;
    object-fit: cover;
    object-position: center;
    filter: brightness(60%);
    transition: filter 0.3s;
}

.featured:hover .featured-image {
    filter: brightness(40%);
}

.featured-text {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    color: var(--amarelo);
}

/* ===========================
   NOTICIAS
=========================== */
.mais-reportaxes {
    padding: 3rem 0;
}

.mais-reportaxes h2 {
    color: var(--verde);
    font-family: var(--font-titulo);
    margin-bottom: 1.5rem;
    text-align: center;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.news-item {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    text-align: center;
}

.news-item:hover {
    transform: scale(1.02);
}

.news-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1rem;
}

.news-item p {
    font-size: 1rem;
    line-height: 1.5;
    text-align: center;
    margin: 0 1rem 1.5rem;
}

/* ===========================
   REPORTAXE INDIVIDUAL
=========================== */
.reportaxe {
    padding: 2rem 0;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.reportaxe .container {
    padding: 0 3rem;
}

.reportaxe-header {
    margin-bottom: 2rem;
    text-align: center;
}

.reportaxe-title {
    font-size: 3rem;
    color: var(--verde);
    margin-bottom: 0.5rem;
}

.reportaxe-subtitle {
    font-size: 1.5rem;
    font-family: var(--font-destacada);
    color: var(--texto-oscuro);
    margin-bottom: 1rem;
}

.reportaxe-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 2rem;
}

.reportaxe-figure {
    margin: 2rem 0;
}

.reportaxe-figure img {
    width: 100%;
    height: auto;
}

.reportaxe-figure figcaption {
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    margin-top: 0.5rem;
}

.reportaxe-content h2 {
    font-size: 2rem;
    color: var(--verde);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--amarelo);
    padding-bottom: 0.3rem;
}

.reportaxe-content p {
    margin-bottom: 1.5rem;
}

/* ===========================
   PAGE GREEN
=========================== */
.page-green { 
    background-color: var(--verde);
    color: var(--amarelo);
    padding: 3rem 2rem;
    min-height: calc(100vh - 80px);
    margin-top: 0;
}

.page-green .container {
    max-width: 800px;
}

.page-green .page-title {
    font-size: 3rem;
    color: var(--amarelo);
    text-align: center;
    margin-bottom: 2rem;
}

.page-green .page-content h2 {
    font-size: 2rem;
    color: var(--amarelo);
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--amarelo);
    padding-bottom: 0.3rem;
}

.page-green .page-content p {
    margin-bottom: 1.5rem;
}

.page-green a {
    color: var(--amarelo);
    text-decoration: underline;
}

/* ===========================
   FORMULARIO CONTACTO
=========================== */
.page-green.contacto .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.page-green.contacto .contact-form label {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--amarelo);
}

.page-green.contacto .contact-form input,
.page-green.contacto .contact-form textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid var(--amarelo);
    border-radius: 6px;
    font-size: 1.2rem;
    font-family: var(--font-texto);
    color: var(--amarelo);
    background-color: rgba(128, 128, 0, 0.2);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.page-green.contacto .contact-form input:focus,
.page-green.contacto .contact-form textarea:focus {
    outline: none;
    border-color: var(--amarelo);
    background-color: rgba(128, 128, 0, 0.35);
}

.page-green.contacto .contact-form button {
    width: 100%;
    padding: 1.2rem;
    background-color: var(--verde);
    color: var(--amarelo);
    font-family: var(--font-destacada);
    font-weight: 700;
    border: none;
    border-radius: 6px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.page-green.contacto .contact-form button:hover {
    background-color: #666600;
}

/* ===========================
   THANK YOU MESSAGE
=========================== */
.thank-you {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    text-align: center;
}

.thank-you.show {
    opacity: 1;
}

/* ===========================
   FOOTER
=========================== */
footer.site-footer {
    background-color: var(--verde);
    color: var(--amarelo);
    padding: 2rem 1rem;
    margin-top: 0rem;
}

footer .footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--amarelo);
}

footer .socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

footer .socials a {
    display: inline-flex;
    align-items: center;
}

footer .socials a img {
    width: 30px;
    height: 30px;
}

footer .copyright {
    text-align: center;
    font-size: 0.9rem;
}

/* ===========================
   BLOCKQUOTE
=========================== */
blockquote {
    border-left: 4px solid var(--amarelo);
    padding-left: 1rem;
    font-style: italic;
    margin: 2rem 0;
    color: var(--amarelo);
}

/* ===========================
   RESPONSIVE OPTIMIZADO
=========================== */
@media (max-width: 1024px) {
    .featured-title { font-size: 2.5rem; }
    .featured-sub { font-size: 1.1rem; }
    .reportaxe-content h2 { font-size: 1.8rem; }
    .reportaxe { padding: 1.5rem 1rem; }
    .container { padding: 0 1.5rem; }
}

@media (max-width: 768px) {
    header.site-header { height: 65px; }
    .header-inner { padding: 0 0.8rem; }
    .logo-link img.logo-img { height: 45px; }
    .featured-title { font-size: 2rem; }
    .featured-sub { font-size: 1rem; }
    nav#menu-panel { width: 100%; top: 65px; padding: 0.8rem; }
    .reportaxe { padding: 1rem 0.8rem; font-size: 1rem; }
    .reportaxe-content h2 { font-size: 1.6rem; }
    .reportaxe-content p { font-size: 0.95rem; line-height: 1.6; }
}

@media (max-width: 480px) {
    header.site-header { height: 60px; }
    .header-inner { padding: 0 0.5rem; }
    .logo-link img.logo-img { height: 40px; }
    .featured-title { font-size: 1.5rem; line-height: 1.2; }
    .featured-sub { font-size: 0.9rem; line-height: 1.2; }
    .reportaxe { padding: 0.8rem 0.5rem; font-size: 0.95rem; line-height: 1.5; }
    .reportaxe-content h2 { font-size: 1.4rem; }
    .reportaxe-content p { font-size: 0.9rem; line-height: 1.4; }
    .news-item img { height: 150px; }
    .featured-image { height: 50vh; }
    .search-container input { padding: 0.4rem; font-size: 0.9rem; }
    .page-green.contacto .contact-form input,
    .page-green.contacto .contact-form textarea { padding: 0.8rem; font-size: 1rem; }
    .page-green.contacto .contact-form button { padding: 0.8rem; font-size: 1rem; }
}
