/* ==================================================
   RESET
================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html, body {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden; /* Evita que aparezca la barra de desplazamiento horizontal */
}

/* ========================================= */
/* MAIN */
/* ========================================= */

main{

    margin:0;
    padding-bottom:0 !important;

}

/* ========================================= */
/* ULTIMA SECTION */
/* ========================================= */

section:last-of-type{

    margin-bottom:0 !important;
    padding-bottom:0 !important;

}

/* SECCIONES */

section{

    margin-bottom:0 !important;

}


/* ==================================================
   TOPBAR
================================================== */

.topbar{
    background:#ff0000;
    color:white;
    text-align:center;
    padding:12px;
    font-size:.9rem;
    font-weight:600;
    letter-spacing:.5px;
}

/* ==================================================
   NAVBAR
================================================== */

.custom-navbar{
    background:white;
    padding:16px 0;
    box-shadow:0 3px 15px rgba(0,0,0,.06);
}

.logo img{
    width:180px;
}

/* LINKS */

.navbar-nav{
    gap:10px;
}

.nav-link{
    color:#111 !important;
    font-weight:700;
    font-size:.95rem;
    transition:.3s;
}

.nav-link:hover{
    color:#c1121f !important;
}

/* DROPDOWN */

.custom-dropdown{
    border:none;
    border-radius:18px;
    padding:10px;
    box-shadow:0 10px 30px rgba(0,0,0,.1);
}

.dropdown-item{
    border-radius:10px;
    padding:12px 15px;
    transition:.2s;
    font-weight:600;
}

.dropdown-item:hover{
    background:#f5f5f5;
    padding-left:20px;
}

/* ==================================================
   SEARCH
================================================== */

.search-container{
    width:100%;
    max-width:420px;
}

.search-input{
    border-radius:14px 0 0 14px !important;
    border:1px solid #ddd;
    padding:13px;
    box-shadow:none !important;
}

.search-button{
    border:none;
    background:#111;
    color:white;
    width:60px;
    border-radius:0 14px 14px 0;
    transition:.3s;
}

.search-button:hover{
    background:#c1121f;
}

/* ==================================================
   HEADER ICONS
================================================== */

.header-icons{
    display:flex;
    align-items:center;
    gap:25px;
}

.icon-box{
    text-decoration:none;
    color:#111;
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:700;
    transition:.3s;
}

.icon-box:hover{
    color:#c1121f;
}

.logged-user{
    display:flex;
    align-items:center;
    gap:10px;
}

.hello-user{
    font-weight:700;
    font-size:.95rem;
}

.logout-link{
    font-size:.85rem;
    color:#6c2bd9;
    text-decoration:none;
}

.logout-link:hover{
    color:black;
}
/* ==================================================
   HEADER ICONS
================================================== */

.header-icons{
    display:flex;
    align-items:center;
    gap:25px;
}

.icon-box{
    text-decoration:none;
    color:#111;
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:700;
    transition:.3s;
}

.icon-box:hover{
    color:#c1121f;
}

.logged-user{
    display:flex;
    align-items:center;
    gap:10px;
}

.hello-user{
    font-weight:700;
    font-size:.95rem;
}

.logout-link{
    font-size:.85rem;
    color:#6c2bd9;
    text-decoration:none;
}

.logout-link:hover{
    color:black;
}

/* ==================================================
   HERO
================================================== */

.hero-section{
    padding:90px 0;
    background:white;
}

.hero-content h1{
    font-size:4rem;
    font-weight:900;
    line-height:1.1;
    margin:20px 0;
}

.hero-content p{
    color:#666;
    font-size:1.1rem;
    line-height:1.7;
    margin-bottom:30px;
}

.hero-label{
    background:#111;
    color:white;
    padding:10px 18px;
    border-radius:999px;
    font-size:.85rem;
    font-weight:700;
    display:inline-block;
}

.hero-buttons{
    display:flex;
    gap:15px;
    margin-bottom:40px;
}

.hero-btn{
    background:#111;
    color:white;
    padding:15px 28px;
    border-radius:14px;
    text-decoration:none;
    font-weight:700;
    transition:.3s;
}

.hero-btn:hover{
    background:#c1121f;
    color:white;
}

.hero-outline{
    border:2px solid #111;
    color:#111;
    padding:15px 28px;
    border-radius:14px;
    text-decoration:none;
    font-weight:700;
    transition:.3s;
}

.hero-outline:hover{
    background:#111;
    color:white;
}

.hero-image-wrapper{
    position:relative;
}

.hero-image{
    border-radius:30px;
    box-shadow:0 20px 40px rgba(0,0,0,.12);
}

/* ==================================================
   FEATURES
================================================== */

.hero-features{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.feature-box{
    background:#fff;
    border-radius:14px;
    padding:12px 18px;
    box-shadow:0 5px 15px rgba(0,0,0,.08);
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:600;
}

/* ==================================================
   SECTION HEADER
================================================== */

.section-header span{
    color:#c1121f;
    font-weight:800;
    letter-spacing:1px;
}

.section-header h2{
    font-size:2.8rem;
    font-weight:900;
    margin-top:10px;
}
.main-header{
    width:100%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:22px 60px;
    background:white;
    gap:40px;
}

/* IZQUIERDA */

.header-left{
    display:flex;
    align-items:center;
    gap:30px;
}
/* ==================================================
   RESPONSIVE
================================================== */
.login-container{
    min-height:80vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:40px 20px;
}

.login-box{
    width:100%;
    max-width:450px;
    background:white;
    padding:40px;
    border-radius:24px;
    box-shadow:0 10px 40px rgba(0,0,0,.08);
}

.login-box h1{
    text-align:center;
    margin-bottom:30px;
    font-weight:900;
}

.input-group{
    margin-bottom:20px;
}

.input-group input{
    width:100%;
    padding:15px;
    border-radius:14px;
    border:1px solid #ddd;
    outline:none;
}

.login-btn{
    width:100%;
    border:none;
    background:#111;
    color:white;
    padding:15px;
    border-radius:14px;
    font-weight:700;
    transition:.3s;
}

.login-btn:hover{
    background:#c1121f;
}

.register-link{
    text-align:center;
    margin-top:20px;
}
.custom-navbar .container-fluid{
    padding-left:70px;
    padding-right:70px

}
.search-container{
    position:relative;
    top:5px;
}
.search-container{
    margin-top:5px;
}
/* MOBILE NAV */

.mobile-top{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
}

.mobile-search{
    flex:1;
}

.mobile-search .search-input{
    height:42px;
    border-radius:12px 0 0 12px;
    font-size:14px;
}

.mobile-search .search-button{
    border-radius:0 12px 12px 0;
}

.mobile-actions{
    display:flex;
    align-items:center;
    gap:10px;
}

.mobile-cart{
    color:#000;
    font-size:22px;
    text-decoration:none;
}

.mobile-top .logo img{
    width:42px;
}

.navbar-toggler{
    border:none !important;
    box-shadow:none !important;
}

/* DESKTOP */

@media(min-width:992px){

    .search-container{
        width:500px;
    }

}
.mobile-login-btn{
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    text-align:center;
    text-decoration:none;
    color:#000;
    font-weight:700;
    font-size:16px;
    padding:12px 0;
}
.mobile-logout{
    display:flex;
    justify-content:center;
    align-items:center;
    width:100%;
    text-align:center;
    text-decoration:none;
    color:#000;
    font-weight:600;
    font-size:14px;
    padding-bottom:10px;
}
.search-modal{

    position: fixed;

    inset: 0;

    display: none;

    align-items: center;

    justify-content: center;

    z-index: 999999;

}

.search-modal.active{

    display: flex;

}

.search-overlay{

    position: absolute;

    inset: 0;

    background: rgba(0,0,0,.6);

    backdrop-filter: blur(4px);

}

.search-box-results{

    position: relative;

    width: 95%;

    max-width: 700px;

    background: white;

    border-radius: 24px;

    overflow: hidden;

    z-index: 10;

    animation: showSearch .25s ease;

}

@keyframes showSearch{

    from{

        opacity: 0;

        transform: scale(.9);

    }

    to{

        opacity: 1;

        transform: scale(1);

    }

}

.search-header{

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 24px;

    border-bottom: 1px solid #eee;

}

.search-header h2{

    margin: 0;

    font-size: 24px;

    font-weight: 800;

}

.close-search{

    border: none;

    background: transparent;

    font-size: 28px;

    cursor: pointer;

}

.search-results-list{

    max-height: 500px;

    overflow-y: auto;

}

.search-item{

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 22px 24px;

    text-decoration: none;

    color: black;

    border-bottom: 1px solid #f3f3f3;

    transition: .2s;

}

.search-item:hover{

    background: #f7f7f7;

    padding-left: 34px;

}

.search-item h3{

    margin: 0;

    font-size: 18px;

    font-weight: 700;

}

.search-item p{

    margin: 0;

    color: gray;

    font-size: 14px;

}

.not-found{

    padding: 70px 20px;

    text-align: center;

}

.not-found h2{

    font-size: 30px;

    font-weight: 800;

}

.not-found p{

    color: gray;

    margin-top: 10px;

}

@media(max-width:768px){

    .search-box-results{

        width: 92%;

    }

}
.google-divider{

    text-align:center;

    margin:20px 0;

    color:#777;

    font-weight:600;

    font-size:14px;

}

.google-btn{

    width:100%;

    height:55px;

    border-radius:14px;

    background:white;

    border:1px solid #ddd;

    display:flex;

    align-items:center;

    justify-content:center;

    gap:12px;

    text-decoration:none;

    color:#111;

    font-weight:700;

    transition:.25s;

    font-size:15px;

}

.google-btn:hover{

    background:#f7f7f7;

    transform:translateY(-2px);

    border-color:#bbb;

}

.google-btn i{

    font-size:20px;

}



/* =========================================
   EXTRAS IMPORTANTES (agregar siempre)
   ========================================= */
body {
    overflow-x: hidden;
    padding-bottom: env(safe-area-inset-bottom); /* iPhone con notch */
}

.modal, .product-modal, .accessories-modal {
    padding: 12px !important;
}

.navbar-toggler { padding: 8px; }

@media (max-width: 576px) {
    .container-fluid.pb-0 { padding-left: 16px !important; padding-right: 16px !important; }
}

/* Evita zoom automático en inputs (iOS) */
input, select, textarea {
    font-size: 16px !important;
}
/* NAVBAR ULTRA RESPONSIVE */
.custom-navbar {
    background: white;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    padding: 14px 0;
}

.logo img {
    max-height: 48px;
    width: auto;
}

/* Mobile Top */
.mobile-top {
    gap: 10px;
}

.mobile-search .search-input {
    height: 42px;
    font-size: 15px;
}

.mobile-cart {
    font-size: 24px;
    color: #111;
}

/* Desktop */
@media (min-width: 992px) {
    .search-container {
        max-width: 520px;
        flex: 1;
    }

    .desktop-navbar {
        gap: 30px;
    }
}

/* Ajustes finos para login/register */
@media (max-width: 576px) {
    .mobile-top .logo img {
        width: 42px;
    }
    
    .search-container.mobile-search {
        margin-left: 8px;
        margin-right: 8px;
    }
}
/* CENTRADO MEJORADO */
.mobile-top {
    justify-content: space-between;
}

.logo-img {
    width: auto;
    height: 46px;
    object-fit: contain;
}

@media (min-width: 992px) {
    .desktop-navbar {
        gap: 20px;
    }
    
    .search-container {
        max-width: 560px;
    }
}

/* Ajuste fino mobile */
@media (max-width: 576px) {
    .mobile-top {
        padding: 8px 0;
    }
    
    .logo-img {
        height: 42px;
    }
}
