/* ===== BODY AND MAIN CONTENT SPACING ===== */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main, .main-content {
    flex: 1;
    padding-bottom: 2rem;
}

#footer-placeholder {
    margin-top: auto;
}

.square {
    position: relative;
    width: 100%;
}

.square:after {
    content: "";
    display: block;
    padding-bottom: 100%;
}

.square-content {
    position: absolute;
    width: 100%;
    height: 100%;
}



/* ===== HEADER STYLES ===== */
#header-main {
    min-height: 75vh;
    background-image: url(../img/general/background.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    position: relative;
    z-index: 2;
}

.header-other{
    padding-bottom: 150px;
}

#nav_home-component{
    position: absolute;    
    top: 10%;
    left: 0;
    right: 0;
}

#nav-component{
    background-color: #ffffff;
    position: fixed;
    width: 100%;
    z-index: 1;
}

#nav-component .modern-nav{
    background: #001a3f !important;
}

.noIndex{
    transform: translateY(0%) !important;
    opacity: 1 !important;
}

.other-nav{
    min-width: 50%;
}

.modern-nav {
    background: rgba(90, 90, 90, 0.7) !important;
    backdrop-filter: blur(4px);
    border: none;
    padding: 2px 12px;
    border-radius: 30px;
    overflow: visible;
}

/* Botones de navegación */
.nav-button {
    color: white !important;
    font-weight: 600;
    font-size: 16px;
}

nav .btn-blue{
    background-color: #001a3f !important;
}

nav .btn-blue i{
    color: #ffffff;
}

.btn-cart{
    border-radius: 100%;
    border: #001a3f 1px solid;
    width: 40px;
    height: 40px;
    padding: 0;
}

#nav_home-component .btn-cart{
    background-color: #ffffff;
}

#nav-component .btn-cart .cart-badge{
    top: -15% !important;
    right: -15% !important;
}

#nav-component .btn-cart:hover{
     border: #e5c791 1px solid;
     background-color: #e5c791;
}

.nav-desktop-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
}

.nav-links-group {
    flex-direction: row !important;
    align-items: center;
}

.action-cluster {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #eef2f7, #d9e1eb);
    border-radius: 999px;
    padding: 6px;
}

.action-cluster-desktop {
    padding: 10px 12px;
    min-height: 94px;
    transform: translateY(0);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.45);
    position: relative;
    z-index: 2;
    gap: 8px;
}

.action-cluster .dropdown {
    display: flex;
}

.action-login {
    color: #4b5565 !important;
    border-radius: 999px;
    padding: 6px 12px !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.action-login:hover {
    background-color: rgba(229, 199, 145, 0.45);
}

.action-cluster-desktop .action-login {
    min-height: 62px;
    padding: 0 8px 0 0 !important;
    gap: 10px;
}

.action-cluster-desktop .action-login:hover,
.action-cluster-desktop .action-login:focus-visible {
    background-color: transparent;
}

.action-login-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    border: 2px solid #aab7cb;
    flex-shrink: 0;
}

.action-login-icon i {
    color: #566175 !important;
    font-size: 24px;
}

.action-cluster-desktop .action-login:hover .action-login-icon,
.action-cluster-desktop .action-login:focus-visible .action-login-icon {
    background-color: #e8ddc8;
    border-color: #d8cdb8;
}

.action-divider {
    width: 2px;
    height: 54px;
    background: #b7c2d2;
    border-radius: 2px;
    opacity: 0.9;
}

.action-user-name {
    color: #4b5565;
    max-width: 92px;
    font-size: 15px;
    font-weight: 700;
}

.action-cart {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 100%;
    border: 1px solid #b2bccb;
    background: #ffffff;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-cluster-desktop .action-cart {
    width: 62px;
    height: 62px;
    border: 2px solid #aab7cb;
}

.action-cart .img-fluid {
    max-width: 23px;
}

.action-cluster-desktop .action-cart .img-fluid {
    max-width: 35px;
}

.action-cart:hover {
    border-color: #e5c791;
    background-color: #f7edd9;
}

.action-cluster .cart-badge {
    top: -4px;
    right: -4px;
}

.action-cluster-desktop .cart-badge {
    width: 24px;
    height: 24px;
    font-size: 12px;
    top: -8px;
    right: -8px;
}

#nav_home-component .modern-nav {
    min-height: 56px;
}

#nav_home-component .nav-button {
    font-size: 19px;
}

#nav_home-component .action-cluster-desktop {
    margin-top: -20px;
    margin-bottom: -20px;
    min-height: 84px;
    padding: 8px 10px;
}

#nav_home-component .action-login-icon,
#nav_home-component .action-cluster-desktop .action-cart {
    width: 56px;
    height: 56px;
}

#nav_home-component .action-login-icon i {
    font-size: 21px;
}

#nav_home-component .action-user-name {
    max-width: 84px;
    font-size: 14px;
}

#nav_home-component .action-divider {
    height: 48px;
}

#nav-component .modern-nav {
    min-height: 56px;
}

#nav-component .action-cluster-desktop {
    margin-top: -20px;
    margin-bottom: -20px;
}

.cart-icon{
    background-color: #ffffff !important;
    position: absolute;
    width: 60px;
    border-radius: 100%;
    left: 85%;
    right: 0;
    top: -25%;
}

.cart-icon:after {
    content: "";
    display: block;
    padding-bottom: 100%;
}

.cart-icon-content {
    position: absolute;
    width: 100%;
    height: 100%;
}

.cart-icon i {
    color: #606060;
}

.cart-badge {
    position: absolute;
  background: #ffffff;
  width: 20px;
  height: 20px;
  font-size: 10px;
  text-align: center;
  border-radius: 100%;
  color: #626262;
  top: -10%;
  right: 0%;
  border: 1px solid #626262;
  display: flex;
  line-height: 0;
}
a.dropdown-item{
    font-size: 14px;
    color: #001a3f;
    font-weight: 700;
}

/* ===== PRODUCTS STYLES ===== */
#section-productos{
    margin-bottom: 150px;
}
#section-productos h1{
    color: #02193a;
    font-size: clamp(35px, 4vw, 60px);
    font-weight: 700;
}

#section-productos h3{
    color: #02193a;
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 600;
}

.offcanvas-title {
    font-weight: 700;
    font-size: 24px;
    color: #001a3f;
}

.offcanvas ul{
    list-style: none;
}

.offcanvas a{
    text-decoration: none;
    font-size: 18px;
    color: #001a3f;
    font-weight: 700;
}

.offcanvas a:hover{
    color: #fae092;
}


/* ===== SHOPPING CART ===== */
#summary .resumen-left{
    border: 2px solid #ebc78b;
    padding: 5%;
    border-top-left-radius: 90px;
}

#summary .resumen-left .square-content{
    background-color: #001a3f;
    border-radius: 100%;
    display: flex;
}

#summary .resumen-left .square-content img{
    max-width: 70%;
    margin: auto;
}

#summary .resumen-left p{
    font-size: clamp(12px, 4vw, 18px);
    font-weight: 700;
    color: #001a3f;
    text-transform: uppercase;
}

.controller-quantity{
    display: flex;
    background-color: #001a3f;
    color: #ffffff;
    height: 30px;
    border-radius: 5px;
    font-size: 14px;
}

.controller-quantity .controller{
    padding: 3px 8px;
}

.controller-quantity .minus, .controller-quantity .plus{
    cursor: pointer;
}

.controller-quantity .minus:hover, .controller-quantity .plus:hover{
    background-color: #e5c791 !important;
    color: #ffffff !important;
}

.controller-quantity .result{
    width: 35px;
}

#summary .resumen-left .btn-action{
    color: #001a3f;
    height: 30px;
    font-size: 12px;
    border: #ffffff 2px solid;
    line-height: normal;
}

#summary .resumen-left .btn-action:hover{
    border: #e5c791 2px solid;
    color: #001a3f;
}

#summary .resumen-right{
    border: 2px solid #ebc78b;
    padding: 5%;
    border-bottom-right-radius: 90px;
}

#summary .resumen-right table tr td{
    font-size: clamp(16px, 4vw, 24px);
    font-weight: 700;
    color: #001a3f;
    text-transform: uppercase;
}

.btn-pay{
    background-color: #001a3f;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: normal;
    padding: 10px 50px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
    border-top-left-radius: 20px;
    border-bottom-right-radius: 50px;
    margin-top: -4%;
}

.btn-pay:hover, .btn-pay:active, .btn-pay:focus{
    background-color: #e5c791 !important;
    color: #ffffff !important;;
}

/* ===== PAYMENT METHODS STYLES ===== */

#paymentMethods .contenedor-compra {
    border: 2px solid #ebc78b;
    padding: 5%;
    border-radius: 15px;
}

#paymentMethods p {
    font-size: clamp(12px, 4vw, 18px);
    font-weight: 700;
    color: #001a3f;
    text-transform: uppercase;
}

#paymentMethods .contenedor-compra .form-label {
    font-weight: 400;
    color: #001a3f;
    margin-bottom: 8px;
}

#paymentMethods .contenedor-compra .form-control,
#paymentMethods .contenedor-compra .form-select {
    border: 1px solid #ebc78b;
    border-radius: 4px;
    padding: 12px;
    font-size: 14px;
}

#paymentMethods .contenedor-compra .form-control:focus,
#paymentMethods .contenedor-compra .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

#paymentMethods .contenedor-compra .row.g-3 {
    margin-top: 0;
}

#paymentMethods .contenedor-compra table tr td.txt-lg {
    font-size: clamp(16px, 4vw, 24px);
    font-weight: 700;
    color: #001a3f;
    text-transform: uppercase;
}

#paymentMethods .contenedor-compra table tr td.txt-sm {
    font-size: clamp(12px, 4vw, 18px);
    font-weight: 700;
    color: #001a3f;
    text-transform: uppercase;
}

#paymentMethods #mercadopago img {
    max-height: 35px;
}

#paymentMethods .forma-pago {
    transition: all var(--transition-normal);
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid #ebc78b;
    padding: 5%;
    border-radius: 15px;
}

#paymentMethods .forma-pago:hover {
    background: linear-gradient(90deg, rgba(235, 199, 139, 0.5), rgba(0, 26, 63, 0.25));
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}



/* ===== INVOICE METHODS STYLES ===== */

#invoice .contenedor-compra {
    border: 2px solid #ebc78b;
    padding: 5%;
    border-radius: 15px;
}

#invoice p {
    font-size: clamp(12px, 4vw, 18px);
    font-weight: 700;
    color: #001a3f;
    text-transform: uppercase;
}

#invoice .contenedor-compra table tr td.txt-lg {
    font-size: clamp(16px, 4vw, 24px);
    font-weight: 700;
    color: #001a3f;
    text-transform: uppercase;
}

#invoice .contenedor-compra table tr td.txt-sm {
    font-size: clamp(12px, 4vw, 18px);
    font-weight: 700;
    color: #001a3f;
    text-transform: uppercase;
}


/* ===== FOOTER STYLES ===== */
footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    clear: both;
}

footer p{
    color: #02193a;
    font-size: clamp(14px, 2.5vw, 18px);
    font-weight: 600;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

footer #footer_section2 {
    background: linear-gradient(0deg, #01193a, #01193a);
}

footer #footer_section2 p {
    color: #ffffff;
}


/* ===== DROPDOWN SHOPPING CART STYLES ===== */
.cart-dropdown{
    min-width: 400px;
    padding: 10% 5%;
    border: 2px solid #ebc78b;
    border-top-left-radius: 85px;
    background: rgba(255, 255, 255, 0.95) !important;
}

.cart-dropdown p{
    font-size: 16px;
    font-weight: 700;
    color: #001a3f;
    text-transform: uppercase;
}

.cart-dropdown .square-content{
    background-color: #001a3f;
    border-radius: 100%;
    display: flex;
}

.cart-dropdown .square-content img{
    max-width: 70%;
    margin: auto;
}

.cart-dropdown table tr td{
    font-size: 18px;
    font-weight: 700;
    color: #001a3f;
    text-transform: uppercase;
}

.cart-dropdown .detail_left_products{
    border-top-left-radius: 50px;
    border-bottom-right-radius: 10px;
}

.cart-dropdown .detail_right_products{
    border-top-left-radius: 10px;
    border-bottom-right-radius: 50px;
}

.cart-offcanvas p{
    font-size: 16px;
    font-weight: 700;
    color: #001a3f;
    text-transform: uppercase;
}

.cart-offcanvas .square-content{
    background-color: #001a3f;
    border-radius: 100%;
    display: flex;
}

.cart-offcanvas .square-content img{
    max-width: 70%;
    margin: auto;
}

.cart-offcanvas table tr td{
    font-size: 18px;
    font-weight: 700;
    color: #001a3f;
    text-transform: uppercase;
}

.cart-offcanvas .detail_left_products{
    border-top-left-radius: 50px;
    border-bottom-right-radius: 10px;
}

.cart-offcanvas .detail_right_products{
    border-top-left-radius: 10px;
    border-bottom-right-radius: 50px;
}

.block-actions{
    pointer-events: none !important;
    opacity: 0.5;
    cursor: none !important;
}

/* ===== LOGIN STYLES ===== */
.container-main-form{
    width: 100%;
    max-width: 500px;
    margin: auto;
}

.form-container {
    padding: 5%;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
}

.form-control{
    border: none;
    border-bottom: 2px dotted #ebc78b;
    border-radius: 0;
    box-shadow: none;
}

.form-control:focus{
    border-color: #001a3f;
    box-shadow: none;
}

#login h3{
    margin-bottom: 30px;
    color: #001a3f;
    font-weight: 700;
}

#login a{
    color: #001a3f;
    font-weight: 600;
    text-decoration: none;
}

#login a:hover{
    text-decoration: underline;
}

#login label{
    font-weight: 600;
    color: #001a3f;
}

#login .btn-primary{
    background-color: #001a3f;
    border: none;
    padding: 10px 10px;
    font-weight: 600;
    font-size: 20px;
}

#login .btn-primary:hover{
    background-color: #013b8a;
    color: #ffffff;
}

#login .btn-secondary{
    background-color: #ebc78b;
    border: none;
    padding: 10px 10px;
    font-weight: 600;
    font-size: 20px;
    color: #ffffff;
}

#login .btn-secondary:hover{
    background-color: #d4a858;
    color: #ffffff;
}

#login .text-danger{
    color: #f89d9d !important;
}
.dropdown-menu form button{
    font-size: 14px;
    color: #001a3f;
    font-weight: 700;
}


/* ===== LOGIN STYLES ===== */
.container-main-perfil{
    width: 100%;
    max-width: 800px;
    margin: auto;
}

.perfil-container {
    padding: 5%;
    border-radius: 10px;
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
}

#perfil h3{
    margin-bottom: 30px;
    color: #001a3f;
    font-weight: 700;
}

#perfil a{
    color: #001a3f;
    font-weight: 600;
    text-decoration: none;
}

#perfil a:hover{
    text-decoration: underline;
}

#perfil label{
    font-weight: 600;
    color: #001a3f;
}

#perfil .btn-primary{
    background-color: #001a3f;
    border: none;
    padding: 10px 10px;
    font-weight: 600;
    font-size: 20px;
}

#perfil .btn-primary:hover{
    background-color: #013b8a;
    color: #ffffff;
}

#perfil .btn-secondary{
    background-color: #c6c2bc;
    border: none;
    padding: 10px 10px;
    font-weight: 600;
    font-size: 20px;
    color: #ffffff;
}

#perfil .btn-secondary:hover{
    background-color: #d4a858;
    color: #ffffff;
}

#perfil .text-danger{
    color: #f89d9d !important;
}
