html,
body{
    overflow-x: hidden;
}

/* ===================================
   HERO
=================================== */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('../imagenes/banners/banner.png') center center/cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,.75),
        rgba(0,0,0,.45)
    );
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 850px;
    padding: 20px;
    color: white;
}

.hero-tag {
    display: inline-block;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-size: .9rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: auto;
    margin-bottom: 35px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===================================
   BOTONES
=================================== */

.btn {
    display: inline-block;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
    transition: .3s ease;
}

.btn-primary {
    background: #e60012;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(230,0,18,.3);
}

.btn-secondary {
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: #111;
}

/* ===================================
   TITULOS
=================================== */

section {
    padding: 90px 8%;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
}

/* ===================================
   ESTADISTICAS
=================================== */

.stats {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 25px;
    background: #f8f9fa;
}

.stat {
    text-align: center;
    padding: 30px;
}

.stat h3 {
    font-size: 2.8rem;
    color: #e60012;
    margin-bottom: 10px;
}

.stat p {
    color: #666;
}

/* ===================================
   CATEGORIAS
=================================== */

.categorias .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 25px;
}

.categorias .card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: .35s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.categorias .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

.categorias .card img {
    width: 90px;
    margin-bottom: 20px;
}

.categorias .card h3 {
    margin-bottom: 12px;
}

.categorias .card p {
    color: #666;
    line-height: 1.7;
}

/* ===================================
   PRODUCTOS DESTACADOS
=================================== */

.featured-products {
    background: #f8f9fa;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
    transition: .3s;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    padding: 20px;
}

.product-card h3 {
    padding: 0 20px;
    margin-bottom: 10px;
}

.product-card p {
    padding: 0 20px 25px;
    color: #666;
}

/* ===================================
   SOLUCIONES
=================================== */

.soluciones {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;

    background: #111;
    color: white;
}

.soluciones-content {
    flex: 1;
}

.soluciones-content span {
    display: inline-block;
    background: #e60012;
    color: white;
    padding: 8px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
    font-size: .9rem;
    font-weight: 600;
}

.soluciones-content h2 {
    text-align: left;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.soluciones-content p {
    color: #d7d7d7;
    line-height: 1.8;
    margin-bottom: 20px;
}

.soluciones-image {
    flex: 1;
    text-align: center;
}

.soluciones-image img {
    max-width: 420px;
    width: 100%;
    transition: .3s;
}

.soluciones-image img:hover {
    transform: scale(1.05);
}

/* ===================================
   WHY US
=================================== */

.why-us {
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    max-width: 800px;
    margin: auto;
}

.section-title span {
    color: #e60012;
    font-weight: 700;
}

.section-title p {
    color: #666;
    line-height: 1.8;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 25px;
    margin-top: 50px;
}

.why-card {
    background: white;
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
    transition: .3s;
}

.why-card:hover {
    transform: translateY(-8px);
}

.why-card h3 {
    color: #e60012;
    margin-bottom: 15px;
}

.why-card p {
    color: #666;
    line-height: 1.7;
}

/* ===================================
   CTA
=================================== */

.home-cta {
    background: linear-gradient(
        135deg,
        #111,
        #e60012
    );

    color: white;
    text-align: center;
}

.cta-content {
    max-width: 850px;
    margin: auto;
}

.cta-content span {
    display: inline-block;
    background: rgba(255,255,255,.15);
    padding: 8px 18px;
    border-radius: 30px;
    margin-bottom: 20px;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-content p {
    line-height: 1.8;
    margin-bottom: 35px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}


.btn-adicional{
    width:220px;
    text-align:center;
    border-radius: 35px;
    background: green;
    font-weight: 900;
    padding: 7px;
    color: white;
}


/* ===================================
   FOOTER
=================================== */

footer {
    background: #0d0d0d;
    color: white;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 40px;
    padding: 60px 8%;
}

footer img {
    width: 120px;
}

.footer-social img {
    width: 35px;
    margin-right: 10px;
    cursor: pointer;
    transition: .3s;
}

.footer-social img:hover {
    transform: scale(1.15);
}

footer h4 {
    margin-bottom: 15px;
}

/* ===================================
   WHATSAPP
=================================== */

.whatsapp-btn {
    position: fixed;
    right: 25px;
    bottom: 25px;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    font-size: 2rem;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0,0,0,.2);
    z-index: 999;
    transition: .3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* ===================================
   RESPONSIVE TABLET
=================================== */

@media (max-width:992px){

    .stats{
        grid-template-columns: repeat(2,1fr);
    }

    .soluciones{
        flex-direction: column;
        text-align: center;
    }

    .soluciones-content h2{
        text-align: center;
    }

    footer{
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ===================================
   RESPONSIVE MOBILE
=================================== */

@media (max-width:768px){

    section{
        padding:70px 6%;
    }

    .hero{
        min-height:80vh;
    }

    .hero h1{
        font-size:2.5rem;
    }

    .hero p{
        font-size:1rem;
    }

    .stats{
        grid-template-columns:1fr;
    }

    .hero-buttons{
        flex-direction:column;
        align-items:center;
    }

    .cta-buttons{
        flex-direction:column;
        align-items:center;
    }

    .btn-adicional{
        width:220px;
        text-align:center;
        border-radius: 15px;
        background: green;
    }

    .cta-content h2{
        font-size:2rem;
    }

    .soluciones-content h2{
        font-size:2rem;
    }
}

/* ===================================
   RESPONSIVE SMALL MOBILE
=================================== */

@media (max-width:480px){

    .hero h1{
        font-size:2rem;
    }

    .hero p{
        font-size:.95rem;
    }

    section h2{
        font-size:1.8rem;
    }

    .stat h3{
        font-size:2.2rem;
    }

    .cta-content h2{
        font-size:1.8rem;
    }

    .soluciones-content h2{
        font-size:1.8rem;
    }
}