/* ==========================================================================
   Linaje & Gracia — Design System
   Replica fiel del proyecto Vercel pero en CSS vanilla.
   Paleta: Manual de marca (Beraca Creative Lab, feb 2026)
   Tipografías: Allura (script) + DM Sans — Google Fonts
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Allura&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

/* ---------- Variables de marca ---------- */
:root {
    --gracia-pura: #F5E2E3;
    --luz-celestial: #F8F7F2;
    --rosa-divino: #E8B3C3;
    --herencia-viva: #F3DEC9;
    --tierra-consagrada: #C0AD96;
    --oro-sagrado: #A0987D;

    --background: #FBFAF7;
    --foreground: #3A342C;
    --card: #FFFFFF;
    --card-foreground: #3A342C;
    --primary: var(--rosa-divino);
    --primary-foreground: #3A342C;
    --secondary: #F8F4EE;
    --secondary-foreground: #3A342C;
    --muted: #F0E6DD;
    --muted-foreground: #615A51;
    --accent: #F3DEC9;
    --accent-foreground: #3A342C;
    --border: rgba(232, 179, 195, 0.35);
    --ring: var(--rosa-divino);

    --btn-primary: var(--tierra-consagrada);
    --btn-primary-foreground: #FFFFFF;

    --destructive: #DC4444;
    --destructive-foreground: #FFFFFF;

    --radius: 18px;
    --max-content: 1200px;

    --shadow-sm: 0 8px 18px rgba(170, 151, 125, 0.08);
    --shadow-md: 0 14px 30px rgba(170, 151, 125, 0.16);
    --shadow-lg: 0 22px 55px rgba(32, 24, 18, 0.16);
    --shadow-card: 0 18px 40px rgba(171, 157, 140, 0.08);
    --shadow-card-hover: 0 22px 48px rgba(171, 157, 140, 0.12);
}

/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    color: var(--foreground);
    background-color: var(--background);
    background-image:
        radial-gradient(circle at top, rgba(245, 226, 227, 0.54), transparent 30%),
        radial-gradient(circle at 85% 18%, rgba(243, 222, 201, 0.42), transparent 24%),
        radial-gradient(circle at 15% 80%, rgba(232, 179, 195, 0.16), transparent 26%),
        linear-gradient(180deg, #FBFAF7 0%, #F8F7F2 100%);
    background-attachment: fixed;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4, h5, h6 { font-family: 'DM Sans', sans-serif; margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 2px solid var(--rosa-divino); outline-offset: 2px; border-radius: 4px; }

/* ---------- Tipografía utilitaria ---------- */
.font-script { font-family: 'Allura', cursive; font-weight: 400; letter-spacing: 0.01em; line-height: 1.05; }
.text-balance { text-wrap: balance; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.24em; color: rgba(58,52,44,0.55); font-weight: 500; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max-content); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }
@media (min-width: 1024px) { .container { padding: 0 32px; } }
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 72px 0; } }
@media (min-width: 1024px) { .section { padding: 96px 0; } }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border-radius: 999px; padding: 14px 28px; font-size: 14px; font-weight: 500;
    transition: all 0.3s ease; box-shadow: 0 14px 30px rgba(170,151,125,0.16);
    min-height: 48px; white-space: nowrap; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: linear-gradient(135deg, var(--oro-sagrado) 0%, var(--tierra-consagrada) 100%);
    color: var(--btn-primary-foreground);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--tierra-consagrada) 0%, var(--oro-sagrado) 100%);
    box-shadow: 0 16px 36px rgba(160,152,125,0.30);
}
.btn-soft {
    background: rgba(255,255,255,0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    color: var(--foreground); border: 1px solid rgba(232,179,195,0.40);
}
.btn-soft:hover { background: rgba(255,255,255,0.92); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 15px; min-height: 52px; }
.btn-sm { padding: 10px 18px; font-size: 13px; min-height: 40px; }

/* ---------- Tarjetas y paneles ---------- */
.glass-card {
    background: rgba(248,247,242,0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 24px 60px rgba(175,157,136,0.16), inset 0 1px 0 rgba(255,255,255,0.6);
    border-radius: 30px;
}
.soft-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(248,247,242,0.9) 100%);
    box-shadow: 0 18px 45px rgba(171,157,140,0.12); border-radius: 26px;
    border: 1px solid rgba(232,179,195,0.20);
}
.glow-ring { position: relative; }
.glow-ring::before {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, rgba(232,179,195,0.55), rgba(243,222,201,0.45), rgba(160,152,125,0.38));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; opacity: 0.9;
}
.feature-card {
    display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
    border-radius: 24px; border: 1px solid rgba(232,179,195,0.20); background: rgba(255,255,255,0.70);
    padding: 18px; min-height: 110px; box-shadow: 0 12px 30px rgba(171,157,140,0.08);
    transition: all 0.3s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(171,157,140,0.12); }
.feature-card-icon {
    width: 44px; height: 44px; border-radius: 999px; background: rgba(232,179,195,0.18);
    display: flex; align-items: center; justify-content: center; color: var(--oro-sagrado); margin-bottom: 10px;
}
.feature-card-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--muted-foreground); }
.social-chip {
    display: inline-flex; align-items: center; gap: 12px; border-radius: 999px; padding: 12px 20px;
    font-size: 14px; font-weight: 500; color: var(--foreground);
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,247,242,0.9) 100%);
    box-shadow: 0 10px 24px rgba(173,157,135,0.14); transition: all 0.3s ease; border: 0;
}
.social-chip:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(173,157,135,0.18); }
.social-chip-icon {
    display: inline-flex; width: 36px; height: 36px; border-radius: 999px; align-items: center; justify-content: center;
    background: #fff; box-shadow: var(--shadow-sm); flex-shrink: 0;
}

/* ============== HERO ============== */
.hero { position: relative; overflow: hidden; background: var(--rosa-divino); padding: 32px 20px; }
@media (min-width: 640px) { .hero { padding: 40px 32px; } }
@media (min-width: 1024px) { .hero { padding: 48px; } }
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.10), transparent 34%),
                radial-gradient(circle at bottom right, rgba(0,0,0,0.08), transparent 40%);
    pointer-events: none;
}
.hero-watermark {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    height: 64px; width: auto; opacity: 0.05; pointer-events: none;
}
.hero-inner {
    position: relative; z-index: 1; max-width: 1400px; margin: 0 auto;
    display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 32px;
}
@media (min-width: 768px) { .hero-inner { flex-direction: row; gap: 56px; } }
.hero-logo { height: 64px; width: auto; max-width: 180px; flex-shrink: 0; }
@media (min-width: 640px) { .hero-logo { height: 78px; } }
.hero-cta-row { display: flex; flex-direction: column; align-items: center; gap: 24px; flex: 1; width: 100%; text-align: center; }
@media (min-width: 1024px) { .hero-cta-row { flex-direction: row; justify-content: flex-end; gap: 40px; } }
.hero-tagline { font-size: 14px; text-transform: uppercase; letter-spacing: 0.20em; color: rgba(255,255,255,0.88); margin: 0; }
@media (min-width: 640px) { .hero-tagline { font-size: 15px; } }

/* ============== PRODUCTS ============== */
.products-section { padding: 56px 20px; }
@media (min-width: 768px) { .products-section { padding: 72px 24px; } }
@media (min-width: 1024px) { .products-section { padding: 96px 32px; } }
.products-inner { max-width: 1200px; margin: 0 auto; }
.products-heading { max-width: 760px; margin: 0 auto 32px; text-align: center; }
@media (min-width: 640px) { .products-heading { margin-bottom: 56px; } }
.products-heading h2 {
    font-family: 'Allura', cursive; font-weight: 400; color: var(--foreground); line-height: 1.05;
    font-size: clamp(2.2rem, 5vw, 4.2rem);
}
.products-heading p { margin-top: 16px; color: var(--muted-foreground); line-height: 1.65; font-size: 15px; }
@media (min-width: 768px) { .products-heading p { font-size: 17px; } }
.products-grid { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; }
@media (min-width: 720px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; } }
@media (min-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

.product-card {
    display: flex; flex-direction: column; border-radius: 24px;
    border: 1px solid rgba(232,179,195,0.22); background: rgba(255,255,255,0.96);
    box-shadow: var(--shadow-card); overflow: hidden; transition: all 0.3s ease; cursor: pointer; position: relative;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.product-card-img-wrap { position: relative; aspect-ratio: 1/1; background: rgba(248,244,238,0.6); overflow: hidden; }
.product-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-card-img-wrap img { transform: scale(1.05); }
.product-card-badge {
    position: absolute; top: 14px; right: 14px; background: var(--btn-primary); color: var(--btn-primary-foreground);
    font-size: 11px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
    letter-spacing: 0.05em; text-transform: uppercase;
}
.product-card-bonus {
    position: absolute; left: 14px; bottom: 14px; background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px); color: var(--oro-sagrado); font-size: 11px; font-weight: 600;
    padding: 6px 12px; border-radius: 999px; letter-spacing: 0.04em; box-shadow: var(--shadow-sm);
}
.product-card-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    background: rgba(58,52,44,0); transition: background 0.3s ease; }
.product-card:hover .product-card-overlay { background: rgba(58,52,44,0.10); }
.product-card-overlay-pill {
    display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.92);
    backdrop-filter: blur(8px); color: var(--foreground); padding: 8px 16px; border-radius: 999px;
    font-size: 12px; font-weight: 500; box-shadow: var(--shadow-sm); opacity: 0; transition: opacity 0.3s ease;
}
.product-card:hover .product-card-overlay-pill { opacity: 1; }
.product-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.product-card-title { font-size: 18px; font-weight: 700; color: var(--foreground); margin-bottom: 8px; }
.product-card-desc {
    color: var(--muted-foreground); font-size: 14px; line-height: 1.6; margin-bottom: 16px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-footer { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; }
.product-card-price-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; color: rgba(58,52,44,0.5); display: block; }
.product-card-price { font-size: 18px; font-weight: 700; color: var(--foreground); }
.product-card-cta {
    background: var(--btn-primary); color: var(--btn-primary-foreground); paddi