@import '../../shared/css/variables.css';
@import './button_cart_component.css';
@import './button_whatsapp_component.css';
@import './cart_layout.css';
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

*{
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    font-family: 'Montserrat', sans-serif;
}

body{
    min-height: 100dvh;
    width: 100%;
    
}

h1, h2, h3, h4, h5, h6{
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

a{
    text-decoration: none;
}

button{
    cursor: pointer;
}

ul, ol{
    list-style: none;
}

/* Eliminar flechas en Chrome, Safari, Edge */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Eliminar flechas en Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

input{
    outline: none;
}

.nav {
    background-color: var(--color-background);
    padding: 17px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.nav__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 64%;
    margin: 0 auto;
    padding: 0;
}

.nav__logo {
    display: flex;
    justify-content: center;
}

.nav__logo-img {
    height: 50px;
}

.nav__menu {
    display: flex;
    justify-content: center;
}

.nav__links {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
    justify-content: center;
}

.nav__item {
    position: relative;
}

.nav__link {
    text-decoration: none;
    color: #3C3C3C;
    font-family: "Open Sans", Arial, sans-serif;  
    font-size: 16px;
    font-weight: 550;
    transition: color 0.3s ease;
}

.nav__link:hover {
    color: var(--color-secondary);
}

.nav__dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--color-white);
    box-shadow: 0px 4px 8px rgba(0,0,0,0.1);
    min-width: 150px;
    list-style: none;
    padding: 0;
    z-index: 1001;
}

.nav__dropdown-item {
    padding: 10px;
    white-space: nowrap;
}

.nav__dropdown-link {
    color: black;
    font-weight: normal;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.nav__dropdown-link:hover {
    color: var(--color-secondary);
}

.nav__item:hover .nav__dropdown {
    display: block;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1010;
}

.hamburger-menu__line {
    width: 100%;
    height: 3px;
    background-color: black; /* Cambiado a negro */
    transition: all 0.3s ease;
}

/* Custom submenu for mobile view */
.nav__submenu {
    display: none;
    background-color: #f5f5f5;
    padding-left: 15px;
}

.nav__submenu-item {
    padding: 10px;
}

.nav__submenu-link {
    color: black;
    font-weight: normal;
    text-decoration: none;
    display: block;
    transition: color 0.3s ease;
}

.nav__submenu-link:hover {
    color: var(--color-secondary);
}

/* Estilo para la página activa */
.nav__link.active {
    color: var(--color-secondary);
}

.nav__submenu-link.active {
    color: var(--color-secondary);
}

/* Override dropdown for desktop */
@media (min-width: 769px) {
    .nav__submenu {
        display: none !important;
    }
    
    .nav__item--has-children:hover .nav__dropdown {
        display: block;
    }
}

.footer {
    background-color: var(--color-primary-light);
    color: var(--color-white);
    width: 100%;
    position: relative;
    padding: 6vh 0;
}

.footer__container {
    width: 64%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 4%;
    min-height: 300px;
}

.footer__contact-form {
    width: 47%;
    display: flex;
    flex-direction: column;
}

.footer__form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--color-white);
    letter-spacing: 0.2px;
}

.footer__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex-grow: 1;
}

.footer__input-container {
    display: flex;
    gap: 18px;
}

.footer__input, .footer__textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 0;
    font-size: 15px;
    color: #777777;
}

.footer__textarea {
    min-height: 120px;
    resize: none;
    flex-grow: 1;
}

.footer__submit-btn {
    align-self: flex-end;
    background-color: var(--color-accent);
    color: #333;
    border: none;
    padding: 12px 25px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

.footer__submit-btn:hover {
    background-color: #d6a52c;
}

.footer__contact-info {
    width: 47%;
    display: flex;
    flex-direction: column;
}

.footer__logo {
    margin-bottom: 30px;
    display: block;
}

.footer__logo img {
    max-width: 180px;
    height: auto;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 22px;
    gap: 16px;
}

.footer__icon-container {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.footer__icon-container--yellow {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.footer__icon-container--green {
    background-color: var(--color-secondary-light);
    color: var(--color-white);
}

.footer__contact-text {
    display: flex;
    flex-direction: column;
}

.footer__contact-label {
    font-weight: 700;
    color: var(--color-white);
    font-size: 18px;
    letter-spacing: 0.2px;
    margin-bottom: 3px;
}

.footer__contact-value {
    color: var(--color-white);
    font-style: normal;
    text-decoration: none;
    font-size: 16px;
    line-height: 1.4;
}

a.footer__contact-value:hover {
    text-decoration: underline;
}

.footer__social-heading {
    font-size: 20px;
    font-weight: 700;
    margin: 5px 0 18px;
    color: var(--color-accent);
    letter-spacing: 0.2px;
}

.footer__social-icons {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.footer__social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-light);
    text-decoration: none;
    transition: transform 0.3s;
    font-size: 18px;
}

.footer__social-link:hover {
    transform: translateY(-3px);
}

.footer__bottom {
    background-color: var(--color-primary);
    color: var(--color-white);
    width: 100%;
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer__bottom-container {
    width: 64%;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 1200px) {
    .nav__container {
        width: 80%;
    }

    .footer__container,
    .footer__bottom-container {
        width: 80%;
    }
}

@media (max-width: 992px) {
    .nav__container {
        width: 90%;
    }
    .footer__container,
    .footer__bottom-container {
        width: 90%;
    }
    
    .footer__contact-item {
        margin-bottom: 15px;
    }
    
    .footer__contact-label {
        font-size: 16px;
    }
    
    .footer__social-heading {
        margin: 5px 0 12px;
    }
}

@media (max-width: 860px) {
    .footer__input, .footer__textarea {
        padding: 12px;
    }
    
    .footer__contact-form, 
    .footer__contact-info {
        width: 48%;
    }
}

@media (max-width: 768px) {
    .nav__container {
        width: 95%;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav__links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav {
        padding: 10px 0;
    }
    
    .footer__container {
        flex-direction: column;
        gap: 40px;
        padding: 20px 0;
    }
    
    .footer__contact-form,
    .footer__contact-info {
        width: 100%;
    }
    
    .footer__input-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer__form-title {
        margin-bottom: 20px;
    }
    
    .footer__submit-btn {
        padding: 10px 20px;
        margin-top: 5px;
    }

    .hamburger-menu {
        display: flex;
        position: absolute;
        right: 20px;
        top: 25px;
    }
    
    .hamburger-menu.active .hamburger-menu__line:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .hamburger-menu.active .hamburger-menu__line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .hamburger-menu__line:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .nav__container {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        position: relative;
    }
    
    .nav__menu {
        display: none;
        position: fixed;
        top: 83px;
        right: 0;
        width: 50%;
        height: calc(100vh - 83px);
        background-color: var(--color-white);
        box-shadow: -2px 0 5px rgba(0,0,0,0.1);
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav__menu.active {
        display: block;
    }
    
    .nav__links {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .nav__item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav__link {
        padding: 15px;
        display: block;
    }
    
    .nav__dropdown {
        display: none;
        position: static;
        box-shadow: none;
        min-width: 100%;
        background-color: transparent;
    }
    
    .nav__item--has-children .nav__submenu {
        display: block;
    }
    
    .nav__dropdown-item {
        padding: 10px 15px 10px 30px;
    }
    
    /* Override original dropdown hover effect */
    .nav__item:hover .nav__dropdown {
        display: none;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 4vh 0;
    }
    
    .footer__logo img {
        max-width: 150px;
    }
    
    .footer__form-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .footer__icon-container {
        width: 28px;
        height: 28px;
    }
    
    .footer__contact-label {
        font-size: 16px;
    }
    
    .footer__contact-value {
        font-size: 14px;
    }
    
    .footer__social-heading {
        font-size: 18px;
        margin: 5px 0 10px;
    }
}