/* ==========================================================
   CHERRY PASTELERÍA — CSS Definitivo
   ========================================================== */

/* ── Cursivas y Frases: Playfair Display Italic Regular Homogéneo ── */
em, .font-script {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-size: 1em !important;
    line-height: inherit !important;
    letter-spacing: normal !important;
}

.hero-title em {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-size: 1em !important;
    color: #FFD1DC !important; /* Opción 2: Rosa Empolvado / Cherry Pastel */
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
    display: inline !important;
}

.section-title em, .h2 em, .pol-title em, .historia-title em, .contact-title em, .p-section-title em, .cta-title em, .modal-title em, .creaciones-title em, .pers-hero-title em, .cat-hero-title em, .history-hero-title em {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-size: 1em !important;
    color: var(--red) !important;
    display: inline !important;
    line-height: inherit !important;
}

/* ── Design Tokens ──────────────────────────────────────── */
:root {
    --cream:       #FAF8F5;
    --white: #FFFFFF;
    --cream-brand: #fce1a9;
    --cream-dark:  #F2EDE7;
    --sand:        #EDE6DD;
    --red:         #983564;
    --red-hover:   #7d2550;
    --red-dark:    #7d2550;
    --text-dark:   #340000;
    --dark-brand:  #340000;
    --text:        #340000;          /* alias for --text-dark */
    --text-mid:    #5c3846;
    --text-light:  #947a85;
    --text-lt:     #947a85;          /* alias for --text-light */
    --border:      rgba(52, 0, 0, 0.12);

    --serif:   'Playfair Display', Georgia, serif;
    --sans:    'Plus Jakarta Sans', system-ui, sans-serif;
    --script: 'Playfair Display', Georgia, serif;

    --r-sm:   8px;
    --r-md:   16px;
    --r-lg:   28px;
    --r:      16px;                  /* alias for --r-md */
    --pill:   999px;
    --ease:   cubic-bezier(0.16, 1, 0.3, 1);
    --t:      0.3s var(--ease);

    --hdr:    82px;
    --wrap:   1200px;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; font-size: 16px; }
body   { font-family: var(--sans); background: var(--cream); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img    { display: block; max-width: 100%; height: auto; }
a      { color: inherit; text-decoration: none; transition: color var(--t); }
ul     { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ──────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.6rem;
    border-radius: var(--pill);
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: all var(--t);
    white-space: nowrap;
}

.btn-sm   { padding: .55rem 1.2rem; font-size: .72rem; }
.btn-block{ width: 100%; justify-content: center; }

.btn-red {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn-red:hover {
    background: #7d2550;
    border-color: #7d2550;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(152, 53, 100,.22);
}

.btn-white-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,.7);
    padding: .75rem 1.8rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-radius: var(--pill);
    transition: all var(--t);
}
.btn-white-outline:hover {
    background: rgba(255,255,255,.12);
    border-color: #fff;
    transform: translateY(-2px);
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--hdr);
    z-index: 900;
    background: rgba(250, 248, 245, 0.72);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid rgba(229, 222, 213, 0.35);
    transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-header.scrolled {
    background: rgba(250, 248, 245, 0.90);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border-bottom-color: rgba(229, 222, 213, 0.65);
}

.hdr-inner {
    max-width: var(--wrap);
    height: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
    text-decoration: none;
}
.logo-icon {
    height: 72px; /* Logo más grande con máxima presencia de marca */
    width: auto;
    object-fit: contain;
    transition: transform var(--t);
}
.logo:hover .logo-icon {
    transform: scale(1.08);
}
@media (max-width: 680px) {
    .logo-icon { height: 58px; }
}

/* Tipografía de Marca para 'Cherry' con SVG Normalizado y Destacado */
.cherry-inline-svg {
    display: inline-block;
    height: 2.5em;
    width: auto;
    vertical-align: -0.62em;
    object-fit: contain;
    margin: 0 0.18em;
    transition: transform 0.3s ease;
}

/* En párrafos y texto corrido */
p .cherry-inline-svg, li .cherry-inline-svg, span .cherry-inline-svg {
    height: 3.2em;
    vertical-align: -0.72em;
    margin: 0 0.22em;
}

/* En títulos y encabezados grandes */
h1 .cherry-inline-svg, h2 .cherry-inline-svg, h3 .cherry-inline-svg,
.hero-title .cherry-inline-svg, .section-title .cherry-inline-svg,
.panel-title .cherry-inline-svg {
    height: 1.85em;
    vertical-align: -0.38em;
    margin: 0 0.18em;
}

/* En subtítulos y cejas de sección */
.hero-eyebrow-text .cherry-inline-svg, .hero-eyebrow .cherry-inline-svg,
.eyebrow .cherry-inline-svg, .form-eyebrow .cherry-inline-svg {
    height: 3.8em;
    vertical-align: -0.85em;
    margin: 0 0.25em;
}

/* En badges y etiquetas pequeñas */
.p-card-tag .cherry-inline-svg,
.p-card-tag--exclusive .cherry-inline-svg,
.feat-badge--red .cherry-inline-svg,
.chip .cherry-inline-svg {
    height: 1.85em;
    vertical-align: -0.42em;
    filter: brightness(0) invert(1);
    -webkit-filter: brightness(0) invert(1);
    display: inline-block;
}

/* En cita de historia (caja oscura) */
.historia-quote-box .cherry-inline-svg {
    height: 2.5em;
    vertical-align: -0.62em;
    filter: brightness(0) invert(1);
}

.historia-quote-author .cherry-inline-svg {
    height: 2.1em;
    vertical-align: -0.5em;
    filter: brightness(0) invert(1);
}

/* Footer logo */
.footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}
.footer-logo .logo-icon {
    height: 60px;
    width: auto;
}

/* Subida de foto referencial */
.file-upload-box {
    margin-top: .4rem;
}
.file-drop-area {
    border: 2px dashed rgba(152, 53, 100, 0.3);
    border-radius: var(--r-md);
    background: #FFFDF9;
    padding: 1.4rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--t);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.file-drop-area:hover, .file-drop-area.dragover {
    border-color: var(--red);
    background: rgba(252, 225, 169, 0.2);
    transform: translateY(-1px);
}
.file-text {
    font-size: .86rem;
    color: var(--text-dark);
    margin-bottom: .25rem;
}
.file-hint {
    font-size: .72rem;
    color: var(--text-light);
}
.file-preview-wrap {
    display: flex;
    align-items: center;
    gap: .85rem;
    background: #fff;
    border: 1.5px solid rgba(152, 53, 100, 0.35);
    border-radius: var(--r-md);
    padding: .65rem .85rem;
    box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.file-preview-img {
    width: 48px;
    height: 48px;
    border-radius: var(--r-sm);
    object-fit: cover;
    border: 1px solid var(--border);
}
.file-info {
    flex: 1;
    min-width: 0;
}
.file-name {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.file-status {
    display: block;
    font-size: .7rem;
    color: #2e7d32;
    font-weight: 600;
}
.btn-file-remove {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(152, 53, 100, 0.1);
    color: var(--red);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all var(--t);
}
.btn-file-remove:hover {
    background: var(--red);
    color: #fff;
}

/* Nav */
.main-nav  { flex: 1; display: flex; justify-content: center; }
.nav-list  { display: flex; gap: 1.75rem; }
.nav-link  { font-size: .75rem; font-weight: 600; letter-spacing: .06em; color: var(--text-dark); text-transform: uppercase; transition: color var(--t); }
.nav-link:hover, .nav-link--active { color: var(--red); }
.nav-link--active { font-weight: 700; }

/* Header Actions */
.hdr-actions {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
    margin-left: auto;
}
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: var(--pill);
    cursor: pointer;
    transition: all var(--t);
    flex-shrink: 0;
}
.hamburger:hover {
    background: var(--sand);
    border-color: var(--red);
}
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all var(--t);
}
.hamburger:hover span {
    background: var(--red);
}


/* ── Mobile Drawer Universal & Robusto ── */
.drawer {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    right: -100% !important;
    left: auto !important;
    width: min(340px, 85vw) !important;
    height: 100% !important;
    min-height: 100vh !important;
    background: #FAF8F5 !important;
    z-index: 999999 !important;
    box-shadow: -16px 0 40px rgba(52, 0, 0, 0.18) !important;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
}

.drawer.open {
    right: 0 !important;
}

.drawer-inner {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    padding: 2rem 1.5rem !important;
    gap: 1.5rem !important;
}

.drawer-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding-bottom: 1.25rem !important;
    border-bottom: 1px solid rgba(52, 0, 0, 0.1) !important;
}

.drawer-close {
    font-size: 2.2rem !important;
    color: #340000 !important;
    background: none !important;
    border: none !important;
    cursor: pointer !important;
    line-height: 1 !important;
    padding: .2rem .5rem !important;
}

.drawer-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.drawer-link {
    font-family: var(--serif, 'Playfair Display', Georgia, serif) !important;
    font-size: 1.25rem !important;
    color: #340000 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    display: block !important;
}

.drawer-link:hover {
    color: #983564 !important;
}


/* ── Reveal Animations ───────────────────────────────────── */
.reveal-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── S1: HERO ────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    transform: scale(1.04);
    transition: transform 8s ease;
}
.hero:hover .hero-bg { transform: scale(1); }

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(20,12,8,.72) 0%,
        rgba(20,12,8,.55) 45%,
        rgba(20,12,8,.12) 75%,
        transparent 100%
    );
}

.hero-body {
    position: relative;
    z-index: 2;
    padding-top: calc(var(--hdr) + 2rem);
    padding-bottom: 5rem;
    max-width: 640px;
}

.hero-eyebrow-phrase {
    font-family: var(--serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(1.2rem, 2.2vw, 1.7rem);
    color: #FFF2E8;
    line-height: 1.2;
    margin-bottom: .85rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hero-eyebrow-phrase .cherry-inline-svg {
    height: 2.8em !important;
    max-height: 64px !important;
    vertical-align: -0.45em !important;
    filter: brightness(0) invert(1) !important;
    display: inline-block;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 4.8vw, 4rem);
    font-weight: 700;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: -.01em;
}
/* .hero-title em — ver declaración principal arriba */

.h2 em, .section-title em, .creaciones-title em, .pers-hero-title em, .cat-hero-title em, .history-hero-title em {
    font-family: 'Playfair Display', Georgia, serif !important;
    font-style: italic !important;
    font-weight: 400 !important;
    font-size: 1em !important;
    color: var(--red) !important;
}

.hero-sub {
    font-size: 1rem;
    color: rgba(255,255,255,.85);
    line-height: 1.65;
    margin-bottom: 2.25rem;
}

.hero-scroll-hint {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.55);
    animation: bounce 2.2s ease infinite;
    z-index: 2;
}
@keyframes bounce {
    0%,100% { transform: translate(-50%,0); }
    50%     { transform: translate(-50%,8px); }
}

/* ── S2 & General Sections ───────────────────────────────── */
.section { padding: 6rem 0; }

.eyebrow-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}
.eyebrow {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--text-mid);
    white-space: nowrap;
}
.eyebrow--center { margin-bottom: .6rem; }
.eyebrow--light  { color: rgba(255,255,255,.75); }

.eyebrow-rule {
    flex: 1;
    height: 1px;
    background: var(--border);
}
.eyebrow-rule--light { background: rgba(255,255,255,.28); }
.eyebrow-rule--short { flex: none; width: 64px; }

/* S2 Split Layout */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 4.5rem;
    align-items: center;
}

.h2 {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}
.h2--center { text-align: center; }

.body-text {
    font-size: .95rem;
    color: var(--text-mid);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.text-link {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--red);
    transition: letter-spacing var(--t);
}
.text-link:hover { letter-spacing: .2em; }

.split-img-wrap {
    border-radius: var(--r-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 20px 50px rgba(0,0,0,.07);
}
.split-img { width: 100%; height: 100%; object-fit: cover; }

/* S3 Categories */
.centered-head { text-align: center; margin-bottom: 3.5rem; }

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1060px;
    margin: 0 auto;
}

.cat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .75rem;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    padding: 0;
}

.cat-img-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--sand);
}

.cat-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.cat-card:hover .cat-img { transform: scale(1.06); }

.cat-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--text-dark);
}

.cat-more {
    font-size: .78rem;
    color: var(--text-mid);
    transition: color var(--t);
}
.cat-card:hover .cat-more { color: var(--red); }

/* ── S4: Custom Banner ───────────────────────────────────── */
.custom-banner {
    position: relative;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    align-items: center;
}

.custom-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.custom-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        rgba(18,10,6,.82) 0%,
        rgba(18,10,6,.6) 55%,
        rgba(18,10,6,.18) 100%
    );
}

.custom-body {
    position: relative;
    z-index: 2;
    padding: 5rem 0;
}

.custom-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin: 1rem 0 2rem;
}

/* ── S5: Pillars ─────────────────────────────────────────── */
.pillars-section { padding: 5rem 0; background: var(--cream); }

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.pillar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 2rem 0;
    border-right: 1px solid var(--border);
}
.pillar:last-child { border-right: none; }

.pillar-icon {
    color: var(--red);
    margin-bottom: 1.1rem;
}

.pillar-title {
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.35;
    margin-bottom: .55rem;
}

.pillar-desc {
    font-size: .8rem;
    color: var(--text-mid);
    line-height: 1.55;
}

/* ── S6: CTA Final ───────────────────────────────────────── */
.cta-section { padding: 3rem 0 6rem; }

.cta-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2.5rem;
    background: var(--cream-dark);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2rem 2.75rem;
}

.cta-img-box {
    width: 88px;
    height: 88px;
    border-radius: var(--r-md);
    overflow: hidden;
    flex-shrink: 0;
}
.cta-thumb { width: 100%; height: 100%; object-fit: cover; }

.cta-title {
    font-family: var(--serif);
    font-size: clamp(1.4rem, 2vw, 1.9rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: .3rem;
}
.cta-sub {
    font-size: .88rem;
    color: var(--text-mid);
}
.cta-btn-wrap { flex-shrink: 0; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
    background: var(--cream);
    border-top: 1px solid var(--border);
    padding: 4.5rem 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr 1.35fr;
    gap: 2.25rem;
    margin-bottom: 3.5rem;
    align-items: flex-start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.footer-logo .logo-icon {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.footer-socials {
    display: flex;
    gap: .75rem;
    align-items: center;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: #fff;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t);
    box-shadow: 0 2px 8px rgba(0,0,0,.03);
}

.social-link:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(152,53,100,.25);
}

.footer-head {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--text-dark);
    margin-bottom: 1.15rem;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.footer-list li, .footer-list a {
    font-size: .84rem;
    color: var(--text-mid);
    transition: color var(--t);
}

.footer-list a:hover {
    color: var(--red);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--text-mid);
    font-size: .84rem;
}

.footer-contact li a {
    color: var(--text-mid);
    transition: color var(--t);
}

.footer-contact li a:hover {
    color: var(--red);
}

.footer-contact li svg {
    color: var(--red);
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: .78rem;
    color: var(--text-light);
    padding-right: 4.5rem; /* Evita que el botón flotante tape el link */
}

.footer-admin-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .4rem .9rem;
    border-radius: var(--pill);
    background: rgba(152, 53, 100, 0.08);
    border: 1px solid rgba(152, 53, 100, 0.2);
    color: var(--red);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .03em;
    text-decoration: none;
    transition: all var(--t);
}

.footer-admin-link:hover {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(152, 53, 100, 0.25);
}

.footer-credit {
    display: inline-block;
    margin-left: .25rem;
}
.credit-link {
    color: var(--red);
    font-weight: 700;
    text-decoration: none;
    transition: color var(--t), text-decoration var(--t);
}
.credit-link:hover {
    color: var(--red-hover);
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ── Catalog Modal ───────────────────────────────────────── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(20,10,8,.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t), visibility var(--t);
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-box {
    background: var(--cream);
    border-radius: var(--r-lg);
    width: 100%;
    max-width: 860px;
    max-height: 86vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
    border: 1px solid var(--border);
    transform: translateY(20px);
    transition: transform var(--t);
}
.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
}
.modal-title {
    font-family: var(--serif);
    font-size: 1.7rem;
    color: var(--text-dark);
}
.modal-close-btn {
    font-size: 2rem;
    line-height: 1;
    color: var(--text-mid);
    cursor: pointer;
}
.modal-close-btn:hover { color: var(--red); }

.modal-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.product-card {
    background: #fff;
    border-radius: var(--r-md);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}
.product-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.product-info { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.product-name { font-family: var(--serif); font-size: 1.15rem; margin-bottom: .35rem; }
.product-desc { font-size: .83rem; color: var(--text-mid); line-height: 1.55; flex: 1; margin-bottom: 1rem; }
.product-price-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    border-top: 1px dashed var(--border);
    padding-top: .75rem;
    margin-bottom: 1rem;
}
.product-price  { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: var(--red); }
.product-size   { font-size: .76rem; color: var(--text-light); }

/* ── Featured Section (Destacados del mes) ──────────────── */
.featured-section { padding: 6rem 0; background: var(--cream-dark); }

.featured-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}


/* ── Visibilidad Garantizada de Tarjetas Destacadas ── */
.featured-grid .feat-card {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

.feat-card {
    background: var(--white);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform var(--t), box-shadow var(--t);
}
.feat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 48px rgba(0,0,0,.1);
}
.feat-card--hero {
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
    border-color: rgba(152, 53, 100,.18);
}

.feat-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--sand);
}
.feat-card--hero .feat-img-wrap { aspect-ratio: 4 / 3; }

.feat-img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.feat-card:hover .feat-img { transform: scale(1.06); }

.feat-badge {
    position: absolute;
    top: .85rem;
    left: .85rem;
    padding: .32rem .85rem;
    background: rgba(250,248,245,.95);
    border: 1px solid var(--border);
    border-radius: var(--pill);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--text-dark);
    backdrop-filter: blur(6px);
    white-space: nowrap;
    z-index: 2;
}
.feat-badge--red {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}

.feat-body {
    padding: 1.5rem 1.6rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.feat-cat  { font-size: .65rem; font-weight: 700; letter-spacing: .18em; color: var(--text-light); text-transform: uppercase; margin-bottom: .4rem; }
.feat-name { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--text-dark); margin-bottom: .55rem; line-height: 1.25; }
.feat-card--hero .feat-name { font-size: 1.45rem; }
.feat-desc { font-size: .85rem; color: var(--text-mid); line-height: 1.6; flex: 1; margin-bottom: 1.35rem; }

.feat-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
}

.feat-price-wrap { display: flex; flex-direction: column; }
.feat-price-label { font-size: .65rem; color: var(--text-light); letter-spacing: .08em; text-transform: uppercase; }
.feat-price { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--red); }

.feat-wa-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1.2rem;
    background: var(--red);
    color: #fff;
    border-radius: var(--pill);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    transition: all var(--t);
    white-space: nowrap;
}
.feat-wa-btn:hover { background: #7d2550; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(152, 53, 100,.22); color: #fff; }

.feat-catalog-link {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--red);
    border-bottom: 1.5px solid currentColor;
    padding-bottom: .15rem;
    transition: letter-spacing var(--t);
}
.feat-catalog-link:hover { letter-spacing: .16em; }

/* ── Responsive Global & Modular ─────────────────────────── */
@media (max-width: 1060px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
    .footer-brand { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 2rem; }
}

@media (max-width: 960px) {
    .featured-grid {
        grid-template-columns: 1fr;
        max-width: 460px;
        margin: 0 auto;
        gap: 2rem;
    }
    .feat-card--hero { order: -1; }
    .split-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .pillar { border-right: none; border-bottom: 1px solid var(--border); padding: 2.5rem 1.5rem; }
    .pillar:last-child { border-bottom: none; }
    .modal-products { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .cta-card {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        padding: 2.5rem 1.5rem;
        gap: 1.5rem;
    }
    .cta-img-box { margin: 0 auto; }
    .cta-title { font-size: clamp(1.4rem, 5vw, 1.8rem); line-height: 1.25; }
    .cta-sub { max-width: 380px; margin: 0 auto; }
    .cta-btn-wrap { width: 100%; display: flex; justify-content: center; }
    .cta-btn-wrap .btn { width: 100%; max-width: 290px; justify-content: center; }
}

@media (max-width: 768px) {
    .hdr-inner { padding: 0 1.25rem; gap: 1rem; }
    .logo-name { font-size: 1.15rem; }
    .logo-icon { height: 58px; }
    .main-nav { display: none; }
    .hamburger { display: flex; }
    
    .btn-red.btn-sm {
        padding: .45rem .85rem;
        font-size: .68rem;
        letter-spacing: .05em;
    }
    
    .hero-title { font-size: clamp(2.3rem, 7vw, 3.4rem); }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 280px; gap: .75rem; margin-inline: auto; }
    .hero-buttons .btn { width: 100%; justify-content: center; }

    /* Footer Compacto en Responsive */
    .site-footer {
        padding: 3rem 0 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.75rem 1.25rem;
        margin-bottom: 2.25rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
        gap: .85rem;
        margin-bottom: .5rem;
    }
    .footer-socials { justify-content: center; gap: .75rem; }
    .footer-head {
        font-size: .62rem;
        letter-spacing: .16em;
        margin-bottom: .75rem;
    }
    .footer-list {
        gap: .4rem;
    }
    .footer-list li, .footer-list a {
        font-size: .78rem;
    }
    .footer-contact li {
        font-size: .78rem;
        gap: .4rem;
    }
    .footer-col:last-child {
        grid-column: 1 / -1;
        text-align: center;
        border-top: 1px dashed var(--border);
        padding-top: 1.25rem;
        margin-top: .25rem;
    }
    .footer-col:last-child .footer-contact {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .footer-bottom {
        padding-top: 1.25rem;
        font-size: .72rem;
    }
}

@media (max-width: 580px) {
    .section { padding: 3.5rem 0; }
    .featured-section { padding: 4rem 0; }
    .centered-head { margin-bottom: 2rem; }
    .h2 { font-size: 1.9rem; }

    .pillars-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: 1fr 1fr; gap: .85rem; }
    .cat-label { font-size: .74rem; }

    .container { padding: 0 1.25rem; }
}

@media (max-width: 480px) {
    .site-footer { padding: 2.5rem 0 1.25rem; }
    .footer-grid { gap: 1.5rem 1rem; margin-bottom: 1.75rem; }
    .footer-col:last-child .footer-contact {
        flex-direction: column;
        align-items: center;
        gap: .5rem;
    }
}

/* ── Botón Volver Arriba Flotante con Logo Animado (Unificado) ───────── */
.back-to-top {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    z-index: 999999 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1.5px solid rgba(152, 53, 100, 0.22) !important;
    box-shadow: 0 8px 24px rgba(152, 53, 100, 0.22) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(16px) scale(0.9) !important;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
}

.back-to-top.show,
.back-to-top.visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
}

.back-to-top:hover {
    background: #FAF7F2 !important;
    border-color: #983564 !important;
    box-shadow: 0 12px 32px rgba(152, 53, 100, 0.32) !important;
    transform: translateY(-3px) scale(1.08) !important;
}

.back-to-top-logo {
    width: 26px !important;
    height: 26px !important;
    object-fit: contain !important;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.back-to-top-arrow {
    position: absolute !important;
    top: -4px !important;
    right: -3px !important;
    width: 18px !important;
    height: 18px !important;
    background: #983564 !important;
    color: #fff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(152, 53, 100, 0.4) !important;
}

.back-to-top:hover .back-to-top-logo {
    transform: rotate(-10deg) scale(1.15) !important;
    animation: cherryWiggle 0.8s ease infinite alternate !important;
}

@keyframes cherryWiggle {
    0% { transform: rotate(-8deg) scale(1.12); }
    100% { transform: rotate(10deg) scale(1.18); }
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 1.25rem !important;
        right: 1.25rem !important;
        width: 44px !important;
        height: 44px !important;
    }
    .back-to-top-logo {
        width: 23px !important;
        height: 23px !important;
    }
}

/* ── 5 Destacadas Responsivas ── */
@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}
@media (max-width: 768px) {
    .featured-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .cat-grid { grid-template-columns: 1fr !important; max-width: 380px !important; }
}
