/* =====================================
   AUTOSERVICIO EL VIEJO - INICIO.CSS
   VERSION CORREGIDA Y OPTIMIZADA
===================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Segoe UI',Tahoma,sans-serif;
    background:#f5f6f8;
    color:#1f2937;
    overflow-x:hidden;
}

/* =====================================
   HEADER
===================================== */

.topbar{
    background:rgba(255,255,255,.96);
    backdrop-filter:blur(10px);
    padding:18px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 6px 18px rgba(0,0,0,.06);
    position:sticky;
    top:0;
    z-index:999;
}

.logo-area h1{
    font-size:1.8rem;
    color:#15803d;
    font-weight:800;
    margin:0;
}

.logo-area span{
    font-size:.92rem;
    color:#6b7280;
}

.btn-login-top{
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
    color:#fff;
    padding:12px 22px;
    border-radius:12px;
    text-decoration:none;
    font-weight:700;
    transition:.25s ease;
}

.btn-login-top:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 24px rgba(37,99,235,.25);
}

/* =====================================
   HERO
===================================== */

.hero-home{
    min-height:560px;
    position:relative;
    overflow:hidden;

    display:flex;
    align-items:center;
    padding:60px;
}

/* FONDO ANIMADO */
.hero-home::before{
    content:"";
    position:absolute;
    inset:0;

    background:
        linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.45)),
        url('/imagenes/kiosco.png');

    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;

    animation:zoomHero 16s ease-in-out infinite alternate;
    z-index:1;
}

@keyframes zoomHero{
    from{ transform:scale(1); }
    to{ transform:scale(1.08); }
}

/* CONTENIDO */
.hero-content{
    position:relative;
    z-index:2;
    max-width:620px;
    color:white;
}

.hero-content h2{
    font-size:3rem;
    font-weight:900;
    line-height:1.1;
    margin-bottom:18px;
    text-shadow:0 6px 20px rgba(0,0,0,.35);
}

.hero-content p{
    font-size:1.12rem;
    line-height:1.6;
    margin-bottom:28px;
    text-shadow:0 4px 14px rgba(0,0,0,.30);
}

/* BOTONES HERO */
.hero-buttons{
    display:flex;
    gap:14px;
    flex-wrap:wrap;
}

.btn-main,
.btn-second{
    padding:14px 24px;
    border-radius:12px;
    text-decoration:none;
    font-weight:700;
    transition:.25s ease;
}

.btn-main{
    background:#16a34a;
    color:white;
}

.btn-main:hover{
    background:#15803d;
    transform:translateY(-2px);
}

.btn-second{
    background:rgba(255,255,255,.15);
    color:white;
    border:1px solid rgba(255,255,255,.35);
}

.btn-second:hover{
    background:rgba(255,255,255,.24);
}

/* =====================================
   TITULOS GENERALES
===================================== */

section h3{
    text-align:center;
    font-size:2rem;
    margin-bottom:30px;
    color:#111827;
    font-weight:800;
}

/* =====================================
   PROMOS
===================================== */

.promo-section{
    padding:70px 0;
    background:white;
    overflow:hidden;
}

.slider-container{
    width:100%;
    overflow:hidden;
}

.slider-track{
    display:flex;
    gap:18px;
    width:max-content;
    animation:deslizar 40s linear infinite;
}

.slider-track:hover{
    animation-play-state:paused;
}

@keyframes deslizar{
    from{ transform:translateX(0); }
    to{ transform:translateX(-50%); }
}

.promo-card{
    width:250px;
    min-height:145px;
    border-radius:18px;
    color:white;
    font-weight:800;
    font-size:1.25rem;
    padding:24px;
    flex-shrink:0;
    box-shadow:0 12px 25px rgba(0,0,0,.12);

    display:flex;
    flex-direction:column;
    justify-content:center;
    text-align:center;
}

.promo-card small{
    margin-top:10px;
    font-size:.95rem;
    font-weight:600;
}

.galicia{ background:#f97316; }
.macro{ background:#2563eb; }
.naranja{ background:#ea580c; }
.comafi{ background:#65a30d; }
.mp{ background:#0ea5e9; }
.modo{ background:#059669; }

/* =====================================
   MARCAS
===================================== */

.brands-section{
    padding:70px 40px;
    background:#f9fafb;
}

.brands-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:18px;
    max-width:1200px;
    margin:auto;
}

.brand-item{
    background:white;
    border-radius:16px;
    padding:20px;
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:120px;

    box-shadow:0 8px 20px rgba(0,0,0,.06);
    transition:.25s ease;
}

.brand-item:hover{
    transform:translateY(-4px);
    box-shadow:0 16px 28px rgba(0,0,0,.10);
}

.brand-item img{
    max-width:100%;
    max-height:60px;
    object-fit:contain;
}

/* =====================================
   BENEFICIOS
===================================== */

.benefits{
    padding:70px 40px;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:22px;
    background:white;
}

.benefit-card{
    background:#f8fafc;
    border-radius:18px;
    padding:30px;
    text-align:center;
    font-size:2rem;
    box-shadow:0 10px 24px rgba(0,0,0,.05);
    transition:.25s ease;
}

.benefit-card:hover{
    transform:translateY(-4px);
}

.benefit-card h4{
    margin-top:14px;
    font-size:1.15rem;
    color:#111827;
}

.benefit-card p{
    margin-top:10px;
    font-size:.95rem;
    color:#6b7280;
}

/* =====================================
   FOOTER
===================================== */

.footer-home{
    background:#111827;
    color:white;
    text-align:center;
    padding:30px;
}

.footer-home span{
    color:#9ca3af;
    font-size:.9rem;
}

/* =====================================
   TABLET
===================================== */

@media (max-width:992px){

    .hero-content h2{
        font-size:2.4rem;
    }

    .brands-grid{
        grid-template-columns:repeat(3,1fr);
    }

    .benefits{
        grid-template-columns:1fr;
    }
}

/* =====================================
   MOBILE
===================================== */

@media (max-width:768px){

    .topbar{
        flex-direction:column;
        gap:14px;
        text-align:center;
        padding:20px;
    }

    .hero-home{
        min-height:440px;
        padding:30px;
    }

    .hero-home::before{
        background-position:center center;
    }

    .hero-content h2{
        font-size:2rem;
    }

    .hero-content p{
        font-size:1rem;
    }

    .hero-buttons{
        flex-direction:column;
        width:100%;
    }

    .btn-main,
    .btn-second{
        text-align:center;
    }

    .brands-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

/* =====================================
   SMALL MOBILE
===================================== */

@media (max-width:480px){

    .hero-content h2{
        font-size:1.6rem;
    }

    .promo-card{
        width:220px;
        min-height:130px;
    }

    .brands-grid{
        grid-template-columns:1fr;
    }

    .brand-item{
        min-height:100px;
    }

    .brands-section,
    .benefits{
        padding:50px 18px;
    }
}