/* ==========================================================================
   Buganvilla Creativa — hoja de estilos del sitio público
   ========================================================================== */

:root {
    --berry: #C14E6E;
    --berry-dark: #98394F;
    --berry-darker: #6E2A3B;
    --cream: #FBEACD;
    --cream-soft: #FFF8EC;
    --coral: #FA5A68;
    --coral-dark: #E14456;
    --orange: #F3954C;
    --mustard: #FBC24A;
    --sage: #6F9468;
    --ink: #4A2338;
    --ink-soft: #7A5062;
    --white: #FFFFFF;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(154, 58, 79, 0.15);
    --shadow-soft: 0 6px 18px rgba(154, 58, 79, 0.10);
    --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--cream-soft);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    margin: 0 0 .5em;
    line-height: 1.15;
    color: var(--berry-darker);
}

p { line-height: 1.65; margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

.eyebrow {
    display: inline-block;
    font-family: 'Fredoka', sans-serif;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--coral-dark);
    background: rgba(250, 90, 104, 0.12);
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h1, .section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section-head p { color: var(--ink-soft); }

/* --- Botones --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Fredoka', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 999px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: var(--white); box-shadow: 0 8px 20px rgba(250,90,104,.35); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-outline { background: transparent; border-color: var(--cream); color: var(--cream); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-outline-berry { background: transparent; border-color: var(--berry); color: var(--berry); }
.btn-outline-berry:hover { background: rgba(193,78,110,.08); }
.btn-mustard { background: var(--mustard); color: var(--berry-darker); box-shadow: 0 8px 20px rgba(251,194,74,.4); }
.btn-mustard:hover { background: #f0b433; }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }

/* --- Cabecera / navegación --- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 248, 236, 0.92);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(193,78,110,.10);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 44px; width: auto; }
.brand-name { font-family: 'Fredoka', sans-serif; font-size: 1.15rem; color: var(--berry); }
.brand-name small { display: block; font-size: .6rem; letter-spacing: .15em; color: var(--sage); font-weight: 600; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    font-family: 'Fredoka', sans-serif;
    font-size: .95rem;
    padding: 8px 16px;
    border-radius: 999px;
    color: var(--ink);
    transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active { background: var(--berry); color: var(--cream); }

.nav-toggle {
    display: none;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--berry);
}

@media (max-width: 860px) {
    .site-header .container { flex-wrap: nowrap; }
    .brand { min-width: 0; overflow: hidden; }
    .brand span { overflow: hidden; text-overflow: ellipsis; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        inset: 68px 12px auto 12px;
        flex-direction: column;
        align-items: stretch;
        background: var(--white);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        padding: 10px;
        gap: 4px;
        display: none;
        z-index: 60;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 12px 16px; }
}

/* --- Hero --- */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(150deg, var(--berry) 0%, var(--berry-dark) 60%, var(--berry-darker) 100%);
    color: var(--cream);
    padding: 84px 0 100px;
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { color: var(--cream); font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.hero p.lead { font-size: 1.15rem; color: #F6DDE4; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-blob {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 42% 58% 63% 37% / 45% 41% 59% 55%;
    background: linear-gradient(135deg, var(--mustard), var(--orange), var(--coral));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.hero-blob img { width: 66%; filter: drop-shadow(0 10px 20px rgba(0,0,0,.2)); }
.hero-deco { position: absolute; border-radius: 50%; opacity: .18; }
.hero-deco.d1 { width: 260px; height: 260px; background: var(--mustard); top: -80px; left: -80px; }
.hero-deco.d2 { width: 180px; height: 180px; background: var(--coral); bottom: -60px; right: 10%; }

@media (max-width: 800px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-actions { justify-content: center; }
    .hero-blob { max-width: 280px; margin: 0 auto; }
}

/* --- Franja de categorías --- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card {
    border-radius: var(--radius);
    padding: 32px 24px;
    color: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease;
    display: block;
}
.cat-card:hover { transform: translateY(-6px); }
.cat-card .cat-icon { font-size: 2.4rem; margin-bottom: 12px; display: block; }
.cat-card h3 { color: var(--white); font-size: 1.3rem; }
.cat-card p { color: rgba(255,255,255,.9); margin-bottom: 0; }
.cat-card.c1 { background: linear-gradient(135deg, var(--coral), var(--coral-dark)); }
.cat-card.c2 { background: linear-gradient(135deg, var(--orange), #d9772f); }
.cat-card.c3 { background: linear-gradient(135deg, var(--sage), #557a50); }

@media (max-width: 760px) { .cat-grid { grid-template-columns: 1fr; } }

/* --- Cómo funciona --- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { text-align: center; padding: 0 8px; }
.step-num {
    width: 56px; height: 56px; margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--mustard);
    color: var(--berry-darker);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Fredoka', sans-serif; font-size: 1.3rem;
    box-shadow: var(--shadow-soft);
}
.step h4 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: .92rem; margin-bottom: 0; }

@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }

/* --- Grid genérico de tarjetas (galería / catálogo) --- */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-cards { grid-template-columns: 1fr; } }

.card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media {
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #FDE6C6, #FBD3D8);
    display: flex; align-items: center; justify-content: center;
    color: var(--berry);
    font-size: 2rem;
    overflow: hidden;
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card-body p { color: var(--ink-soft); font-size: .92rem; }
.card-price { font-family: 'Fredoka', sans-serif; color: var(--coral-dark); font-size: 1rem; margin-top: auto; }
.card-badge {
    align-self: flex-start;
    font-size: .72rem;
    font-family: 'Fredoka', sans-serif;
    background: var(--cream);
    color: var(--berry);
    padding: 3px 12px;
    border-radius: 999px;
    margin-bottom: 8px;
}

/* --- Filtros de categoría --- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.filter-chip {
    font-family: 'Fredoka', sans-serif;
    font-size: .9rem;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--white);
    border: 2px solid var(--cream);
    color: var(--berry);
}
.filter-chip.active { background: var(--berry); border-color: var(--berry); color: var(--cream); }

/* --- Banda de confianza --- */
.trust-band { background: var(--berry-darker); color: var(--cream); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.trust-grid .icon { font-size: 1.8rem; margin-bottom: 8px; }
.trust-grid h4 { color: var(--cream); font-size: 1rem; margin-bottom: 4px; }
.trust-grid p { color: #E6C4CF; font-size: .88rem; margin-bottom: 0; }
@media (max-width: 700px) { .trust-grid { grid-template-columns: 1fr; } }

/* --- Estado vacío --- */
.empty-state {
    text-align: center;
    padding: 50px 20px;
    background: var(--white);
    border-radius: var(--radius);
    color: var(--ink-soft);
    box-shadow: var(--shadow-soft);
}
.empty-state .icon { font-size: 2.4rem; margin-bottom: 10px; }

/* --- Formularios --- */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; gap: 6px; }
.form-row label { font-family: 'Fredoka', sans-serif; font-size: .88rem; color: var(--berry-darker); }
.form-row input, .form-row textarea, .form-row select {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 2px solid #F0DCC6;
    background: var(--white);
    color: var(--ink);
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
    outline: none;
    border-color: var(--coral);
}
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-two { grid-template-columns: 1fr; } }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 20px; font-size: .95rem; }
.alert-success { background: #E4F0E1; color: #3E6B39; }
.alert-error { background: #FBE3E0; color: #A6392B; }

/* --- Contacto: tarjetas de datos --- */
.contact-info { display: grid; gap: 14px; }
.contact-info .item {
    display: flex; align-items: center; gap: 14px;
    background: var(--white);
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-soft);
}
.contact-info .item .ic {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--cream); color: var(--berry);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.contact-info .item strong { display: block; font-family: 'Fredoka', sans-serif; color: var(--berry-darker); font-size: .9rem; }
.contact-info .item span { color: var(--ink-soft); font-size: .9rem; }

.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

/* --- Página producto --- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
@media (max-width: 800px) { .product-layout { grid-template-columns: 1fr; } }
.product-media {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, #FDE6C6, #FBD3D8);
    display: flex; align-items: center; justify-content: center;
    color: var(--berry); font-size: 3rem;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-size: 1.9rem; }
.price-tag {
    display: inline-block;
    font-family: 'Fredoka', sans-serif;
    background: var(--mustard);
    color: var(--berry-darker);
    padding: 8px 18px;
    border-radius: 999px;
    margin-bottom: 16px;
}

/* --- Lightbox galería --- */
.lightbox-overlay {
    position: fixed; inset: 0; background: rgba(74,35,56,.88);
    display: none; align-items: center; justify-content: center;
    z-index: 200; padding: 30px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 85vh; border-radius: var(--radius-sm); }
.lightbox-close {
    position: absolute; top: 24px; right: 30px;
    color: var(--cream); font-size: 2rem; cursor: pointer; border: none; background: none;
}

/* --- Sobre nosotros --- */
.about-hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
@media (max-width: 800px) { .about-hero { grid-template-columns: 1fr; } }
.about-photo {
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--mustard), var(--coral));
    aspect-ratio: 1/1;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow);
}
.about-photo img { width: 55%; }
.value-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
@media (max-width: 600px) { .value-list { grid-template-columns: 1fr; } }
.value-list .val { background: var(--white); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow-soft); }
.value-list .val strong { display: block; color: var(--berry); font-family: 'Fredoka', sans-serif; margin-bottom: 4px; }

/* --- Pie de página --- */
.site-footer { background: var(--berry-darker); color: var(--cream); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--mustard); font-size: .95rem; letter-spacing: .04em; margin-bottom: 14px; }
.site-footer a { color: #EFD3DB; display: block; padding: 4px 0; font-size: .92rem; }
.site-footer a:hover { color: var(--mustard); }
.footer-brand img { height: 46px; margin-bottom: 12px; }
.footer-brand p { color: #DDB4C1; font-size: .9rem; max-width: 320px; }
.social-row { display: flex; gap: 10px; margin-top: 10px; }
.social-row a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
.social-row a:hover { background: var(--coral); }
.footer-bottom {
    text-align: center; margin-top: 40px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.12);
    color: #C98CA0; font-size: .82rem;
}

/* --- Utilidades --- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
