body {
    background: #7B3F1D;
    color: #FFFFFF;
    font-family: 'Segoe UI', Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh; 
}
main {
    flex: 1; 
    margin-bottom: 5px;
    background: #7B3F1D;
    border-radius: 15px;
    padding: 20px;
    margin: 20px;
}
header img {
    border-radius: 50%;
}
h2, h1, h4, h5.card-title {
    color: #7B3F1D;
}

.btn-danger {
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3), 0px 15px 1px rgba(255, 217, 0, 0.918); 
}

.logo-cuadrado {
    width: 250px; 
    height: auto; 
    object-fit: cover; 
    border-color: #FFC233;
    border-radius: 10px; 
    display: block;
    margin: auto;
    border: 4px solid #27AE60;
    background: #FFFFFF;
}

/*.btn-3d {
    display: inline-block;
    text-decoration: none; 
    color: white;
    font-size: 1rem; 
    background: linear-gradient(145deg, #e63946, #b22234);
    border: none;
    border-radius: 10px;
    padding: 15px 20px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.3), 0px 7px 1px rgba(255, 217, 0, 0.918); 
    transition: transform 0.2s, box-shadow 0.2s;
    
  }*/
  
  .btn-3d {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    min-height: 60px; /* Asegura que todos tengan la misma altura */
    background: #FFC233;
    color: #7B3F1D;
    border: 2px solid #7B3F1D;
    border-radius: 10px;
    box-shadow: 0px 5px 10px rgba(123, 63, 29, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none; 
    font-size: 1rem; 
}

  
  .btn-3d:active {
    transform: translateY(4px);
    background: #FFD966;
    color: #7B3F1D;
  }
  

.menu-img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    width: 100%;
    border-radius: 8px;
}


.footer, footer {
    position: relative;
    bottom: 0;
    width: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: index 1000;
    padding: 1rem;
    background: #7B3F1D !important;
    color: #FFC233 !important;
}
.Horario {
    color: #FFC233;
    font-size: 1.1rem;
    margin-bottom: 0;
}
footer a {
    color: #FFC233;
    text-decoration: underline;
}
footer a:hover {
    color: #FFFFFF;
}

.btn-whatsapp {
    width: 100%;
    position: relative;
    font-size: 0.9rem;
    font-weight: bold;
    display: block;
    align-items: center;
    justify-content: center;
    margin: 5px auto;
    padding: 5px 10px;
}

.header-principal {
    background: #FFD966;
    color: #7B3F1D;
}
.header-principal h1,
.header-principal h2,
.header-principal h3,
.header-principal h4,
.header-principal h5,
.header-principal h6,
.header-principal .Horario {
    color: #7B3F1D !important;
}

.header-principal h2.h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0;
    color: #7B3F1D !important;
}

.categoria {
    color: #7B3F1D;
    background: #FFC233;
    border-left: 8px solid #7B3F1D;
    padding: 8px 16px;
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 1.7rem;
    font-weight: bold;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 2px 8px rgba(39,174,96,0.08);
}
.platos-lista {
    list-style: none;
    padding: 0 0 0 12px;
    margin-bottom: 0;
}
.platos-lista li {
    background: #FFFFFF;
    margin-bottom: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    border-left: 4px solid #7B3F1D;
    box-shadow: 0 1px 4px rgba(192,57,43,0.07);
    font-size: 1.1rem;
    color: #7B3F1D;
}
.menu-section {
    background: #FFF8F0;
    border-radius: 18px;
    padding: 32px 18px;
    box-shadow: 0 4px 24px rgba(39,174,96,0.07);
}
footer {
    background: #7B3F1D !important;
    color: #FFC233 !important;
}
.text-center a {
    color: #FFFFFF;
    font-weight: bold;
}
.text-center a:hover {
    color: #FFC233;
}

/* --- NUEVOS ESTILOS PARA MENÚ DIGITAL INTERACTIVO --- */

#categorias {
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.categoria-btn {
    font-family: 'Quicksand', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: #FFFFFF;
    text-shadow: 1px 1px 2px #7B3F1D, 0 2px 4px rgba(0,0,0,0.08);
    background: rgba(123, 63, 29, 0.85);
    border: 2px solid #FFC233;
    border-radius: 16px;
    padding: 0;
    margin-bottom: 10px;
    box-shadow: 0 6px 0 #b8862b, 0 2px 12px rgba(0,0,0,0.10);
    transition: transform 0.1s, box-shadow 0.1s, background 0.2s, color 0.2s;
    width: 100%;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.1;
    overflow: hidden;
}

.categoria-btn:hover, .categoria-btn.active {
    background: #FFC233;
    color: #7B3F1D;
    border-color: #7B3F1D;
}

.categoria-btn:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #b8862b, 0 1px 4px rgba(0,0,0,0.10);
}

#categorias .categoria-col {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: center;
}

@media (max-width: 767px) {
    #categorias {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0 10px;
    }
    #categorias .categoria-col {
        width: 100%;
        max-width: 400px;
        padding: 0 0 10px 0;
        display: flex;
        justify-content: center;
    }
    .categoria-btn {
        width: 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) {
    .categoria-btn {
        height: auto;
        min-height: unset;
        max-height: unset;
        font-size: 1.5rem;
        padding-top: 18px;
        padding-bottom: 18px;
        padding-left: 10px;
        padding-right: 10px;
        line-height: 1.2;
        white-space: normal;
        align-items: center;
        justify-content: center;
        display: flex;
    }
}

/* Pantalla completa para platos */
#platos.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #7B3F1D;
    z-index: 2000;
    overflow-y: auto;
    padding-top: 90px;
    padding-bottom: 40px;
    margin: 0;
    box-shadow: 0 0 0 100vw rgba(0,0,0,0.15);
    display: block;
}
#volver-categorias {
    position: relative;
    background: #27AE60;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 1.1rem;
    font-weight: bold;
    box-shadow: 0 6px 0 #219150, 0 2px 12px rgba(0,0,0,0.10);
    transition: transform 0.1s, box-shadow 0.1s, background 0.2s, color 0.2s;
    margin: 10px auto;
    display: block;
}
#volver-categorias:hover {
    background: #C0392B;
}
#volver-categorias:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #219150, 0 1px 4px rgba(0,0,0,0.10);
}

.categoria-header {
    margin-top: 20px;
}

.logo-categoria {
    width: 180px;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    border: 3px solid #7B3F1D;
    background: #fff;
    margin-bottom: 10px;
    margin-top: -20px;
}

@media (max-width: 767px) {
    #volver-categorias {
        font-size: 1rem;
        padding: 8px 16px;
        margin: 10px auto;
    }
    .categoria-header {
        margin-top: 10px;
    }
    .categoria {
        margin-top: 10px;
    }
}

#platos {
    background: #2a0f0d;
    border-radius: 18px;
    padding: 2rem 1rem;
    margin-top: 1.5rem;
}
.plato-card {
    background: white;
    background: #2a0f0d;
    border-radius: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
    padding: 1.2rem 1rem 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 350px;
    margin: 0 auto 2rem auto;
}
.plato-card:hover {
    box-shadow: 0 6px 24px rgba(192,57,43,0.13);
}
.plato-card img.plato-img {
    width: 100% !important;
    max-width: 350px !important;
    height: auto !important;
    border-radius: 16px 16px 0 0;
    object-fit: cover;
    margin-bottom: 1rem;
}
.plato-nombre {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 1.8rem !important;
    font-weight: 900 !important;
    color: #fff !important;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px #7B3F1D, 0 2px 4px rgba(0,0,0,0.08);
}
.plato-precio {
    font-family: 'Quicksand', sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #FFC233 !important;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px #7B3F1D, 0 2px 4px rgba(0,0,0,0.08);
}
.plato-detalles {
    color: #fff !important;
    background: #2a0f0d !important;
}

.btn-detalles {
    background: #FFC233;
    color: #222;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 6px 0 #b8862b, 0 2px 12px rgba(0,0,0,0.10);
    transition: transform 0.1s, box-shadow 0.1s, background 0.2s, color 0.2s;
}
.btn-detalles:hover {
    background: #FFD966;
}
.btn-detalles:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #b8862b, 0 1px 4px rgba(0,0,0,0.10);
}

.btn-pedir {
    background: #27AE60;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 6px 0 #219150, 0 2px 12px rgba(0,0,0,0.10);
    transition: transform 0.1s, box-shadow 0.1s, background 0.2s, color 0.2s;
}
.btn-pedir:hover {
    background: #219150;
}
.btn-pedir:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 #219150, 0 1px 4px rgba(0,0,0,0.10);
}

/* Responsive grid para platos */
@media (max-width: 767px) {
    #platos .col-md-4, #platos .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .plato-card {
        max-width: 98vw;
        padding: 0.7rem 0.2rem 1rem 0.2rem;
    }
    .plato-card img.plato-img {
        max-width: 98vw !important;
    }
    .plato-nombre {
        font-size: 1.3rem;
    }
    .plato-precio {
        font-size: 1.1rem;
    }
}
@media (min-width: 768px) {
    #platos .col-md-4 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
    .plato-card img.plato-img {
        width: 95% !important;
        max-width: 700px !important;
        margin: 0 auto 1rem auto;
        display: block;
    }
}

@media (min-width: 600px) {
    .plato-card {
        max-width: 500px;
    }
}

.logo-principal {
    width: 300px;
    height: auto;
    object-fit: cover;
    border-radius: 16px;
    border: 4px solid #7B3F1D;
    background: #fff;
    margin-bottom: 10px;
}

.main-bg-frutas {
    background-image: url('imagenes/fondo4.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 18px;
    min-height: 320px;
    padding: 2rem 1rem;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.7);
    margin-left: auto;
    margin-right: auto;
    max-width: 420px;
}

@media (max-width: 767px) {
    .main-bg-frutas {
        padding: 1.2rem 0.3rem;
        min-height: 220px;
        border-radius: 12px;
    }
}

.btn-outline-success {
    color: #7B3F1D !important;
    background-color: #FFC233 !important;
    border-color: #FFC233 !important;
    font-weight: bold;
    font-size: 1.1rem !important;
    padding: 10px 20px;
}
.btn-outline-success:hover, .btn-outline-success:active, .btn-outline-success:focus {
    color: #7B3F1D !important;
    background-color: #FFD966 !important;
    border-color: #FFC233 !important;
}

.text-center a.text-decoration-none {
    color: #0d6efd;
    text-decoration: none;
    font-weight: bold;
}
.text-center a.text-decoration-none:hover {
    color: #0a58ca;
    text-decoration: underline;
}

h4 {
    color: #FFFFFF !important;
}

@media (min-width: 768px) {
    .main-bg-frutas {
        max-width: 800px;
    }
}

.direccion-link {
    color: #FFC233;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-bottom 0.2s, background 0.2s;
    padding: 2px 4px;
    border-radius: 6px;
}
.direccion-link:hover {
    color: #7B3F1D;
    background: #FFC233;
    border-bottom: 2px solid #7B3F1D;
    text-decoration: none;
}
