:root {
    --primary: #003366;
    --accent: #3498db;
    --bg: #f4f7f6;
    --card: #ffffff;
    --text: #2c3e50;
    --muted: #7f8c8d;
}

body {
    font-family: -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    -webkit-tap-highlight-color: transparent;
}

header {
    background: var(--accent);
    width: 100%;
    padding: 0.4rem 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    max-width: 160px;
    width: 60%;
    height: auto;
    display: block;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 92%;
    max-width: 500px;
    margin: 1rem 0 0.8rem 0;
    background: var(--card);
    padding: 0.6rem;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s;
}

button:hover { background: #2980b9; }
button:active { transform: scale(0.92); opacity: 0.9; }

#week-info {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
}

.menu-list {
    width: 92%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 3rem;
}

.day-card {
    background: var(--card);
    padding: 18px;
    border-radius: 15px;
    border-left: 6px solid #d1d8e0;
    box-shadow: 0 3px 6px rgba(0,0,0,0.03);
}

.day-card.today {
    border-left-color: #27ae60;
    background: #f0fff4;
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.1);
}

.today-badge {
    background: #27ae60;
    color: white;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: bold;
    margin-left: 10px;
    vertical-align: middle;
}

.day-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 6px;
}

.day-name { font-weight: 800; text-transform: uppercase; color: var(--primary); font-size: 0.85rem; }
.day-date { color: var(--muted); font-size: 0.85rem; }

.menu-body {
    font-size: 1.1rem;
    line-height: 1.6;
    white-space: pre-line;
    color: #34495e;
}

.loading { margin-top: 40px; color: var(--muted); font-weight: 500; }
.error { color: #e74c3c; padding: 30px; text-align: center; font-weight: bold; }

.day-header a {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.day-header a:hover {
    opacity: 1;
}

.share-icon {
    width: 20px;       /* Ajusta el tamaño a tu gusto */
    height: 20px;
    display: block;    /* Evita espacios extra debajo de la imagen */
    transition: transform 0.2s ease;
}

.share-btn {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.8;
}

.share-btn:hover .share-icon {
    transform: scale(1.1); /* Un pequeño efecto visual al pasar el ratón */
    opacity: 1;
}

.share-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.share-btn:hover {
    opacity: 1;
}

.share-icon {
    width: 20px;
    height: 20px;
}

@media print {
    header, .nav-bar, button { display: none !important; }
    body { background: white; }
    .menu-list { width: 100%; max-width: none; }
    .day-card { border: 1px solid #ccc; break-inside: avoid; }
}
