/* ==========================================================================
   Veterinaria El Toro — Clinical Guide Stylesheet
   Used by: aveinmune.html, cuajo.html, vac.html
   Supports light & dark themes via html[data-theme="dark"].
   ========================================================================== */

:root {
    --guide-bg: #ffffff;
    --guide-surface: #f8f8f8;
    --guide-surface-alt: #f2f2f2;
    --guide-text: #000000;
    --guide-heading: #333333;
    --guide-primary: #007bff;
    --guide-faq: #0025B7;
    --guide-phone: #28a745;
    --guide-border: #dddddd;
}

html[data-theme="dark"] {
    --guide-bg: #1a1a1a;
    --guide-surface: #262626;
    --guide-surface-alt: #303030;
    --guide-text: #e8e8e8;
    --guide-heading: #ffffff;
    --guide-primary: #88CCFF;
    --guide-faq: #88CCFF;
    --guide-phone: #6ee790;
    --guide-border: #444444;
}

* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--guide-bg);
    color: var(--guide-text);
    line-height: 1.6;
}

header {
    background-color: var(--guide-surface);
    padding: 10px;
    text-align: center;
    border-bottom: 2px solid var(--guide-border);
    width: 100%;
    box-sizing: border-box;
}

.logo {
    width: 120px;
    height: auto;
    filter: invert(1);
    margin-bottom: 10px;
}

html[data-theme="dark"] .logo {
    filter: none;
}

.contact {
    font-size: 14px;
}

.address {
    color: var(--guide-primary);
    text-decoration: none;
}

.phone {
    color: var(--guide-phone);
    text-decoration: none;
}

main {
    padding: 10px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 10px;
}

.column {
    flex: 1;
    min-width: 280px;
    padding: 10px;
    box-sizing: border-box;
}

h1,
h2 {
    color: var(--guide-heading);
    font-size: 1.5em;
}

.chicken-stage img {
    max-width: 100%;
    height: auto;
    cursor: pointer;
}

main img {
    max-width: 100%;
    height: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.9em;
}

th,
td {
    border: 1px solid var(--guide-border);
    padding: 6px;
    text-align: left;
}

.vac-guide th {
    background-color: var(--guide-surface-alt);
}

.vaccine-link {
    color: var(--guide-primary);
    text-decoration: none;
    font-weight: bold;
}

.vaccine-link:hover {
    text-decoration: underline;
}

.faq {
    margin: 20px 0;
}

.faq h3 {
    color: var(--guide-faq);
    cursor: pointer;
    margin: 10px 0;
    font-size: 1.2em;
}

.vac-guide .faq h3 {
    color: var(--guide-primary);
}

.faq-answer {
    margin-left: 20px;
    display: block;
}

.faq-answer.is-hidden {
    display: none;
}

footer {
    background-color: var(--guide-surface);
    padding: 10px;
    text-align: center;
    font-size: 12px;
    border-top: 1px solid var(--guide-border);
    width: 100%;
    box-sizing: border-box;
}

footer a {
    color: var(--guide-primary);
}

.footer-icon {
    width: 16px;
    height: 12px;
    vertical-align: middle;
}

#theme-toggle {
    cursor: pointer;
    color: var(--guide-primary);
}

@media (max-width: 768px) {
    .row {
        flex-direction: column;
        padding: 0;
    }

    .column {
        min-width: 0;
    }

    header {
        padding: 5px;
    }

    .logo {
        width: 100px;
    }

    h1 {
        font-size: 1.2em;
    }

    h2 {
        font-size: 1.1em;
    }

    table {
        font-size: 0.8em;
    }

    th,
    td {
        padding: 4px;
    }

    .faq h3 {
        font-size: 1em;
    }

    .faq-answer {
        font-size: 0.9em;
        margin-left: 10px;
    }

    .contact {
        font-size: 12px;
    }

    .chicken-stage img {
        width: 80px;
    }
}

@media (min-width: 769px) {
    .row {
        flex-direction: row;
    }

    main {
        max-width: 800px;
        margin: 0 auto;
        padding: 20px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }

    table {
        font-size: 1em;
    }

    th,
    td {
        padding: 8px;
    }

    .faq h3 {
        font-size: 1.3em;
    }

    .faq-answer {
        font-size: 1em;
    }

    .chicken-stage img {
        width: auto;
        max-width: 250px;
    }
}
