/* 
    Created on : 20/02/2025, 4:59:31 p. m.
    Author     : Frank Blanco
*/

:root {
    --rojo: #EB0045;
    --azul: #007BD2;
    --azul-oscuro: #243746;
    --gris: #4a5568;
    --gris-claro: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: var(--azul-oscuro);
}

a{
    text-decoration: none;
}


/* Header */
.header {
    background: var(--azul-oscuro);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 160px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--rojo);
}

.search-bar {
    padding: 0.5rem 1rem;
    border-radius: 7px;
    border: 1px solid var(--azul);
    width: 300px;
}

/* Hero Noticias */
.hero-news {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul) 100%);
    color: white;
}

.hero-grid {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.main-article {
    background: var(--gris-claro);
    border-radius: 5px;
    overflow: hidden;
    color: var(--azul-oscuro);
}

.main-article img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.article-content {
    padding: 0px 1rem 0rem 1rem;
    background: var(--gris-claro);
}

.article-tag {
    color: var(--rojo);
    padding: 0px;
    display: inline-block;
    margin-bottom: 0px;
    font-size: 0.9rem;
}

/* Sidebar Promocional */
.promo-sidebar {
    background: rgba(255,255,255,0.1);
    padding: 0.5rem;
    border-radius: 5px;
}

.promo-card {
    background: white;
    padding: 1.5rem;
    border-radius: 2px;
    margin-bottom: 1.5rem;
    color: var(--azul-oscuro);
}

.promo-tag {
    background: var(--azul);
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 10px;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.grid-main{
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 4fr 1fr;
    gap: 0.5rem;
}

.grid-cat{
    margin-left:1rem;
    padding-left: 15px;
    border-left: 4px solid #EB0045;
    margin-bottom: 30px;
}

.grid-ultn{
    width: 96%;
    margin: 0 auto;
    background: var(--rojo);
    color:#ffffff;
    padding-left: 1rem;
    margin-bottom: 2rem;
}

.grid-ultn h1{
    color:#ffffff;
}

.title-cat{
    color: #243746;
    margin: 0;
    font-family: 'Helvetica Neue', Arial;
}
.sub-title-cat{
    color: #718096;
    margin: 5px 0 0;
    font-size: 14px;
}

.banner {
    width: 100%;
    background: var(--azul-oscuro);
    margin: 0 auto;  /* Centra el contenedor principal */
    padding: 0px;
    padding-top: 3px;
    display: grid;
    grid-template-columns: 2fr 3fr 2fr;
    gap: 0rem;
    
    /* Centrado horizontal y vertical de todos los elementos hijos */
    justify-items: center;    /* Centrado horizontal */
    align-items: center;      /* Centrado vertical */
    
    /* Para contenido de texto adicional */
    text-align: center;       /* Herencia para elementos internos */
}

.banner-2, .banner-3 {
    width: 1200px;
    height: 90px;
    background: var(--azul-oscuro);
    margin: 0 auto;  /* Centra el contenedor principal */
    padding: 0px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0rem;
    margin-bottom: 0.5rem;
    
    /* Centrado horizontal y vertical de todos los elementos hijos */
    justify-items: center;    /* Centrado horizontal */
    align-items: center;      /* Centrado vertical */
    
    /* Para contenido de texto adicional */
    text-align: center;       /* Herencia para elementos internos */
}

.banner-3 {
    background: #ffffff;
    width: 100%;
    height: 200px;
    padding-left: 2px;
    padding-right: 2px;
    margin-bottom: 15px;
}


.anuncios{
    width: 100%;
    margin: 10px auto;
    background: rgba(255,255,255,0.1);
    border-left: 1px solid #e2e8f0;
    padding: 2rem 0.5rem 2rem 0.5rem;
    color: var(--rojo);
}

.card-anuncio{
    background: var(--gris-claro);
    margin-bottom: 1rem;
}

.text-anuncio{
    padding: 0px 5px 5px 5px;
    text-align: center;
}

.btn-anuncio{
    text-decoration: none;
    color:#EB0045;
}

.title-anuncio{
    padding: 5px;
    background: linear-gradient(135deg, var(--azul-oscuro) 0%, var(--azul) 100%);
    color: white;
    height: auto;
}

.img-anuncio {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.img-anuncio-2 {
    width:1200px; 
    height: 90px;
    object-fit: cover;
}

.tag{
    padding: 1rem 0rem;
    margin-bottom: 1rem;
}

.tag a{
    text-decoration: none;
    color: var(--azul-oscuro);
    font-weight: 600;
}



/* Grid de Noticias */
.news-grid, .news-grid-2, .news-grid-3 {
    width: 100%;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.news-grid-2 {
    grid-template-columns: repeat(5, 1fr);
    margin: 2rem auto;
}

.news-grid-3 {
    grid-template-columns: repeat(6, 1fr);
    margin: 2rem auto;
}

.margin-top-10{
    margin-top: 2rem;
}
.margin-bottom-5{
    margin-bottom: 1rem;
}

.news-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
}

/* Sección Productos */
.products-section {
    background: var(--gris-claro);
    padding: 2rem;
    margin-bottom: 2rem;
}

.products-grid {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 5px;
    padding: 0rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.product-badge {
    background: var(--rojo);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 10px;
    font-size: 0.8rem;
    display: inline-block;
    margin: 1rem 0;
}

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

/* Newsletter */
.newsletter {
    padding: 1rem 0rem;
    background: white;
    text-align: center;
}

.newsletter-box {
    max-width: 100%;
    margin: 0 auto;
    padding: 0.5rem;
    border: 2px solid var(--azul);
    border-radius: 15px;
}

.newsletter input[type="email"] {
    padding: 1rem;
    width: 80%;
    border: 1px solid #ddd;
    border-radius: 25px;
    margin-right: 1rem;
}

.input-nl{
    padding: 3px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Footer */
.footer {
    background: var(--azul-oscuro);
    color: white;
    padding: 4rem 2rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    color: var(--rojo);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: white;
    text-decoration: none;
    line-height: 2;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-icon {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top:3.2px;
    padding-left: 1px;
    color:var(--gris-claro);
    text-decoration: none;
}

.header {
    position: relative;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: white;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    
    .hero-news {
        padding: 2rem 0.5rem;
    }
    
    .hero-grid, .news-grid, .news-grid-2, .products-grid, .grid-main, .banner {
        grid-template-columns: 1fr;
    }
    
    .news-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 5px;
        gap: 5px;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-main{
        margin: 0;
        display: block;
        gap: 0rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background: var(--azul-oscuro);
        width: 100%;
        align-items:start;
        text-align: left;
        transition: 0.3s;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        padding: 15px;
        display: block;
    }
    
    .search-bar {
        width: 80%;
        margin: 15px;
    }
    
    .banner-3 {
        width: 96%;
        height: 425px;
        margin: 0 auto;
        margin-bottom: 2rem;
    }
    
}

