/*
Theme Name: Gente Lo Nuestro Theme
Author: Tu Nombre
Description: Tema personalizado CSS Puro (Sin Tailwind)
Version: 2.1
*/

/* --- 1. VARIABLES --- */
:root {
    /* Brand Colors (Constant) */
    --color-brand-blue: #00AEEF;
    --color-brand-orange: #F7941D;
    --color-brand-pink: #EC008C;
    --color-brand-green: #8CC63F;

    --color-blue: #008CBA;
    --color-magenta: #B2007E;
    --color-orange: #D98C26;
    --color-lime: #A4C639;

    /* Semantic Colors (Default = Dark Mode) */
    --bg-main: #111111;
    --bg-secondary: #1a1a2e;
    /* Header, Footer, Cards */
    --bg-tertiary: #222222;
    /* Slider bg, etc */
    --bg-input: #2a2a3e;

    --text-main: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #aaaaaa;
    --text-dark: #333333;
    /* For elements that remain light/dark specifically */

    --border-color: #333333;
    --border-light: rgba(255, 255, 255, 0.1);

    --shadow-card: 0 2px 5px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.5);

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --container-width: 1200px;
    --spacing: 1rem;
}

/* Light Mode Overrides */
body.light-mode {
    --bg-main: #f4f4f4;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e0e0e0;
    --bg-input: #f0f0f0;

    --text-main: #333333;
    --text-secondary: #555555;
    --text-muted: #777777;

    --border-color: #dddddd;
    --border-light: rgba(0, 0, 0, 0.1);

    --shadow-card: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* --- UTILITIES --- */
.text-blue {
    color: var(--color-brand-blue);
}

.text-orange {
    color: var(--color-brand-orange);
}

.text-pink {
    color: var(--color-brand-pink);
}

.btn-brand {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--color-brand-blue);
    color: #fff !important;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    transition: transform 0.3s;
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-brand:hover {
    background-color: #008cbf;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    color: var(--text-main) !important;
    /* Force semantic color */
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-brand-orange);
    margin: 10px auto 0;
}

/* --- 2. RESET Y BASES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding-top: 85px;
    transition: background-color 0.3s, color 0.3s;
    /* Smooth theme transition */
}

main {
    margin: 0;
    padding: 0;
    display: block;
}

.slider-container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    line-height: 0;
    display: block;
    background-color: var(--bg-tertiary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- 3. LAYOUT --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
    width: 100%;
}

/* --- 4. HEADER --- */
.site-header {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-card);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease-in-out, background-color 0.3s;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

.header-border {
    height: 4px;
    background: linear-gradient(90deg, var(--color-brand-pink), var(--color-brand-orange), var(--color-brand-blue));
    width: 100%;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    gap: 20px;
    flex-wrap: nowrap;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* SEARCH */
.header-search {
    flex-shrink: 0;
    margin-left: 15px;
}

.search-form {
    display: flex;
    align-items: center;
    background-color: var(--bg-input);
    /* Use variable */
    border-radius: 20px;
    padding: 4px 12px;
    width: auto;
    border: 1px solid var(--border-color);
}

.search-field {
    width: 100px;
    font-size: 0.8rem;
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-main);
}

.search-field::placeholder {
    color: var(--text-muted);
}

.search-form:focus-within {
    border-color: var(--color-brand-blue);
    box-shadow: 0 0 5px rgba(0, 174, 239, 0.3);
}

.search-submit {
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    padding: 0;
    margin-left: 5px;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.search-submit:hover {
    color: var(--color-brand-blue);
}

@media (max-width: 1024px) {
    .header-search {
        display: none;
    }
}

/* NAV */
.main-nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    flex-wrap: nowrap;
}

/* Dropdown Menu */
.menu-list li {
    position: relative;
}

.menu-list li.has-dropdown>a {
    padding-right: 25px;
}

.menu-list li.has-dropdown>a i {
    font-size: 0.8em;
    margin-left: 5px;
}

.main-nav .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-secondary);
    min-width: 200px;
    box-shadow: var(--shadow-hover);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 0 0 8px 8px;
    z-index: 1001;
    border-top: 2px solid var(--color-brand-orange);
    display: block;
    /* Ensure flex doesn't mess it up */
}

.menu-list li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-main);
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
    font-size: 0.95rem;
}

.dropdown-menu li:last-child a {
    border-bottom: none;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-tertiary);
    color: var(--color-brand-orange);
    padding-left: 25px;
    /* Slight indent on hover */
}

/* Mobile Dropdown */
.mobile-menu-list .has-dropdown .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.1);
    min-width: 100%;
    border-top: none;
    display: none;
    /* Hidden by default on mobile, toggle via JS or just show */
    padding-left: 1rem;
}

.mobile-menu-list .has-dropdown.active .dropdown-menu {
    display: block;
}

/* --- NAVBAR HOVER COLORS --- */

/* Main Nav Items */
.nav-item-home:hover>a {
    color: #3b82f6 !important;
}

/* Blue */
.nav-item-ediciones:hover>a {
    color: #f97316 !important;
}

/* Orange */
.nav-item-podcasts:hover>a {
    color: #84cc16 !important;
}

/* Green */
.nav-item-categorias:hover>a {
    color: #d946ef !important;
}

/* Fuchsia */
.nav-item-articulos:hover>a {
    color: #3b82f6 !important;
}

/* Blue */

/* Dropdown Items (Category Colors) */
.dropdown-menu li.cat-item-cultura:hover>a,
.dropdown-menu li.cat-item-tecnologia:hover>a {
    color: #d946ef !important;
    /* Fuchsia */
    background-color: var(--bg-tertiary);
}

.dropdown-menu li.cat-item-mascotas:hover>a,
.dropdown-menu li.cat-item-deporte:hover>a {
    color: #84cc16 !important;
    /* Green */
    background-color: var(--bg-tertiary);
}

.dropdown-menu li.cat-item-viajeros:hover>a,
.dropdown-menu li.cat-item-gastronomia:hover>a {
    color: #f97316 !important;
    /* Orange */
    background-color: var(--bg-tertiary);
}

.dropdown-menu li.cat-item-salud:hover>a,
.dropdown-menu li.cat-item-nota-de-prensa:hover>a {
    color: #3b82f6 !important;
    /* Blue */
    background-color: var(--bg-tertiary);
}

.main-nav a {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0 12px;
    display: inline-block;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.main-nav a:hover {
    color: var(--color-brand-blue);
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .mobile-btn {
        display: block;
        font-size: 1.5rem;
        color: var(--text-main);
        background: none;
        border: none;
        cursor: pointer;
    }
}

@media (min-width: 1024px) {
    .mobile-btn {
        display: none;
    }

    .mobile-menu {
        display: none !important;
    }
}

/* MOBILE MENU */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    padding: 20px;
    box-shadow: var(--shadow-card);
    z-index: 99;
    border-top: 1px solid var(--border-light);
}

.mobile-menu.hidden {
    display: none;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

.mobile-menu-list li {
    margin-bottom: 15px;
}

.mobile-menu-list a {
    color: var(--text-main);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    text-decoration: none;
    display: block;
    padding: 10px;
}

.mobile-menu-list a:hover {
    color: var(--color-brand-blue);
    background-color: var(--border-light);
}

/* --- HERO SLIDER --- */
.slider-container {
    position: relative;
    width: 100%;
    margin-bottom: 3rem;
}

.slider-wrapper {
    display: grid;
    grid-template-areas: "stack";
}

.hero-slide {
    grid-area: stack;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
    position: relative;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-content {
    color: white;
    max-width: 900px;
    padding: 0 20px;
    text-align: left;
}

.slide-title {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.slide-desc {
    font-size: clamp(0.9rem, 2vw, 1.2rem);
    margin-bottom: 2rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.7);
    max-width: 600px;
}

.slide-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-download {
    background-color: var(--color-lime);
    color: #333;
    /* Always dark on lime */
    padding: 10px 25px;
    font-weight: bold;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    font-size: 0.9rem;
}

.btn-download:hover {
    background-color: var(--color-orange);
    color: white;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    font-size: 1.5rem;
    padding: 15px;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.slider-btn:hover {
    background: var(--color-blue);
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

/* --- SECTIONS --- */
main .section-container:last-child {
    border-bottom: none;
}

/* --- CTA BUTTONS --- */
.cta-buttons-section {
    background-color: var(--bg-main);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
}

.cta-buttons-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-download-mag {
    background-color: var(--color-brand-blue);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 140, 191, 0.3);
}

.btn-download-mag:hover {
    background-color: #0077a3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 140, 191, 0.4);
    color: #fff;
}

.btn-subscribe-mag {
    background-color: var(--color-brand-orange);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3);
}

.btn-subscribe-mag:hover {
    background-color: #e0800c;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 153, 0, 0.4);
}

/* --- CATEGORY COLORS --- */
.category-badge.cat-cultura,
.category-badge.cat-tecnologia {
    background-color: #d946ef;
    /* Fuchsia */
}

.category-badge.cat-mascotas,
.category-badge.cat-deporte {
    background-color: #84cc16;
    /* Green */
}

.category-badge.cat-viajeros,
.category-badge.cat-gastronomia {
    background-color: #f97316;
    /* Orange */
}

.category-badge.cat-salud,
.category-badge.cat-nota-de-prensa {
    background-color: #3b82f6;
    /* Blue */
}

@media (max-width: 600px) {
    .cta-buttons-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .btn-cta {
        justify-content: center;
    }
}

/* VIDEOS */
.section-videos {
    background-color: var(--bg-main);
    color: var(--text-main);
    padding: 0 0 4rem 0;
    margin-top: -1px;
    border-bottom: 4px solid var(--color-brand-blue);
}

.section-videos .container {
    padding-top: 4rem;
}

.video-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #000;
    box-shadow: var(--shadow-card);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-main-info {
    margin-top: 1rem;
}

.video-main-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.video-main-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.video-sidebar {
    border-left: 1px solid var(--border-color);
    padding-left: 2rem;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.video-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.video-list-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}

.video-count {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 2;
}

.video-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    background: #222;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
}

.video-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
    color: var(--text-main);
}

.video-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.video-list-item-link:hover .video-info h4 {
    color: var(--color-brand-blue);
}

/* MAGAZINES */
.section-magazines {
    background-color: var(--bg-main);
    color: var(--text-main);
    border-bottom: 4px solid var(--color-brand-pink);
    padding: 4rem 0;
}

.magazine-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.magazine-featured {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-hover);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mag-cover {
    margin-bottom: 2rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.mag-cover img {
    max-width: 350px;
    width: 100%;
    height: auto;
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.8s ease;
    border-radius: 4px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.mag-cover img:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.mag-info {
    width: 100%;
}

.magazine-featured h3 {
    color: var(--text-main);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.magazine-featured h4 {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.magazine-archive h3 {
    color: var(--text-main);
    border-bottom: 2px solid var(--color-brand-pink);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.mag-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.mag-item {
    text-align: center;
}

.mag-item img {
    width: 100%;
    border-radius: 4px;
    /* box-shadow: var(--shadow-card); */
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
    /* Hardcoded var value for drop-shadow compatibility */
    transition: transform 0.5s;
}

.mag-item:hover img {
    transform: translateY(-10px);
    /* box-shadow: var(--shadow-hover); */
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.mag-item h5 {
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* NEWS */
.section-news {
    background-color: var(--bg-main);
    color: var(--text-main);
    border-bottom: 4px solid var(--color-brand-orange);
    border-top: none;
    padding: 4rem 0;
}

/* --- NEWS REDESIGN --- */
.news-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.news-tabs {
    display: flex;
    gap: 1.5rem;
}

.tab-link {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-link:hover,
.tab-link.active {
    color: var(--text-main);
    border-bottom-color: var(--color-brand-orange);
}

.news-layout-redesign {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
}

/* Featured Article (Left) */
.featured-article-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.featured-img-container {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.featured-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.featured-article-card:hover .featured-img-container img {
    transform: scale(1.05);
}

.category-badge {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--color-brand-orange);
    color: #fff;
    padding: 5px 15px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.featured-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.meta-info {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.meta-info i {
    margin-right: 5px;
}

.featured-content h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.featured-content h3 a {
    color: var(--text-main);
    transition: color 0.3s;
}

.featured-content h3 a:hover {
    color: var(--color-brand-orange);
}

.featured-content .excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Side Grid (Right) */
.news-side-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    align-content: start;
}

.side-article-card {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.side-img {
    height: 120px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.side-article-card:hover .side-img img {
    transform: scale(1.05);
}

.side-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.side-content h4 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.side-content h4 a {
    color: var(--text-main);
    transition: color 0.3s;
}

.side-content h4 a:hover {
    color: var(--color-brand-orange);
}

/* Responsive News */
@media (max-width: 900px) {
    .news-layout-redesign {
        grid-template-columns: 1fr;
    }

    .news-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 10px;
    }
}

/* --- PRODUCTS SECTION --- */
.section-products {
    background-color: var(--bg-main);
    padding-bottom: 6rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.product-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-overlay i {
    font-size: 3rem;
    color: #fff;
    transform: scale(0.8);
    transition: transform 0.3s;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-card:hover .product-overlay i {
    transform: scale(1);
}

.product-info {
    padding: 2rem;
    text-align: center;
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.product-info p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn-link {
    color: var(--color-brand-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

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

/* --- FOOTER --- */
.site-footer {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    padding-top: 0;
    margin-top: auto;
    font-size: 0.95rem;
    position: relative;
}

.footer-border {
    height: 6px;
    background: linear-gradient(90deg, var(--color-brand-pink), var(--color-brand-orange), var(--color-brand-blue));
    width: 100%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4rem 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    max-width: 500px;
}

.footer-logo {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.footer-newsletter h3 {
    color: var(--text-main);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    outline: none;
    width: 250px;
    background-color: var(--bg-input);
    color: var(--text-main);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-col h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-col p {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.email-highlight {
    color: var(--color-brand-blue) !important;
    font-weight: 700;
}

.social-links a {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
    transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
    color: var(--text-main);
    transform: translateX(5px);
}

.footer-bottom {
    background-color: var(--bg-main);
    padding: 1.5rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .footer-top {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-col h3 {
        justify-content: center;
    }

    .video-layout {
        grid-template-columns: 1fr;
    }

    .video-sidebar {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--border-color);
        padding-top: 2rem;
    }

    .magazine-layout {
        grid-template-columns: 1fr;
    }

    .mag-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}



/* --- ARCHIVE PAGE --- */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding-bottom: 4rem;
}

.archive-card {
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.archive-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.archive-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.archive-card:hover .archive-img-container img {
    transform: scale(1.05);
}

.archive-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.archive-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.archive-title a {
    color: var(--text-main);
    transition: color 0.3s;
}

.archive-title a:hover {
    color: var(--color-brand-orange);
}

.archive-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    flex-grow: 1;
}

/* Pagination */
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    background: var(--bg-secondary);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--color-brand-blue);
    color: #fff;
    border-color: var(--color-brand-blue);
}

/* Scroll to Top Button */

.scroll-top-btn {
    position: fixed;
    bottom: 90px;
    /* Moved up */
    right: 30px;
    background-color: var(--color-brand-blue);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: #008cbf;
    transform: translateY(-5px);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    position: fixed;
    bottom: 30px;
    /* Moved down */
    right: 30px;
    background-color: var(--bg-secondary);
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-card);
    z-index: 9998;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

/* --- MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background-color: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    width: 95%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header h3 {
    color: var(--color-brand-orange);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.subscription-form .form-group {
    margin-bottom: 1rem;
}

.subscription-form label {
    display: block;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.subscription-form input,
.subscription-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-input);
    color: var(--text-main);
    font-family: inherit;
    resize: none;
}

.subscription-form input:focus,
.subscription-form textarea:focus {
    outline: none;
    border-color: var(--color-brand-blue);
}

.btn-block {
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
    border: none;
}

/* --- 404 PAGE --- */
.error-404 {
    padding: 4rem 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-title {
    font-size: 8rem;
    font-weight: 900;
    color: var(--color-brand-blue);
    line-height: 1;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.error-subtitle {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.error-search {
    margin-bottom: 2rem;
    border-radius: 8px;
}

.error-search .search-form {
    display: flex;
    justify-content: center;
    max-width: 400px;
    margin: 0 auto;
}

.error-search .search-field {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.error-search .search-submit {
    padding: 0.75rem 1.5rem;
    background: var(--color-brand-blue);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.error-actions .btn-brand {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-brand-orange);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.error-actions .btn-brand:hover {
    background: #ea580c;
}

/* --- SEARCH PAGE --- */
.search-header {
    padding-top: 4rem;
}

/* --- DIRECTORY CAROUSEL --- */
.section-directory {
    padding: 4rem 0;
    background: var(--bg-main);
    /* Match main background */
    overflow: hidden;
}

.directory-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1rem 0;
}

.directory-track {
    display: flex;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.directory-carousel:hover .directory-track {
    animation-play-state: paused;
}

.directory-item {
    width: 300px;
    height: 270px;
    margin: 0 15px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Secondary Banner System */
.secondary-banner-section {
    width: 100%;
    margin: 2rem 0;
    background: #fff;
    position: relative;
    z-index: 1;
}

.secondary-banner-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    /* Height is determined by the active slide */
}

.secondary-banner-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.secondary-banner-item.active {
    position: relative;
    /* Takes up space in the DOM */
    opacity: 1;
    z-index: 2;
}

.secondary-banner-item img {
    width: 100%;
    height: auto;
    /* Maintain aspect ratio */
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .secondary-banner-container {
        /* No specific height needed, adapts to image */
    }
}

.directory-item:hover {
    transform: scale(1.05);
}

.directory-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: var(--shadow-card);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Move half the total width (Set A) */
}

.separator-gradient {
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, var(--color-brand-blue), var(--color-brand-orange), var(--color-brand-pink));
    border: none;
}

/* Accessibility */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* --- SINGLE POST --- */
.single-header {
    text-align: left;
    padding-top: 2rem;
    padding-bottom: 2rem;
    max-width: 900px;
    /* Limit width for better readability */
    margin: 0 auto;
}

.single-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.single-meta {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-wrap: wrap;
    gap: 5px;
}

.avatar-circle img {
    border-radius: 50%;
    width: 32px;
    height: 32px;
    object-fit: cover;
    border: 2px solid var(--color-brand-blue);
}

.single-image-container {
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    max-width: 1000px;
    /* Slightly wider than text */
    margin-left: auto;
    margin-right: auto;
}

.single-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body {
    max-width: 800px;
    /* Optimal reading width */
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    padding-bottom: 4rem;
}

.article-entradilla {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 2rem;
    line-height: 1.6;
    border-left: 4px solid var(--color-brand-orange);
    padding-left: 1.5rem;
}

/* Article Content Styles */
.article-body p {
    margin-bottom: 1.5rem;
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-main);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.article-body h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-main);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-body ul,
.article-body ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-body li {
    margin-bottom: 0.5rem;
}

.article-body blockquote {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-main);
    border-left: 4px solid var(--color-brand-pink);
    margin: 2rem 0;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border-radius: 0 8px 8px 0;
}

.article-body a {
    color: var(--color-brand-blue);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
}

.article-body a:hover {
    color: var(--color-brand-orange);
    text-decoration-color: var(--color-brand-orange);
}

.article-body img {
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: var(--shadow-card);
}

/* --- TOAST NOTIFICATIONS --- */
.toast-container {
    position: fixed;
    top: 100px;
    /* Below header */
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-notification {
    background-color: var(--bg-secondary);
    color: var(--text-main);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-left: 5px solid transparent;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-notification.success {
    border-left-color: var(--color-brand-green);
}

.toast-notification.success i {
    color: var(--color-brand-green);
}

.toast-notification.error {
    border-left-color: var(--color-brand-pink);
}

.toast-notification.error i {
    color: var(--color-brand-pink);
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: bold;
    font-size: 0.95rem;
    margin-bottom: 2px;
    display: block;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--text-main);
}