/* santas.css - Seminario Santas stylesheet */

/* ===== Base & Typography ===== */
:root {
    --color-primary: #1a1a1a;
    --color-accent: #8b1a32;  /* bordeaux */
    --color-text: #333;
    --color-text-light: #666;
    --color-bg: #fff;
    --color-bg-alt: #f8f9fa;
    --color-border: #dee2e6;
    --font-body: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'EB Garamond', Georgia, 'Times New Roman', serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    margin: 0;
    padding: 0;
}

/* ===== Banner ===== */
#banner {
    background-color: var(--color-primary);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

#banner h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: 0.02em;
}

/* ===== Layout ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.intro-section {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: start;
}

.intro-text p {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.intro-text p:first-child {
    font-size: 1.1rem;
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
}

/* ===== Headings ===== */
h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 400;
    text-align: center;
    color: var(--color-primary);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Tables ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

thead {
    background-color: var(--color-bg-alt);
    border-bottom: 2px solid var(--color-accent);
}

th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--color-primary);
}

th.fecha {
    width: 12%;
}

th.expositor {
    width: 18%;
}

th.universidad {
    width: 22%;
}

th.titulo {
    width: 48%;
}

td {
    padding: 0.75rem 1rem;
    vertical-align: top;
    border-bottom: 1px solid var(--color-border);
}

tbody tr:hover {
    background-color: #fdfaf8;
}

/* Zebra striping - optional, remove if using Bootstrap's */
tbody tr:nth-child(even) {
    background-color: var(--color-bg-alt);
}

tbody tr:nth-child(even):hover {
    background-color: #f0edeb;
}

/* ===== Toggle Button ===== */
.toggle-container {
    text-align: center;
    margin: 2rem 0;
}

.btn-toggle {
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 0.6rem 1.5rem;
    background-color: var(--color-bg);
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle:hover {
    background-color: var(--color-primary);
    color: white;
}

/* ===== Hidden Content ===== */
#old {
    display: none;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .intro-section {
        grid-template-columns: 1fr;
    }

    .map-container iframe {
        height: 300px;
    }

    #banner h1 {
        font-size: 1.8rem;
    }

    th.fecha {
        width: 20%;
    }

    th.expositor {
        width: 25%;
    }

    th.universidad {
        width: 25%;
    }

    th.titulo {
        width: 30%;
    }

    th, td {
        padding: 0.5rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    /* Stack table on very small screens */
    table, thead, tbody, th, td, tr {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        margin-bottom: 1rem;
        border: 1px solid var(--color-border);
        border-radius: 4px;
        padding: 0.5rem;
    }

    td {
        border: none;
        padding: 0.25rem 0.5rem;
    }

    td:first-child {
        font-weight: 600;
        color: var(--color-accent);
    }
}
