/* ==========================================================================
   Veterinaria El Toro — Feeding Advice Stylesheet (Blog-Article Style)
   Used by: instru*.html (ES) and en/*-feeding.html (EN)
   Supports light & dark themes via html[data-theme="dark"].
   ========================================================================== */

:root {
    --feed-bg: #FFFFFF;
    --feed-surface: #f8f8f8;
    --feed-text: #222222;
    --feed-heading: #333333;
    --feed-primary: #224477;
    --feed-accent: #77BBEE;
    --feed-border: #dddddd;
    --feed-address: #007bff;
    --feed-phone: #28a745;
    --feed-button-bg: #224477;
    --feed-button-text: #FFFFFF;
    --feed-button-hover: #77BBEE;
}

html[data-theme="dark"] {
    --feed-bg: #1a1a1a;
    --feed-surface: #262626;
    --feed-text: #e8e8e8;
    --feed-heading: #ffffff;
    --feed-primary: #88CCFF;
    --feed-accent: #AADDFF;
    --feed-border: #444444;
    --feed-address: #88CCFF;
    --feed-phone: #6ee790;
    --feed-button-bg: #88CCFF;
    --feed-button-text: #1a1a1a;
    --feed-button-hover: #AADDFF;
}

* {
    box-sizing: border-box;
    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(--feed-bg);
    color: var(--feed-text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header (matches blog article header) */
header {
    background-color: var(--feed-surface);
    padding: 15px 20px;
    border-bottom: 2px solid var(--feed-border);
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    width: 80px;
    height: auto;
    flex-shrink: 0;
    display: block;
    cursor: pointer;
}

html[data-theme="dark"] .logo {
    filter: invert(100%) hue-rotate(180deg);
}

.header-info {
    flex: 1;
    text-align: left;
}

.header-info .site-title {
    color: var(--feed-heading);
    font-size: 1.8em;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.25;
}

.header-info p {
    font-size: 14px;
    margin: 0;
}

.header-info .address-link {
    color: var(--feed-address);
    text-decoration: none;
}

.header-info .phone-link {
    color: var(--feed-phone);
    text-decoration: none;
}

.header-button {
    flex-shrink: 0;
}

.back-to-nutri {
    display: inline-block;
    background: var(--feed-button-bg);
    color: var(--feed-button-text);
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

.back-to-nutri:hover {
    background: var(--feed-button-hover);
    color: var(--feed-button-text);
}

/* Main article body */
main {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    flex: 1;
}

article h1 {
    color: var(--feed-heading);
    font-size: 2.2em;
    margin: 20px 0 16px;
}

article h2 {
    color: var(--feed-primary);
    font-size: 1.5em;
    margin: 24px 0 12px;
}

article p {
    font-size: 1rem;
    margin: 0 0 16px;
}

article hr {
    border: none;
    height: 1px;
    background-color: var(--feed-border);
    margin: 22px 0;
}

article strong {
    font-weight: 600;
}

article a {
    color: var(--feed-primary);
    text-decoration: none;
}

article a:hover {
    text-decoration: underline;
}

.feeding-actions {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 2px solid var(--feed-border);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.cita-button {
    display: inline-block;
    background-color: var(--feed-button-bg);
    color: var(--feed-button-text);
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.cita-button:hover {
    background-color: var(--feed-button-hover);
    color: var(--feed-button-text);
    text-decoration: none;
}

.back-main-link {
    color: var(--feed-primary);
    font-weight: 600;
    text-decoration: none;
}

.back-main-link:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    background-color: var(--feed-surface);
    padding: 12px 16px;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid var(--feed-border);
    margin-top: auto;
}

footer p {
    margin: 0;
    line-height: 1.6;
}

footer a {
    color: var(--feed-primary);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

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

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

#theme-toggle:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 12px 10px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .logo {
        width: 60px;
    }

    .header-info {
        text-align: center;
    }

    .header-info .site-title {
        font-size: 1.3em;
    }

    .header-info p {
        font-size: 12px;
    }

    .header-button {
        width: 100%;
        text-align: center;
    }

    .back-to-nutri {
        padding: 8px 16px;
        font-size: 14px;
    }

    main {
        padding: 16px;
    }

    article h1 {
        font-size: 1.5em;
    }

    article h2 {
        font-size: 1.25em;
    }

    .feeding-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .cita-button {
        width: 100%;
        text-align: center;
    }
}
