/* Guía «Qué regalar cuando muere una mascota».
   Paleta y tipografía alineadas con la tienda (Nunito, Lora, #FDFBFA, #291D18, #D97706). */

:root {
    --bg: #FDFBFA;
    --card: #FFFFFF;
    --ink: #291D18;
    --text: #4A403A;
    --muted: #5C4F48;
    --accent: #9A3412;
    --accent-soft: #FFF7ED;
    --line: #EFE6DC;
    --green: #047857;
    --green-hover: #065F46;
    --radius: 20px;
    --shadow: 0 10px 30px -5px rgba(92, 64, 51, 0.08);
    --max: 42rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Nunito", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.75;
}

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

a {
    color: var(--accent);
    text-underline-offset: 0.18em;
}

a:hover {
    color: #7C2D12;
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 3px solid #291D18;
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: 12px;
    top: -40px;
    background: #291D18;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    z-index: 2000;
}

.skip:focus {
    top: 12px;
    outline: 3px solid #FCD34D;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.brand img {
    height: 34px;
    width: auto;
}

.header-link {
    display: inline-flex;
    align-items: center;
    border: 1px solid #E5E0DB;
    border-radius: 50px;
    padding: 8px 14px;
    background: #FDFBFA;
    color: #291D18;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.header-link:hover {
    color: #291D18;
    border-color: #D6CFC8;
}

.wrap {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
}

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin: 22px 0 8px;
    font-size: 0.86rem;
    color: var(--muted);
}

.crumbs a {
    color: var(--muted);
    font-weight: 700;
    text-decoration: none;
}

.crumbs a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.crumbs [aria-current="page"] {
    color: var(--ink);
    font-weight: 800;
}

h1,
h2,
h3 {
    font-family: "Lora", serif;
    color: var(--ink);
    line-height: 1.25;
    font-weight: 700;
}

h2,
h3,
#respuesta {
    scroll-margin-top: 76px;
}

h1 {
    font-size: clamp(1.85rem, 4.6vw, 2.55rem);
    margin: 8px 0 12px;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    margin: 2.4rem 0 0.8rem;
}

h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.4rem;
}

.kicker {
    display: inline-block;
    margin: 8px 0 0;
    background: var(--accent-soft);
    color: #9A3412;
    border: 1px solid #FED7AA;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.byline {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.byline strong {
    color: var(--ink);
}

.answer {
    background: #fff;
    border: 1.5px solid var(--line);
    border-left: 5px solid #D97706;
    border-radius: 16px;
    padding: 18px 18px 8px;
    box-shadow: var(--shadow);
    margin: 8px 0 22px;
}

.answer p {
    margin-top: 0;
}

.lead {
    font-size: 1.08rem;
}

.hero-figure {
    margin: 8px auto 28px;
    max-width: 420px;
}

.hero-figure img,
.gallery img,
.product-video {
    display: block;
    width: 100%;
    border-radius: 16px;
    border: 4px solid #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    background: #fff;
}

figcaption {
    margin-top: 8px;
    font-size: 0.86rem;
    color: var(--muted);
    text-align: center;
}

.toc {
    background: #FFFBF5;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px 16px 36px;
    margin: 0 0 8px;
}

.toc li {
    margin: 6px 0;
}

.toc a {
    font-weight: 700;
    text-decoration: none;
}

.toc a:hover {
    text-decoration: underline;
}

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 16px 0 8px;
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: var(--shadow);
}

.card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.card p {
    margin: 0;
}

.situaciones {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.situaciones th,
.situaciones td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
    overflow-wrap: break-word;
}

.situaciones thead th {
    background: var(--accent-soft);
    color: #7C2D12;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.situaciones tbody th {
    width: 38%;
    color: var(--ink);
    font-weight: 800;
}

.situaciones tr:last-child th,
.situaciones tr:last-child td {
    border-bottom: 0;
}

.gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 18px 0;
}

.note {
    background: #FFFBF5;
    border: 1px solid #FDE68A;
    border-radius: 16px;
    padding: 14px 16px;
    color: #5C4F48;
}

.product {
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    padding: 8px 18px 22px;
    box-shadow: var(--shadow);
    margin-top: 12px;
}

.price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
    margin: 8px 0 4px;
}

.price-now {
    font-family: "Lora", serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
}

.price-was {
    color: #6B7280;
    text-decoration: line-through;
    font-weight: 700;
}

.specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 4px;
    padding: 0;
    list-style: none;
}

.specs li {
    background: var(--accent-soft);
    color: #7C2D12;
    border-radius: 50px;
    padding: 4px 12px;
    font-size: 0.84rem;
    font-weight: 800;
}

.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 16px;
    padding: 16px 20px;
    background: var(--green);
    color: #fff;
    border-radius: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    box-shadow: 0 10px 25px -5px rgba(4, 120, 87, 0.35);
}

.cta:hover {
    background: var(--green-hover);
    color: #fff;
}

.cta-secondary {
    display: inline-block;
    margin-top: 12px;
    font-weight: 800;
}

.cita {
    margin: 22px 0 0;
    padding: 2px 0 2px 16px;
    border-left: 4px solid #D97706;
}

.cita p {
    margin: 0;
    color: var(--ink);
    font-family: "Lora", serif;
    font-size: 1.08rem;
    line-height: 1.5;
}

.cita footer {
    margin-top: 8px;
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--muted);
}

.faq {
    margin: 8px 0 28px;
}

.faq details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px 16px;
    margin: 0 0 10px;
}

.faq summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--ink);
}

.faq summary:hover {
    color: var(--accent);
}

.faq details p:last-child {
    margin-bottom: 0;
}

.footer {
    background: #291D18;
    color: #d1d5db;
    padding: 48px 20px 20px;
    margin-top: 48px;
}

.footer-grid {
    width: min(100% - 8px, 1100px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.footer .foot-title {
    font-family: "Lora", serif;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 12px;
}

.footer a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 700;
}

.footer a:hover {
    color: #FCD34D;
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer li {
    margin: 0 0 8px;
}

.footer-bottom {
    width: min(100% - 8px, 1100px);
    margin: 28px auto 0;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    color: #9ca3af;
    font-size: 0.88rem;
}

@media (min-width: 720px) {
    .cards {
        grid-template-columns: 1fr 1fr;
    }

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

    .cta {
        width: auto;
        min-width: 280px;
    }
}

@media (max-width: 700px) {
    .situaciones thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    .situaciones,
    .situaciones tbody,
    .situaciones tr,
    .situaciones th,
    .situaciones td {
        display: block;
        width: auto;
    }

    .situaciones tr {
        border-bottom: 1px solid var(--line);
    }

    .situaciones tr:last-child {
        border-bottom: 0;
    }

    .situaciones tbody th,
    .situaciones td {
        border-bottom: 0;
    }

    .situaciones tbody th {
        width: 100%;
        padding-bottom: 0;
    }

    .situaciones td {
        padding-top: 2px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .header-link {
        padding: 6px 10px;
        font-size: 0.68rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
