/* estilos.css */
:root {
    --md-sys-color-primary: #005ac1;
    --md-sys-color-on-primary: #ffffff;
    --md-sys-color-surface: #fdfcff;
    --md-sys-color-on-surface: #1a1c1e;
    --md-sys-color-surface-variant: #e1e2ec;
    --md-sys-color-outline: #74777f;
    --md-sys-elevation-1: 0px 1px 3px 1px rgba(0, 0, 0, 0.15), 0px 1px 2px 0px rgba(0, 0, 0, 0.30);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-on-surface);
}

/* Navbar */
.top-app-bar {
    background-color: var(--md-sys-color-surface);
    color: var(--md-sys-color-on-surface);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: var(--md-sys-elevation-1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links { display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--md-sys-color-on-surface); font-weight: 500; }

/* Contenedor Principal */
.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 0 16px;
}

/* Tarjetas Material 3 */
.card {
    background-color: var(--md-sys-color-surface);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--md-sys-elevation-1);
}

/* Botones */
.btn-primary {
    background-color: var(--md-sys-color-primary);
    color: var(--md-sys-color-on-primary);
    border: none;
    border-radius: 20px;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* Espacio Publicitario */
.ad-slot {
    width: 100%;
    min-height: 90px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 20px 0;
    color: #757575;
    font-size: 12px;
}

@media (max-width: 600px) {
    .nav-links { display: none; } /* Aquí luego puedes implementar un menú hamburguesa con Vanilla JS */
}

/* Snackbar MD3 */
#md-snackbar {
    visibility: hidden;
    min-width: 250px;
    background-color: #313033; /* Surface Inverse */
    color: #f4eff4; /* On Surface Inverse */
    text-align: center;
    border-radius: 4px;
    padding: 14px 16px;
    position: fixed;
    z-index: 9999;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    font-size: 0.875rem;
    box-shadow: var(--md-sys-elevation-1);
    opacity: 0;
    transition: opacity 0.3s, bottom 0.3s, visibility 0.3s;
}

#md-snackbar.show {
    visibility: visible;
    opacity: 1;
    bottom: 50px;
}



/* Estilos para el Modal (Dialog MD3) y Botones de Crónica */
.btn-cronica {
    background-color: var(--md-sys-color-surface-variant);
    color: var(--md-sys-color-primary);
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    display: none; /* Oculto por defecto */
    transition: background-color 0.2s;
}
.btn-cronica:hover { background-color: #cce0ff; }

.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}
.modal-dialog {
    background: var(--md-sys-color-surface);
    width: 90%;
    max-width: 400px;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    text-align: center;
}
.modal-title { font-size: 1.5rem; margin-bottom: 15px; color: var(--md-sys-color-on-surface); }
.modal-text { font-size: 1rem; line-height: 1.5; color: var(--md-sys-color-outline); margin-bottom: 24px; font-style: italic; }
.modal-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-whatsapp { background-color: #25D366; color: white; border: none; border-radius: 20px; padding: 10px 24px; font-weight: bold; cursor: pointer; font-size: 1rem;}
.btn-cerrar { background: transparent; color: var(--md-sys-color-primary); border: none; font-weight: bold; cursor: pointer; padding: 10px;}

