html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', Arial, sans-serif;
}
.top-nav{
    background: #0f5f3d;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-left,
.top-right{
    display: flex;
    align-items: center;
    gap: 10px;
}html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    overflow-x: hidden;
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', Arial, sans-serif;
}
.top-nav{
    background: #0f5f3d;
    padding: 10px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-left,
.top-right{
    display: flex;
    align-items: center;
    gap: 10px;
}
.top-left span,
.top-right a{
    color: #fff;
    font-size: 0.9rem;
}
.top-nav i{
    font-size: 1rem;
}
.top-center{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.top-left .bx-phone{
    background: #cc1e2c;
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.top-right a{
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: #ffffff;
}
.top-right a i{
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #fff;
    color: #0f5f3d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.top-right{
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;  
    justify-content: flex-end;
}
.top-right a:hover i{
    background: #cc1e2c;
    color: #fff;
}
.login{
    font-weight: 600;
}
.saludo{
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 10px;
    white-space: nowrap;
}
.user-data{
    display:flex;
    flex-direction:column;
    line-height:1.1;
}

.correo-user{
    font-size:0.70rem;
    color:#d9f2e4;
    font-weight:400;
}

.saludo{
    font-size:0.85rem;
}
.logout i{
    background: #cc1e2c;
    color: #fff;
}

.logout:hover i{
    background: #fff;
    color: #cc1e2c;
}
.main-nav{
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 15px 5%;
    background: #ffffff;
    position: sticky;
    top: 0;               
    z-index: 999;
    border-bottom: 1px solid #e5e5e5;
}
.nav-spacer{
    width: clamp(80px, 12vw, 50px); 
}
.menu{
justify-self: center;
    list-style: none;
    display: flex;
    gap: 27px;
}
.menu a{
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    position: relative;
}
.menu a:not(.sword-hover)::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #cc1e2c;
    transition: 0.3s;
}
.menu a:not(.sword-hover):hover::after{
    width: 100%;
}
.btn{
    background: #cc1e2c;
    color: #fff;
    padding: 12px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
}
.top-center img{
    width: clamp(80px, 20vw, 115px);
    height: auto;
}
.logo img{
    width: clamp(80px, 12vw, 50px);
    height: auto;
    display: block;
}
.menu a:hover{
    color: #cc1e2c;
}
.menu a.sword-hover{
    position: relative;
    padding-bottom: 14px;
    font-weight: 500;
}
.menu a.sword-hover::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 14px;
    background: url("sword.svg") no-repeat left center;
    background-size: contain;
    transform: scaleX(0);
    transform-origin: left;   
    transition: transform 0.4s ease;
    pointer-events: none;
}
.menu a.sword-hover:hover::after{
    transform: scaleX(1);
}
.menu a.sword-hover:hover{
    color: #0f5f3d;
}
.menu-toggle{
    display: none;
    font-size: 2rem;
    color: #0f5f3d;
    cursor: pointer;
}
.main-nav .menu a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}
#promociones{
    scroll-margin-top: -25px; 
}
.menu a.sword-hover.active::after{
    transform: scaleX(1);
}
.menu a.sword-hover.active{
    color: #0f5f3d;
}
.login-modal{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.login-box{
    background: #fff;
    width: 100%;
    max-width: 380px;
    padding: 30px;
    border-radius: 14px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
}
.login-box h2{
    text-align: center;
    color: #0f5f3d;
    margin-bottom: 20px;
}
.login-box label{
    font-weight: 500;
    font-size: .9rem;
}
.login-box input{
    width: 100%;
    padding: 10px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
}
.password-rules {
    display: none !important;
}
.password-rules.show {
    display: block !important;
    margin-top: 10px;
    margin-bottom: 15px;
}
.password-rules p.ok {
    color: #333;
}
.password-rules p i {
    width: 14px;
    height: 14px;
    border: 2px solid #999;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: transparent;
    background: transparent;
}
.password-rules p {
    margin-bottom: 3px;
    color: #333; 
    display: flex;
    align-items: center;
    gap: 6px;
}
.password-rules p.ok i {
    background: #0f5f3d; 
    border-color: #0f5f3d;
}
.login-box button{
    width: 100%;
    padding: 12px;
    background: #0f5f3d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.close-login{
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 26px;
    cursor: pointer;
    color: #0f5f3d;
}
.close-register{
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 26px;
    cursor: pointer;
    color: #0f5f3d;
}
.login-links{
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
}
.login-links a{
    color: #0f5f3d;
    text-decoration: none;
}
.social-login {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}
.error-msg {
    color: #c0392b;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 10px;
    display: none;
}
.input-error {
    border: 1.5px solid #c0392b;
}
.grupo.error input,
.grupo.error select {
    border: 1.5px solid #c0392b;
}
.alert-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.alert-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 320px;
    position: relative;
}

.alert-box p {
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-box button {
    background: #0f5f3d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

#closeAlert {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

@media (max-width: 768px){
   .menu-toggle{
        display: block;
        order: 2;
        align-self: center;       
    }
    .top-nav{
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
        .top-center {
        position: static;     
        transform: none;
        order: 1;
        margin-bottom: 6px;
    }

    .top-left {
        order: 2;
        justify-content: center;
    }

    .top-right {
        order: 3;
        justify-content: center;
        min-width: unset;
        flex-wrap: wrap;      
        gap: 8px;
    }

    .saludo {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
.main-nav{
        display: flex;             
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .nav-spacer{
        display: none;             
    }
    .menu{
        order: 3;
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: #fff;
        border-top: 1px solid #e5e5e5;
    }
     .menu.active{
        display: flex;
    }
    .menu li{
        text-align: center;
        padding: 10px 0;
    }
    .menu a{
        white-space: nowrap;
    }
    .menu a.sword-hover::after{
        height: 10px;
        bottom: -8px;
        background-position: center;
        background-size: 80%;
    }
    .btn{
        margin-top: 15px;
    }
}

.top-left span,
.top-right a{
    color: #fff;
    font-size: 0.9rem;
}
.top-nav i{
    font-size: 1rem;
}
.top-center{
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.top-left .bx-phone{
    background: #cc1e2c;
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.top-right a{
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: none;
    color: #ffffff;
}
.top-right a i{
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #fff;
    color: #0f5f3d;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.top-right{
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;  
    justify-content: flex-end;
}
.top-right a:hover i{
    background: #cc1e2c;
    color: #fff;
}
.login{
    font-weight: 600;
}
.saludo{
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 10px;
    white-space: nowrap;
}
.user-data{
    display:flex;
    flex-direction:column;
    line-height:1.1;
}

.correo-user{
    font-size:0.70rem;
    color:#d9f2e4;
    font-weight:400;
}

.saludo{
    font-size:0.85rem;
}
.logout i{
    background: #cc1e2c;
    color: #fff;
}

.logout:hover i{
    background: #fff;
    color: #cc1e2c;
}
.main-nav{
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 15px 5%;
    background: #ffffff;
    position: sticky;
    top: 0;               
    z-index: 999;
    border-bottom: 1px solid #e5e5e5;
}
.nav-spacer{
    width: clamp(80px, 12vw, 50px); 
}
.menu{
justify-self: center;
    list-style: none;
    display: flex;
    gap: 27px;
}
.menu a{
    text-decoration: none;
    color: #1a1a1a;
    font-weight: 500;
    position: relative;
}
.menu a:not(.sword-hover)::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: #cc1e2c;
    transition: 0.3s;
}
.menu a:not(.sword-hover):hover::after{
    width: 100%;
}
.btn{
    background: #cc1e2c;
    color: #fff;
    padding: 12px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: none;
}
.top-center img{
    width: clamp(80px, 20vw, 115px);
    height: auto;
}
.logo img{
    width: clamp(80px, 12vw, 50px);
    height: auto;
    display: block;
}
.menu a:hover{
    color: #cc1e2c;
}
.menu a.sword-hover{
    position: relative;
    padding-bottom: 14px;
    font-weight: 500;
}
.menu a.sword-hover::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 14px;
    background: url("sword.svg") no-repeat left center;
    background-size: contain;
    transform: scaleX(0);
    transform-origin: left;   
    transition: transform 0.4s ease;
    pointer-events: none;
}
.menu a.sword-hover:hover::after{
    transform: scaleX(1);
}
.menu a.sword-hover:hover{
    color: #0f5f3d;
}
.menu-toggle{
    display: none;
    font-size: 2rem;
    color: #0f5f3d;
    cursor: pointer;
}
.main-nav .menu a {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}
#promociones{
    scroll-margin-top: -25px; 
}
.menu a.sword-hover.active::after{
    transform: scaleX(1);
}
.menu a.sword-hover.active{
    color: #0f5f3d;
}
.login-modal{
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.login-box{
    background: #fff;
    width: 100%;
    max-width: 380px;
    padding: 30px;
    border-radius: 14px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
}
.login-box h2{
    text-align: center;
    color: #0f5f3d;
    margin-bottom: 20px;
}
.login-box label{
    font-weight: 500;
    font-size: .9rem;
}
.login-box input{
    width: 100%;
    padding: 10px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
}
.password-rules {
    display: none !important;
}
.password-rules.show {
    display: block !important;
    margin-top: 10px;
    margin-bottom: 15px;
}
.password-rules p.ok {
    color: #333;
}
.password-rules p i {
    width: 14px;
    height: 14px;
    border: 2px solid #999;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: transparent;
    background: transparent;
}
.password-rules p {
    margin-bottom: 3px;
    color: #333; 
    display: flex;
    align-items: center;
    gap: 6px;
}
.password-rules p.ok i {
    background: #0f5f3d; 
    border-color: #0f5f3d;
}
.login-box button{
    width: 100%;
    padding: 12px;
    background: #0f5f3d;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.close-login{
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 26px;
    cursor: pointer;
    color: #0f5f3d;
}
.close-register{
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 26px;
    cursor: pointer;
    color: #0f5f3d;
}
.login-links{
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
}
.login-links a{
    color: #0f5f3d;
    text-decoration: none;
}
.social-login {
    margin-top: 15px;
    display: flex;
    justify-content: center;
}
.error-msg {
    color: #c0392b;
    font-size: 12px;
    margin-top: -10px;
    margin-bottom: 10px;
    display: none;
}
.input-error {
    border: 1.5px solid #c0392b;
}
.grupo.error input,
.grupo.error select {
    border: 1.5px solid #c0392b;
}
.alert-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.alert-box {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    width: 90%;
    max-width: 320px;
    position: relative;
}

.alert-box p {
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-box button {
    background: #0f5f3d;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
}

#closeAlert {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
}

@media (max-width: 768px){
   .menu-toggle{
        display: block;
        order: 2;
        align-self: center;       
    }
    .top-nav{
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
        .top-center {
        position: static;     
        transform: none;
        order: 1;
        margin-bottom: 6px;
    }

    .top-left {
        order: 2;
        justify-content: center;
    }

    .top-right {
        order: 3;
        justify-content: center;
        min-width: unset;
        flex-wrap: wrap;      
        gap: 8px;
    }

    .saludo {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
.main-nav{
        display: flex;             
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .nav-spacer{
        display: none;             
    }
    .menu{
        order: 3;
        display: none;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background: #fff;
        border-top: 1px solid #e5e5e5;
    }
     .menu.active{
        display: flex;
    }
    .menu li{
        text-align: center;
        padding: 10px 0;
    }
    .menu a{
        white-space: nowrap;
    }
    .menu a.sword-hover::after{
        height: 10px;
        bottom: -8px;
        background-position: center;
        background-size: 80%;
    }
    .btn{
        margin-top: 15px;
    }
}
