﻿/* =========================
   Tipografía base
   ========================= */
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap");

/* =========================
   Reset / base global
   ========================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================
   Variables del tema
   ========================= */
:root {
    --principal: #19a274;
    --secundario: #2572b8;
    --blanco: white;
    --pinclaro: #5bbd9b;
    --seclaro: #1ca0db;
    --panel-bg: linear-gradient(135deg, rgba(221, 245, 235, 0.96), rgba(235, 250, 244, 0.92));
    --panel-border: rgba(25, 162, 116, 0.18);
    --panel-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
    --panel-radius: 20px;
    --header-offset: 140px;
    --header-gap: 16px;
    --panel-solid: #e4f4ed;
    --container-width: 960px;
    --container-pad: 24px;
    --container-gap: 48px;
}

/* =========================
   Base de documento
   ========================= */
html,
body {
    font-family: "Manrope", sans-serif;
    color: var(--secundario);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html {
    scroll-behavior: smooth;
}

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

/* Bloqueos de scroll por UI */
body.menu-open {
    overflow: hidden;
}

body.modal-open {
    overflow: hidden;
}

body.admin-login-open {
    overflow: hidden;
}

body.interest-open {
    overflow: hidden;
}

/* Offset para anclas */
section[id] {
    scroll-margin-top: calc(var(--header-offset) + 50px);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

/* =========================
   Header / navegación
   ========================= */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    position: fixed;
    top: calc(0% + 50px);
    width: min(var(--container-width), calc(100% - var(--container-gap)));
    left: 50%;
    transform: translateX(-50%);
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 60px;
    padding: 0 50px;
    transition: height 0.2s ease, top 0.2s ease, padding 0.2s ease, box-shadow 0.2s ease,
        filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
    z-index: 10;
}

.contlogo {
    display: flex;
    height: auto;
    transition: height 0.2s ease;
}

.contlogo img {
    display: flex;
    height: clamp(36px, 6vw, 64px);
    width: auto;
}

/* Estado compacto del header */
header.header--compact {
    height: 64px;
    top: 25px;
    padding: 6px 4%;
    background: var(--panel-solid);
    border-color: rgba(25, 162, 116, 0.28);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

header.header--compact .contlogo {
    height: auto;
    margin: 6px 0;
    padding: 4px 0;
}

header.header--compact .contlogo img {
    height: clamp(26px, 4vw, 44px);
}

header ul {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 70%;
    gap: 16px;
}

header ul li {
    list-style: none;
}

/* Botón hamburguesa */
.nav-toggle {
    display: none;
    background: rgba(37, 114, 184, 0.08);
    border: 1px solid rgba(37, 114, 184, 0.2);
    padding: 6px;
    flex-direction: column;
    gap: 4px;
    width: 40px;
    height: 36px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(37, 114, 184, 0.16);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--secundario);
    border-radius: 2px;
    margin: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(37, 114, 184, 0.2);
}

/* Links del menú */
header ul li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    font-weight: 500;
    letter-spacing: 0.15px;
    color: var(--secundario);
    text-decoration: none;
    background-color: transparent;
    position: relative;
    overflow: hidden;
    transition: color 0.2s ease;
}

/* =========================
   Dropdown de catálogo
   ========================= */
.nav-dropdown details {
    position: relative;
}

.nav-dropdown summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    font-weight: 500;
    letter-spacing: 0.15px;
    color: var(--secundario);
    cursor: pointer;
    border-radius: 999px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown summary::after {
    content: "\25BE";
    font-size: 0.7rem;
}

.nav-dropdown details[open] summary {
    color: var(--seclaro);
    background: rgba(37, 114, 184, 0.08);
}

.nav-dropdown__panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 320px;
    max-width: 420px;
    max-height: 60vh;
    overflow: auto;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
    display: grid;
    gap: 12px;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 30;
    backdrop-filter: blur(6px);
}

.nav-dropdown details[open] .nav-dropdown__panel {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

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

.nav-dropdown__group--animals {
    display: none;
}

.nav-dropdown__group span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-dropdown__group a {
    text-decoration: none;
    color: var(--secundario);
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 10px;
    background: rgba(37, 114, 184, 0.06);
    border: 1px solid rgba(37, 114, 184, 0.15);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-dropdown__group a:hover {
    background: rgba(37, 114, 184, 0.12);
    transform: translateY(-1px);
}

.nav-dropdown__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
}

/* Subrayado animado en links */
header ul li a::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 2px;
    height: 2px;
    background-color: var(--secundario);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

header ul li a:hover {
    color: var(--seclaro);
}

header ul li a:hover::after {
    background-color: var(--seclaro);
    transform: scaleX(1);
}

header ul li a:focus-visible {
    outline: 3px solid var(--seclaro);
    outline-offset: 3px;
}

.btn:focus-visible,
.chip-btn:focus-visible,
.app-chip:focus-visible,
.nav-toggle:focus-visible,
.animal-btn:focus-visible,
.side-menu__close:focus-visible,
.side-menu__all:focus-visible,
.catalog-btn:focus-visible,
.catalog-item:focus-visible,
.catalog-choice:focus-visible,
.nav-dropdown summary:focus-visible {
    outline: 3px solid var(--seclaro);
    outline-offset: 3px;
}

/* =========================
   Contenido principal
   ========================= */
main {
    position: relative;
    z-index: 1;
    transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

/* Aparición suave con scroll */
.reveal {
    opacity: 1;
    transform: translateY(0);
}

body.reveal-animate .reveal {
    opacity: 0;
    transform: translateY(var(--reveal-distance, 24px));
    transition: opacity 0.25s ease, transform 0.25s ease;
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

body.reveal-animate .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

body.modal-open header,
body.modal-open main {
    filter: blur(8px) saturate(0.85);
    opacity: 0.55;
    transform: scale(0.995);
    pointer-events: none;
}

body.admin-login-open header,
body.admin-login-open main {
    filter: blur(8px) saturate(0.85);
    opacity: 0.55;
    transform: scale(0.995);
    pointer-events: none;
}

/* Fondo fijo de portada */
main .portada {
    background: url(img/fondoia2.png) center / cover no-repeat;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

@media (max-width: 900px) {
    main .portada {
        position: fixed;
    }
}

/* =========================
   Secciones generales
   ========================= */
.content {
    min-height: 60vh;
    background: transparent;
    width: min(var(--container-width), calc(100% - var(--container-gap)));
    max-width: none;
    margin: 0 auto;
    padding: 40px 0 80px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.content .card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius);
    padding: 24px 28px;
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(6px);
}

.content h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 8px;
}

.content h2 {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    margin-bottom: 8px;
}

.content p {
    font-size: 1rem;
    line-height: 1.6;
}

.content ul {
    padding-left: 20px;
    margin-top: 8px;
}

.content li {
    margin-bottom: 6px;
    line-height: 1.5;
}

/* =========================
   Contacto
   ========================= */
.contact-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 20px;
}

.contact-card {
    background: rgba(37, 114, 184, 0.06);
    border: 1px solid rgba(37, 114, 184, 0.16);
    border-radius: 18px;
    padding: 20px 22px;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
    min-width: 0;
}

.contact-card h3 {
    margin-bottom: 8px;
}

.contact-name {
    font-weight: 700;
    font-size: 1.05rem;
}

.contact-role {
    opacity: 0.8;
    margin-bottom: 10px;
}

.contact-list p {
    margin-bottom: 6px;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 10px;
    row-gap: 2px;
    align-items: start;
}

.contact-list strong {
    white-space: nowrap;
}

.contact-list a {
    color: var(--secundario);
    text-decoration: none;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-list a:hover {
    text-decoration: underline;
}

.contact-card--social {
    grid-column: 1 / -1;
}

.contact-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(37, 114, 184, 0.22);
    background: rgba(255, 255, 255, 0.8);
}

.contact-social__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
    letter-spacing: 0.2px;
}

.contact-social--wa .contact-social__icon {
    background: #25d366;
}

.contact-social--fb .contact-social__icon {
    background: #1877f2;
    font-size: 0.95rem;
}

.contact-social--ig .contact-social__icon {
    background: linear-gradient(45deg, #f58529, #dd2a7b 55%, #8134af);
}

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

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

.contact-fields label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.contact-fields input,
.contact-fields select {
    border-radius: 10px;
    border: 1px solid rgba(37, 114, 184, 0.2);
    padding: 8px 10px;
    font-family: inherit;
}

.contact-fields .btn {
    align-self: flex-start;
}

.privacy-note {
    font-size: 0.82rem;
    line-height: 1.45;
    opacity: 0.78;
}

.contact-fields .privacy-note,
.seller-form .privacy-note {
    grid-column: 1 / -1;
}

.form-status {
    grid-column: 1 / -1;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 4px;
}

.form-status--ok {
    color: var(--principal);
}

.form-status--error {
    color: #c0392b;
}

.section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius);
    padding: 24px 28px;
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(6px);
}

/* Cards de beneficios */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.feature-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(6px);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background: radial-gradient(circle at 30% 30%, #7bd7b8, #1a8e67);
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.7);
}

/* Chips de aplicaciones */
.applications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.applications-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
}

.applications-group h3 {
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--secundario);
}

.benefits-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

/* =========================
   Footer
   ========================= */
.site-footer {
    margin-top: 40px;
    padding: 40px 0 26px;
    background: var(--panel-bg);
    border-top: 1px solid var(--panel-border);
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.site-footer__inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) minmax(200px, 1fr) minmax(200px, 1fr);
    gap: 24px 32px;
    align-items: start;
}

.site-footer__brand p {
    margin-top: 10px;
    line-height: 1.6;
    max-width: 28ch;
}

.site-footer__logo {
    width: clamp(120px, 20vw, 160px);
    height: auto;
}

.site-footer__block h4 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.site-footer__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.site-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.site-footer__contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px 18px;
}

.site-footer__contact-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(37, 114, 184, 0.06);
    border: 1px solid rgba(37, 114, 184, 0.14);
}

.site-footer__contact-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.75;
}

.site-footer__contact-line {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    row-gap: 2px;
    align-items: start;
    font-size: 0.92rem;
}

.site-footer__contact-line strong {
    white-space: nowrap;
}

.site-footer__contact-web {
    margin-top: 2px;
}

.site-footer p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.site-footer a {
    color: var(--secundario);
    text-decoration: none;
    font-weight: 600;
    overflow-wrap: anywhere;
    word-break: break-word;
}

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

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(37, 114, 184, 0.16);
    font-size: 0.9rem;
}

.site-footer__bottom a {
    font-weight: 600;
}

/* =========================
   Mi interés
   ========================= */
.interest-section {
    gap: 14px;
}

.interest-empty {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(37, 114, 184, 0.06);
    border: 1px solid rgba(37, 114, 184, 0.16);
}

.interest-list {
    display: grid;
    gap: 16px;
}

.interest-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(37, 114, 184, 0.16);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.interest-thumb {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    border: 1px solid rgba(37, 114, 184, 0.12);
    background: rgba(255, 255, 255, 0.6);
}

.interest-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.interest-name {
    font-weight: 700;
}

.interest-line {
    font-size: 0.9rem;
    opacity: 0.8;
}

.interest-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.interest-clear {
    align-self: flex-start;
}

/* =========================
   Botón flotante (Mi interés)
   ========================= */
.floating-interest {
    position: fixed;
    right: 24px;
    bottom: 24px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    color: var(--secundario);
    text-decoration: none;
    font-weight: 700;
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(6px);
    z-index: 20;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.floating-interest:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
    background: linear-gradient(135deg, rgba(221, 245, 235, 0.98), rgba(235, 250, 244, 0.96));
}

.floating-interest__count {
    min-width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 114, 184, 0.12);
    border: 1px solid rgba(37, 114, 184, 0.25);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secundario);
}

@media (max-width: 700px) {
    .floating-interest {
        right: 16px;
        bottom: 16px;
        padding: 10px 14px;
    }
}

.app-chip {
    background: rgba(37, 114, 184, 0.08);
    border: 1px solid rgba(37, 114, 184, 0.25);
    border-radius: 999px;
    padding: 10px 14px;
    text-align: center;
    font-weight: 600;
    color: var(--secundario);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.app-chip:hover {
    background: rgba(37, 114, 184, 0.14);
    box-shadow: 0 10px 20px rgba(37, 114, 184, 0.2);
    transform: translateY(-1px);
}

.cta-row {
    display: flex;
    justify-content: center;
}

/* =========================
   Hero principal
   ========================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-offset) + var(--header-gap)) 0 40px;
    box-sizing: border-box;
}

.hero__inner {
    width: min(var(--container-width), calc(100% - var(--container-gap)));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: center;
}

.hero__content {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 32px 36px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
}

.hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: var(--secundario);
    margin-bottom: 10px;
    font-weight: 600;
}

.hero h1 {
    font-size: clamp(2.4rem, 4vw, 3.2rem);
    margin-bottom: 12px;
}

.hero p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.hero__actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__panel {
    width: min(100%, 360px);
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 20px 18px;
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.hero__panel-title {
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    color: var(--secundario);
    opacity: 0.9;
}

.hero__bag {
    width: min(100%, 260px);
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.25));
}

.hero__species {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* =========================
   Botones / chips
   ========================= */
[hidden] {
    display: none !important;
}

button,
[role="button"],
.btn,
.chip-btn,
.app-chip,
.catalog-btn,
.catalog-item,
.catalog-choice,
.animal-btn,
.seller-state,
.nav-toggle,
.side-menu__close,
.side-menu__all,
.seller-modal__close,
.nav-dropdown summary {
    cursor: pointer;
}

.chip-btn {
    border: 1px solid rgba(37, 114, 184, 0.35);
    background: rgba(37, 114, 184, 0.08);
    color: var(--secundario);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.chip-btn:hover {
    background: rgba(37, 114, 184, 0.14);
    box-shadow: 0 8px 14px rgba(37, 114, 184, 0.18);
    transform: translateY(-1px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: 999px;
    background-color: rgba(37, 114, 184, 0.12);
    color: var(--secundario);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 10px 18px rgba(37, 114, 184, 0.18);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(37, 114, 184, 0.24);
}

.btn.btn--ghost {
    background-color: transparent;
    color: var(--secundario);
    border: 1px solid rgba(37, 114, 184, 0.4);
    box-shadow: none;
}

/* =========================
   Página de animal
   ========================= */
.animal-page {
    background-image: linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)), url("img/fondoia2.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: calc(var(--header-offset) + 16px);
}

.animal-header {
    width: min(var(--container-width), calc(100% - var(--container-gap)));
    margin: 20px auto 0;
    padding: 12px var(--container-pad);
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--panel-shadow);
}

.page-hero {
    width: min(var(--container-width), calc(100% - var(--container-gap)));
    margin: 16px auto 0;
    padding: 24px;
    border-radius: 26px;
    border: 1px solid rgba(25, 162, 116, 0.2);
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(6px);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    align-items: center;
    gap: 16px;
    box-shadow: var(--panel-shadow);
}

.page-hero__content h2 {
    margin-bottom: 8px;
}

.page-hero__eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    margin-bottom: 8px;
}

.page-hero__image {
    width: min(100%, 220px);
    justify-self: end;
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.2));
}

/* =========================
   Beneficios (Producción / Mascotas)
   ========================= */
.benefits-hero {
    position: relative;
    overflow: hidden;
}

.benefits-hero--production {
    background: linear-gradient(135deg, rgba(221, 245, 235, 0.95), rgba(225, 242, 255, 0.9));
    border-color: rgba(25, 162, 116, 0.28);
}

.benefits-hero--pets {
    background: linear-gradient(135deg, rgba(235, 246, 255, 0.95), rgba(236, 250, 242, 0.9));
    border-color: rgba(37, 114, 184, 0.2);
}

.benefits-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.benefits-tag {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(37, 114, 184, 0.1);
    border: 1px solid rgba(37, 114, 184, 0.2);
    font-size: 0.85rem;
    font-weight: 600;
}

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

.benefit-card {
    background: rgba(37, 114, 184, 0.06);
    border: 1px solid rgba(37, 114, 184, 0.16);
    border-radius: 18px;
    padding: 16px 18px;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.benefit-card h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.benefit-card p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.benefits-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    align-items: start;
}

.benefits-list {
    list-style: none;
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(37, 114, 184, 0.06);
    border: 1px solid rgba(37, 114, 184, 0.14);
    font-size: 0.95rem;
    line-height: 1.5;
}

.benefits-callout {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(25, 162, 116, 0.08);
    border: 1px solid rgba(25, 162, 116, 0.2);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.benefits-note {
    font-size: 0.88rem;
    opacity: 0.8;
}

.benefits-cta {
    text-align: center;
    align-items: center;
}

.benefits-page .catalog-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.benefits-gallery {
    display: grid;
    gap: 16px;
}

.benefits-gallery__intro h2 {
    margin-bottom: 8px;
}

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

.benefits-media {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(37, 114, 184, 0.16);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

.benefits-media img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.benefits-media__content {
    padding: 14px 16px 16px;
}

.benefits-media__content h3 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.benefits-media__content p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.animal-header .contlogo img {
    height: clamp(36px, 6vw, 56px);
}

.animal-back {
    text-decoration: none;
    color: var(--secundario);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37, 114, 184, 0.08);
    border: 1px solid rgba(37, 114, 184, 0.2);
}

.animal-main {
    width: min(var(--container-width), calc(100% - var(--container-gap)));
    margin: 20px auto 60px;
    padding: 0;
}

.animal-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(6px);
}

.animal-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 220px);
    gap: 20px;
    align-items: center;
}

.animal-photo {
    width: 100%;
    max-width: 220px;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(37, 114, 184, 0.18);
    background: rgba(255, 255, 255, 0.6);
    justify-self: end;
    filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.2));
}

.animal-category {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    margin-bottom: 10px;
    color: var(--secundario);
}

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

.animal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 12px 0 20px;
}

.detail-block {
    padding: 14px 16px;
    background: rgba(37, 114, 184, 0.06);
    border: 1px solid rgba(37, 114, 184, 0.16);
    border-radius: 16px;
}

.detail-block h2 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.detail-block ul {
    padding-left: 18px;
    margin: 0;
}

.detail-block li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.meta-block {
    padding: 12px 14px;
    background: rgba(37, 114, 184, 0.08);
    border: 1px solid rgba(37, 114, 184, 0.18);
    border-radius: 14px;
}

.meta-label {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 6px;
    opacity: 0.8;
}

.animal-shipping h2 {
    margin-bottom: 8px;
}

.animal-shipping ul {
    padding-left: 18px;
    margin: 10px 0 16px;
}

.animal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
}

.seller-contact {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.seller-contact h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.seller-product {
    font-size: 0.95rem;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(37, 114, 184, 0.08);
    border: 1px solid rgba(37, 114, 184, 0.16);
}

.seller-alt-title {
    margin-top: 16px;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secundario);
}

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

.choice-btn {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(37, 114, 184, 0.35);
    background: rgba(37, 114, 184, 0.08);
    color: var(--secundario);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.choice-btn:hover {
    background: rgba(37, 114, 184, 0.14);
    box-shadow: 0 8px 14px rgba(37, 114, 184, 0.18);
    transform: translateY(-1px);
}

.choice-btn--active {
    background: rgba(37, 114, 184, 0.18);
    border-color: rgba(37, 114, 184, 0.45);
}

.seller-panel {
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(37, 114, 184, 0.18);
    background: rgba(37, 114, 184, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

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

.seller-states span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(37, 114, 184, 0.1);
    border: 1px solid rgba(37, 114, 184, 0.2);
    font-weight: 600;
}

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

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

.seller-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.seller-form input,
.seller-form select,
.seller-form textarea {
    border-radius: 10px;
    border: 1px solid rgba(37, 114, 184, 0.2);
    padding: 8px 10px;
    font-family: inherit;
}

.seller-form textarea {
    resize: vertical;
}

.seller-form .full {
    grid-column: 1 / -1;
}

/* =========================
   Modal de vendedores
   ========================= */
.seller-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
}

.seller-modal[hidden] {
    display: none;
}

.seller-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 40, 35, 0.25);
    backdrop-filter: blur(10px) saturate(120%);
    transition: opacity 0.25s ease;
}

.seller-modal__content {
    position: relative;
    width: min(820px, 92vw);
    max-height: 85vh;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(230, 248, 241, 0.95), rgba(245, 252, 248, 0.92));
    border: 1px solid rgba(25, 162, 116, 0.22);
    border-radius: 24px;
    padding: 56px 24px 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
    z-index: 1;
    backdrop-filter: blur(6px);
    transform: translateY(12px) scale(0.98);
    opacity: 0;
    animation: seller-modal-in 0.28s ease forwards;
}

.seller-modal__scroll {
    max-height: calc(85vh - 80px);
    overflow: auto;
    padding-right: 6px;
}

.seller-modal__scroll::-webkit-scrollbar {
    width: 10px;
}

.seller-modal__scroll::-webkit-scrollbar-track {
    background: rgba(37, 114, 184, 0.08);
    border-radius: 999px;
}

.seller-modal__scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(37, 114, 184, 0.45), rgba(25, 162, 116, 0.45));
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.seller-modal__scroll {
    scrollbar-color: rgba(37, 114, 184, 0.5) rgba(37, 114, 184, 0.08);
    scrollbar-width: thin;
}

.seller-modal__scroll::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

.seller-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: rgba(37, 114, 184, 0.08);
    border: 1px solid rgba(37, 114, 184, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--secundario);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.seller-modal__close:hover {
    transform: rotate(6deg);
    background: rgba(37, 114, 184, 0.16);
}

.seller-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.seller-state {
    border: 1px solid rgba(37, 114, 184, 0.18);
    background: rgba(255, 255, 255, 0.85);
    padding: 12px 14px;
    border-radius: 14px;
    font-weight: 600;
    color: var(--secundario);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    text-align: left;
}

.seller-state:hover {
    background: rgba(37, 114, 184, 0.1);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.seller-state--active {
    background: rgba(37, 114, 184, 0.18);
    border-color: rgba(37, 114, 184, 0.35);
}

.seller-card {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(37, 114, 184, 0.16);
    background: rgba(255, 255, 255, 0.82);
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
}

.seller-card h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.seller-card p {
    font-size: 0.95rem;
}

/* Animación de entrada del modal */
@keyframes seller-modal-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.seller-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

/* =========================
   Modal de interés
   ========================= */
.interest-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 55;
}

.interest-modal[hidden] {
    display: none;
}

.interest-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 40, 35, 0.25);
    backdrop-filter: blur(8px) saturate(120%);
}

.interest-modal__content {
    position: relative;
    width: min(760px, 92vw);
    max-height: 85vh;
    overflow: hidden;
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 28px 28px 22px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
    z-index: 1;
    backdrop-filter: blur(6px);
}

.interest-modal__scroll {
    max-height: calc(85vh - 90px);
    overflow: auto;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.interest-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: rgba(37, 114, 184, 0.08);
    border: 1px solid rgba(37, 114, 184, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--secundario);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.interest-modal__close:hover {
    transform: rotate(6deg);
    background: rgba(37, 114, 184, 0.16);
}

.interest-modal h3 {
    margin-bottom: 6px;
}

.interest-modal p {
    margin-bottom: 0;
}

.interest-modal .interest-list {
    margin-top: 4px;
}

@media (max-width: 800px) {
    .seller-modal__content {
        max-height: 90vh;
        overflow: auto;
    }

    .seller-list {
        grid-template-columns: 1fr;
    }
}

/* =========================
   Catálogos
   ========================= */
.catalog-page {
    background-image: linear-gradient(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.78)), url("img/fondoia2.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    padding-top: calc(var(--header-offset) + 16px);
}

.catalog-main {
    width: min(var(--container-width), calc(100% - var(--container-gap)));
    margin: 20px auto 60px;
}

.catalog-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 28px;
    box-shadow: var(--panel-shadow);
}

.catalog-card h1 {
    margin-bottom: 8px;
}

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

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

.catalog-choice {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 16px;
    align-items: center;
    text-decoration: none;
    color: var(--secundario);
    padding: 16px;
    border-radius: 18px;
    background: rgba(37, 114, 184, 0.08);
    border: 1px solid rgba(37, 114, 184, 0.2);
    box-shadow: 0 12px 22px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.catalog-choice:hover {
    background: rgba(37, 114, 184, 0.14);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.catalog-choice__image {
    width: 120px;
    height: 120px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid rgba(37, 114, 184, 0.12);
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.6);
}

.catalog-choice__content h2 {
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.catalog-choice__content p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.catalog-section {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(37, 114, 184, 0.16);
    border-radius: 18px;
    padding: 16px;
}

.catalog-section h2 {
    margin-bottom: 12px;
}

.catalog-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

.catalog-btn {
    text-decoration: none;
    color: var(--secundario);
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(37, 114, 184, 0.08);
    border: 1px solid rgba(37, 114, 184, 0.2);
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.catalog-btn:hover {
    background: rgba(37, 114, 184, 0.14);
    box-shadow: 0 8px 16px rgba(37, 114, 184, 0.18);
    transform: translateY(-1px);
}

.catalog-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--secundario);
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(37, 114, 184, 0.08);
    border: 1px solid rgba(37, 114, 184, 0.2);
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.catalog-item:hover {
    background: rgba(37, 114, 184, 0.14);
    box-shadow: 0 8px 16px rgba(37, 114, 184, 0.18);
    transform: translateY(-1px);
}

.catalog-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(37, 114, 184, 0.12);
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.6);
}

.catalog-name {
    font-size: 0.95rem;
    line-height: 1.3;
}

/* =========================
   Administración
   ========================= */
.admin-main {
    width: min(var(--container-width), calc(100% - var(--container-gap)));
    margin: 20px auto 60px;
    padding-top: calc(var(--header-offset) + 12px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.admin-card {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    padding: 24px 28px;
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-login-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 60;
    padding: 24px;
}

.admin-login-modal[aria-hidden=\"true\"] {
    display: none;
}

.admin-login-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 40, 35, 0.25);
    backdrop-filter: blur(8px) saturate(120%);
}

.admin-login-card {
    position: relative;
    max-width: 480px;
    width: min(92vw, 480px);
    z-index: 1;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.admin-toggle {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.admin-login {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    max-width: 420px;
}

.admin-login input {
    border-radius: 10px;
    border: 1px solid rgba(37, 114, 184, 0.2);
    padding: 8px 10px;
    font-family: inherit;
}

.admin-login select {
    border-radius: 10px;
    border: 1px solid rgba(37, 114, 184, 0.2);
    padding: 8px 10px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.85);
}

.admin-note {
    font-size: 0.9rem;
    opacity: 0.8;
}

.admin-session-actions {
    display: flex;
    justify-content: flex-end;
}

.admin-controls label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
}

.admin-controls select {
    border-radius: 10px;
    border: 1px solid rgba(37, 114, 184, 0.2);
    padding: 8px 10px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.8);
}

.admin-zone-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.admin-zone-form input,
.admin-zone-form select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid rgba(37, 114, 184, 0.2);
    padding: 8px 10px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.85);
}

.admin-zone-form .btn {
    width: auto;
    min-width: 140px;
}

#jsonEditor {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(37, 114, 184, 0.2);
    padding: 10px 12px;
    font-family: "Manrope", sans-serif;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.85);
    resize: vertical;
    min-height: 220px;
}

.admin-editor-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

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

.admin-panel {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(37, 114, 184, 0.16);
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.admin-panel--full {
    width: 100%;
}

.admin-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.admin-entry {
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(37, 114, 184, 0.12);
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.95rem;
}

.admin-entry__head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.85rem;
    opacity: 0.8;
}

.admin-badge {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(37, 114, 184, 0.12);
    border: 1px solid rgba(37, 114, 184, 0.2);
    font-weight: 600;
}

.admin-empty {
    font-style: italic;
    opacity: 0.7;
}

/* =========================
   Menú lateral (categorías)
   ========================= */
.side-menu__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 40, 35, 0.32);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 20;
}

.side-menu__backdrop--show {
    opacity: 1;
    visibility: visible;
}

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(320px, 85vw);
    background: linear-gradient(160deg, rgba(224, 247, 238, 0.98), rgba(237, 250, 246, 0.95));
    border-right: 1px solid var(--panel-border);
    box-shadow: 20px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    z-index: 30;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    border-top-right-radius: 22px;
    border-bottom-right-radius: 22px;
}

.side-menu--open {
    transform: translateX(0);
}

.side-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.side-menu__header h3 {
    font-size: 1.1rem;
    margin: 0;
}

.side-menu__close {
    border: none;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: var(--secundario);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(37, 114, 184, 0.08);
    border: 1px solid rgba(37, 114, 184, 0.2);
}

.side-menu__all {
    text-decoration: none;
    color: var(--secundario);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(37, 114, 184, 0.08);
    border: 1px solid rgba(37, 114, 184, 0.2);
    align-self: flex-start;
    box-shadow: 0 6px 12px rgba(37, 114, 184, 0.12);
}

.side-menu__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.side-menu__list li {
    padding: 0;
    background: transparent;
    border: none;
}

.animal-btn {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(37, 114, 184, 0.08);
    border: 1px solid rgba(37, 114, 184, 0.18);
    font-weight: 600;
    color: var(--secundario);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.animal-btn:hover {
    background: rgba(37, 114, 184, 0.14);
    box-shadow: 0 8px 16px rgba(37, 114, 184, 0.18);
    transform: translateY(-1px);
}

.animal-btn::after {
    content: "\203A";
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.7;
}

/* =========================
   Responsivo
   ========================= */
@media (max-width: 700px) {
    .hero {
        padding: calc(var(--header-offset) + var(--header-gap)) 0 32px;
    }

    .hero__content {
        padding: 24px 22px;
    }

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

@media (max-width: 1024px) {
    header ul {
        width: auto;
        gap: 12px;
    }

    .hero__inner {
        gap: 24px;
    }
}

@media (max-width: 900px) {
    :root {
        --container-pad: 20px;
        --container-gap: 40px;
    }

    header {
        height: 72px;
        top: 30px;
    }

    header ul {
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 6px;
    }

    header ul li a {
        padding: 6px 8px;
        font-size: 0.9rem;
    }

    .hero {
        align-items: flex-start;
        padding-top: calc(var(--header-offset) + 12px);
    }

    .content {
        padding: 32px 0 64px;
    }

    .hero__panel {
        width: min(100%, 320px);
    }

    .hero__bag {
        width: min(100%, 230px);
    }

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

    .contact-fields {
        grid-template-columns: 1fr;
    }

    .site-footer__grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 22px;
    }

    .site-footer__brand p {
        max-width: none;
    }

    .admin-card {
        padding: 20px;
    }
}

@media (max-width: 700px) {
    :root {
        --container-pad: 16px;
        --container-gap: 32px;
    }

    header {
        height: auto;
        top: 20px;
        padding: 10px 12px;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
        border-radius: 26px;
        overflow: visible;
    }

    header.header--compact {
        height: auto;
        padding: 8px 12px;
    }

    header ul {
        display: grid;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        grid-template-columns: 1fr;
        gap: 8px;
        justify-items: stretch;
        width: 100%;
        max-height: none;
        overflow: visible;
        padding: 12px;
        background: var(--panel-bg);
        border: 1px solid var(--panel-border);
        border-radius: 18px;
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
        backdrop-filter: blur(6px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px) scale(0.98);
        transform-origin: top center;
        transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
    }

    header.header--menu-open ul {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .nav-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero__media {
        order: 2;
    }

    .hero__content {
        order: 1;
    }

    header ul li a {
        padding: 4px 6px;
        font-size: 0.85rem;
    }

    .nav-dropdown summary {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
    }

    .nav-dropdown__panel {
        position: absolute;
        left: 50%;
        top: calc(100% + 8px);
        width: min(86vw, 320px);
        max-width: 86vw;
        max-height: 60vh;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translate(-50%, -8px);
        box-shadow: 0 18px 30px rgba(0, 0, 0, 0.12);
        margin-top: 0;
        z-index: 40;
        overflow: auto;
        padding: 12px;
    }

    .nav-dropdown {
        grid-column: 1 / -1;
        position: relative;
    }

    .nav-dropdown details[open] .nav-dropdown__panel {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate(-50%, 0);
    }

    header ul li a {
        width: 100%;
        justify-content: center;
    }

    .nav-dropdown__grid {
        grid-template-columns: 1fr;
    }

    .nav-dropdown__group--animals {
        display: none;
    }

    .contlogo img {
        height: 40px;
    }

    .hero {
        min-height: auto;
    }

    .hero__content,
    .hero__panel {
        width: 100%;
        max-width: none;
    }

    .hero__panel-title {
        font-size: 0.9rem;
    }

    .page-hero {
        grid-template-columns: 1fr;
        padding: 20px;
    }

    .page-hero__image {
        justify-self: start;
        width: min(100%, 200px);
    }

    .animal-top {
        grid-template-columns: 1fr;
    }

    .animal-photo {
        justify-self: start;
        max-width: 200px;
    }

}

@media (max-width: 520px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .content .card,
    .section {
        padding: 20px;
    }

    .hero__panel {
        width: min(100%, 300px);
    }

    .hero__bag {
        width: min(100%, 210px);
    }

    .animal-card {
        padding: 20px;
    }

    .animal-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .page-hero {
        padding: 18px;
    }

    .page-hero__image {
        width: min(100%, 180px);
    }

    .catalog-card {
        padding: 20px;
    }

    .catalog-list {
        grid-template-columns: 1fr;
    }

    .catalog-choice {
        grid-template-columns: 1fr;
    }

    .catalog-choice__image {
        width: 100%;
        height: 170px;
    }

    .interest-item {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .interest-thumb {
        width: 100%;
        height: 140px;
    }

    .interest-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        justify-content: stretch;
        gap: 10px;
    }

    .seller-modal__content,
    .interest-modal__content {
        padding: 52px 16px 16px;
    }

    .interest-modal__scroll {
        max-height: calc(90vh - 80px);
    }

    .contact-card {
        padding: 16px;
    }

    .contact-name {
        font-size: 1rem;
    }

    .contact-list p {
        grid-template-columns: 1fr;
    }

    .contact-list strong {
        white-space: normal;
    }

    .admin-card {
        padding: 18px;
    }

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

    .admin-zone-form .btn {
        width: 100%;
    }

    .admin-entry__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer__bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-footer {
        padding: 36px 0 24px;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .site-footer__grid > * + * {
        border-top: 1px solid rgba(37, 114, 184, 0.14);
        padding-top: 16px;
    }

    .site-footer__contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 375px) {
    :root {
        --container-pad: 14px;
        --container-gap: 24px;
        --header-gap: 12px;
    }

    header {
        padding: 8px 10px;
        border-radius: 20px;
        gap: 6px;
    }

    header.header--compact {
        padding: 6px 10px;
    }

    .contlogo img {
        height: 34px;
    }

    .nav-toggle {
        width: 36px;
        height: 32px;
    }

    header ul {
        padding: 10px;
    }

    .nav-dropdown__panel {
        width: min(92vw, 300px);
        max-width: 92vw;
        min-width: 0;
        padding: 10px;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .hero__content,
    .hero__panel {
        padding: 18px;
        border-radius: 18px;
    }

    .hero__panel {
        max-width: 280px;
        gap: 12px;
    }

    .hero__bag {
        width: min(100%, 190px);
    }

    .btn {
        padding: 9px 14px;
        font-size: 0.9rem;
    }

    .content .card,
    .section,
    .catalog-card,
    .page-hero,
    .animal-card,
    .admin-card {
        padding: 16px;
    }

    .catalog-choice__image {
        height: 140px;
    }

    .floating-interest {
        right: 12px;
        bottom: 12px;
        padding: 8px 12px;
        gap: 8px;
        font-size: 0.9rem;
        max-width: calc(100vw - 24px);
    }

    .floating-interest span:first-child,
    .floating-interest__label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .interest-modal__content,
    .seller-modal__content,
    .admin-login-card {
        padding: 20px 14px 14px;
        width: min(94vw, 420px);
    }

    .interest-modal__scroll {
        max-height: calc(90vh - 70px);
    }

    .admin-login-modal {
        padding: 16px;
    }

    .side-menu {
        width: min(300px, 86vw);
        padding: 18px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
