/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
:root {
    /* Colores principales */
    --primary-color: black;
    --secondary-color: #4a4a4a;
    --accent-color: #0056b3;
    --accent-light: #4d94ff;
    --light-color: #f8f9fa;
    --border-color: #e0e0e0;
    --text-light: #6c757d;
    --white: #ffffff;
    
    /* Colores específicos para artículos */
    --bg: #ffffff;
    --text: #1f2933;
    --muted: #6b7280;
    --primary: #9ecae3;
    --border: #e5e7eb;
    --shadow: 0 20px 45px rgba(0,0,0,.12);
    
    /* Sombras */
    --shadow-soft: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    
    /* Tipografía */
    --font-primary: 'Inter', 'Segoe UI', sans-serif;
}

/* ==========================================================================
   RESET Y CONFIGURACIÓN BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    font-family: var(--font-primary);
    scroll-behavior: smooth;
}

body {
    color: var(--primary-color);
    background-color: #fff;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   NAVBAR (USANDO TU CSS EXISTENTE)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1250px;
    background: var(--bg);
    border-radius: 14px;
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    pointer-events: all;
}

.navbar.hidden {
    transform: translate(-50%, -120%);
    opacity: 0;
    pointer-events: none;
}

.page-content {
    padding-top: 80px;
}

.navbar-inner {
    display: flex;
    align-items: center;
    padding: 14px 26px;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 36px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    color: var(--text);
    white-space: nowrap;
}

/* ==========================================================================
   MENÚ DESKTOP
   ========================================================================== */
.menu-desktop {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    flex: 1;
}

.menu-desktop a {
    text-decoration: none;
    font-size: .95rem;
    font-weight: 600;
    color: black;
    transition: color .2s ease;
}

.menu-desktop a:hover {
    color: var(--accent-light);
}

.menu-desktop .active {
    color: var(--accent-light);
    position: relative;
}

.menu-desktop .active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-light);
}

/* ==========================================================================
   DROPDOWN
   ========================================================================== */
.desktop-dropdown {
    position: relative;
}

.desktop-dropdown > a::after {
    content: "▾";
    font-size: .1rem;
    margin-left: 6px;
    opacity: .6;
}

.desktop-dropdown .dropdown {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all .25s ease;
    overflow: hidden;
}

.desktop-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
}

.dropdown a {
    display: block;
    padding: 14px 22px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text);
    text-decoration: none;
    transition: background .2s ease;
}

.dropdown a:hover {
    background: #f1f5f9;
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn-outline {
    padding: 8px 18px;
    background: #ffffff;
    border: 1.5px solid #000;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    color: #000;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.btn-outline:hover,
.btn-outline:focus-visible,
.btn-outline:active {
    background: var(--primary);
    color: #000;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15), 0 8px 20px rgb(0, 0, 0);
    transform: translateY(-1px);
}

.btn-outline:focus {
    outline: none;
}

.btn-primary {
    padding: 8px 18px;
    background: var(--primary);
    border: 1.5px solid #000;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    color: #000;
    transition: box-shadow 0.25s ease, transform 0.15s ease, filter 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
    background: white;
    filter: brightness(0.95);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.2), 0 6px 18px rgb(0, 0, 0);
    transform: translateY(-1px);
}

.btn-primary:focus {
    outline: none;
}

/* ==========================================================================
   MOBILE MENU
   ========================================================================== */
.menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    transform: translateX(100%);
    transition: transform .4s ease;
    z-index: 1100;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
}

.close-btn {
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
}

.mobile-links {
    list-style: none;
    padding: 24px;
    flex: 1;
}

.mobile-links li {
    border-bottom: 1px solid var(--border);
}

.mobile-links a,
.accordion-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text);
    background: white;
    border: none;
    cursor: pointer;
}

.accordion-content {
    display: none;
    padding-left: 12px;
}

.accordion-content a {
    display: block;
    padding: 14px 0;
    font-size: 0.95rem;
    font-weight: 500;
}

.accordion.active .accordion-content {
    display: block;
}

.plus {
    font-size: 1.4rem;
    transition: transform .3s ease;
}

.accordion.active .plus {
    transform: rotate(45deg);
}

.mobile-actions {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    transition: .3s;
    z-index: 1050;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.articulos-hero {
    position: relative;
    height: 85vh;
    min-height: 700px;
    overflow: hidden;
    margin-top: -80px;
}

.articulos-hero .hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.articulos-hero .hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.articulos-hero .hero-container {
    position: relative;
    z-index: 2;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    color: #fff;
    padding: 4rem 0;
    margin-left: -7.7%;
    margin-top: -8%;
    animation: fadeInUp 1s ease 0.2s forwards;
}


.articulos-hero .hero-title {
    font-size: 6.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.articulos-hero .hero-subtitle {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.5;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ==================================================================
   RESPONSIVE – LAPTOP / TABLET
================================================================== */
@media (max-width: 1024px) {

    .articulos-hero {
        height: 75vh;
        min-height: 620px;
        margin-top: -70px;
    }

    .articulos-hero .hero-title {
        font-size: 4rem;
    }

    .articulos-hero .hero-subtitle {
        font-size: 2rem;
    }

    .hero-content {
        margin-left: 0;
        margin-top: 8%;
        max-width: 700px;
    }
}

/* ==================================================================
   RESPONSIVE – TABLET
================================================================== */
@media (max-width: 768px) {

    .articulos-hero {
        height: auto;
        min-height: 0;
        padding: 6rem 0 4rem;
        margin-top: -60px;
    }

    .articulos-hero .hero-container {
        align-items: flex-start;
    }

    .hero-content {
        padding: 0;
        margin-left: 0;
        margin-top: 0;
        max-width: 100%;
        text-align: left;
    }

    .articulos-hero .hero-title {
        font-size: 2.6rem;
        line-height: 1.15;
        margin-bottom: 1.5rem;
    }

    .articulos-hero .hero-subtitle {
        font-size: 1.4rem;
        margin-bottom: 2.5rem;
    }
}

/* ==================================================================
   RESPONSIVE – MÓVIL
================================================================== */
@media (max-width: 576px) {

    .articulos-hero {
        padding: 5rem 0 3.5rem;
        margin-top: -80px;
    }

    .articulos-hero .hero-title {
        font-size: 1.3rem;
        margin-top: 50px;
    }

    .articulos-hero .hero-subtitle {
        font-size: 1.2rem;
        line-height: 1.45;
    }
}

/* ==================================================================
   RESPONSIVE – MÓVIL PEQUEÑO
================================================================== */
@media (max-width: 400px) {

    .articulos-hero .hero-title {
        font-size: 2rem;
    }

    .articulos-hero .hero-subtitle {
        font-size: 1.1rem;
    }
}


/* ==========================================================================
   CONSEJOS DE EXPERTOS - CARRUSEL
   ========================================================================== */
.consejos-expertos {
    position: relative !important;
    padding: 8rem 0 !important;
    overflow: hidden !important;
}

.consejos-expertos .section-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
    overflow: hidden !important;
}

.consejos-expertos .section-bg-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}
.consejos-carousel-wrapper {
    position: relative;
    max-width: 9000px;
    margin: 0 auto;
}

.consejos-carousel-container {
    overflow: hidden;
    border-radius: 20px;
}

.consejos-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.consejo-card {
    flex: 0 0 100%;
    min-width: 100%;
    padding: 2rem 4rem;
}

.consejo-content {
    text-align: center;
}

.consejo-quote-icon {
    margin-bottom: 3rem;
    opacity: 0.8;
}

.consejo-text {
    font-size: 2.2rem;
    line-height: 1.6;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 4rem;
    position: relative;
    padding: 0 2rem;
}

.consejo-text::before {
    content: "“";
    position: absolute;
    left: -10px;
    top: -20px;
    font-size: 6rem;
    color: var(--primary);
    opacity: 10.3;
    font-family: Georgia, serif;
}

.consejo-text::after {
    content: "”";
    position: absolute;
    right: -10px;
    bottom: -40px;
    font-size: 6rem;
    color: var(--primary);
    opacity: 10.3;
    font-family: Georgia, serif;
}

.consejo-author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.consejo-author-info {
    text-align: center;
}

.consejo-author-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.consejo-author-title {
    font-size: 1.4rem;
    color: var(--muted);
    font-weight: 500;
}

.consejos-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--border);
    backdrop-filter: blur(5px);
    border: 2px solid var(--border);
    color: black;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}



.consejos-carousel-nav.prev {
    left: -100px;
}

.consejos-carousel-nav.next {
    right: -100px;
}

.consejos-carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.consejos-carousel-nav:disabled:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    transform: translateY(-50%) scale(1);
    box-shadow: none;
}

/* Indicadores del carrusel */
.consejos-indicators {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem; /* Reducido */
}

.consejo-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: none;
    background: rgb(133, 133, 133);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.consejo-indicator.active {
    background: black;
    transform: scale(1.3);
}



/* ==========================================================================
   ANIMACIONES PARA EL CARRUSEL DE CONSEJOS
   ========================================================================== */
@keyframes fadeInConsejo {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.consejo-card {
    animation: fadeInConsejo 0.6s ease forwards;
}

/* ==========================================================================
   RESPONSIVE DESIGN PARA CONSEJOS
   ========================================================================== */

/* TABLET (≤1024px) */
@media (max-width: 1024px) {
    .consejos-expertos {
        padding: 6rem 0 !important;
    }
    
    .consejo-card {
        padding: 4rem 3rem;
    }
    
    .consejo-text {
        font-size: 1.9rem;
        padding: 0 1rem;
    }
    
    .consejos-carousel-nav {
        width: 45px;
        height: 45px;
    }
    
    .consejos-carousel-nav.prev {
        left: -15px;
    }
    
    .consejos-carousel-nav.next {
        right: -15px;
    }
}

/* TABLET PEQUEÑA (≤768px) */
@media (max-width: 768px) {
    .consejo-card {
        padding: 3.5rem 2.5rem;
    }
    
    .consejo-text {
        font-size: 1.7rem;
        margin-bottom: 3rem;
    }
    
    .consejo-text::before,
    .consejo-text::after {
        font-size: 5rem;
    }
    
    .consejo-author-name {
        font-size: 1.6rem;
    }
    
    .consejo-author-title {
        font-size: 1.3rem;
    }
    
    .consejos-carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .consejos-carousel-nav.prev {
        left: 10px;
    }
    
    .consejos-carousel-nav.next {
        right: 10px;
    }
    
    .consejos-indicators {
        margin-top: 3rem;
    }
    
    .consejo-indicator {
        border: 2px solid white;
    }
    
    .consejo-indicator.active {
        background: white;
    }
}

/* MÓVIL (≤576px) */
@media (max-width: 576px) {
    .consejos-expertos {
        padding: 4rem 0 !important;
    }
    
    .consejo-card {
        padding: 3rem 2rem;
    }
    
    .consejo-quote-icon {
        margin-bottom: 2rem;
    }
    
    .consejo-quote-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .consejo-text {
        font-size: 1.5rem;
        line-height: 1.5;
        padding: 0;
        margin-bottom: 2.5rem;
    }
    
    .consejo-text::before {
        left: -5px;
        top: -15px;
        font-size: 4rem;
    }
    
    .consejo-text::after {
        right: -5px;
        bottom: -30px;
        font-size: 4rem;
    }
    
    .consejo-author-name {
        font-size: 1.4rem;
    }
    
    .consejo-author-title {
        font-size: 1.2rem;
    }
    
    .consejos-carousel-nav {
        display: none;
    }
    
    .consejos-indicators {
        gap: 0.8rem;
        margin-top: 2.5rem;
    }
    
    .consejo-indicator {
        width: 10px;
        height: 10px;
        border: 2px solid white;
    }
    
    .consejo-indicator.active {
        background: white;
    }
}
/* ==========================================================================
   ARTÍCULOS DESTACADOS - CARRUSEL
   ========================================================================== */
.articulos-destacados {
    position: relative !important;
    padding: 8rem 0 !important;
    overflow: hidden !important;
}

.articulos-destacados .section-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
    overflow: hidden !important;
}

.articulos-destacados .section-bg-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.articulos-destacados .section-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;

}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.8rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* CARRUSEL */
.carousel-wrapper {
    position: relative;
}

.carousel-container {
    overflow: hidden;
    touch-action: pan-y;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.45s ease;
    will-change: transform;
}

.carousel-nav {
    position: absolute;
    top: -70px;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    background: var(--border);
    color: black;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.carousel-nav.prev { right: 60px; }
.carousel-nav.next { right: 0; }

.carousel-nav:disabled {
    opacity: 0.3;
    cursor: default;
}

/* TARJETAS DE ARTÍCULOS */
.articulo-card {
    position: relative;
    flex: 0 0 calc((100% - 3rem) / 3);
    height: 550px;
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
}



.articulo-image-container {
    position: absolute;
    inset: 0;
}

.articulo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.articulo-image-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.8));
}

.articulo-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 1.2rem;
    padding: 6px 15px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border-radius: 8px;
    letter-spacing: 1px;
    z-index: 2;
    font-weight: 600;
    text-transform: uppercase;
}

.articulo-info {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 2rem;
    color: #fff;
    z-index: 2;
}

.articulo-fecha {
    font-size: 1.4rem;
    opacity: 0.85;
    margin-bottom: 0.5rem;
    display: block;
}

.articulo-title {
    font-size: 2.2rem;
    margin: 0.5rem 0;
    font-weight: 700;
    line-height: 1.3;
}

.articulo-autor {
    font-size: 1.4rem;
    opacity: 0.9;
    font-style: italic;
}

/* ==========================================================================
   NUEVOS ARTÍCULOS - CON FONDO
   ========================================================================== */
.nuevos-articulos {
    position: relative !important;
    padding: 8rem 0 !important;
    overflow: hidden !important;
}

.nuevos-articulos .section-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
    overflow: hidden !important;
}

.nuevos-articulos .section-bg-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}



.nuevos-articulos-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 5rem;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    text-align: center;
    position: relative;
    color: black;
}

/* GRID DE ARTÍCULOS */
.nuevos-articulos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* TARJETA DE ARTÍCULO */
.nuevo-articulo-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.nuevo-articulo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
    background: white;
}

/* IMAGEN */
.nuevo-articulo-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.nuevo-articulo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.nuevo-articulo-card:hover .nuevo-articulo-image img {
    transform: scale(1.05);
}

/* CATEGORÍA */
.nuevo-articulo-categoria {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--text);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* BADGE */
.nuevo-articulo-badge {
    display: inline-block;
    margin: 1.5rem 1.5rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    background: var(--text);
    color: var(--bg);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    width: fit-content;
    text-transform: uppercase;
}

/* CONTENIDO */
.nuevo-articulo-content {
    padding: 0 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nuevo-articulo-titulo {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--text);
    flex: 1;
}

.nuevo-articulo-meta {
    font-size: 1.1rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

.nuevo-articulo-resumen {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 0;
}

/* BOTÓN VER TODOS */
.nuevos-articulos-footer {
    margin-top: 4rem;
    text-align: center;
}

.nuevos-articulos-btn {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: black;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.8px;
    font-size: 1.2rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: 2px solid black;
    backdrop-filter: blur(5px);
    background: rgba(158, 202, 227, 0.95);
}

.nuevos-articulos-btn:hover {
    background: white;
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   RESPONSIVE DESIGN PARA NUEVOS ARTÍCULOS
   ========================================================================== */

/* TABLET GRANDE (≤1200px) */
@media (max-width: 1200px) {
    .nuevos-articulos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

/* TABLET (≤1024px) */
@media (max-width: 1024px) {
    .nuevos-articulos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nuevos-articulos-title {
        font-size: 3rem;
    }
}

/* TABLET PEQUEÑA (≤768px) */
@media (max-width: 768px) {
    .nuevos-articulos {
        padding: 6rem 0 !important;
    }
    
    .nuevos-articulos-grid {
        gap: 1.5rem;
    }
    
    .nuevo-articulo-titulo {
        font-size: 1.3rem;
    }
    
    .nuevos-articulos-btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
}

/* MÓVIL GRANDE (≤576px) */
@media (max-width: 576px) {
    .nuevos-articulos-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .nuevos-articulos-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .nuevo-articulo-image {
        height: 180px;
    }
    
    .nuevo-articulo-card {
        background: rgba(255, 255, 255, 0.98);
    }
}

/* MÓVIL MUY PEQUEÑO (≤375px) */
@media (max-width: 375px) {
    .nuevos-articulos-title {
        font-size: 2.2rem;
    }
    
    .nuevo-articulo-titulo {
        font-size: 1.2rem;
    }
    
    .nuevo-articulo-badge {
        font-size: 0.8rem;
    }
    
    .nuevos-articulos-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }
}
/* ==========================================================================
   ACCESO PREMIUM
   ========================================================================== */
.acceso-premium {
    position: relative !important;
    padding: 8rem 0 !important;
    overflow: hidden !important;
}

.acceso-premium .section-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
    overflow: hidden !important;
}

.acceso-premium .section-bg-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.acceso-premium .section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;

}

.acceso-premium .container {
    position: relative !important;
    z-index: 2 !important;
}

/* GRID PREMIUM */
.premium-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* TEXTO PREMIUM */
.premium-info h2 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.premium-subtitle {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 500;
}

.includes-title {
    font-size: 1.4rem;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
}

.premium-list {
    list-style: none;
    padding: 0;
}

.premium-list li {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #222;
    font-weight: 500;
}

.premium-list i {
    color: var(--accent-color);
    font-size: 1.4rem;
}

/* PLANES */
.premium-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.plan-card {
    border: 3px solid rgba(0, 0, 0, 0.1);
    padding: 3rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.plan-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
}

.price {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.price span {
    font-size: 1.4rem;
    font-weight: 500;
    color: #666;
}

.billing {
    font-size: 1.4rem;
    color: #666;
    margin-bottom: 2.5rem;
}

/* BOTONES DE PLANES */
.btn-plan {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    transition: all 0.25s ease;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.btn-plan.outline {
    border: 2px solid var(--primary);
    color: var(--primary-color);
    background: transparent;
}

.btn-plan.outline:hover {
    background: var(--primary);
    color: black;
    transform: translateY(-2px);
}

.btn-plan.primary {
    background: var(--white);
    color: #000;
    border: 2px solid var(--primary);
}

.btn-plan.primary:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* PLAN DESTACADO */
.plan-card.featured {
    border: 3px solid var(--primary);
    background: rgba(255, 255, 255, 0.95);
    position: relative;
}

.plan-card.featured::before {
    content: "RECOMENDADO";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #000;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #0046a5;
    color: white;
    padding: 8rem 0 4rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo span {
    font-size: 2.4rem;
    font-weight: 800;
}

.footer-section p {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 35rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    background-color: black;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.8rem;
}

.social-links a:hover {
    background-color: white;
    color: black;
    transform: translateY(-3px);
}

.footer-section h4 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1.5rem;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: #9ecae3;
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 3rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* TABLET GRANDE (≤1200px) */
@media (max-width: 1200px) {
    .articulo-card {
        flex: 0 0 calc((100% - 1.5rem) / 2);
        height: 500px;
    }
    
    .nuevos-articulos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
    
    .articulos-hero .hero-title {
        font-size: 4rem;
    }
    
    .articulos-hero .hero-subtitle {
        font-size: 2rem;
    }
}

/* TABLET (≤1024px) */
@media (max-width: 1024px) {
    html {
        font-size: 55%;
    }
    
    .section-title {
        font-size: 3rem;
        margin-bottom: 4rem;
    }
    
    .articulo-card {
        height: 450px;
    }
    
    .articulo-title {
        font-size: 1.8rem;
    }
    
    .premium-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .premium-info {
        max-width: 720px;
        margin: 0 auto;
    }
    
    .premium-list {
        max-width: 520px;
        margin: 0 auto;
    }
    
    .premium-list li {
        justify-content: center;
    }
    
    .premium-plans {
        max-width: 620px;
        margin: 0 auto;
    }
    
    /* Ocultar menú desktop, mostrar botón hamburguesa */
    .menu-desktop,
    .actions-desktop {
        display: none;
    }
    
    .menu-btn {
        display: block;
        margin-left: auto;
    }
    
    .navbar {
        width: calc(100% - 32px);
        top: 12px;
    }
    
    .navbar-inner {
        padding: 12px 18px;
    }
}

/* TABLET PEQUEÑA (≤768px) */
@media (max-width: 768px) {

    
    .articulo-card {
        flex: 0 0 85%;
        height: 400px;
    }
    
    .carousel-nav {
        display: none;
    }
    
    .nuevos-articulos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nuevos-articulos-title {
        font-size: 3rem;
    }
    
    .premium-access {
        padding: 5rem 0 !important;
    }
    
    .premium-info h2 {
        font-size: 2.6rem;
    }
    
    .premium-subtitle {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .premium-plans {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .plan-card {
        padding: 2.3rem;
    }
    
    .price {
        font-size: 2.6rem;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .navbar {
        border-radius: 16px;
    }
}

/* MÓVIL GRANDE (≤576px) */
@media (max-width: 576px) {
    .articulo-card {
        flex: 0 0 100%;
        height: 350px;
        border-radius: 12px;
    }
    
    .articulo-tag {
        font-size: 1rem;
        padding: 4px 10px;
    }
    
    .articulo-title {
        font-size: 1.6rem;
    }
    
    .nuevos-articulos-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .nuevos-articulos-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .nuevo-articulo-image {
        height: 180px;
    }
    
    .nuevos-articulos-btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .premium-plans {
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }
    
    .plan-card {
        padding: 1.6rem;
        border-radius: 14px;
    }
    
    .plan-card h3 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .price {
        font-size: 2rem;
        margin-bottom: 0.4rem;
    }
    
    .price span,
    .billing {
        font-size: 1.1rem;
    }
    
    .btn-plan {
        padding: 0.8rem 1rem;
        font-size: 1.05rem;
    }
}

/* MÓVIL MUY PEQUEÑO (≤375px) */
@media (max-width: 375px) {

    
    .nuevos-articulos-title {
        font-size: 2.2rem;
    }
    
    .nuevo-articulo-titulo {
        font-size: 1.2rem;
    }
    
    .nuevo-articulo-badge {
        font-size: 0.8rem;
    }
    
    .logo-text {
        font-size: 1.05rem;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
    }
    
    .mobile-header {
        padding: 18px;
    }
    
    .mobile-links {
        padding: 16px;
    }
    
    .mobile-links a,
    .accordion-btn {
        font-size: 0.95rem;
    }
    
    .mobile-actions {
        padding: 16px;
        gap: 12px;
    }
    
    .mobile-actions a {
        font-size: 0.95rem;
    }
}

/* =========================================================
   MODAL "ARTÍCULOS PRÓXIMAMENTE" (ESTILO DE TUS SECCIONES)
========================================================= */
.articulos-soon-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 99990;
}

.articulos-soon-modal{
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.96);
  width: min(680px, 92vw);
  background: #fff;
  border-radius: 24px;
  border: 2px solid #000;
  box-shadow: var(--shadow, 0 20px 45px rgba(0,0,0,.12));
  padding: 28px;
  opacity: 0;
  visibility: hidden;
  transition: transform .25s ease, opacity .25s ease, visibility .25s ease;
  z-index: 99999;
  overflow: hidden; /* CLAVE para el ribbon */
}

/* franja suave tipo "sección overlay" */
.articulos-soon-modal::before{
  content:"";
  position:absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(158, 202, 227, .35), rgba(0,0,0,0) 55%);
  pointer-events:none;
  z-index: 0;
}

/* =========================================================
   RIBBON DIAGONAL "PRÓXIMAMENTE" (COMO LA IMAGEN)
========================================================= */
.articulos-soon-ribbon{
  position: absolute;
  top: 18px;
  right: -70px;
  width: 260px;
  height: 56px;
  transform: rotate(35deg);
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.2));
}

.articulos-soon-ribbon span{
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
    135deg,
    #63df63 0%,
    #34c84c 55%,
    #1fa833 100%
  );

  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 2px;

  box-shadow:
    inset 0 2px 0 rgba(255,255,255,.35),
    inset 0 -2px 0 rgba(0,0,0,.15);
}

/* =========================================================
   ESTADO ACTIVO
========================================================= */
.articulos-soon-overlay.active{
  opacity: 1;
  visibility: visible;
}
.articulos-soon-modal.active{
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
/* titulo y texto */
.articulos-soon-title{
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-size: 2.4rem;
  font-weight: 900;
  color: #000;
  text-transform: uppercase;
  line-height: 1.15;
}

.articulos-soon-desc{
  position: relative;
  z-index: 1;
  margin-top: 12px;
  font-size: 1.55rem;
  color: #111;
  line-height: 1.7;
  font-weight: 600;
  max-width: 62ch;
}

/* acciones */
.articulos-soon-actions{
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: flex;
  gap: 12px;
}

.articulos-soon-btn{
  width: 100%;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid #000;
  background: #9ecae3;
  color: #000;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background .25s ease;
}

.articulos-soon-btn:hover{
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(0,0,0,.18);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 480px){
  .articulos-soon-modal{
    padding: 20px;
    border-radius: 18px;
  }

  .articulos-soon-title{
    font-size: 2rem;
  }

  .articulos-soon-desc{
    font-size: 1.35rem;
  }

  .articulos-soon-ribbon{
    top: 14px;
    right: -78px;
    width: 210px;
    height: 48px;
  }

  .articulos-soon-ribbon span{
    font-size: 1.15rem;
    letter-spacing: 1.6px;
  }
}
