:root {
    --color-verde-principal: rgba(194,206,184,255);
    --color-crema-principal: rgba(247,245,242,255);
    --color-texto: #4A4A4A;
    --color-verde-oscuro: #9baa8f;
    --color-sombra: rgba(0,0,0,0.1);
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--color-crema-principal);
    color: var(--color-texto);
}

main {
    background-image: url('images/trama-blanca.jpg');
    background-repeat: repeat;
    background-color: var(--color-crema-principal);
    padding-bottom: 2rem;
    padding-top: 90px;
}

/* ------------------------------INDEX------------------------------ */
/* ---------Header/Nav--------- */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/barista.webp');
    background-size: cover;
    background-position: center;
    filter: blur(4px) brightness(0.7);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    background-color: rgba(0,0,0,0.3);
    border-radius: 20px;
    backdrop-filter: blur(5px);
}
.logo {
    max-width: 300px;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}
.hero-text {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
#menu-nav, .nav-panel {
    background-color: var(--color-verde-principal);
    box-shadow: 0 4px 6px var(--color-sombra);
    padding: 0.5rem 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}
#menu-nav.fixed-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}
.fixed-nav + main {
    padding-top: 90px;
}
#menu-nav .nav-link {
    color: var(--color-texto);
    font-weight: 600;
    padding: 1rem 1.5rem;
    transition: all 0.3s ease;
    border-radius: 25px;
    margin: 0 0.3rem;
}
#menu-nav .nav-link:hover {
    background-color: var(--color-verde-oscuro);
    color: white;
    transform: translateY(-2px);
}
#menu-nav .nav-logo, .nav-panel .nav-logo {
    height: 70px;
    width: auto;
    margin: 0 1rem;
}

/* ---------Menu--------- */
.menu-section {
    font-family: 'Arial', sans-serif;
    color: var(--color-texto);
}
.menu-title {
    font-size: 2rem;
    font-weight: bold;
   /* text-transform: uppercase; */
    margin-bottom: 2rem;
}
.menu-category {
    margin-bottom: 3rem;
}
.categoria-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    padding: 0.5rem;
}

.categoria-desc {
    font-size: 1.0rem;
    margin-top: -1.5rem;
    margin-bottom: 1.5rem; 
    padding: 0.5rem;
    color: #666;
    font-style: italic;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    position: relative;
    padding: 0.5rem 0;
}
.menu-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 3px;
    border-bottom: 1px dotted var(--color-texto);
}
.producto-info {
    flex: 1;
    min-width: 0;
    padding-right: 10px;
    position: relative;
    z-index: 1;
}
.producto-nombre {
    max-width: 65%;
    padding-right: 10px;
    margin-bottom: 0.2rem;
}
.producto-descripcion {
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}
.producto-precio {
    white-space: nowrap;
    padding-left: 10px;
    position: relative;
    z-index: 1;
    padding-bottom: 3px;
}

.categoria-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.coffee-sizes {
    display: flex;
    gap: 2.6rem;
    align-items: center;
}

.coffee-icon {
    color: var(--color-texto);
    display: flex;
    align-items: center;
    justify-content: center;
}

.coffee-icon.size-s { font-size: 16px; }
.coffee-icon.size-m { font-size: 20px; }
.coffee-icon.size-l { font-size: 24px; }
.coffee-icon.size-xl { font-size: 28px; }

.precios-cafe {
    display: flex;
    gap: 1.2rem;
    margin-left: auto;
    z-index: 1;
    padding-left: 10px;
}

.precio-size {
    min-width: 45px;
    text-align: right;
    white-space: nowrap;
}

/* ---------Sobre Kawhe--------- */
.sobre-kawhe {
    padding: 4rem 0;
}
.sobre-kawhe-content {
    text-align: center;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 4px 6px var(--color-sombra);
}
.sobre-kawhe-destacado {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-texto);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-verde-principal);
}
.sobre-kawhe-texto p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--color-texto);
}
.sobre-kawhe-cta {
    font-size: 1.3rem !important;
    font-weight: 600;
    color: var(--color-verde-oscuro) !important;
    margin-top: 2rem;
}

/* ---------Instagram--------- */
.instagram-grid {
    padding: 4rem 0;
}
.instagram-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--color-sombra);
    transition: transform 0.3s ease;
}
.instagram-item:hover {
    transform: translateY(-5px);
}
.instagram-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.instagram-item a {
    display: block;
    width: 100%;
    height: 100%;
}

/* ---------Galeria--------- */
.galeria-section {
    padding: 4rem 0;
}
.galeria-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px var(--color-sombra);
}
.galeria-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#galeriaCarousel {
    padding-bottom: 3rem;
}
#galeriaCarousel .carousel-indicators {
    bottom: 0;
}
#galeriaCarousel .carousel-indicators button {
    background-color: var(--color-verde-principal);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}
#galeriaCarousel .carousel-control-prev,
#galeriaCarousel .carousel-control-next {
    width: 5%;
    color: var(--color-verde-principal);
}
#galeriaCarousel .carousel-control-prev-icon,
#galeriaCarousel .carousel-control-next-icon {
    filter: invert(1) brightness(70%);
}

/* ---------Ubicación--------- */
.ubicacion-section {
    padding: 4rem 0;
}
.mapa-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px var(--color-sombra);
}
.direccion-container {
    margin-top: 2rem;
}
.direccion-texto {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-texto);
    margin-bottom: 0.5rem;
}
.horario-texto {
    font-size: 1.1rem;
    color: var(--color-texto);
}

/* ---------Footer--------- */
.footer {
    background-color: var(--color-verde-principal);
    padding: 2rem 0;
    box-shadow: 0 -4px 6px var(--color-sombra);
    text-align: center;
}
.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-texto);
    margin-bottom: 1rem;
}
.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
.social-links a {
    color: var(--color-texto);
    font-size: 3rem;
    transition: all 0.3s ease;
}
.social-links a:hover {
    color: var(--color-verde-oscuro);
    transform: translateY(-5px);
}
.copyright {
    font-size: 0.9rem;
    color: var(--color-texto);
    margin-top: 1rem;
    opacity: 0.8;
}

/* ------------------------------ADMIN------------------------------ */
.editable {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-radius: 5px;
}
.editable:hover {
    background-color: var(--color-verde-principal);
    transform: translateY(-2px);
}
.panel-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color:#3f6322;
}
.panel-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: #5d8a38;
}

/* ---------Modal--------- */
.modal-content {
    background-color: var(--color-crema-principal);
    border: none;
    border-radius: 15px;
    box-shadow: 0 4px 6px var(--color-sombra);
}
.modal-header {
    background-color: var(--color-verde-principal);
    color: var(--color-texto);
    border-radius: 15px 15px 0 0;
    border-bottom: none;
}
.modal-body {
    padding: 2rem;
}

/* ---------Login--------- */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 2rem;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 4px 6px var(--color-sombra);
}
.login-logo {
    max-width: 200px;
    margin: 0 auto 2rem;
    display: block;
}
.login-title {
    color: var(--color-texto);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: bold;
}

/* ---------Botones y Formularios--------- */
.btn-primary {
    background-color: var(--color-verde-principal);
    border: none;
    color: var(--color-texto);
    padding: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-primary:hover {
    background-color: var(--color-verde-oscuro);
    transform: translateY(-2px);
}
.form-control {
    border: 2px solid var(--color-verde-principal);
    border-radius: 8px;
    padding: 0.8rem;
}
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(194,206,184,0.25);
    border-color: var(--color-verde-oscuro);
}
.btn-success {
    background-color: var(--color-verde-principal);
    border-color: var(--color-verde-principal);
    color: var(--color-texto);
}
.btn-success:hover {
    background-color: var(--color-verde-oscuro);
    border-color: var(--color-verde-oscuro);
    color: white;
}
.btn-volver {
    background-color: var(--color-verde-oscuro);
    border-color: var(--color-verde-oscuro);
    color: var(--color-texto);
}
.btn-volver:hover {
    background-color: #94af7e;
    border-color: #94af7e;
    color: white;
}
.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: white;
}
.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
    color: white;
}
.nav-panel .navbar-toggler {
    border-color: #94af7e;
}
.editable:hover {
    background-color: rgba(194,206,184,0.2);
    cursor: pointer;
}
.menu-item.editing {
    background-color: rgba(194,206,184,0.3);
    padding: 10px;
    border-radius: 5px;
}
.edit-form {
    margin-top: 10px;
}
.edit-buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

/* ------------------------------Media Queries------------------------------ */
@media (max-width: 991.98px) {
    #menu-nav .navbar-collapse {
        background-color: var(--color-verde-principal);
        padding: 1rem;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 4px 6px var(--color-sombra);
    }
    
    #menu-nav .nav-link {
        text-align: center;
        margin: 0.5rem 0;
    }
    
    .menu-category {
        margin: 1rem;
    }
    .nav-panel .navbar-collapse {
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    .nav-panel .d-flex {
        flex-direction: column;
        width: 100%;
    }
    .nav-panel .btn {
        width: 100%;
        text-align: center;
           margin-bottom: 0.5rem;
    }
}

@media (max-width: 768px) {
    .ubicacion-section {
        padding: 2rem 0;
    }
    .mapa-container {
        margin: 0 1rem;
    }
    #menu-nav .nav-logo {
        height: 50px;
        width: auto;
        margin: 0 1rem;
    }
    .menu-section {
        margin-bottom: 2rem;
    }
    .footer {
        padding: 2rem 0;
    }
    .social-links {
        gap: 1.5rem;
    }
    .social-links a {
        font-size: 2rem;
        width: 50px;
        height: 50px;
    }
    .instagram-grid {
        padding: 2rem 0;
    }
    .galeria-section {
        padding: 2rem 0;
    }
    .galeria-item {
        margin-bottom: 1rem;
    }
    .sobre-kawhe {
        padding: 2rem 0;
    }
    .sobre-kawhe-content {
        padding: 1.5rem;
    }
    .sobre-kawhe-destacado {
        font-size: 1.3rem;
    }
    .sobre-kawhe-texto p {
        font-size: 1rem;
    }
    .coffee-sizes {
        gap: 2rem;
    }
    .precios-cafe {
        gap: 0.7rem;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .container, .container-md, .container-sm {
        max-width: 960px !important;
    }
}

.handle-icon {
    cursor: move;
    margin-right: 8px;
    color: #666;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: inline-block;
}

.menu-item:hover .handle-icon,
.categoria-title:hover .handle-icon,
.menu-title:hover .handle-icon,
.sortable-category:hover > .categoria-title .handle-icon {
    opacity: 0.8;
}

.sortable-ghost {
    opacity: 0.4;
    background-color: var(--color-verde-principal);
}

.sortable-chosen {
    background-color: rgba(194,206,184,0.2);
}

.sortable-sections,
.sortable-categories,
.sortable-products {
    cursor: default;
    min-height: 30px;
}

/* Estilos para la sección DELI */
.deli-section {
    width: 100%;
}

.sortable-categories {
    min-height: 50px;
    position: relative;
}

/* Estilos para el drag & drop */
.sortable-category {
    cursor: move;
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 4px;
    transition: box-shadow 0.3s ease;
    width: 100%;
}

.sortable-category:hover {
    box-shadow: 0 2px 4px var(--color-sombra);
}

.sortable-category.sortable-ghost {
    opacity: 0.4;
    background-color: var(--color-verde-principal);
}

.sortable-category.sortable-drag {
    opacity: 0.8;
    background-color: white;
    box-shadow: 0 4px 6px var(--color-sombra);
}

/* Ajustes específicos para las categorías de DELI */
.deli-section .menu-category {
    width: 100%;
    margin-bottom: 1.5rem;
}

.deli-section .categoria-title {
    margin-bottom: 1rem;
}

/* Asegurar que los productos se muestren correctamente */
.deli-section .sortable-products {
    margin-top: 1rem;
}
