/* ============================
   LUPITA RASCADORES - STYLES
   Tema: Cálido, artesanal, premium
   ============================ */

:root {
    --brand: #6B4423;
    --brand-dark: #4A2E18;
    --brand-light: #A87148;
    --accent: #E8A87C;
    --accent-2: #F4C97D;
    --cream: #FAF6F0;
    --cream-2: #F1E9DC;
    --ink: #2B1810;
    --ink-soft: #5A4538;
    --muted: #8B7868;
    --line: #E5D8C7;
    --white: #ffffff;
    --success: #2E8B57;
    --danger: #C0392B;
    --shadow-sm: 0 1px 2px rgba(43, 24, 16, 0.06), 0 1px 3px rgba(43, 24, 16, 0.08);
    --shadow-md: 0 4px 12px rgba(43, 24, 16, 0.08), 0 2px 4px rgba(43, 24, 16, 0.06);
    --shadow-lg: 0 12px 32px rgba(43, 24, 16, 0.12), 0 4px 12px rgba(43, 24, 16, 0.08);
    --shadow-xl: 0 24px 60px rgba(43, 24, 16, 0.18);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --t: 240ms cubic-bezier(0.4, 0, 0.2, 1);
    --t-slow: 480ms cubic-bezier(0.4, 0, 0.2, 1);
    --container: 1200px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================
   ADMIN BAR
   ============================ */
.admin-bar {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: var(--white);
    animation: slideDown var(--t) both;
    box-shadow: var(--shadow-md);
}
.admin-bar__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}
.admin-bar__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
}
.admin-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #6FFFB0;
    box-shadow: 0 0 0 0 rgba(111, 255, 176, 0.6);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(111, 255, 176, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(111, 255, 176, 0); }
    100% { box-shadow: 0 0 0 0 rgba(111, 255, 176, 0); }
}
.admin-bar__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-btn {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    transition: background var(--t), transform var(--t);
}
.admin-btn:hover { background: rgba(255, 255, 255, 0.28); transform: translateY(-1px); }
.admin-btn:active { transform: translateY(0); }
.admin-btn--ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================
   HEADER
   ============================ */
.header {
    position: sticky;
    top: 0;
    z-index: 70;
    background: rgba(250, 246, 240, 0.92);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--t), box-shadow var(--t);
}
body.admin-on .header { top: 0; }
.header.scrolled {
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 70px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
    transition: transform var(--t);
}
.brand:hover { transform: translateY(-1px); }
.brand__logo {
    font-size: 26px;
    line-height: 1;
    display: inline-block;
    transform: rotate(-10deg);
    transition: transform var(--t);
}
.brand:hover .brand__logo { transform: rotate(10deg); }
.brand__name {
    font-family: 'Fraunces', serif;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: var(--brand-dark);
}
.brand__name span {
    color: var(--brand-light);
    font-weight: 600;
    margin-left: 2px;
}

.nav {
    display: flex;
    gap: 4px;
}
.nav__link {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ink-soft);
    transition: background var(--t), color var(--t);
    position: relative;
}
.nav__link:hover {
    background: var(--cream-2);
    color: var(--brand-dark);
}

.burger {
    display: none;
    width: 40px; height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 10px;
    transition: background var(--t);
}
.burger:hover { background: var(--cream-2); }
.burger span {
    width: 22px; height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform var(--t), opacity var(--t);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================
   HERO
   ============================ */
.hero {
    position: relative;
    height: clamp(520px, 78vh, 760px);
    overflow: hidden;
    background: var(--brand-dark);
}
.hero__carousel {
    position: absolute;
    inset: 0;
}
.hero__slides {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 900ms ease, transform 6000ms ease;
}
.hero__slide.is-active {
    opacity: 1;
    transform: scale(1);
}
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(20, 12, 6, 0.05) 0%, rgba(20, 12, 6, 0.55) 60%, rgba(20, 12, 6, 0.85) 100%),
        linear-gradient(135deg, rgba(74, 46, 24, 0.45), rgba(20, 12, 6, 0.25));
    display: flex;
    align-items: flex-end;
    padding-bottom: 70px;
}
.hero__content {
    color: var(--white);
    max-width: 720px;
    animation: fadeUp 800ms cubic-bezier(0.4, 0, 0.2, 1) both;
}
.hero__eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}
.hero__title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2.2rem, 6vw, 4.4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-bottom: 18px;
}
.hero__title-accent {
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-style: italic;
}
.hero__subtitle {
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    max-width: 540px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
}
.hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--white);
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t), transform var(--t);
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.hero__nav:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.06);
}
.hero__nav--prev { left: 16px; }
.hero__nav--next { right: 16px; }
.hero__nav span { margin-top: -4px; }

.hero__dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.hero__dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: width var(--t), background var(--t);
}
.hero__dot.is-active {
    background: var(--white);
    width: 26px;
    border-radius: 6px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================
   BOTONES
   ============================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    transition: transform var(--t), background var(--t), box-shadow var(--t), color var(--t);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    border: 0;
}
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25), transparent 70%);
    transform: translateX(-100%);
    transition: transform 600ms ease;
}
.btn:hover::before { transform: translateX(100%); }

.btn--primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: var(--white);
    box-shadow: 0 4px 14px rgba(107, 68, 35, 0.35);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(107, 68, 35, 0.45);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.35);
}
.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--brand-dark);
    border: 2px solid var(--brand);
}
.btn--outline:hover {
    background: var(--brand);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--danger {
    background: var(--danger);
    color: var(--white);
}
.btn--danger:hover {
    background: #a93023;
    transform: translateY(-2px);
}

.btn--lg {
    padding: 14px 26px;
    font-size: 16px;
}
.btn--block { width: 100%; justify-content: center; }
.btn--success { background: var(--success) !important; color: var(--white) !important; }

/* ============================
   FEATURES
   ============================ */
.features {
    padding: 70px 0 40px;
    background: var(--cream);
}
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}
.feature {
    background: var(--white);
    padding: 24px 22px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--line);
    transition: transform var(--t), box-shadow var(--t);
}
.feature:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.feature__icon {
    font-size: 36px;
    margin-bottom: 10px;
    display: inline-block;
    transition: transform var(--t);
}
.feature:hover .feature__icon { transform: scale(1.15) rotate(-6deg); }
.feature h3 {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    margin-bottom: 6px;
    color: var(--brand-dark);
}
.feature p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ============================
   SECTIONS COMMON
   ============================ */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}
.section-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-light);
    margin-bottom: 12px;
}
.section-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 14px;
}
.section-subtitle {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.5;
}

/* ============================
   CATÁLOGO
   ============================ */
.catalog {
    padding: 80px 0;
    background: var(--cream);
    position: relative;
}
.catalog__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--cream-2);
}
.card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__badge {
    position: absolute;
    top: 12px; left: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-dark);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.card__body {
    padding: 18px 20px 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.card__name {
    font-family: 'Fraunces', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 6px;
    line-height: 1.25;
}
.card__desc {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}
.card__price {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--brand-dark);
}
.card__price small {
    font-size: 12px;
    font-weight: 500;
    color: var(--muted);
    margin-left: 2px;
}

.card__btn {
    background: var(--brand-dark);
    color: var(--white);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: background var(--t), transform var(--t);
}
.card__btn:hover {
    background: var(--brand);
    transform: scale(1.05);
}

.card__edit {
    position: absolute;
    top: 12px; right: 12px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--white);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    font-size: 16px;
    transition: transform var(--t), background var(--t);
    z-index: 2;
}
.card__edit:hover {
    background: var(--brand-dark);
    color: var(--white);
    transform: scale(1.1);
}

/* Card de placeholder vacío (admin) */
.card--empty {
    border: 2px dashed var(--brand-light);
    background: transparent;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    color: var(--brand);
    cursor: pointer;
    transition: background var(--t), border-color var(--t);
    box-shadow: none;
}
.card--empty:hover {
    background: rgba(232, 168, 124, 0.08);
    border-color: var(--brand);
    transform: none;
}
.card--empty__icon {
    font-size: 42px;
    line-height: 1;
}
.card--empty__text {
    font-weight: 600;
}

/* ============================
   PROCESO (videos)
   ============================ */
.process {
    padding: 80px 0;
    background: var(--cream-2);
}
.process__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}
.video-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    position: relative;
    transition: transform var(--t), box-shadow var(--t);
}
.video-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.video-card__media {
    aspect-ratio: 16 / 9;
    background: #000;
}
.video-card__media video {
    width: 100%; height: 100%;
    object-fit: cover;
}
.video-card__body {
    padding: 16px 20px;
}
.video-card__title {
    font-family: 'Fraunces', serif;
    font-size: 18px;
    color: var(--brand-dark);
    font-weight: 700;
}
.video-card__edit {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--white);
    color: var(--brand-dark);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: transform var(--t), background var(--t);
}
.video-card__edit:hover {
    background: var(--brand-dark);
    color: var(--white);
    transform: scale(1.05);
}

/* ============================
   HISTORIA
   ============================ */
.story {
    padding: 80px 0;
    background: var(--cream);
}
.story__inner {
    max-width: 820px;
}
.story__content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--ink-soft);
    background: var(--white);
    padding: 36px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
}
.story__content p {
    margin-bottom: 14px;
}
.story__content p:last-child { margin-bottom: 0; }

/* ============================
   CTA FINAL
   ============================ */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--brand-dark), var(--brand));
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.cta::before, .cta::after {
    content: '🐾';
    position: absolute;
    font-size: 200px;
    opacity: 0.05;
    line-height: 1;
}
.cta::before { top: -30px; left: -20px; transform: rotate(-20deg); }
.cta::after { bottom: -50px; right: -20px; transform: rotate(15deg); }

.cta__inner {
    text-align: center;
    position: relative;
    z-index: 1;
}
.cta h2 {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.cta p {
    font-size: 17px;
    margin-bottom: 28px;
    opacity: 0.92;
}
.cta__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.cta .btn--outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}
.cta .btn--outline:hover {
    background: var(--white);
    color: var(--brand-dark);
    border-color: var(--white);
}

/* ============================
   FOOTER
   ============================ */
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.7);
    padding: 28px 0;
    font-size: 14px;
}
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-weight: 600;
    font-family: 'Fraunces', serif;
}
.footer__text { flex: 1; text-align: center; min-width: 200px; }
.footer__admin {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--t);
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.footer__admin:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.3); }

/* ============================
   BOTÓN FLOTANTE WHATSAPP
   ============================ */
.float-wa {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 56px; height: 56px;
    background: #25D366;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
    transition: transform var(--t), box-shadow var(--t);
    animation: float 3s ease-in-out infinite;
}
.float-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.5);
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ============================
   MODAL
   ============================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalIn var(--t);
}
.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 12, 6, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.modal__panel {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    overflow: auto;
    box-shadow: var(--shadow-xl);
    animation: panelIn var(--t-slow);
}
.modal__panel--product { max-width: 720px; }
.modal__close {
    position: absolute;
    top: 12px; right: 12px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--ink);
    font-size: 26px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background var(--t), transform var(--t);
}
.modal__close:hover {
    background: var(--brand-dark);
    color: var(--white);
    transform: rotate(90deg);
}
.modal__image {
    aspect-ratio: 16 / 11;
    background: var(--cream-2);
    overflow: hidden;
}
.modal__image img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.modal__body {
    padding: 26px 28px 28px;
}
.modal__body h3 {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    color: var(--brand-dark);
    margin-bottom: 6px;
    font-weight: 700;
}
.modal__name {
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 14px;
    font-size: 16px;
}
.modal__desc {
    color: var(--ink-soft);
    line-height: 1.65;
    margin-bottom: 18px;
}
.modal__price {
    font-family: 'Fraunces', serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 22px;
}
.modal__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.modal__actions .btn { flex: 1; min-width: 140px; justify-content: center; }
.modal__actions .btn--ghost {
    background: var(--cream);
    color: var(--ink);
    border: 1px solid var(--line);
}
.modal__actions .btn--ghost:hover {
    background: var(--cream-2);
    color: var(--brand-dark);
}

@keyframes modalIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes panelIn {
    from { opacity: 0; transform: translateY(20px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================
   LIGHTBOX
   ============================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: zoom-out;
    animation: modalIn var(--t);
}
.lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-xl);
    animation: panelIn var(--t-slow);
}
.lightbox__close {
    position: absolute;
    top: 18px; right: 18px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    font-size: 28px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t), transform var(--t);
}
.lightbox__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* ============================
   FORMULARIOS
   ============================ */
.modal__body--form h3 {
    margin-bottom: 18px;
}
.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.form__row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form__row > span {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: 0.2px;
}
.form__row input[type="text"],
.form__row input[type="password"],
.form__row textarea {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--cream);
    transition: border-color var(--t), background var(--t), box-shadow var(--t);
    font-size: 15px;
    color: var(--ink);
}
.form__row input:focus,
.form__row textarea:focus {
    outline: 0;
    border-color: var(--brand);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(107, 68, 35, 0.15);
}
.form__row textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}
.form__row input[type="file"] {
    font-size: 14px;
    padding: 8px 0;
    color: var(--ink-soft);
}
.form__hint {
    font-size: 12px;
    color: var(--muted);
}
.form__preview {
    margin-top: 6px;
    border-radius: 10px;
    overflow: hidden;
    max-width: 220px;
    background: var(--cream-2);
}
.form__preview img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.form__preview:empty { display: none; }
.form__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    margin-top: 6px;
}
.form__actions .btn { min-width: 100px; justify-content: center; }

/* ============================
   TOAST
   ============================ */
.toast {
    position: fixed;
    bottom: 90px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--ink);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 200;
    opacity: 0;
    transition: opacity var(--t), transform var(--t);
    pointer-events: none;
    max-width: 90vw;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.toast--success { background: var(--success); }
.toast--error { background: var(--danger); }

/* ============================
   LOGIN
   ============================ */
.login-body {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--cream) 0%, var(--cream-2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
.login-bg { position: absolute; inset: 0; pointer-events: none; }
.login-bg__paw {
    position: absolute;
    font-size: 80px;
    opacity: 0.08;
    animation: drift 16s ease-in-out infinite;
}
.login-bg__paw--1 { top: 8%; left: 6%; }
.login-bg__paw--2 { top: 20%; right: 8%; transform: rotate(-20deg); animation-delay: -4s; }
.login-bg__paw--3 { bottom: 14%; left: 12%; transform: rotate(15deg); animation-delay: -8s; }
.login-bg__paw--4 { bottom: 8%; right: 14%; transform: rotate(-10deg); animation-delay: -12s; font-size: 100px; }

@keyframes drift {
    0%, 100% { transform: translate(0, 0) rotate(var(--r, 0deg)); }
    50% { transform: translate(15px, -15px) rotate(calc(var(--r, 0deg) + 10deg)); }
}

.login {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}
.login__card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--line);
    animation: panelIn 600ms ease;
}
.login__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    transition: transform var(--t);
}
.login__brand:hover { transform: translateY(-2px); }
.login__title {
    font-family: 'Fraunces', serif;
    font-size: 26px;
    color: var(--brand-dark);
    margin-bottom: 6px;
    font-weight: 800;
    letter-spacing: -0.3px;
}
.login__subtitle {
    color: var(--muted);
    margin-bottom: 26px;
    font-size: 15px;
}
.login__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.login__form .btn { margin-top: 6px; }
.login__error {
    color: var(--danger);
    font-size: 13px;
    background: rgba(192, 57, 43, 0.08);
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid var(--danger);
}
.login__back {
    display: block;
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: var(--muted);
    transition: color var(--t);
}
.login__back:hover { color: var(--brand-dark); }

.shake { animation: shake 380ms; }
@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-4px); }
    40%, 60% { transform: translateX(4px); }
}

/* ============================
   ANIMACIONES DE ENTRADA
   ============================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 880px) {
    .nav {
        position: fixed;
        top: 70px;
        right: 0;
        left: 0;
        background: var(--cream);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        gap: 0;
        padding: 12px 20px 16px;
        transform: translateY(-110%);
        opacity: 0;
        transition: transform 300ms ease, opacity 300ms ease;
        box-shadow: var(--shadow-md);
        pointer-events: none;
    }
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav__link {
        padding: 14px 14px;
        font-size: 16px;
        border-radius: 10px;
    }
    .burger { display: flex; }
}

@media (max-width: 720px) {
    .container { padding: 0 16px; }

    .hero {
        height: clamp(480px, 90vh, 640px);
    }
    .hero__overlay { padding-bottom: 50px; }
    .hero__nav {
        width: 40px; height: 40px;
        font-size: 22px;
    }
    .hero__nav--prev { left: 10px; }
    .hero__nav--next { right: 10px; }

    .features { padding: 50px 0 30px; }
    .features__grid { gap: 14px; }
    .feature { padding: 20px 18px; }

    .catalog, .process, .story, .cta { padding: 60px 0; }
    .catalog__grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
    .process__grid { grid-template-columns: 1fr; }

    .section-header { margin-bottom: 32px; }

    .modal { padding: 12px; }
    .modal__body { padding: 22px 22px 24px; }
    .modal__panel { max-height: calc(100vh - 24px); }
    .modal__actions { flex-direction: column; }
    .modal__actions .btn { width: 100%; }

    .story__content { padding: 26px 22px; font-size: 16px; }

    .admin-bar__inner { padding: 8px 16px; }
    .admin-bar__title { font-size: 12px; }
    .admin-btn { font-size: 12px; padding: 6px 11px; }

    .footer__inner { flex-direction: column; text-align: center; }
    .footer__text { text-align: center; }

    .float-wa {
        width: 50px; height: 50px;
        bottom: 16px; right: 16px;
    }

    .login__card { padding: 30px 22px; }
    .login__title { font-size: 22px; }
}

@media (max-width: 420px) {
    .catalog__grid { grid-template-columns: 1fr; }
    .hero__title { font-size: 2rem; }
    .card__name { font-size: 18px; }
    .card__price { font-size: 20px; }
}

/* Touch devices: desactivar hover boost */
@media (hover: none) {
    .card:hover { transform: none; }
    .card:hover .card__media img { transform: none; }
    .btn:hover { transform: none; }
}

/* Respeto a reduced-motion */
@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;
    }
}
