/* ============================================================
   SABERSOBREDINERO - HOMEPAGE MODERNA CON ANIMACIONES
   ============================================================ */

/* ------------------------------------------------------------
   TIPOGRAFÍA Y BASE
------------------------------------------------------------ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
    background-color: #fafafa;
    color: #000;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Espacio para anuncios AdSense */
.ad-space {
    width: 100%;
    max-width: 970px;
    margin: 35px auto;
    text-align: center;
    min-height: 80px;
    background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
}

/* ------------------------------------------------------------
   HEADER CON EFECTO GLASSMORPHISM
------------------------------------------------------------ */

.main-header {
    text-align: center;
    padding: 20px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 200, 83, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

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

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    height: 60px;
    width: auto;
    max-width: 500px;
    object-fit: contain;
    animation: fadeInScale 0.8s ease;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* MENÚ GENERAL */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    margin-top: 25px;
}

.left-menu {
    list-style: none;
    display: flex;
    gap: 35px;
    padding: 0;
    margin: 0;
}

.left-menu li {
    position: relative;
}

.left-menu a {
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 600;
    font-size: 17px;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.left-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00c853, #00e676);
    transition: width 0.3s ease;
}

.left-menu a:hover::after {
    width: 100%;
}

.left-menu a:hover {
    color: #00c853;
}

/* BOTÓN SUPERIOR DERECHO */
.cta-button {
    background: linear-gradient(135deg, #00c853, #00e676);
    color: white;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    background: linear-gradient(135deg, #000, #333);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------
   HERO CON PARALLAX Y ANIMACIONES
------------------------------------------------------------ */

.hero-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 60px 0;
    animation: fadeIn 1s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero {
    width: 90%;
    max-width: 1200px;
    background-image: url("portada.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    border-radius: 20px;
    padding: 120px 50px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: zoomIn 1.2s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Capa oscura con gradiente */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6), rgba(0, 200, 83, 0.3));
    border-radius: 20px;
}

/* Efecto de brillo animado - DESACTIVADO para mejor rendimiento */
/*
.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}
*/

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: left;
    max-width: 700px;
}

.hero-content h2 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: slideInLeft 1s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

.hero-content p {
    font-size: 20px;
    line-height: 1.7;
    margin-bottom: 35px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: slideInLeft 1s ease 0.2s backwards;
}

/* Botón hero */
.hero-btn {
    display: inline-block;
    background: linear-gradient(135deg, #00c853, #00e676);
    color: white;
    padding: 16px 40px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0, 200, 83, 0.4);
    transition: all 0.4s ease;
    animation: slideInLeft 1s ease 0.4s backwards;
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.hero-btn:hover::before {
    left: 100%;
}

.hero-btn:hover {
    background: linear-gradient(135deg, #fff, #f0f0f0);
    color: #00c853;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 200, 83, 0.5);
}

/* ------------------------------------------------------------
   TARJETAS DE NOTICIAS CON ANIMACIONES
------------------------------------------------------------ */

.news-cards {
    width: 90%;
    max-width: 1200px;
    margin: 80px auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Exactamente 3 columnas */
    gap: 30px;
}

.card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    animation: fadeInUp 0.8s ease backwards;
}

.card:nth-child(1) {
    animation-delay: 0.1s;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.3s;
}

.card:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 200, 83, 0.2);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00c853, #00e676);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-category {
    color: #00c853;
    font-size: 13px;
    font-weight: 800;
    margin: 15px 20px 0 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, #e8f5e9, #f1f8f4);
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.3s ease;
}

.card:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.card h3 {
    font-size: 21px;
    font-weight: 700;
    margin: 15px 20px 0 20px;
    color: #1a1a1a;
    line-height: 1.4;
    transition: color 0.3s ease;
    min-height: 60px;
    /* Asegurar altura consistente */
}

.card:hover h3 {
    color: #00c853;
}

.card p {
    font-size: 15px;
    margin: 12px 20px 20px 20px;
    color: #555;
    line-height: 1.6;
    min-height: 72px;
    /* Asegurar altura consistente */
}

.card-btn {
    margin: 0 20px 25px 20px;
    display: inline-block;
    background: linear-gradient(135deg, #00c853, #00e676);
    color: white;
    padding: 12px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

.card-btn:hover {
    background: linear-gradient(135deg, #000, #333);
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------
   SECCIÓN TÍTULO CON ANIMACIÓN
------------------------------------------------------------ */

.section-title {
    width: 100%;
    text-align: center;
    margin: 100px 0 60px 0;
    animation: fadeIn 1s ease;
}

.section-line {
    width: 90%;
    max-width: 1400px;
    height: 6px;
    background: linear-gradient(90deg, #00c853, #00e676, #00c853);
    margin: 0 auto 30px auto;
    border-radius: 999px;
    animation: expandWidth 1.5s ease;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

@keyframes expandWidth {
    from {
        width: 0;
        opacity: 0;
    }

    to {
        width: 90%;
        opacity: 1;
    }
}

.section-title h2 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0;
    background: linear-gradient(135deg, #1a1a1a, #00c853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 800px) {
    .section-title h2 {
        font-size: 32px;
    }
}

/* ------------------------------------------------------------
   SECCIÓN EDITORIAL CON HOVER EFFECTS
------------------------------------------------------------ */

.editorial-list {
    width: 90%;
    max-width: 1200px;
    margin: 80px auto 100px auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.editorial-card {
    display: flex;
    gap: 25px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 25px;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease backwards;
}

.editorial-card:nth-child(1) {
    animation-delay: 0.1s;
}

.editorial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.editorial-card:nth-child(3) {
    animation-delay: 0.3s;
}

.editorial-card:nth-child(4) {
    animation-delay: 0.4s;
}

.editorial-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 45px rgba(0, 200, 83, 0.15);
    background: linear-gradient(135deg, #ffffff, #f0fff0);
}

.editorial-card img {
    width: 35%;
    min-width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 16px;
    transition: transform 0.5s ease;
}

.editorial-card:hover img {
    transform: scale(1.05) rotate(1deg);
}

.editorial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.editorial-content h3 {
    font-size: 24px;
    margin: 0 0 12px 0;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.editorial-card:hover .editorial-content h3 {
    color: #00c853;
}

.editorial-excerpt {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.editorial-btn {
    align-self: flex-start;
}

/* ------------------------------------------------------------
   ARTÍCULOS POPULARES
------------------------------------------------------------ */

.popular-section {
    width: 90%;
    max-width: 1200px;
    margin: 100px auto;
}

.popular-section h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 50px;
    background: linear-gradient(135deg, #1a1a1a, #00c853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.popular-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding-bottom: 25px;
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease backwards;
}

.popular-card:nth-child(1) {
    animation-delay: 0.1s;
}

.popular-card:nth-child(2) {
    animation-delay: 0.2s;
}

.popular-card:nth-child(3) {
    animation-delay: 0.3s;
}

.popular-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 200, 83, 0.2);
}

.popular-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.popular-card h3 {
    padding: 0 20px;
    margin: 15px 0;
    font-size: 20px;
    color: #1a1a1a;
}

/* ------------------------------------------------------------
   CATEGORÍAS CON EFECTOS 3D
------------------------------------------------------------ */

.category-buttons {
    width: 90%;
    max-width: 1200px;
    margin: 100px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.cat-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #f7f7f7);
    height: 140px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease backwards;
}

.cat-box:nth-child(1) {
    animation-delay: 0.1s;
}

.cat-box:nth-child(2) {
    animation-delay: 0.2s;
}

.cat-box:nth-child(3) {
    animation-delay: 0.3s;
}

.cat-box:nth-child(4) {
    animation-delay: 0.4s;
}

.cat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00c853, #00e676);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cat-box:hover::before {
    opacity: 1;
}

.cat-box:hover {
    color: white;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 200, 83, 0.3);
}

.cat-box span {
    position: relative;
    z-index: 1;
}

/* ------------------------------------------------------------
   WIDGETS CON GLASSMORPHISM
------------------------------------------------------------ */

.market-widgets {
    width: 90%;
    max-width: 1200px;
    margin: 100px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.widget-box {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border: 1px solid rgba(0, 200, 83, 0.1);
    transition: all 0.4s ease;
    animation: fadeInUp 0.8s ease backwards;
}

.widget-box:nth-child(1) {
    animation-delay: 0.1s;
}

.widget-box:nth-child(2) {
    animation-delay: 0.2s;
}

.widget-box:nth-child(3) {
    animation-delay: 0.3s;
}

.widget-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0, 200, 83, 0.2);
}

.widget-box h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
}

/* ------------------------------------------------------------
   RANKING CRYPTO MEJORADO
------------------------------------------------------------ */

.crypto-ranking {
    width: 90%;
    max-width: 1200px;
    margin: 100px auto;
    animation: fadeIn 1s ease;
}

.crypto-ranking h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 40px;
    background: linear-gradient(135deg, #1a1a1a, #00c853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#search-crypto {
    width: 100%;
    max-width: 400px;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 999px;
    box-sizing: border-box;
    display: block;
    margin: 0 auto 30px auto;
    transition: all 0.3s ease;
    background: #fff;
}

#search-crypto:focus {
    border-color: #00c853;
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.2);
    outline: none;
}

#crypto-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

#crypto-table thead {
    background: linear-gradient(135deg, #00c853, #00e676);
    color: white;
}

#crypto-table th,
#crypto-table td {
    padding: 18px;
    text-align: center;
    font-size: 16px;
}

#crypto-table th {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 14px;
}

#crypto-table tbody tr {
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

#crypto-table tbody tr:hover {
    background: linear-gradient(135deg, #e8f5e9, #f1f8f4);
    transform: scale(1.01);
    cursor: pointer;
}

.change-positive {
    color: #00c853;
    font-weight: 700;
}

.change-negative {
    color: #e53935;
    font-weight: 700;
}

/* ------------------------------------------------------------
   NEWSLETTER CON GRADIENTE
------------------------------------------------------------ */

.newsletter {
    width: 90%;
    max-width: 1200px;
    margin: 100px auto;
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, #00c853, #00e676);
    border-radius: 24px;
    box-shadow: 0 15px 50px rgba(0, 200, 83, 0.3);
    animation: fadeInUp 1s ease;
}

.newsletter h2 {
    font-size: 42px;
    font-weight: 800;
    color: white;
    margin-bottom: 15px;
}

.newsletter p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    margin-bottom: 30px;
}

.newsletter-form {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.newsletter-form input {
    width: 350px;
    padding: 16px 24px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.newsletter-form input:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    background: #1a1a1a;
    color: white;
    padding: 16px 40px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.newsletter-form button:hover {
    background: white;
    color: #00c853;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

/* ------------------------------------------------------------
   FOOTER
------------------------------------------------------------ */

.main-footer {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    color: #ffffff;
    padding: 60px 0 30px 0;
    margin-top: 100px;
}

.footer-grid {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
}

.footer-grid h3 {
    color: #00e676;
    margin-bottom: 15px;
    font-size: 24px;
}

.footer-grid h4 {
    color: #00e676;
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
}

.footer-grid li {
    margin: 10px 0;
}

.footer-grid a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-grid a:hover {
    color: #00e676;
    padding-left: 5px;
}

.footer-copy {
    text-align: center;
    margin-top: 50px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */

@media (max-width: 900px) {
    .main-nav {
        flex-direction: column;
        gap: 20px;
    }

    .left-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .news-cards {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columnas en tablet */
    }
}

@media (max-width: 600px) {
    .logo h1 {
        font-size: 36px;
    }

    .hero {
        padding: 80px 30px;
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 17px;
    }

    .editorial-card {
        flex-direction: column;
    }

    .editorial-card img {
        width: 100%;
        min-width: 100%;
        height: 220px;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .newsletter h2 {
        font-size: 32px;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: center;
    }

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

    .news-cards {
        grid-template-columns: 1fr;
        /* 1 columna en móvil */
        gap: 25px;
    }
}

/* Botón de lectura adicional */
.read-btn {
    display: inline-block;
    background: linear-gradient(135deg, #00c853, #00e676);
    color: white;
    padding: 14px 30px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

.read-btn:hover {
    background: linear-gradient(135deg, #000, #333);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Scroll reveal animation class */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}