/* =========================================
ESTILOS GENERALES
========================================= */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html{
    scroll-behavior: smooth;
}

body{
    overflow-x: hidden;
    background: #111;
}

/* =========================================
HEADER HERO
========================================= */
header{
    width: 100%;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-image: url('hero.jpg');
    background-size: cover;
    background-position: center;
}

header::before{
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(245,245,245,.90);
}

.hero-content{
    position: relative;
    z-index: 2;
    width: 100%;
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 8%;
    gap: 40px;
    flex-wrap: wrap;
}

/* =========================================
LOGO
========================================= */
.logo img{
    width: 750px;
}

/* =========================================
TEXTOS HERO
========================================= */
.hero-text{
    text-align: right;
}

.hero-text h1{
    font-size: 72px;
    line-height: 1;
    font-weight: 800;
    font-style: italic;
    color: #000;
}

.hero-text h1 span{
    display: block;
    color: #ff8800;
}

.hero-text p{
    margin-top: 20px;
    font-size: 20px;
    color: #ff8800;
    font-weight: 700;
}

/* =========================================
BOTON Y CONTENEDOR DE BOTONES
========================================= */
.btn{
    display: inline-block;
    margin-top: 35px;
    padding: 18px 34px;
    background: #ff8800;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    transition: .3s;
}

.btn:hover{
    transform: scale(1.05);
}

.btn-container {
    text-align: center;
    margin-top: 60px;
    width: 100%;
}

/* =========================================
MENU PRINCIPAL
========================================= */
.bottom-menu{
    width: 100%;
    position: relative;
    z-index: 2;
    background: #ff8800;
}

.menu{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu a{
    flex: 1;
    text-align: center;
    padding: 24px 15px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    transition: .3s;
    border-right: 1px solid rgba(255,255,255,.15);
}

.menu a:last-child{
    border-right: none;
}

.menu a:hover{
    background: rgba(0,0,0,.15);
}

/* =========================================
BOTON HAMBURGUESA
========================================= */
.floating-menu-toggle{
    position: fixed;
    top: 20px;
    right: 20px;
    width: 58px;
    height: 58px;
    background: #ff8800;
    border-radius: 16px;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: .35s;
    box-shadow: 0 15px 35px rgba(0,0,0,.25);
}

.floating-menu-toggle.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-menu-toggle span{
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 20px;
}

/* =========================================
MENU LATERAL
========================================= */
.floating-menu{
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #ff8800;
    z-index: 99998;
    transition: .4s ease;
    display: flex;
    align-items: center;
    box-shadow: -10px 0 40px rgba(0,0,0,.2);
}

.floating-menu.active{
    right: 0;
}

.floating-menu .menu{
    flex-direction: column;
    width: 100%;
}

.floating-menu .menu a{
    width: 100%;
    text-align: left;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,.15);
    padding: 24px 30px;
}

/* =========================================
SECCIONES GLOBALES
========================================= */
section{
    min-height: 100vh;
    padding: 80px 8%;
    display: flex;
    align-items: center;
}

.container{
    width: 100%;
    max-width: 1400px;
    margin: auto;
}

.section-title{
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: 800;
}

.section-text{
    line-height: 1.8;
    margin: auto;
    margin-bottom: 40px;
    text-align: center;
    font-size: 16px;
}

/* =========================================
TESTIMONIOS
========================================= */
#testimonios{
    background: #fff7ed;
}

#testimonios .section-title{
    color: #111;
    text-align: center;
}

#testimonios .section-text{
    color: #444;
}

.testimonials-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 25px;
}

.testimonial-card{
    background: white;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    border-top: 6px solid #ff8800;
    transition: .3s;
}

.testimonial-card:hover{
    transform: translateY(-8px);
}

.stars{
    color: #ff8800;
    font-size: 24px;
    margin-bottom: 20px;
}

.testimonial-text{
    color: #444;
    line-height: 1.8;
    margin-bottom: 25px;
}

.client-name{
    font-weight: 800;
    color: #111;
    font-size: 18px;
}

.client-city{
    color: #ff8800;
    font-weight: 600;
    margin-top: 5px;
}

/* =========================================
COMO COMPRAR
========================================= */
#comprar{
    background: white;
    overflow: hidden;
}

#comprar .section-title{
    color: #ff8800;
    text-align: center;
}

#comprar .section-text{
    color: #666;
    text-align: center;
}

.buy-subtitle{
    text-align: center;
    color: #ff8800;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.3;
}

.buy-circle-layout{
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 900px;
    margin: auto;
}

/* --- CENTRO --- */
.buy-center{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 5;
}

.buy-center img{
    width: 500px;
    max-width: 100%;
}

/* --- ITEMS --- */
.buy-item{
    position: absolute;
    width: 260px;
    text-align: center;
}

.buy-item img{
    width: 100%;
    max-width: 260px;
}

/* --- TEXTOS COMO COMPRAR --- */
.buy-title{
    font-size: 28px;
    font-weight: 300;
    line-height: 1.3;
    letter-spacing: .5px;
}

.buy-title span{
    color: #ff8800;
    font-weight: 700;
}

.buy-title strong{
    color: #111;
    font-weight: 300;
}

/* --- POSICIONES --- */
.top-left{
    top: 20px;
    left: 20px;
}

.left-center{
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
}

.bottom-left{
    bottom: 20px;
    left: 40px;
}

.top-right{
    top: 120px;
    right: 40px;
}

.bottom-right{
    bottom: 120px;
    right: 40px;
}

/* =========================================
CATEGORIAS
========================================= */
#categorias {
    position: relative;
    padding: 120px 8%;
    background-image: url('hero2.jpg');
    background-size: cover;
    background-position: top;
}

#categorias::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(245, 245, 245, 0.90); 
}

#categorias .container {
    position: relative;
    z-index: 2; 
}

.categories-title {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    color: #ff8800;
    margin-bottom: 70px;
    line-height: 1.1;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background: rgba(255, 144, 0, 0.6);
    border-radius: 24px;
    padding: 40px 30px;
    transition: .3s;
    box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-card h2 {
    color: white; 
    background: transparent; 
    font-size: 24px;
    margin-bottom: 20px;
}

.category-card p {
    color: black; 
    line-height: 1.8;
    font-size: 16px;
    font-weight: 500; 
}

/* =========================================
BENEFICIOS
========================================= */
#beneficios {
    background-color: #ffffff;
    background-image: url('bg-beneficios.png'); 
    background-position: right center;
    background-repeat: no-repeat;
    background-size: 30% auto;
    
    padding: 100px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Contenedor Superior (60% y 40%) */
.benefits-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 80px;
}

.benefits-text {
    width: 60%;
}

.benefits-image {
    width: 40%;
    text-align: center;
}

.benefits-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
}

/* Textos de Beneficios */
.benefits-black-text {
    color: #111;
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.benefits-divider {
    border: none;
    height: 6px;
    width: 100px;
    background-color: #ff8800;
    margin: 30px 0;
}

.benefits-orange-text {
    color: #ff8800;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.6;
}

/* Contenedor Inferior (3 Divs) */
.benefits-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.benefit-item {
    text-align: center;
    background: transparent; 
    padding: 20px 10px;
}

.benefit-item img {
    width: 150px; 
    height: 150px;
    object-fit: contain;
    margin-bottom: 25px;
}

.benefit-item h4 {
    color: #111;
    font-size: 24px; 
    font-weight: 700;
    line-height: 1.3;
}

/* =========================================
MARCAS
========================================= */
#marcas {
    background-color: #ffffff;
    background-image: url('bg-marcas.png'); 
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 30% auto;
    
    padding: 100px 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.brands-layout {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    align-items: center;
    gap: 60px;
}

.brand-item {
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-item img {
    width: 100%;
    max-width: 240px; 
    height: auto;
    object-fit: contain;
    transition: transform 0.3s;
    filter: grayscale(100%); 
    opacity: 0.7;
}

.brand-item img.hankook-logo {
    max-width: 160px; 
}

.brand-item img:hover {
    transform: scale(1.1);
    filter: grayscale(0%); 
    opacity: 1;
}

/* =========================================
FOOTER
========================================= */
footer {
    background: #ff8800; 
    color: white;
    padding: 60px 8% 30px;
}

.footer-container {
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center; 
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

/* Lado Izquierdo (Contacto) */
.footer-left h3 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
}

.contact-item svg {
    width: 26px;
    height: 26px;
    fill: white;
    flex-shrink: 0;
}

/* Lado Derecho (Redes Sociales) */
.social-icons {
    display: flex;
    gap: 25px;
}

.social-icons a svg {
    width: 45px;
    height: 45px;
    fill: white;
    transition: transform 0.3s;
}

.social-icons a:hover svg {
    transform: scale(1.15) translateY(-5px);
}

/* Derechos Reservados */
.footer-bottom {
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* =========================================
RESPONSIVE
========================================= */
@media(max-width: 1100px){
    .buy-circle-layout{
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .buy-center,
    .buy-item{
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: auto;
        transform: none;
    }

    .buy-center{ order: 1; }
    .top-left{ order: 2; }
    .left-center{ order: 3; }
    .bottom-left{ order: 4; }
    .top-right{ order: 5; }
    .bottom-right{ order: 6; }

    .buy-center img{
        width: 350px;
    }
}

@media(max-width: 900px){
    .hero-content{
        justify-content: center;
        text-align: center;
    }

    .hero-text{
        text-align: center;
    }

    .hero-text h1{
        font-size: 42px;
    }

    .section-title{
        font-size: 38px;
    }

    .categories-title{
        font-size: 42px;
    }

    /* Ajustes Beneficios Tablet */
    .benefits-top {
        flex-direction: column;
        text-align: center;
    }

    .benefits-text {
        width: 100%;
    }

    .benefits-image {
        width: 100%;
    }

    .benefits-divider {
        margin: 30px auto; 
    }

    .benefits-bottom {
        grid-template-columns: 1fr; 
    }
}

@media(max-width: 700px){
    .logo img{
        width: 360px;
    }

    .hero-text h1{
        font-size: 32px;
    }

    section{
        padding: 70px 25px;
    }

    .section-title{
        font-size: 30px;
        text-align: center;
    }

    .buy-item{
        width: 100%;
    }

    .buy-item img{
        max-width: 260px;
    }

    .buy-center img{
        width: 320px;
    }

    .buy-title{
        font-size: 24px;
    }

    .buy-subtitle{
        font-size: 26px;
    }

    .categories-title{
        font-size: 32px;
    }

    /* Ajustes Beneficios Celular */
    .benefits-black-text {
        font-size: 32px;
    }

    .benefits-orange-text {
        font-size: 18px;
    }

    /* Ocultamos las imágenes de fondo laterales en pantallas pequeñas */
    #beneficios,
    #marcas {
        background-image: none;
    }
}

/* =========================================
MENU RESPONSIVE MOVIL (Corregido y Reforzado)
========================================= */
@media(max-width: 900px){

    /* ocultar menu normal reforzado con !important */
    .bottom-menu{
        display: none !important;
    }

    /* mostrar hamburguesa SIEMPRE reforzado con !important */
    .floating-menu-toggle{
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
    }

}