/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Gradiente naranja/amarillo estilo Wolf */
:root {
    --gradient-orange: linear-gradient(to bottom, #FFD000, #FF7B00);
}

/* ======== MODO OSCURO (default) ======== */
body {
    font-family: 'Arial', sans-serif;
    color: #201d1d;
    line-height: 1.6;
    margin: 0;
    background-color: #000000;
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 97%;
    max-width: 1024px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 20px;
}

header img {
    max-width: 200px;
}

/* Botón de cambio de modo */
.toggle-mode-btn {
    position: fixed;
    bottom: 10px;
    right: 20px;
    background: var(--gradient-orange);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s;
}

.toggle-mode-btn:hover {
    opacity: 0.9;
}

.toggle-mode-btn.light-mode {
    background-color: #FF7B00;
}

/* Botón para ver seleccionados */
.view-selected-btn {
    position: fixed;
    bottom: 10px;
    right: 80px;
    background: var(--gradient-orange);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s;
}

.view-selected-btn:hover {
    opacity: 0.9;
}

/* Secciones del menú */
.menu-section {
    margin-bottom: 30px;
}

/* Títulos de secciones */
.menu-section h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    background: var(--gradient-orange);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 2px solid #FF7B00;
    padding-bottom: 5px;
    transition: opacity 0.3s;
}

.menu-section h2:hover {
    opacity: 0.8;
}

.menu-section h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #FF7B00;
    border-bottom: 2px solid #FF7B00;
    padding-bottom: 5px;
}

.menu-item,
.menu-extra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #FFD000;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #111111;
    transition: background-color 0.3s ease;
}

.menu-item.highlight {
    background-color: #222222;
}

.details {
    flex: 1;
}

.details h3 {
    font-size: 1.2rem;
    color: #FFD000;
}

.details p {
    font-size: 0.9rem;
    color: #cccccc;
}

.price {
    padding-right: 5px;
    padding-left: 15px;
    color: #FFD000;
}

.price-controls {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.controls button {
    background-color: #FF7B00;
    color: #fff;
    border: none;
    padding: 5px 10px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s ease;
}

.controls button:hover {
    background-color: #B22222;
}

.controls .quantity {
    font-weight: bold;
    font-size: 1rem;
    text-align: center;
    min-width: 20px;
    color: #FFD000;
}

footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: #777777;
}

footer a {
    color: #FF7B00;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Estilos del modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Fondo semitransparente */
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #111111;
    color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    width: 80%;
    position: relative;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.4);
}

.modal-content h3 {
    margin-bottom: 15px;
    color: #FFD000;
}

.modal-content pre {
    text-align: left;
    background-color: #222222;
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    width: 100%;
    box-sizing: border-box;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    color: #FFD000;
    cursor: pointer;
}

.close-btn:hover {
    color: #FF7B00;
}

/* Botón enviar pedido */
#sendButton {
    background: var(--gradient-orange);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 15px;
    transition: opacity 0.3s;
}

#sendButton:hover {
    opacity: 0.9;
}

/* Sección de horarios */
.schedule-section {
    margin-top: 30px;
}

.schedule-section h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #FF7B00;
    border-bottom: 2px solid #FFD000;
    padding-bottom: 5px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #111111;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.schedule-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #FFD000;
    color: #ffffff;
    font-size: 1rem;
}

.schedule-table tr:last-child td {
    border-bottom: none;
}

.schedule-table tr:hover {
    background-color: #222222;
}

/* ======== MODO CLARO ======== */
body.light-mode {
    background-color: #F2EFEF; /* Fondo marfil suave */
    color: #222222;
}

/* Botón de cambio de modo */
.toggle-mode-btn.light-mode {
    background-color: #FF7B00;
    color: #ffffff;
}

/* Títulos */
body.light-mode .menu-section h2 {
    color: #FF7B00;
    border-bottom: 2px solid #FFD000;
}

/* Items de menú */
body.light-mode .menu-item,
body.light-mode .menu-extra {
    background-color: #F7F2DD; /* Un poco más oscuro que el body */
    border: 1px solid #FFD000;
}

body.light-mode .menu-item.highlight {
    background-color: #FFF0B3; /* Amarillo muy claro */
}

body.light-mode .details h3 {
    color: #FF7B00;
}

body.light-mode .details p {
    color: #333333; /* Gris oscuro para mejor detalle */
}

/* Controles */
body.light-mode .controls button {
    background-color: #FF7B00;
    color: #fff;
}

body.light-mode .controls button:hover {
    background-color: #B22222;
}

body.light-mode .controls .quantity {
    color: #FF7B00;
}

/* Footer */
body.light-mode footer {
    color: #777777;
}

body.light-mode footer a {
    color: #FF7B00;
}

/* Modal */
body.light-mode .modal-content {
    background-color: #ffffff;
    color: #222222;
}

body.light-mode .modal-content h3 {
    color: #FF7B00;
}

body.light-mode .modal-content pre {
    background-color: #FFF3CC;
    color: #222222;
}

/* Botón cerrar modal */
body.light-mode .close-btn {
    color: #777777;
}

body.light-mode .close-btn:hover {
    color: #FF7B00;
}

/* Botón enviar pedido */
body.light-mode #sendButton {
    background: var(--gradient-orange);
    color: #fff;
}

body.light-mode #sendButton:hover {
    opacity: 0.9;
}

/* Horarios */
body.light-mode .schedule-section h2 {
    color: #FF7B00;
    border-bottom: 2px solid #FFD000;
}

body.light-mode .schedule-table {
    background-color: #ffffff;
    border: 1px solid #FFD000;
}

body.light-mode .schedule-table td {
    color: #222222;
    border-bottom: 1px solid #FFD000;
}

body.light-mode .schedule-table tr:hover {
    background-color: #FFF0B3;
}

body.light-mode .schedule-table tr:hover td {
    color: #222222; /* Texto oscuro al hacer hover */
}
body.light-mode .price{
    color: #000;
}

/* FIX: precio legible en modo oscuro (solo en móviles) */
@media (max-width: 600px) {
  body:not(.light-mode) .price,
  body:not(.light-mode) .price * {
    color: #FFD000 !important;               /* amarillo de acento */
    -webkit-text-fill-color: #FFD000 !important;
    text-shadow: 0 1px 0 rgba(0,0,0,0.45);   /* mejora legibilidad sobre fondos oscuros */
  }
}