:root {
    --bg: #fffaf3;
    --bg-soft: #f5ead7;
    --paper: #ffffff;
    --paper-strong: #fff5e6;
    --text: #2f241d;
    --muted: #6d5b50;
    --line: #e8d8c3;
    --primary: #c85e2f;
    --primary-dark: #974521;
    --accent: #1f6b57;
    --danger: #a33030;
    --shadow: 0 22px 60px rgba(76, 43, 26, 0.12);
    --radius: 24px;
    --radius-small: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(200, 94, 47, 0.12), transparent 30%),
        linear-gradient(180deg, #fffaf3 0%, #fff7ee 52%, #f8ecdf 100%);
    color: var(--text);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3 {
    margin: 0 0 0.75rem;
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.15;
}

p {
    margin: 0 0 1rem;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header,
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    background: rgba(255, 250, 243, 0.88);
    border-bottom: 1px solid rgba(232, 216, 195, 0.8);
}

.site-header__inner,
.admin-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.brand {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.brand--small {
    font-size: 1rem;
}

.site-nav,
.admin-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    padding: 0.9rem 1.4rem;
    box-shadow: 0 14px 30px rgba(200, 94, 47, 0.22);
}

.button--ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
}

.button--danger {
    background: var(--danger);
    box-shadow: none;
}

.button--small {
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
}

.button--disabled {
    opacity: 0.55;
    pointer-events: none;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.button-row--tight {
    margin-top: 1rem;
}

.hero {
    padding: 5rem 0 3rem;
}

.hero--home {
    min-height: 72vh;
    display: flex;
    align-items: center;
}

.hero-grid,
.content-grid,
.product-hero {
    display: grid;
    gap: 1.5rem;
}

.hero-grid,
.content-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.product-hero {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
}

.hero-panel,
.content-card,
.admin-card {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(232, 216, 195, 0.9);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.hero-panel {
    background: linear-gradient(165deg, rgba(31, 107, 87, 0.95), rgba(17, 74, 60, 0.92));
    color: #fff;
}

.lead {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 62ch;
}

.eyebrow,
.card-date,
.breadcrumbs {
    display: inline-block;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.breadcrumbs {
    margin-bottom: 0.75rem;
}

.section {
    padding: 1.5rem 0 3.5rem;
}

.section--soft {
    background: rgba(255, 255, 255, 0.35);
}

.section-head {
    margin-bottom: 1.5rem;
}

.section-head--inline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

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

.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(232, 216, 195, 0.95);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card img,
.product-hero__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #fff;
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}

.meta-list,
.stats-grid,
.spec-grid,
.chips,
.check-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.meta-list span,
.chip,
.spec-card,
.stat-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    padding: 0.8rem 1rem;
}

.chip {
    background: rgba(255, 255, 255, 0.85);
    font-weight: 700;
}

.stat-card,
.spec-card {
    display: flex;
    flex: 1 1 180px;
    flex-direction: column;
    gap: 0.35rem;
}

.stat-card--admin strong {
    font-size: 2rem;
}

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.6rem;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(31, 107, 87, 0.95), rgba(200, 94, 47, 0.92));
    color: #fff;
    box-shadow: var(--shadow);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0 5rem;
}

.site-footer {
    border-top: 1px solid var(--line);
}

.whatsapp-float {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 132px;
    padding: 0.95rem 1.2rem;
    border-radius: 999px;
    background: #1db954;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 18px 28px rgba(29, 185, 84, 0.28);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.form-span {
    grid-column: 1 / -1;
}

label {
    display: grid;
    gap: 0.45rem;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: #fff;
    color: var(--text);
    font: inherit;
    padding: 0.9rem 1rem;
}

textarea {
    resize: vertical;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 400;
}

.checkbox input {
    width: auto;
}

.helper-text {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 400;
}

.alert {
    margin-bottom: 1rem;
    border-radius: var(--radius-small);
    padding: 0.9rem 1rem;
}

.alert--success {
    background: rgba(31, 107, 87, 0.12);
    border: 1px solid rgba(31, 107, 87, 0.25);
}

.alert--danger {
    background: rgba(163, 48, 48, 0.12);
    border: 1px solid rgba(163, 48, 48, 0.25);
}

.admin-body {
    background: linear-gradient(180deg, #f8f1e7 0%, #fdf8f1 100%);
}

.admin-main {
    padding: 2rem 0 4rem;
}

.admin-card--auth {
    max-width: 620px;
    margin: 3rem auto 0;
}

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem 0.85rem;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pagination-simple {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.stack-title {
    margin-top: 1.5rem;
}

.stack-item {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
}

.content-card--article {
    font-size: 1.05rem;
}

.check-list {
    margin: 0;
    padding-left: 1rem;
    flex-direction: column;
}

@media (max-width: 768px) {
    .site-header__inner,
    .admin-topbar__inner,
    .section-head--inline,
    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .hero {
        padding-top: 4rem;
    }

    .container {
        width: min(100% - 1.25rem, 1120px);
    }

    .whatsapp-float {
        right: 0.75rem;
        bottom: 0.75rem;
        min-width: 118px;
    }
}
