/* ============================================================
   Hilo & Alma — Artisan Premium override layer
   Se carga DESPUÉS de styles.css para elevar el diseño
   (tipografía, paleta, espaciado, nav, hero, tarjetas, footer).
   ============================================================ */

:root {
    --cream: #faf5ec;
    --linen: #f3ebdb;
    --yarn-coral: #b9634f;
    --yarn-coral-dark: #a5523f;
    --yarn-sage: #6f8a7d;
    --yarn-sage-dark: #5b7166;
    --ink: #2c241d;
    --muted: #85796b;
    --card: #fffdf7;
    --stitch: rgba(44, 36, 29, 0.1);
    --shadow: rgba(44, 36, 29, 0.08);
    --shadow-md: rgba(44, 36, 29, 0.14);
    --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --radius: 12px;
    --radius-lg: 18px;
}

/* ---------- Base ---------- */
body {
    background-image: url("data:image/svg+xml,%3Csvg width='64' height='64' viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%2384796b' fill-opacity='0.06'%3E%3Cpath d='M38 36v-4h-4v4h-4v4h4v4h4v-4h4v-4h-4zm0-32V0h-4v4h-4v4h4v4h4V4h4V4h-4zM6 36v-4H2v4H-2v4h4v4h4v-4h4v-4H6zM6 4V0H2v4H-2v4h4v4h4V8h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-font-smoothing: antialiased;
}

/* ---------- Announcement bar ---------- */
.banner {
    background: #262019;
    color: #e9dfd0;
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    padding: 9px 16px;
}
.banner strong { color: #e9a89b; font-weight: 700; }
.banner .sep { margin: 0 10px; opacity: 0.4; }

/* ---------- Navigation ---------- */
.header {
    background: rgba(250, 245, 236, 0.88);
    border-bottom: 1px solid var(--stitch);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.nav { height: auto; padding: 14px 0; }
.nav-logo { gap: 10px; }
.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 32% 30%, #efc7b9, var(--yarn-coral) 70%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.logo-mark svg { width: 18px; height: 18px; display: block; }
.nav-logo .logo-icon { display: none; }
.logo-text { font-size: 1.2rem; }

.nav-links { gap: 26px; }
.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    position: relative;
}
.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--yarn-coral);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.nav-link:hover::after { transform: scaleX(1); }

.nav-cart {
    border: 1px solid var(--stitch);
    border-radius: 999px;
    padding: 8px 14px;
}
.nav-cart:hover::after { display: none; }
.cart-badge {
    top: -6px;
    right: -6px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.7rem;
    display: grid;
    place-items: center;
}

.nav-cta {
    border-radius: 999px;
    padding: 10px 20px !important;
    box-shadow: 0 6px 18px rgba(185, 99, 79, 0.28);
}
.nav-cta:hover { border-bottom-color: transparent !important; }

.lang-switch {
    margin-left: 4px;
    padding-left: 14px;
    border-left: 1px solid var(--stitch);
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { box-shadow: 0 6px 18px rgba(185, 99, 79, 0.28); }
.btn-outline {
    border: 1.5px solid var(--stitch);
    color: var(--ink);
}
.btn-outline:hover { border-color: var(--yarn-coral); color: var(--yarn-coral-dark); }

/* ---------- Eyebrow ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--yarn-coral-dark);
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 1.5px;
    background: var(--yarn-coral);
    border-radius: 2px;
}
.eyebrow.center {
    justify-content: center;
    width: 100%;
}
.eyebrow.center::after {
    content: "";
    width: 26px;
    height: 1.5px;
    background: var(--yarn-coral);
    border-radius: 2px;
}
.eyebrow.on-dark { color: #e9a89b; }
.eyebrow.on-dark::before, .eyebrow.on-dark::after { background: #e9a89b; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section.alt,
.learn-alt {
    background: var(--linen);
    border-block: 1px solid var(--stitch);
}
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.4rem); }
.section-subtitle { color: var(--muted); max-width: 620px; margin: 0 auto 36px; font-size: 1rem; }

/* ---------- Page header ---------- */
.page-header {
    padding: 72px 0 28px;
    background: linear-gradient(180deg, rgba(185, 99, 79, 0.08) 0%, transparent 70%);
}
.page-header h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin: 0 0 14px; }
.page-header p { color: var(--muted); font-size: 1.05rem; }
.steps {
    display: flex;
    justify-content: center;
    gap: 34px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.steps .step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--muted);
}
.steps .num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(185, 99, 79, 0.12);
    color: var(--yarn-coral-deep, var(--yarn-coral-dark));
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.8rem;
}

/* ---------- Hero ---------- */
.hero {
    min-height: 0;
    padding: 48px 0 24px;
    background: linear-gradient(180deg, rgba(185, 99, 79, 0.07) 0%, transparent 70%);
    display: block;
}
.hero-row {
    display: grid;
    grid-template-columns: minmax(200px, 320px) 1fr;
    gap: 56px;
    align-items: center;
    justify-content: initial;
}
.hero-doll {
    width: 100%;
    max-width: 320px;
    position: relative;
}
.hero-doll-svg { filter: drop-shadow(0 12px 28px rgba(44, 36, 29, 0.16)); }
.hero-tag {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    background: var(--card);
    border: 1px solid var(--stitch);
    box-shadow: var(--shadow-md);
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--yarn-coral-dark);
    transform: rotate(3deg);
}
.hero-text { text-align: left; max-width: 560px; }
.hero-title {
    font-size: clamp(2.6rem, 5.4vw, 3.6rem);
    line-height: 1.04;
    margin: 16px 0 20px;
}
.hero-title em { font-style: italic; }
.hero-subtitle {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 480px;
    margin: 0 0 30px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Feature strip ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 42px 0 0;
}
.feature {
    text-align: center;
    padding: 20px 14px;
    border: 1px solid var(--stitch);
    border-radius: var(--radius-lg);
    background: var(--card);
}
.feature .icon { font-size: 1.5rem; display: block; margin-bottom: 6px; }
.feature strong { display: block; font-size: 0.88rem; font-weight: 800; color: var(--ink); }
.feature span { display: block; color: var(--muted); font-size: 0.78rem; }

/* ---------- Cards / dolls ---------- */
.doll-card,
.media-card,
.library-card,
.seleccion-card,
.ai-form-card,
.ai-gallery-card,
.taller-section,
.taller-nav-item,
.stat-card,
.order-info-card,
.order-items-card,
.taller-form-card,
.taller-list-card,
.cart-summary,
.checkout-summary,
.form-section,
.auth-card,
.thanks-card,
.newsletter-card {
    border: 1px solid var(--stitch);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm, var(--shadow));
    background: var(--card);
}
.doll-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.doll-image-wrapper { border-radius: 0; }
.doll-name { font-size: 1.15rem; }
.doll-price { color: var(--yarn-coral-dark); }
.stock-badge { border-radius: 999px; letter-spacing: 0.06em; font-weight: 700; }
.stock-out { background: var(--ink); }
.stock-low { background: var(--yarn-coral); }

/* ---------- Media / tutorial cards ---------- */
.media-card { border: 1px solid var(--stitch); }
.media-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.media-play {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--yarn-coral-dark);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}
.media-card-thumb:hover .media-play {
    background: #fff;
    transform: scale(1.08);
}
.tutorial-duration { border-radius: 6px; font-weight: 700; }
.media-card-info h3,
.media-card-body h3 { font-size: 1rem; }
.article-source {
    color: var(--yarn-coral-dark);
    font-weight: 800;
    letter-spacing: 0.14em;
}
.friend-cta { font-weight: 700; }

/* ---------- Selección / library ---------- */
.seleccion-card,
.library-card {
    border: 1px solid var(--stitch);
    border-radius: var(--radius-lg);
}
.seleccion-card:hover { transform: translateY(-3px); border-color: rgba(185, 99, 79, 0.35); }
.seleccion-name { font-size: 1rem; }
.seleccion-cta { color: var(--yarn-coral-dark); font-weight: 700; }

/* ---------- AI studio ---------- */
.ai-form-card { box-shadow: var(--shadow-sm, var(--shadow)); }
.ai-form-card h2 { font-size: 1.4rem; }
.ai-eyebrow {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--yarn-coral-dark);
}
.ai-idea-chip {
    border-radius: 999px;
    border: 1px solid var(--stitch);
    background: var(--card);
    font-weight: 600;
    padding: 8px 16px;
}
.ai-idea-chip:hover { border-color: var(--yarn-coral); background: rgba(185, 99, 79, 0.12); }

/* ---------- Forms ---------- */
.form-input,
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    border-radius: var(--radius);
    border: 1.5px solid var(--stitch);
}
.form-input:focus,
input:focus, textarea:focus, select:focus {
    border-color: var(--yarn-coral);
    box-shadow: 0 0 0 4px rgba(185, 99, 79, 0.14);
}

/* ---------- Story ---------- */
.story {
    background: var(--ink);
    color: #e9dfd0;
}
.story-content h2 { color: #f3ebe2; }
.story-content p { color: #b7ab9b; }
.story-quote {
    color: #f3ebe2 !important;
    font-size: 1.5rem;
}

/* ---------- Newsletter ---------- */
.newsletter { background: var(--bg, #faf5ec); }
.newsletter .newsletter-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
}
.newsletter .subscribe-form { justify-content: center; }
.newsletter .subscribe-input { border-radius: 999px; border: 1.5px solid var(--stitch); }
.newsletter .btn-primary {
    background: var(--yarn-coral);
    color: #fff;
    border-radius: 999px;
}
.newsletter .btn-primary:hover { background: var(--yarn-coral-dark); }

/* ---------- Footer ---------- */
.footer {
    background: #262019;
    color: #b7ab9b;
    padding: 64px 0 0;
    margin-top: 12px;
}
.footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 44px;
    text-align: left;
}
.footer-brand h3 { color: #f3ebe2; font-size: 1.4rem; }
.footer-tagline { color: #b7ab9b; font-family: var(--font-display); font-style: italic; }
.footer-links h4 {
    color: #f3ebe2;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.footer-links a {
    color: #b7ab9b;
    padding: 4px 0;
}
.footer-links a:hover { color: #e9a89b; }
.footer-bottom {
    border-top: 1px solid rgba(233, 223, 208, 0.12);
    padding: 20px 0;
    color: #8d8173;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-row {
        grid-template-columns: 1fr;
        gap: 28px;
        text-align: center;
    }
    .hero-doll { max-width: 240px; margin: 0 auto; }
    .hero-text { text-align: center; margin: 0 auto; }
    .hero-subtitle { margin: 0 auto 30px; }
    .hero-ctas { justify-content: center; }
    .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; text-align: left; }
}

@media (max-width: 768px) {
    .nav { padding: 12px 0; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-links a { padding: 4px 0; }
    .eyebrow.center { margin-left: auto; margin-right: auto; }
}
