:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --accent: #0096c7;
    --accent-strong: #003a63;
    --accent-alt: #f5a623;
    --accent-warm: #f5a623;
    --text: #003a63;
    --muted: #4b5f73;
    --line: #d6e1ec;
    --shadow: 0 18px 46px rgba(0, 58, 99, 0.18);
    --shadow-soft: 0 14px 32px rgba(0, 58, 99, 0.12);
    --radius: 8px;
    --radius-sm: 6px;
    --radius-lg: 10px;
    --font: 'Inter', system-ui, -apple-system, sans-serif;
    --hero-motion: 0px;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

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

body {
    background: radial-gradient(circle at 18% 22%, rgba(0, 150, 199, 0.12), transparent 32%),
        radial-gradient(circle at 74% 14%, rgba(245, 166, 35, 0.22), transparent 30%),
        radial-gradient(circle at 12% 78%, rgba(0, 58, 99, 0.08), transparent 38%),
        var(--bg);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    min-height: 100vh;
}


.main-nav {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 18px 26px;
    background: linear-gradient(120deg, rgba(0, 58, 99, 0.95), rgba(0, 150, 199, 0.9));
    backdrop-filter: blur(14px);
    border-bottom: 4px solid var(--accent-alt);
    box-shadow: 0 20px 50px rgba(0, 58, 99, 0.2);
}

.nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 8px 12px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(0, 150, 199, 0.08), 0 18px 30px rgba(0, 58, 99, 0.08);
}

.nav__menu {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
}


.nav__logo a {
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--accent-strong);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.nav__logo span {
    color: var(--accent);
}

.nav__logo-img {
    width: 42px;
    height: 42px;
    object-fit: cover;
}

.nav__links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.nav__links a {
    color: var(--text);
    text-decoration: none;
    padding: 9px 14px;
    border: 2px solid rgba(0, 150, 199, 0.35);
    background: linear-gradient(135deg, rgba(0, 150, 199, 0.08), rgba(245, 166, 35, 0.08));
    box-shadow: 0 10px 22px rgba(0, 58, 99, 0.08);
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.nav__links a:hover {
    color: var(--accent-strong);
    border-color: var(--accent);
    background: linear-gradient(135deg, rgba(0, 150, 199, 0.16), rgba(245, 166, 35, 0.18));
    box-shadow: 0 14px 32px rgba(0, 58, 99, 0.18);
}

.nav__actions {
    justify-self: end;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.nav__toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: var(--radius);
    border: 2px solid rgba(0, 150, 199, 0.35);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(0, 150, 199, 0.1));
    box-shadow: 0 10px 22px rgba(0, 58, 99, 0.12);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    padding: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav__toggle span {
    display: block;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: var(--accent-strong);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-open .nav__toggle {
    border-color: var(--accent);
    box-shadow: 0 12px 26px rgba(0, 58, 99, 0.16);
}

.nav-open .nav__toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-open .nav__toggle span:nth-child(2) {
    opacity: 0;
}

.nav-open .nav__toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 980px) {
    .nav__inner {
        grid-template-columns: 1fr auto;
        justify-items: center;
        gap: 12px;
    }

    .nav__logo {
        justify-self: center;
    }

    .nav__toggle {
        display: inline-flex;
        justify-self: end;
    }

    .nav__menu {
        display: none;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 14px;
        padding: 4px 2px 6px;
        border-top: 1px solid rgba(0, 58, 99, 0.12);
    }

    .nav__links {
        flex-wrap: wrap;
        justify-content: flex-start;
        width: 100%;
    }

    .nav__actions {
        justify-content: flex-start;
        width: 100%;
    }

    .nav-open .nav__menu {
        display: grid;
    }

    .nav__logo-img {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 820px) {
    .hero.hero--full {
        padding: 78px 18px 64px;
    }

    .hero.hero--full .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

.reveal {
    opacity: 1;
    transform: none;
}

body.reveal-ready .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: calc(var(--reveal-order, 0) * 35ms);
}

body.reveal-ready .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal--card {
    transform: none;
}

body.reveal-ready .reveal--card {
    transform: translateY(32px) scale(0.98);
    transition-duration: 0.7s;
    transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.reveal-ready .reveal--card.in-view {
    transform: translateY(0) scale(1);
}

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 36px 30px 48px;
}

.topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 18px 24px;
    background: var(--surface);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.logo {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-strong);
}

.nav-links {
    display: flex;
    gap: 18px;
    font-weight: 600;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    padding: 8px 10px;
    border: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent-strong);
    border-color: var(--accent-strong);
}

.cta-group {
    display: flex;
    gap: 12px;
}

.btn {
    border: 2px solid var(--text);
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 10px 16px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    border-radius: var(--radius-sm);
}

.btn.small {
    font-size: 0.85rem;
    padding: 8px 10px;
}


.btn.primary {
    background: linear-gradient(120deg, var(--accent), #0b7c71);
    color: #fff;
    border-color: #0b7c71;
}

.btn.secondary {
    background: #eef2f7;
    color: var(--accent-strong);
    border-color: var(--accent-strong);
}

.btn.ghost {
    background: #f8fafc;
    border-color: var(--line);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    padding: 42px 36px;
    margin-top: 24px;
    background: linear-gradient(140deg, rgba(13, 148, 136, 0.16), rgba(251, 191, 36, 0.22), rgba(13, 148, 136, 0.12)), var(--surface);
    border: 1px solid rgba(13, 148, 136, 0.22);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
}

.hero.hero--split {
    border-top: 6px solid var(--accent);
    grid-template-columns: 1.05fr 0.95fr;
}

.hero.hero--single {
    grid-template-columns: 1fr;
    border-top: 6px solid var(--accent);
}

.hero.hero--full {
    position: relative;
    margin-top: 0;
    padding: 96px 32px 82px;
    width: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: var(--shadow);
    overflow: hidden;
    isolation: isolate;
    background-image:
        linear-gradient(145deg, rgba(0, 58, 99, 0.78), rgba(0, 150, 199, 0.46)),
        var(--hero-bg, radial-gradient(circle at 20% 20%, rgba(0, 150, 199, 0.24), transparent 40%));
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center calc(50% + var(--hero-motion));
    color: #f8fafc;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 10, 26, 0.65), rgba(0, 10, 26, 0.35));
    z-index: 0;
}

.hero__wrap {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 12px 0 10px;
}

.hero.hero--full h1 {
    color: #f8fafc;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.hero .lede {
    color: var(--muted);
    margin-bottom: 18px;
}

.hero.hero--full .lede {
    color: #e2e8f0;
    max-width: 720px;
}

.hero.hero--full .hero__copy {
    max-width: 760px;
    transform: translateY(calc(var(--hero-motion) / -10));
    transition: transform 0.45s ease, opacity 0.45s ease;
}

body.scrolling-down .hero.hero--full .hero__copy {
    opacity: 0.96;
    transform: translateY(calc(var(--hero-motion) / 6));
}

body.scrolling-up .hero.hero--full .hero__copy {
    opacity: 1;
    transform: translateY(calc(var(--hero-motion) / -12));
}

.hero.hero--full .chip {
    border-color: rgba(255, 255, 255, 0.55);
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.14);
}

.hero.hero--full .btn.secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.28);
}

.hero.hero--full .btn.ghost {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
}

.hero__actions {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.stat-inline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.stat-inline div {
    padding: 14px;
    background: linear-gradient(135deg, rgba(255, 138, 91, 0.16), rgba(255, 203, 71, 0.22));
    border: 1px solid rgba(255, 203, 71, 0.55);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-sm);
}

.hero.hero--full .stat-inline div {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
    border-color: rgba(255, 255, 255, 0.35);
    color: #e2e8f0;
}

.chip {
    display: inline-block;
    padding: 10px 12px;
    border: 1px solid var(--accent-strong);
    background: rgba(255, 138, 91, 0.16);
    color: var(--accent-strong);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: var(--radius-sm);
}

.badges {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.badge {
    padding: 14px;
    border: 1px solid rgba(255, 203, 71, 0.5);
    background: linear-gradient(120deg, rgba(255, 203, 71, 0.18), rgba(255, 138, 91, 0.12));
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-sm);
}

.badge__title {
    font-weight: 700;
    margin-bottom: 4px;
}

.badge__desc {
    color: var(--muted);
    font-size: 0.95rem;
}

.badge.muted {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #374151;
    padding: 8px 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: var(--radius-sm);
}

.hero__card {
    background: linear-gradient(135deg, rgba(255, 138, 91, 0.92), rgba(255, 203, 71, 0.9));
    color: #fff6f0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.hero__card.hero__card--highlight {
    position: relative;
    overflow: hidden;
}

.hero__card.hero__card--highlight::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255, 122, 89, 0.12), transparent 40%);
    pointer-events: none;
}

.card-title {
    font-weight: 700;
    font-size: 1.2rem;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat {
    background: #111827;
    padding: 12px;
    border: 1px solid #1f2937;
    box-shadow: var(--shadow-soft);
}

.stat__label {
    color: #9ca3af;
    font-size: 0.9rem;
}

.stat__value {
    font-size: 1.6rem;
    font-weight: 800;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.22);
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-sm);
}

.status__meta--muted {
    color: #9ca3af;
}

.pill {
    display: inline-block;
    padding: 6px 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: 1px solid var(--line);
    color: var(--text);
    background: #fff;
    border-radius: 8px;
}

.pill--publicada {
    background: rgba(0, 150, 199, 0.18);
    color: var(--accent-strong);
    border-color: var(--accent);
}

.pill--aprobada {
    background: rgba(245, 166, 35, 0.18);
    color: #6c480a;
    border-color: var(--accent-alt);
}

.pill--adoptada {
    background: rgba(39, 174, 96, 0.12);
    color: #0f5132;
    border-color: #1fab6a;
}

.pill--cancelada {
    background: rgba(203, 213, 225, 0.25);
    color: #1f2937;
    border-color: #cbd5e1;
}

.pill--en_revision {
    background: rgba(0, 58, 99, 0.14);
    color: var(--accent-strong);
    border-color: rgba(0, 58, 99, 0.4);
}

.pill--accent {
    background: rgba(245, 166, 35, 0.22);
    color: #6c480a;
    border-color: var(--accent-alt);
}

.pill--muted {
    background: rgba(0, 58, 99, 0.08);
    color: var(--muted);
    border-color: rgba(0, 58, 99, 0.24);
}

.status-row.align-start {
    align-items: flex-start;
    gap: 12px;
}

.status__title {
    font-weight: 700;
}

.status__meta {
    color: #94a3b8;
    font-size: 0.95rem;
}

.tag {
    padding: 8px 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tag.success {
    background: #10b981;
    color: #0b1223;
}

.tag.review {
    background: #f59e0b;
    color: #0b1223;
}

.tag.danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.action-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.grid-section {
    margin-top: 40px;
    padding: 36px 32px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.section__header {
    max-width: 640px;
    margin-bottom: 24px;
}

.section__header h2 {
    margin: 10px 0;
    font-size: 1.8rem;
}

.section__header .lede {
    color: var(--muted);
}

.role-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.panel {
    border: 1px solid var(--line);
    background: #fdfdfd;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 10px;
    border-radius: var(--radius);
}

.panel.wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.panel.muted {
    background: #0f172a;
    color: #e5e7eb;
    border-color: #1f2937;
    border-radius: var(--radius);
}

.board {
    margin-top: 32px;
    padding: 26px 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-radius: var(--radius);
}

.board__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.board__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.board__card {
    border: 1px solid var(--line);
    background: #f8fafc;
    padding: 16px;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 10px;
    border-radius: var(--radius);
}

.board__card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.board__thumb {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
}

.board__thumb img,
.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 220ms ease;
}

.board__card:hover .board__thumb img {
    transform: scale(1.04);
}

.thumb {
    width: 90px;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #e2e8f0;
    border: 1px solid var(--line);
}

.board__meta {
    color: var(--muted);
    font-size: 0.95rem;
}

.board__content {
    display: grid;
    gap: 8px;
}

.board__chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.board__card h3 a {
    color: var(--text);
    text-decoration: none;
}

.board__card h3 a:hover {
    color: var(--accent-strong);
}

.pill-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.empty {
    border: 1px dashed var(--line);
    padding: 14px;
    background: #f9fafb;
    color: var(--muted);
    text-align: center;
    border-radius: var(--radius-sm);
}

.panel__eyebrow {
    letter-spacing: 0.4px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-strong);
}

.panel__text {
    color: var(--muted);
}

.panel.muted .panel__text {
    color: #cbd5e1;
}

.panel__list {
    list-style: square;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 6px;
}

.panel.muted .panel__list {
    color: #cbd5e1;
}

.process {
    margin-top: 32px;
    padding: 32px;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    background: #fdfdfd;
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius);
}

.step__icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fffaf3;
    display: grid;
    place-items: center;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
    border-radius: 8px;
}

.cta-panels {
    margin-top: 32px;
    display: grid;
    gap: 16px;
}

.cta-inline {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer {
    margin-top: 32px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    background: linear-gradient(120deg, rgba(255, 138, 91, 0.14), rgba(255, 203, 71, 0.18));
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
    border-radius: var(--radius);
}

.footer a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.footer__links {
    display: flex;
    gap: 16px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.section-header .lede {
    max-width: 680px;
}

.dashboard {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: var(--radius);
}

.card.wide {
    gap: 14px;
}

.card.wide.two-columns .split {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 14px;
}

.card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.card__eyebrow {
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.card__title {
    font-size: 1.3rem;
    margin-top: 6px;
}

.card__hint {
    color: var(--muted);
}

.card__label {
    font-weight: 700;
}

.card__value {
    font-size: 2rem;
    font-weight: 800;
}

.insight-panel {
    border: 1px dashed var(--line);
    padding: 14px;
    background: #f9fafb;
    border-radius: var(--radius-sm);
}

.insight-list {
    margin: 8px 0 12px;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.empty-state {
    border: 1px dashed var(--line);
    padding: 14px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    border-radius: var(--radius-sm);
}

.alert {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: #f8fafc;
    color: var(--text-strong);
    margin-top: 12px;
}

.alert.warning {
    background: #fff7ed;
    border-color: #fdba74;
    color: #9a3412;
}

.stat-card {
    min-height: 140px;
}

.tag.info {
    background: #e0f2fe;
    color: #075985;
    border: 1px solid #38bdf8;
}

.page.narrow {
    max-width: 760px;
}

.form-card {
    padding: 24px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form label {
    font-weight: 700;
    margin-bottom: 6px;
}

.form input,
.form textarea,
.form select {
    width: 100%;
    padding: 12px 10px;
    border: 2px solid var(--line);
    background: #f9fafb;
    font-size: 1rem;
    border-radius: var(--radius-sm);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
}

.form-errors {
    border: 1px solid #f87171;
    background: rgba(248, 113, 113, 0.12);
    color: #7f1d1d;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 6px;
    font-weight: 700;
}

.form-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.form__row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form__row label {
    font-weight: 700;
}

.form__row input,
.form__row select {
    padding: 12px 10px;
    border: 2px solid var(--line);
    background: #f9fafb;
    font-size: 1rem;
    border-radius: var(--radius-sm);
}

.form__row.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.hero-admin-card .form-grid {
    margin-top: 14px;
}

.hero-admin__preview {
    width: 240px;
    height: 130px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background-image: linear-gradient(145deg, rgba(0, 58, 99, 0.65), rgba(0, 150, 199, 0.35)), var(--hero-preview);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-soft);
}

.form__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-page {
    max-width: 760px;
}

.auth-card {
    margin-top: 10px;
    padding: 26px;
}

.auth-card .form__row input {
    width: 100%;
}

.flash-container {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flash {
    min-width: 280px;
    padding: 12px 16px;
    border: 2px solid var(--line);
    background: #0f172a;
    color: #e2e8f0;
    box-shadow: var(--shadow-soft);
    border-radius: var(--radius-sm);
}

.flash--success {
    border-color: var(--accent);
    color: #0b2a22;
    background: #c5f6e4;
}

.link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-strong);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.link:hover {
    border-color: var(--accent-strong);
}

.detail {
    background: var(--surface);
    border: 2px solid var(--line);
    box-shadow: var(--shadow);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-radius: var(--radius);
}

.detail__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.detail__media {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: #e2e8f0;
    box-shadow: var(--shadow-soft);
}

.detail__media img {
    width: 100%;
    display: block;
    height: 100%;
    object-fit: cover;
}

.detail__meta {
    color: var(--muted);
    margin-top: 6px;
}

.share-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 6px 0 4px;
}

.share-row span {
    font-weight: 700;
    color: var(--muted-strong);
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.share-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(0, 58, 99, 0.12);
}

.share-btn--whatsapp {
    background: #e8f8f0;
    color: #0a8f5a;
    border-color: rgba(10, 143, 90, 0.2);
}

.share-btn--facebook {
    background: #ecf2ff;
    color: #2d4fbe;
    border-color: rgba(45, 79, 190, 0.2);
}

.share-btn--x {
    background: #f4f4f5;
    color: #111827;
    border-color: rgba(17, 24, 39, 0.2);
}

.share-btn--copy {
    background: #f0f4f8;
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.18);
}

.detail__layout {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
    gap: 16px;
    align-items: start;
}

.detail__stack {
    display: grid;
    gap: 12px;
}

.detail__card {
    border: 1px solid var(--line);
    padding: 16px;
    background: #f9fafb;
    box-shadow: var(--shadow-soft);
    display: grid;
    gap: 10px;
    border-radius: var(--radius);
}

.detail__card h2 {
    font-size: 1.1rem;
}

.detail__description {
    margin-top: 14px;
}

.placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background: repeating-linear-gradient(135deg, rgba(13, 148, 136, 0.08), rgba(13, 148, 136, 0.08) 12px, rgba(203, 213, 225, 0.2) 12px, rgba(203, 213, 225, 0.2) 24px);
    color: var(--accent-strong);
    font-weight: 700;
    text-transform: uppercase;
}

.placeholder.small {
    font-size: 0.8rem;
}

.contact-list {
    list-style: none;
    display: grid;
    gap: 8px;
}

.contact-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 10px;
    border-radius: var(--radius-sm);
}

.contact-list .label {
    font-weight: 700;
    color: #111827;
}

.detail__footer {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px dashed var(--line);
}

@media (max-width: 900px) {
    .topbar {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .panel.wide {
        flex-direction: column;
        align-items: flex-start;
    }

    .board__header,
    .board__card header {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail__layout {
        grid-template-columns: 1fr;
    }
}

/* Animal type manager */
.inline-form { display:flex; gap:12px; align-items:flex-end; margin:12px 0; flex-wrap:wrap; }
.inline-form label { font-weight:600; color:var(--ink-700); }
.inline-form input { padding:10px 12px; border-radius:6px; border:1px solid var(--ink-200); min-width:220px; }
.tag-grid { display:flex; flex-direction:column; gap:10px; }
.tag-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; border:1px solid var(--ink-100); border-radius:6px; background:var(--surface); box-shadow:var(--shadow-soft); }
.table { display:grid; gap:6px; }
.table__row { display:grid; grid-template-columns:2fr 1fr; gap:12px; padding:10px 12px; border-radius:6px; background:#f5f7fb; align-items:center; }
.table__row--head { background:transparent; font-weight:700; color:var(--ink-600); }
