/* Catálogo público Monocuco */

:root {
    --brand-primary: #e6009c;
    --brand-secondary: #63ff7a;
    --ink: #111827;
    --muted: #64748b;
    --bg: #fff7fb;
    --card: #ffffff;
    --yellow: #ffd43b;
    --cyan: #20c7ff;
    --purple: #7c3aed;
    --shadow: 0 22px 60px rgba(17, 24, 39, .12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(99,255,122,.26), transparent 28%),
        radial-gradient(circle at 85% 8%, rgba(230,0,156,.18), transparent 28%),
        linear-gradient(180deg, #ffffff, var(--bg));
}

a {
    text-decoration: none;
}

.catalogo-hero {
    position: relative;
    min-height: 86vh;
    overflow: hidden;
    padding: 24px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 45%, rgba(255,212,59,.45), transparent 22%),
        radial-gradient(circle at 16% 75%, rgba(32,199,255,.18), transparent 24%);
    pointer-events: none;
}

.catalogo-nav {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 24px;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(16px);
    box-shadow: 0 16px 42px rgba(17, 24, 39, .08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: white;
    font-weight: 900;
    background: conic-gradient(from 0deg, var(--brand-secondary), var(--yellow), var(--brand-primary), var(--cyan), var(--brand-secondary));
    box-shadow: 0 10px 24px rgba(230,0,156,.22);
}

.brand strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand span {
    display: block;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 700;
}

.nav-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 900;
    border: 0;
    cursor: pointer;
    transition: .18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--purple), var(--brand-primary));
    box-shadow: 0 18px 34px rgba(124,58,237,.26);
}

.btn-light {
    color: var(--ink);
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(17, 24, 39, .08);
}

.btn-outline {
    color: var(--brand-primary);
    border: 2px solid rgba(230,0,156,.22);
    background: rgba(255,255,255,.65);
}

.btn-whatsapp {
    color: #064e3b;
    background: linear-gradient(135deg, #dcfce7, var(--brand-secondary));
}

.btn-small {
    min-height: 36px;
    padding: 8px 14px;
    background: #fff0fa;
    color: var(--brand-primary);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 70px auto 0;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 32px;
    align-items: center;
}

.pill {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: #fff0fa;
    color: var(--brand-primary);
    font-weight: 900;
    font-size: .83rem;
}

.hero-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(2.6rem, 6vw, 5.4rem);
    line-height: .92;
    letter-spacing: -0.075em;
    font-weight: 950;
}

.hero-copy p {
    max-width: 680px;
    color: var(--muted);
    font-size: 1.2rem;
    line-height: 1.7;
    font-weight: 600;
}

.hero-actions {
    margin-top: 28px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-card {
    min-height: 430px;
    border-radius: 42px;
    background:
        radial-gradient(circle at 50% 15%, rgba(255,255,255,.9), transparent 28%),
        linear-gradient(145deg, #ffe4f2, #ffffff);
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    position: relative;
    overflow: hidden;
}

.cake-illustration {
    position: relative;
    width: 260px;
    height: 280px;
}

.cake-top {
    position: absolute;
    top: 40px;
    left: 35px;
    width: 190px;
    height: 62px;
    border-radius: 50%;
    background: #fff8f0;
    border: 4px solid #7c4a2d;
}

.cake-body {
    position: absolute;
    top: 70px;
    left: 35px;
    width: 190px;
    height: 145px;
    border-radius: 18px 18px 34px 34px;
    background: linear-gradient(180deg, #fff8f0, #ffc7df);
    border: 4px solid #7c4a2d;
}

.cake-base {
    position: absolute;
    top: 208px;
    left: 12px;
    width: 236px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-primary), var(--yellow));
}

.spark {
    position: absolute;
    font-size: 2rem;
    color: var(--brand-primary);
}

.s1 { top: 10px; left: 0; }
.s2 { top: 18px; right: 8px; color: var(--cyan); }
.s3 { bottom: 20px; right: 40px; color: var(--brand-primary); }

.section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 68px 24px;
}

.section-title {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 34px;
}

.section-title h2 {
    margin: 12px 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 950;
    letter-spacing: -0.06em;
}

.section-title p {
    color: var(--muted);
    font-weight: 600;
    line-height: 1.6;
}

.category-grid,
.product-grid {
    display: grid;
    gap: 18px;
}

.category-grid {
    grid-template-columns: repeat(5, 1fr);
}

.category-card {
    padding: 20px;
    min-height: 150px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(17, 24, 39, .07);
    color: var(--ink);
    border: 1px solid rgba(226,232,240,.9);
}

.category-card span {
    display: block;
    color: var(--brand-primary);
    font-size: 1.5rem;
}

.category-card strong {
    display: block;
    margin: 8px 0;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.category-card small {
    color: var(--muted);
    font-weight: 600;
}

.product-grid {
    grid-template-columns: repeat(3, 1fr);
}

.product-card {
    border-radius: 30px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--shadow);
    border: 1px solid rgba(226,232,240,.9);
}

.product-image {
    height: 220px;
    background: linear-gradient(135deg, #fff0fa, #ecfbff);
    display: grid;
    place-items: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.placeholder-cake {
    font-size: 5rem;
}

.product-body {
    padding: 22px;
}

.product-category {
    display: inline-flex;
    color: var(--brand-primary);
    background: #fff0fa;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
}

.product-body h3 {
    margin: 14px 0 8px;
    font-size: 1.35rem;
    letter-spacing: -0.04em;
    font-weight: 950;
}

.product-body p {
    color: var(--muted);
    line-height: 1.55;
    min-height: 74px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.product-footer strong {
    font-size: 1.1rem;
}

.quote-section {
    padding-top: 30px;
}

.quote-card {
    border-radius: 38px;
    padding: 34px;
    background:
        radial-gradient(circle at 0% 0%, rgba(99,255,122,.20), transparent 32%),
        radial-gradient(circle at 100% 0%, rgba(230,0,156,.16), transparent 32%),
        #ffffff;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 32px;
}

.quote-card h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: .98;
    letter-spacing: -0.06em;
    font-weight: 950;
}

.quote-card p {
    color: var(--muted);
    line-height: 1.7;
    font-weight: 600;
}

.quote-form {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    font-weight: 900;
    color: #334155;
}

input,
textarea {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    padding: 13px 14px;
    font: inherit;
    outline: 0;
    background: #ffffff;
}

input:focus,
textarea:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(230,0,156,.10);
}

.catalogo-footer {
    margin-top: 50px;
    padding: 30px 24px;
    text-align: center;
    color: var(--muted);
    display: grid;
    gap: 4px;
}

.catalogo-footer strong {
    color: var(--ink);
}

/* Gracias */
.thanks-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.thanks-card {
    max-width: 560px;
    text-align: center;
    background: #fff;
    border-radius: 34px;
    padding: 42px;
    box-shadow: var(--shadow);
}

.thanks-icon {
    width: 76px;
    height: 76px;
    border-radius: 999px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-secondary), var(--cyan));
    font-size: 2.4rem;
    font-weight: 900;
}

.thanks-card h1 {
    font-size: 2.4rem;
    margin: 0 0 10px;
    letter-spacing: -0.05em;
}

.code {
    background: #f8fafc;
    border-radius: 14px;
    padding: 12px;
}

.thanks-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .hero-content,
    .quote-card {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-card {
        min-height: 300px;
    }
}

@media (max-width: 620px) {
    .catalogo-nav,
    .nav-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-grid,
    .product-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .catalogo-hero {
        padding: 14px;
    }

    .section {
        padding: 46px 16px;
    }

    .quote-card {
        padding: 22px;
    }
}


/* V6 Plantillas públicas */
.public-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 16px;
    background: #fff;
    padding: 5px;
    box-shadow: 0 10px 24px rgba(17,24,39,.10);
}

body.public-template-restaurante_menu {
    --bg: #fffaf0;
}

body.public-template-restaurante_menu .catalogo-hero {
    background:
        radial-gradient(circle at 80% 10%, rgba(250,204,21,.26), transparent 24%),
        radial-gradient(circle at 10% 60%, rgba(239,68,68,.15), transparent 30%);
}

body.public-template-ferreteria_catalogo {
    --bg: #f3f7ff;
}

body.public-template-ferreteria_catalogo .catalogo-hero {
    background:
        radial-gradient(circle at 80% 10%, rgba(37,99,235,.18), transparent 24%),
        radial-gradient(circle at 10% 60%, rgba(249,115,22,.15), transparent 30%);
}

body.public-template-minimal_store .hero-card,
body.public-template-minimal_store .product-card,
body.public-template-minimal_store .quote-card {
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(17,24,39,.08);
}


/* V7 catálogo público */
.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.public-template-boutique_premium {
    --bg: #fff7ed;
}

body.public-template-boutique_premium .catalogo-hero {
    background:
        radial-gradient(circle at 80% 10%, rgba(217,70,239,.22), transparent 24%),
        radial-gradient(circle at 10% 60%, rgba(17,24,39,.10), transparent 30%);
}

body.public-template-whatsapp_directo {
    --bg: #ecfdf5;
}

body.public-template-whatsapp_directo .btn-primary,
body.public-template-whatsapp_directo .btn-small {
    background: linear-gradient(135deg, #16a34a, #63ff7a);
    color: #052e16;
}

body.public-template-landing_promocional .hero-copy h1 {
    font-size: clamp(3rem, 7vw, 6rem);
}

body.public-template-landing_promocional .hero-card {
    transform: rotate(-1deg);
}


/* ============================================================
   V8 - Banner público ancho + plantillas realmente diferentes
   ============================================================ */

.public-banner-wide {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 34px auto 0;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #ffffff;
    border: 1px solid rgba(226,232,240,.9);
}

.public-banner-wide img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-content-with-banner {
    margin-top: 54px;
    grid-template-columns: 1fr .55fr;
}

.hero-side-card {
    min-height: 300px;
    border-radius: 34px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(226,232,240,.9);
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    text-align: center;
    padding: 28px;
    gap: 10px;
}

.hero-side-card img {
    max-width: 170px;
    max-height: 170px;
    object-fit: contain;
    border-radius: 28px;
}

.hero-side-card strong {
    font-size: 1.25rem;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hero-side-card span {
    color: var(--muted);
    font-weight: 700;
}

.brand-mark.large {
    width: 96px;
    height: 96px;
    font-size: 2rem;
}

/* Pastel artesanal */
body.public-template-pastel_artesanal {
    --bg: #fff7fb;
}

body.public-template-pastel_artesanal .catalogo-hero {
    background:
        radial-gradient(circle at 8% 10%, rgba(248,168,200,.28), transparent 25%),
        radial-gradient(circle at 90% 18%, rgba(139,94,60,.10), transparent 28%),
        linear-gradient(180deg, #ffffff, #fff7fb);
}

body.public-template-pastel_artesanal .product-card {
    border-radius: 32px;
}

/* Restaurante menú: layout más cálido y fuerte */
body.public-template-restaurante_menu {
    --bg: #fff7ed;
}

body.public-template-restaurante_menu .catalogo-hero {
    background:
        radial-gradient(circle at 20% 5%, rgba(239,68,68,.20), transparent 28%),
        radial-gradient(circle at 82% 12%, rgba(250,204,21,.32), transparent 26%),
        linear-gradient(180deg, #fffaf0, #ffffff);
}

body.public-template-restaurante_menu .hero-copy h1 {
    font-family: "Segoe UI", system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: -0.065em;
}

body.public-template-restaurante_menu .product-grid {
    grid-template-columns: repeat(2, 1fr);
}

body.public-template-restaurante_menu .product-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    border-radius: 22px;
}

body.public-template-restaurante_menu .product-image {
    height: 100%;
    min-height: 210px;
}

/* Ferretería catálogo: cuadrado, técnico y tipo catálogo */
body.public-template-ferreteria_catalogo {
    --bg: #f3f7ff;
}

body.public-template-ferreteria_catalogo .catalogo-hero {
    background:
        linear-gradient(135deg, rgba(37,99,235,.10) 25%, transparent 25%) -20px 0/40px 40px,
        linear-gradient(225deg, rgba(249,115,22,.08) 25%, transparent 25%) -20px 0/40px 40px,
        #f8fbff;
}

body.public-template-ferreteria_catalogo .catalogo-nav,
body.public-template-ferreteria_catalogo .product-card,
body.public-template-ferreteria_catalogo .quote-card,
body.public-template-ferreteria_catalogo .public-banner-wide,
body.public-template-ferreteria_catalogo .hero-side-card {
    border-radius: 10px;
}

body.public-template-ferreteria_catalogo .hero-copy h1 {
    font-family: Arial, system-ui, sans-serif;
    letter-spacing: -0.04em;
}

body.public-template-ferreteria_catalogo .product-grid {
    grid-template-columns: repeat(4, 1fr);
}

body.public-template-ferreteria_catalogo .product-image {
    height: 150px;
}

body.public-template-ferreteria_catalogo .btn {
    border-radius: 8px;
}

/* Minimal store */
body.public-template-minimal_store {
    --bg: #f8fafc;
}

body.public-template-minimal_store .catalogo-hero {
    background: #f8fafc;
}

body.public-template-minimal_store .catalogo-nav,
body.public-template-minimal_store .product-card,
body.public-template-minimal_store .quote-card,
body.public-template-minimal_store .public-banner-wide,
body.public-template-minimal_store .hero-side-card {
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(15,23,42,.06);
}

body.public-template-minimal_store .hero-copy h1 {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
}

/* Boutique Premium */
body.public-template-boutique_premium {
    --bg: #fff7ed;
    background:
        radial-gradient(circle at 80% 0%, rgba(217,70,239,.12), transparent 24%),
        linear-gradient(180deg, #fff, #fff7ed);
}

body.public-template-boutique_premium .catalogo-hero {
    background:
        radial-gradient(circle at 80% 10%, rgba(217,70,239,.22), transparent 24%),
        radial-gradient(circle at 10% 60%, rgba(17,24,39,.10), transparent 30%);
}

body.public-template-boutique_premium .product-card {
    border-radius: 0 34px 0 34px;
}

body.public-template-boutique_premium .hero-copy h1 {
    font-family: Georgia, serif;
    letter-spacing: -0.045em;
}

/* WhatsApp directo */
body.public-template-whatsapp_directo {
    --bg: #ecfdf5;
}

body.public-template-whatsapp_directo .catalogo-hero {
    background:
        radial-gradient(circle at 10% 10%, rgba(34,197,94,.22), transparent 26%),
        linear-gradient(180deg, #ecfdf5, #ffffff);
}

body.public-template-whatsapp_directo .btn-primary,
body.public-template-whatsapp_directo .btn-small,
body.public-template-whatsapp_directo .btn-whatsapp {
    background: linear-gradient(135deg, #16a34a, #63ff7a);
    color: #052e16;
}

body.public-template-whatsapp_directo .product-footer .btn-small {
    min-width: 120px;
}

/* Landing promocional */
body.public-template-landing_promocional .catalogo-hero {
    min-height: 95vh;
    background:
        radial-gradient(circle at 82% 20%, color-mix(in srgb, var(--brand-secondary) 30%, transparent), transparent 26%),
        radial-gradient(circle at 10% 40%, color-mix(in srgb, var(--brand-primary) 18%, transparent), transparent 28%),
        #ffffff;
}

body.public-template-landing_promocional .hero-copy h1 {
    font-size: clamp(3.2rem, 7vw, 6.5rem);
}

body.public-template-landing_promocional .public-banner-wide {
    transform: rotate(-0.5deg);
}

/* Soporte por si el valor queda con guion */
body.public-template-ferreteria-catalogo .catalogo-hero {
    background: #f3f7ff;
}

@media (max-width: 900px) {
    .hero-content-with-banner {
        grid-template-columns: 1fr;
    }

    body.public-template-restaurante_menu .product-grid,
    body.public-template-ferreteria_catalogo .product-grid {
        grid-template-columns: 1fr;
    }

    body.public-template-restaurante_menu .product-card {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   V10 - Corrección de imágenes de productos en catálogo
   ============================================================ */

/* Grid más uniforme */
.product-grid {
    align-items: stretch !important;
}

.product-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 440px;
    overflow: hidden !important;
}

.product-image {
    position: relative;
    width: 100%;
    height: 220px !important;
    min-height: 220px !important;
    max-height: 220px !important;
    overflow: hidden !important;
    background:
        linear-gradient(135deg, rgba(248,168,200,.10), rgba(99,255,122,.08)),
        #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center center !important;
    transition: transform .25s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.03);
}

.placeholder-cake {
    font-size: 3rem;
    opacity: .95;
}

.product-body {
    flex: 1 1 auto;
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: 18px;
}

.product-body h3 {
    min-height: 56px;
}

.product-body p {
    min-height: 72px;
    margin-bottom: 14px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.product-footer {
    margin-top: auto !important;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Pastel artesanal */
body.public-template-pastel_artesanal .product-card {
    min-height: 455px;
}

body.public-template-pastel_artesanal .product-image {
    border-bottom: 1px solid rgba(226,232,240,.9);
}

/* Restaurante menú */
body.public-template-restaurante_menu .product-card {
    min-height: 250px;
}

body.public-template-restaurante_menu .product-image {
    height: 100% !important;
    min-height: 230px !important;
    max-height: 100% !important;
}

body.public-template-restaurante_menu .product-body {
    padding: 20px;
}

body.public-template-restaurante_menu .product-body p {
    min-height: 60px;
}

/* Ferretería catálogo */
body.public-template-ferreteria_catalogo .product-card {
    min-height: 345px;
}

body.public-template-ferreteria_catalogo .product-image {
    height: 160px !important;
    min-height: 160px !important;
    max-height: 160px !important;
}

body.public-template-ferreteria_catalogo .product-body h3 {
    min-height: 48px;
    font-size: 1rem;
}

body.public-template-ferreteria_catalogo .product-body p {
    min-height: 54px;
    -webkit-line-clamp: 2;
}

/* Minimal */
body.public-template-minimal_store .product-card {
    min-height: 430px;
}

/* Boutique */
body.public-template-boutique_premium .product-card {
    min-height: 455px;
}

/* WhatsApp directo */
body.public-template-whatsapp_directo .product-card {
    min-height: 430px;
}

/* Landing */
body.public-template-landing_promocional .product-card {
    min-height: 450px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .product-card {
        min-height: auto !important;
    }

    .product-body h3,
    .product-body p {
        min-height: 0 !important;
    }
}
