/* Reset y estilos base */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    text-decoration: none;
    list-style: none;
}

:root {
    --gradient-start: #ffffff;  /* Color del menú (blanco) */
    --gradient-end: #4299e1;    /* Azul claro para el degradado */
}

body {
    background-color: #ffffff;  /* Fondo blanco para el contenido */
    font-family: 'Arial', sans-serif;
    height: 100vh;
    margin: 0;
    padding: 0;
    padding-top: 100px; /* Ajusta este valor según la altura del menú */
}

/* Menu */
.navbar {
    background-color: #ffffff;  /* Navbar con fondo blanco */
    height: 100px;
    padding: 0;
    animation: slideDown 0.8s ease-out;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000; /* Asegura que el menú esté por encima del contenido */
}
.dos{
    display: flex;
    margin-left: -130px;
}
.navbar-nav {
    display: flex;
    justify-content: center;
    width: 65%;
}

.navbar-brand {
    font-weight: 508;
    color: #1a365d;  /* Texto en azul oscuro */
    font-size: 34px;
    transition: 0.3s color;
    padding-left: 5px; /* Añadido para espaciado en móviles */
}

.navbar-brand img {
    margin-left: -50px;
    max-height: 90px; /* Asegura que la imagen del logo no sea demasiado grande */
    width: auto; /* Mantiene la proporción */
}

/* Offcanvas y navegación móvil */
.offcanvas-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.offcanvas-body .navbar-nav {
    text-align: center;
    padding: 0;
    margin: 0;
    width: 100%; /* Asegura que ocupe todo el ancho en móviles */
}

.offcanvas-body .navbar-nav li {
    width: 100px;
    margin: 0;
    padding: 10px 0; /* Aumenta el área táctil en móviles */
}

.offcanvas-body .navbar-nav li a {
    display: block;
    width: 100%;
    font-size: 16px; /* Tamaño de fuente legible en móviles */
    padding: 8px 0; /* Más área táctil */
}

/* Botón de login/perfil */
.login-button {
    color: #ffffff;  /* Texto blanco */
    padding: 8px 8px;
    border-radius: 100px;
    text-decoration: none;
    transition: 0.3s background-color;
}
/* Icono del carrito */
#cart-icon {
    position: relative;
    display: inline-block;
}

#cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #ff3b30;
    color: white;
    font-size: 14px;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 50%;
    min-width: 22px;
    text-align: center;
    display: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    font-family: 'Arial', sans-serif;
    transition: transform 0.2s ease-in-out;
}

#cart-count.show {
    display: inline-block;
    transform: scale(1.1);
}

.profile-link {
    text-decoration: none;
    color: #1a365d;  /* Color azul oscuro */
    display: flex;
    flex-direction: column;
}

/* Caja de búsqueda oculta inicialmente */
.search-box {
    position: absolute;
    top: 5%;
    left: 50px;
    transform: translateY(-50%);
    font-size: 14px;
    display: none;
    transition: opacity 0.3s ease-in-out;
    opacity: 0;
    margin-top: 20px;
}

/* Estilos para el dropdown del perfil */
.user-profile-container {
    position: relative;
    display: inline-block;
}

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 8px;
    padding: 15px;
    top: 100%;
    margin-top: 10px;
}

.profile-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #ebf8ff;  /* Azul muy claro */
    padding-bottom: 10px;
}

.profile-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ebf8ff;  /* Azul muy claro */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 20px;
    color: #2c5282;  /* Azul medio */
}

.profile-info {
    flex-grow: 1;
}

.profile-name {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 5px;
    color: #1a365d;  /* Azul oscuro */
}

.profile-email {
    color: #4299e1;  /* Azul claro */
    font-size: 14px;
}

.profile-details {
    margin-bottom: 15px;
}

.profile-item {
    padding: 8px 0;
    border-bottom: 1px solid #ebf8ff;  /* Azul muy claro */
    font-size: 14px;
}

.profile-item i {
    margin-right: 10px;
    color: #2c5282;  /* Azul medio */
    width: 20px;
    text-align: center;
}

.profile-logout {
    display: flex;
    align-items: center;
    padding: 10px;
    text-decoration: none;
    color: #1a365d;  /* Azul oscuro */
}


.profile-logout img {
    width: 20px;
    margin-left: -10px;
}

/* Botón hamburguesa */
.navbar-toggler {
    border: none;
    font-size: 1.25rem;
    padding: 8px 12px; /* Aumenta el área táctil */
    color: #1a365d;  /* Azul oscuro */
}

.navbar-toggler:focus, .btn-close:focus {
    box-shadow: none;
    outline: none;
}

.nav-link {
    color: #1a365d;  /* Texto en azul oscuro */
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    color: #4299e1;  /* Al pasar el cursor, azul claro */
}

.dropdown-menu {
    background-color: white;
    color: #1a365d;  /* Azul oscuro */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(26, 54, 93, 0.2);  /* Sombra azul oscuro */
}
.dropdown-item{
    margin-left: 30px;
}
.dropdown-item:hover {
    background-color: #ebf8ff;  /* Azul muy claro */
}

/* Buscar en navbar */
.navbar .offcanvas-body {
    align-items: center;
}

.navbar .navbar-nav {
    align-items: center;
    gap: 15px;
}

.navbar .d-flex {
    margin-left: 5px;
    display: flex;
    align-items: center;
}

/* Media queries mejorados con enfoque en iPhones */
@media (max-width: 991px) {
    .navbar {
        padding: 0 15px;
    }
    
    .navbar-brand {
        font-size: 28px; /* Reducir tamaño en tablets */
    }
    .offcanvas-body .navbar-nav {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        margin-left: 0 !important;
    }
    
    .offcanvas-body .dos {
        justify-content: center;
        width: 100%;
        margin-left: 0;
    }
    
    .navbar-nav {
        flex-direction: column;
        align-items: center;
    }
    
    .dropdown-menu {
        text-align: center;
    }
    
}

/* Media query específico para dispositivos móviles */
@media (max-width: 767px) {
    .navbar {
        height: 70px; /* Altura más compacta para móviles */
        padding: 0 10px;
    }

    body {
        padding-top: 90px; /* Ajustar el padding-top para móviles */
    }
    
    .navbar-brand {
        font-size: 24px; /* Reducir más para móviles pequeños */
    }
    
    .navbar-brand img {
        max-height: 50px; /* Imagen más pequeña */
        margin-left: -45px; /* Ajustar margen */
    }
}

/* Media query específico para iPhones (incluyendo versiones pequeñas como iPhone SE) */
@media (max-width: 375px) {
    .navbar {
        height: 60px; /* Más compacto para iPhones pequeños */
    }
    
    body {
        padding-top: 60px;
    }
    
    .navbar-brand {
        font-size: 20px; /* Aún más pequeño para iPhone SE */
        padding-left: 5px;
    }
    
    .navbar-brand img {
        max-height: 35px;
        margin-left: -20px;
    }
    
    .navbar-toggler {
        padding: 4px 8px;
        font-size: 1.1rem;
    }
    
    .profile-dropdown {
        min-width: 200px; /* Más estrecho para pantallas pequeñas */
        right: -70px; /* Ajustar posición */
    }
}

/* Ajuste de la animación para que sea más suave en dispositivos iOS */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Redes sociales */
.wrapper {
    display: inline-flex;
    list-style: none;
    height: 120px;
    width: 100%;
    padding-top: 20px;
    font-family: "Poppins", sans-serif;
    justify-content: center;
}

.wrapper .icon {
    position: relative;
    background: #fff;
    border-radius: 50%;
    margin: 10px;
    width: 50px;
    height: 50px;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip {
    position: absolute;
    top: 0;
    font-size: 14px;
    background: #fff;
    color: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .tooltip::before {
    position: absolute;
    content: "";
    height: 8px;
    width: 8px;
    background: #fff;
    bottom: -3px;
    left: 50%;
    transform: translate(-50%) rotate(45deg);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.wrapper .icon:hover .tooltip {
    top: -45px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wrapper .icon:hover span,
.wrapper .icon:hover .tooltip {
    text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.1);
}

.wrapper .facebook:hover,
.wrapper .facebook:hover .tooltip,
.wrapper .facebook:hover .tooltip::before {
    background: #1a365d; 
    color: #fff;
}

.wrapper .instagram:hover,
.wrapper .instagram:hover .tooltip,
.wrapper .instagram:hover .tooltip::before {
    background: #4299e1; 
    color: #fff;
}

/* Footer */
.footer {
    position: absolute;
    background-color: #1a365d;  
    color: #ffffff;  
    padding: 20px 0;
    width: 100%;
    border-top: 3px solid #4299e1; 
    border-bottom: 3px solid #4299e1;  
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 0 20px;
}

.footer-section {
    flex: 1;
    margin: 10px;
    min-width: 250px;
}

.footer-section h4 {
    text-decoration: none;
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    color: #ffffff;  
}

.footer-section h4 a {
    text-decoration: none;
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
    color: #ffffff;  
}

.footer-section p {
    line-height: 1.6;
}

.footer-link {
    text-decoration: none;
    color: #ebf8ff; 
}

.footer-link:hover {
    color: #4299e1;  
}

.footer-bottom {
    text-align: center;
    padding: 10px 0;
    border-top: 1px solid #4299e1; 
    font-size: 14px;
    margin-top: 20px;
    color: #ffffff; 
}

/* Responsividad para Footer */
@media (max-width: 768px) {
    .footer .container {
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        padding: 0 10px;
    }

    .footer-section {
        /* margin: 5px 0; Reducir el margen entre secciones */
        width: 100%; 
    }

    .footer-section h4 {
        font-size: 16px; /* Reducir el tamaño de la fuente en móviles */
        margin-bottom: 5px; /* Reducir el margen inferior del título */
    }

    .footer-section p {
        font-size: 14px; /* Reducir el tamaño de la fuente en móviles */
        margin: 0 auto; /* Centrar el texto */
        line-height: 1.4; /* Reducir el interlineado para ahorrar espacio */
    }

    .footer-bottom {
        font-size: 12px; /* Reducir el tamaño de la fuente en móviles */
        padding: 5px 0; /* Reducir el padding superior e inferior */
        margin-top: 10px; /* Reducir el margen superior */
    }

    .wrapper {
        justify-content: center; /* Centrar los íconos de redes sociales */
        padding: 0; /* Eliminar padding adicional */
        margin: 5px 0; /* Reducir el margen de las redes sociales */
    }

    .map-container iframe {
        width: 100%; /* Asegurar que el mapa ocupe todo el ancho */
        height: 180px; /* Reducir la altura del mapa */
        margin: 0 auto; /* Centrar el mapa */
    }

    /* Ajustes específicos para el texto de contacto */
    .footer-section p i {
        margin-right: 5px; /* Añadir un pequeño margen a los íconos */
    }

    /* Ajustes para el enlace de WhatsApp */
    .footer-section p a {
        display: flex; /* Usar flexbox para alinear el ícono y el texto */
        align-items: center; /* Centrar verticalmente el ícono y el texto */
        justify-content: center; /* Centrar horizontalmente */
        text-decoration: none; /* Eliminar subrayado */
        color: inherit; /* Mantener el color del texto */
    }

    .footer-section p a img {
        margin-right: 8px; /* Añadir margen entre el ícono y el texto */
    }
    .map-container iframe{
        width: 350px;
        margin-right: 20px;
    }
    .wrapper {
        height: 40px;
    }

}

@media (max-width: 480px) {
    .footer-section {
        min-width: 100%; /* Hacer que las secciones ocupen todo el ancho en móviles pequeños */
    }

    .footer-section h4 {
        font-size: 14px; /* Reducir aún más el tamaño de la fuente en móviles pequeños */
    }

    .footer-section p {
        font-size: 12px; /* Reducir aún más el tamaño de la fuente en móviles pequeños */
    }

    .footer-bottom {
        font-size: 10px; /* Reducir aún más el tamaño de la fuente en móviles pequeños */
    }

    .wrapper {
        height: 40px;
    }

    .wrapper .icon {
        width: 35px; /* Reducir el tamaño de los íconos en móviles pequeños */
        height: 35px;
        font-size: 14px; /* Reducir el tamaño de la fuente de los íconos */
    }

    .wrapper .tooltip {
        font-size: 10px; /* Reducir el tamaño del tooltip en móviles pequeños */
    }
    .map-container iframe{
        width: 350px;
        margin-right: 20px;
    }
}