/* ============================================================
   Aguja & ternura — Hoja de estilos de la landing page
   Paleta e identidad basada en la propuesta de marca:
   Rosado Pastel, Menta Suave, Lila Tierno, Azul Cielo, Tono Tierra
   ============================================================ */

:root {
    --color-pink: #F7D1D1;
    --color-mint: #A8E6CF;
    --color-lilac: #E6C6E9;
    --color-sky: #C0E8F0;
    --color-earth: #6F4E37;
    --color-earth-dark: #4d3427;
    --color-cream: #FFF9F5;
    --color-text: #4a3b33;
    --color-text-light: #7a6a61;
    --shadow-soft: 0 10px 30px rgba(111, 78, 55, 0.12);
    --shadow-card: 0 6px 18px rgba(111, 78, 55, 0.10);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --font-heading: 'Delius Swash Caps', cursive;
    --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-cream);
    line-height: 1.6;
}

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

a { text-decoration: none; color: inherit; }

h1, h2, h3, .font-heading {
    font-family: var(--font-heading);
    color: var(--color-earth);
    line-height: 1.25;
    margin: 0 0 .5em;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 90px 0; }
.section-alt { background: #fff; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.section-header p { color: var(--color-text-light); font-size: 1.05rem; }
.eyebrow {
    display: inline-block;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .75rem;
    color: var(--color-earth);
    background: var(--color-pink);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 14px;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-whatsapp {
    background: #25D366;
    color: #fff;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .35);
}
.btn-whatsapp:hover { background: #1ebd58; }
.btn-outline {
    background: transparent;
    border: 2px solid var(--color-earth);
    color: var(--color-earth);
}
.btn-outline:hover { background: var(--color-earth); color: #fff; }
.btn-light {
    background: #fff;
    color: var(--color-earth);
}

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 249, 245, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(111,78,55,0.08);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 84px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--color-earth);
}
.logo-badge {
    width: 46px; height: 46px;
    border-radius: 50%;
    background: var(--color-pink);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
}
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav a:not(.btn) {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}
.main-nav a:not(.btn):hover { color: var(--color-earth); }
.nav-toggle {
    display: none;
    background: none; border: none; font-size: 1.8rem; cursor: pointer; color: var(--color-earth);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 70px 0 100px;
    overflow: hidden;
    background: linear-gradient(160deg, var(--color-sky) 0%, var(--color-pink) 55%, var(--color-lilac) 100%);
}
.hero .container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 50px;
}
.hero-eyebrow {
    background: rgba(255,255,255,.6);
}
.hero h1 {
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}
.hero p.hero-subtitle {
    font-size: 1.15rem;
    color: var(--color-earth-dark);
    max-width: 480px;
    margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-visual img.custom-hero-img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    width: 100%;
    object-fit: cover;
    max-height: 460px;
}
.hero-blob {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 92%;
    max-width: 420px;
    aspect-ratio: 1;
    background: rgba(255,255,255,0.55);
    border-radius: 45% 55% 60% 40% / 50% 45% 55% 50%;
    filter: blur(0px);
}
.hero-illustration { position: relative; z-index: 2; width: 100%; max-width: 380px; }
.hero-dot {
    position: absolute;
    border-radius: 50%;
    opacity: .7;
}

/* ---------- About ---------- */
.about .container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}
.about-image-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: var(--color-mint);
    aspect-ratio: 4/5;
    display: flex; align-items: center; justify-content: center;
}
.about-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { color: var(--color-text-light); font-size: 1.05rem; margin-bottom: 18px; }
.about-signature {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-earth);
    margin-top: 20px;
}
.badge-handmade {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-cream);
    border: 2px dashed var(--color-earth);
    color: var(--color-earth);
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    font-size: .85rem;
    margin-top: 22px;
}

/* ---------- Features ---------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 26px;
}
.feature-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 32px 26px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform .2s ease;
}
.feature-card:hover { transform: translateY(-6px); }
.feature-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: var(--color-pink);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 18px;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--color-text-light); font-size: .95rem; margin: 0; }

/* ---------- Products ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.product-card {
    background: #fff;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.product-image {
    aspect-ratio: 1/1;
    background: var(--color-sky);
    overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-body {
    padding: 22px 22px 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.product-category {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-earth);
    font-weight: 600;
    margin-bottom: 6px;
}
.product-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.product-desc {
    color: var(--color-text-light);
    font-size: .92rem;
    margin: 0 0 16px;
    /* Recorte visual uniforme, sin importar el largo real del texto */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(0.92rem * 1.6 * 3);
}
.product-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.product-price {
    font-weight: 700;
    color: var(--color-earth);
    font-size: 1.1rem;
}
.link-readmore {
    font-weight: 600;
    color: var(--color-earth);
    border-bottom: 2px solid var(--color-mint);
    padding-bottom: 2px;
    background: none;
    border-top: none; border-left: none; border-right: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: .92rem;
}
.link-readmore:hover { color: #000; }
.empty-state {
    text-align: center;
    color: var(--color-text-light);
    padding: 40px;
    background: #fff;
    border-radius: var(--radius-md);
}

/* ---------- Modal de producto ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(74, 59, 51, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
}
.modal-overlay.open { display: flex; }
.modal-box {
    background: #fff;
    border-radius: var(--radius-lg);
    max-width: 780px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    box-shadow: var(--shadow-soft);
}
.modal-close {
    position: absolute;
    top: 16px; right: 16px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: #fff;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow-card);
    z-index: 2;
}
.modal-image { background: var(--color-sky); }
.modal-image img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.modal-content { padding: 36px 32px; }
.modal-content .product-category { margin-bottom: 10px; }
.modal-content h3 { font-size: 1.5rem; margin-bottom: 12px; }
.modal-content .modal-description { color: var(--color-text-light); white-space: pre-line; margin-bottom: 24px; }
.modal-price { font-size: 1.5rem; font-weight: 700; color: var(--color-earth); margin-bottom: 20px; }

/* ---------- CTA ---------- */
.cta {
    background: var(--color-earth);
    color: #fff;
    text-align: center;
    padding: 80px 0;
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,0.85); margin-bottom: 30px; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
    background: #3a281e;
    color: rgba(255,255,255,0.75);
    padding: 50px 0 28px;
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 24px;
}
.footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #fff;
}
.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
}
.footer-socials a:hover { background: var(--color-pink); color: var(--color-earth-dark); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .85rem;
}

/* ---------- WhatsApp flotante ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: #25D366;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(37,211,102,.45);
    color: #fff;
}
.whatsapp-float:hover { transform: scale(1.07); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero .container, .about .container { grid-template-columns: 1fr; }
    .about-image-wrap { max-width: 420px; margin: 0 auto; }
    .modal-box { grid-template-columns: 1fr; }
    .modal-image img { min-height: 200px; }
}

@media (max-width: 720px) {
    .main-nav {
        position: fixed;
        top: 84px; left: 0; right: 0;
        background: var(--color-cream);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 10px 24px 20px;
        box-shadow: var(--shadow-card);
        transform: translateY(-130%);
        transition: transform .25s ease;
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav a:not(.btn) { padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(111,78,55,0.08); }
    .main-nav .btn { margin-top: 14px; }
    .nav-toggle { display: block; }
    .section { padding: 60px 0; }
}
