:root {
    --bg: #fffdf9;
    --surface: #ffffff;
    --text: #1e293b;
    --text-dim: #475569;
    --border: #e2e8f0;

    /* Paleta alegre de mascotas */
    --coral: #ff6b4a;
    --coral-dark: #e85332;
    --coral-soft: #fff1ed;

    --violet: #7c3aed;
    --violet-dark: #6d28d9;
    --violet-soft: #f5f3ff;

    --mint: #10b981;
    --mint-dark: #059669;
    --mint-soft: #ecfdf5;

    --sun: #f59e0b;
    --sun-dark: #d97706;
    --sun-soft: #fffbeb;

    --sky: #0ea5e9;
    --sky-soft: #f0f9ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 10% 10%, rgba(255, 107, 74, 0.08) 0%, transparent 28%),
        radial-gradient(circle at 90% 18%, rgba(124, 58, 237, 0.08) 0%, transparent 30%),
        radial-gradient(circle at 80% 75%, rgba(16, 185, 129, 0.08) 0%, transparent 32%);
    color: var(--text);
    line-height: 1.6;
}

.container {
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER Y MENÚ */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid #ffedd5;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
    position: relative;
}

.brand-logo {
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--coral), var(--sun));
    color: #ffffff;
    font-size: 1.15rem;
    box-shadow: 0 6px 14px rgba(255, 107, 74, 0.28);
    transform: rotate(-4deg);
}

.highlight {
    color: var(--coral);
}

/* MENÚ ESCRITORIO */
.main-nav {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    background: var(--coral-soft);
    color: var(--coral-dark);
}

/* CONTROLES HAMBURGUESA (OCULTOS EN PC) */
.menu-checkbox {
    display: none;
}

.menu-btn {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
    content: '';
    display: block;
    background: var(--text);
    height: 3px;
    width: 24px;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-icon::before {
    transform: translateY(-7px);
}

.hamburger-icon::after {
    transform: translateY(4px);
}

/* PORTADA VIBRANTE */
.hero {
    background: linear-gradient(135deg, #ff6b4a 0%, #f97316 48%, #7c3aed 100%);
    color: #ffffff;
    padding: 2.75rem 0;
    border-bottom-left-radius: 2rem;
    border-bottom-right-radius: 2rem;
    box-shadow: 0 14px 32px rgba(124, 58, 237, 0.16);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 2rem;
    align-items: center;
}

.badge-hero {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: #fffbeb;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 0.35rem 0.95rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    margin-bottom: 0.9rem;
}

.hero h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.35rem;
    line-height: 1.14;
    margin-bottom: 0.9rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.hero p {
    color: rgba(255, 255, 255, 0.94);
    font-size: 1.02rem;
    margin-bottom: 1.4rem;
    max-width: 580px;
}

.hero-categories {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.cat-pill {
    background: #ffffff;
    color: var(--text);
    text-decoration: none;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cat-pill:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
}

.hero-visual-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* MARCO Y FOTO CORREGIDA PARA MOSTRAR PERRO Y GATO ENTEROS */
.hero-photo-frame {
    width: 100%;
    max-width: 320px;
    aspect-ratio: 4 / 5; /* Formato vertical natural de la foto */
    margin: 0 auto;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 3.5px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
    background: rgba(255, 255, 255, 0.14);
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom; /* Mantiene enfocados al perrito y gatito abajo sin cortarlos */
    display: block;
}

.hero-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
}

.mini-highlight-card {
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 1.15rem;
    padding: 1rem 1.05rem;
}

.mini-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    background: #fde047;
    color: #1e293b;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-bottom: 0.45rem;
}

.mini-tag.warm {
    background: #6ee7b7;
    color: #064e3b;
}

.mini-highlight-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.02rem;
    margin-bottom: 0.3rem;
}

.mini-highlight-card p {
    font-size: 0.85rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0.55rem;
}

.link-inline {
    color: #fde047;
    font-weight: 800;
    font-size: 0.85rem;
    text-decoration: none;
}

.link-inline:hover {
    text-decoration: underline;
}

/* AVISO SUPERIOR */
.disclaimer-top {
    background: var(--sky-soft);
    border: 2px dashed #7dd3fc;
    color: #0369a1;
    padding: 0.95rem 1.25rem;
    border-radius: 1rem;
    margin: 1.75rem 0 0.5rem;
    font-size: 0.88rem;
}

/* SECCIONES */
.main-content {
    padding: 2rem 0 4rem;
}

.article-section {
    scroll-margin-top: 90px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.category-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.55rem;
}

#gatos .category-tag { background: var(--violet-soft); color: var(--violet-dark); }
#perros .category-tag { background: var(--coral-soft); color: var(--coral-dark); }
#higiene .category-tag { background: var(--mint-soft); color: var(--mint-dark); }
#guias .category-tag { background: var(--sun-soft); color: var(--sun-dark); }

.article-section h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    margin-bottom: 0.6rem;
}

.article-intro {
    color: var(--text-dim);
    font-size: 1rem;
    max-width: 840px;
}

/* TABLA COLORIDA */
.table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0 1.75rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border);
}

.comparison-table th,
.comparison-table td {
    padding: 0.9rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

#gatos .comparison-table th { background: var(--violet-soft); color: var(--violet-dark); }
#perros .comparison-table th { background: var(--coral-soft); color: var(--coral-dark); }
#higiene .comparison-table th { background: var(--mint-soft); color: var(--mint-dark); }

.comparison-table tr:hover td { background: #fafafa; }

/* GRID DE 3 PRODUCTOS */
.products-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
}

.product-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
}

.product-card.featured { border: 2px solid var(--coral); }

.card-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fffbeb;
    border-bottom: 1px solid #fef3c7;
    flex-wrap: wrap;
}

.badge-pick {
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.badge-pick.best { background: #ffedd5; color: var(--coral-dark); }
.badge-pick.compact { background: #e0f2fe; color: #0284c7; }
.badge-pick.pro { background: #ede9fe; color: var(--violet-dark); }

.spec-pill {
    font-size: 0.76rem;
    color: var(--text-dim);
    font-weight: 700;
}

.product-visual {
    background: linear-gradient(135deg, #fff1ed 0%, #f5f3ff 50%, #ecfdf5 100%);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: var(--text);
    font-weight: 700;
    font-size: 0.85rem;
    border-bottom: 1px dashed #cbd5e1;
}

.product-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-body h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.15rem;
    margin-bottom: 0.55rem;
}

.problem-solved {
    color: var(--text-dim);
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

.pros-cons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pros {
    background: var(--mint-soft);
    padding: 0.75rem 0.85rem;
    border-radius: 0.8rem;
    border: 1px solid #a7f3d0;
}

.cons {
    background: #fff1f2;
    padding: 0.75rem 0.85rem;
    border-radius: 0.8rem;
    border: 1px solid #fecdd3;
}

.pros h4 { color: var(--mint-dark); font-size: 0.84rem; margin-bottom: 0.35rem; }
.cons h4 { color: #be123c; font-size: 0.84rem; margin-bottom: 0.35rem; }

.pros ul, .cons ul { padding-left: 1.1rem; font-size: 0.83rem; color: var(--text); }
.pros li, .cons li { margin-bottom: 0.25rem; }

.verdict {
    background: var(--sun-soft);
    border-left: 4px solid var(--sun);
    padding: 0.75rem 0.85rem;
    border-radius: 0.6rem;
    font-size: 0.84rem;
    color: #78350f;
    margin-bottom: 1.1rem;
}

.affiliate-box {
    margin-top: auto;
    text-align: center;
}

.btn-amazon {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    color: #0f172a;
    text-decoration: none;
    font-weight: 800;
    padding: 0.8rem 1rem;
    border-radius: 0.8rem;
    font-size: 0.9rem;
    box-shadow: 0 6px 14px rgba(245, 158, 11, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-amazon:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(245, 158, 11, 0.38);
}

/* GUÍAS */
.guides-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.guide-card {
    border-radius: 1.15rem;
    padding: 1.35rem;
    border: 1px solid var(--border);
}

.guide-card:nth-child(1) { background: var(--coral-soft); border-color: #fed7aa; }
.guide-card:nth-child(2) { background: var(--violet-soft); border-color: #ddd6fe; }
.guide-card:nth-child(3) { background: var(--mint-soft); border-color: #a7f3d0; }

.guide-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.guide-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

.section-divider {
    border: 0;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        #fed7aa 0 10px,
        transparent 10px 20px
    );
    margin: 2.25rem 0;
}

/* FOOTER */
.main-footer {
    background: #1e1b4b;
    color: #c7d2fe;
    padding-top: 3rem;
    border-top-left-radius: 2rem;
    border-top-right-radius: 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.4fr;
    gap: 2.25rem;
    padding-bottom: 2.5rem;
}

.footer-brand .logo-text {
    color: #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
}

.footer-brand p, .privacy-note {
    margin-top: 0.65rem;
    font-size: 0.86rem;
}

.footer-links h4, .footer-disclosure h4 {
    color: #fde047;
    font-size: 0.98rem;
    margin-bottom: 0.85rem;
}

.footer-links ul { list-style: none; }

.footer-links a {
    color: #e0e7ff;
    text-decoration: none;
    font-size: 0.88rem;
    display: inline-block;
    margin-bottom: 0.4rem;
}

.footer-links a:hover { color: #fde047; }

.footer-disclosure p {
    font-size: 0.86rem;
    line-height: 1.55;
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding: 1.35rem 0;
    text-align: center;
    font-size: 0.84rem;
    color: #a5b4fc;
}

/* MEDIAS QUERIES - MÓVIL Y HAMBURGUESA */
@media (max-width: 960px) {
    .hero-grid,
    .products-grid-3,
    .guides-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero h1 { font-size: 1.95rem; }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 1rem 1.5rem;
        gap: 0.6rem;
        border-bottom: 2px solid #ffedd5;
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        align-items: stretch;
    }

    .main-nav a {
        padding: 0.75rem 1rem;
        background: #f8fafc;
        border-radius: 0.75rem;
        text-align: center;
    }

    /* AL HACER CLIC EN LA HAMBURGUESA DESPLIEGA EL MENÚ */
    .menu-checkbox:checked ~ .main-nav {
        display: flex;
    }

    /* ANIMACIÓN ICONO HAMBURGUESA X */
    .menu-checkbox:checked ~ .menu-btn .hamburger-icon {
        background: transparent;
    }
    .menu-checkbox:checked ~ .menu-btn .hamburger-icon::before {
        transform: rotate(45deg);
    }
    .menu-checkbox:checked ~ .menu-btn .hamburger-icon::after {
        transform: rotate(-45deg) translateY(-2px);
    }

    .hero-showcase {
        grid-template-columns: 1fr;
    }

    .hero-photo-frame {
        max-width: 290px;
        aspect-ratio: 4 / 5;
    }
}