/* ==== Variables ==== */
:root {
    --color-bg: #FBF6F6;
    --color-card: #FFFFFF;
    --color-text: #3A2D31;
    --color-muted: #8E7479;
    --color-primary: #D58794;
    --color-primary-dark: #B86C7B;
    --color-accent: #ECC4CB;
    --color-rose: #F8E4E7;
    --color-whatsapp: #25D366;
    --color-whatsapp-dark: #1ebe5b;
    --color-border: #ECDFE2;
    --shadow-sm: 0 2px 10px rgba(120, 80, 90, 0.07);
    --shadow-md: 0 12px 30px rgba(120, 80, 90, 0.13);
    --shadow-lg: 0 24px 50px rgba(120, 80, 90, 0.18);
    --radius: 18px;
    --font-body: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-script: 'Dancing Script', cursive;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }
body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    /* fondo decorativo sutil */
    background-image:
        radial-gradient(circle at 12% 18%, rgba(236, 196, 203, 0.20) 0, transparent 35%),
        radial-gradient(circle at 88% 80%, rgba(248, 228, 231, 0.40) 0, transparent 40%);
    background-attachment: fixed;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==== Barra de anuncio ==== */
.announcement-bar {
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    text-align: center;
    padding: 8px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.announcement-bar svg { flex-shrink: 0; }

/* ==== Header ==== */
.site-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--color-text);
}
.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
    font-family: var(--font-script);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.5px;
}
.brand-tagline {
    font-size: 0.78rem;
    color: var(--color-muted);
    margin-top: 2px;
    letter-spacing: 0.3px;
}

/* ==== Header favoritos ==== */
.header-favs {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-rose);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.header-favs:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.06);
}
.header-favs-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--color-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(120, 80, 90, 0.25);
    border: 2px solid white;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
}
.header-favs-count.is-empty {
    opacity: 0;
    transform: scale(0.4);
    pointer-events: none;
}

/* ==== Hero ==== */
.hero {
    text-align: center;
    padding: 60px 20px 20px;
    position: relative;
}
.hero-overline {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
    position: relative;
}
.hero-overline::before, .hero-overline::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 1px;
    background: var(--color-primary);
    vertical-align: middle;
    margin: 0 10px;
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 500;
    margin: 0 0 14px;
    color: var(--color-text);
    line-height: 1.1;
    letter-spacing: -0.5px;
}
.hero-title em {
    font-family: var(--font-script);
    font-style: normal;
    font-weight: 700;
    color: var(--color-primary);
    font-size: 1.15em;
    margin: 0 0.05em;
    display: inline-block;
    transform: rotate(-2deg);
}
.hero-subtitle {
    color: var(--color-muted);
    max-width: 580px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.6;
}
.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    color: var(--color-accent);
}
.hero-divider span {
    display: block;
    height: 1px;
    width: 60px;
    background: linear-gradient(to right, transparent, var(--color-accent), transparent);
}

/* ==== Slider ==== */
.slider {
    position: relative;
    margin: 24px 0 18px;
    perspective: 1400px;
}
.slider-track {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 50px max(20px, calc(50% - 200px)) 70px;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide {
    flex: 0 0 min(380px, 82vw);
    scroll-snap-align: center;
    background: var(--color-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    color: inherit;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: scale(0.86) translateY(8px);
    opacity: 0.5;
    filter: saturate(0.88);
    transition:
        transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.55s ease,
        box-shadow 0.55s ease,
        filter 0.55s ease;
    will-change: transform, opacity;
}
.slide.is-active {
    transform: scale(1) translateY(0);
    opacity: 1;
    box-shadow: var(--shadow-lg);
    filter: none;
    z-index: 5;
}
.slide.is-active:hover { transform: scale(1.015) translateY(-4px); }

.slide-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    text-decoration: none;
    color: transparent;
}
.slide-img {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 fallback para Safari iOS < 15 */
    height: 0;
    overflow: hidden;
    background: var(--color-rose);
}
.slide-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
@supports (aspect-ratio: 1) {
    .slide-img { aspect-ratio: 4 / 3; padding-bottom: 0; height: auto; }
    .slide-img img { position: static; }
}
.slide.is-active:hover .slide-img img { transform: scale(1.06); }
.slide-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(45, 37, 33, 0.06) 100%);
    pointer-events: none;
}
.slide-view {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(120, 80, 90, 0.22);
    opacity: 0;
    transform: translateY(-8px) scale(0.8);
    transition: opacity 0.4s, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s, color 0.2s;
    pointer-events: none;
    z-index: 2;
}
.slide.is-active .slide-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.slide.is-active:hover .slide-view {
    background: var(--color-primary);
    color: white;
    transform: scale(1.08);
}
.slide-info {
    padding: 22px 24px 28px;
    text-align: center;
    background: white;
    position: relative;
}
.slide-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--color-accent);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.4s, width 0.4s;
}
.slide.is-active .slide-info::before { opacity: 1; width: 60px; }
.slide-nombre {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--color-text);
    line-height: 1.2;
}
.slide-precio {
    font-family: var(--font-body);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.3px;
}
.slide-precio::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
    transform: translateY(-2px);
}

/* ==== Botones del slider ==== */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: var(--shadow-md);
    color: var(--color-primary);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s, opacity 0.2s;
}
.slider-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-50%) scale(1.06);
}
.slider-btn:active { transform: translateY(-50%) scale(0.95); }
.slider-btn:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.slider-btn-prev { left: 8px; }
.slider-btn-next { right: 8px; }
@media (min-width: 1000px) {
    .slider-btn-prev { left: -10px; }
    .slider-btn-next { right: -10px; }
}

/* ==== Navegación inferior (dots + counter) ==== */
.slider-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-bottom: 50px;
}
.slider-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 100%;
    padding: 4px;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--color-border);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.slider-dot:hover { background: var(--color-accent); }
.slider-dot.is-active {
    background: var(--color-primary);
    width: 26px;
    border-radius: 4px;
}
.slider-counter {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--color-muted);
    letter-spacing: 0.5px;
    font-weight: 500;
}
.slider-counter span {
    margin: 0 4px;
    color: var(--color-accent);
    font-style: italic;
}

/* ==== Producto detalle ==== */
.producto-detalle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 30px 0 60px;
}
.producto-detalle-img {
    position: relative;
    background: var(--color-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    width: 100%;
    padding-bottom: 100%; /* 1:1 fallback para Safari iOS < 15 */
    height: 0;
}
.producto-detalle-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@supports (aspect-ratio: 1) {
    .producto-detalle-img { aspect-ratio: 1 / 1; padding-bottom: 0; height: auto; }
    .producto-detalle-img img { position: static; }
}
.producto-detalle h1 {
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 600;
    margin: 0 0 14px;
    line-height: 1.15;
}
.producto-detalle .precio {
    font-size: 2rem;
    color: var(--color-primary);
    font-weight: 700;
    margin-bottom: 26px;
}
.producto-detalle .descripcion {
    color: var(--color-muted);
    line-height: 1.75;
    margin-bottom: 32px;
    white-space: pre-line;
    font-size: 1rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    font-family: inherit;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-dark); color: white; box-shadow: 0 8px 20px rgba(213, 135, 148, 0.4); }
.btn-whatsapp { background: var(--color-whatsapp); color: white; }
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); color: white; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35); }
.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}
.btn-outline:hover { background: var(--color-primary); color: white; }
.btn-grande { padding: 15px 28px; font-size: 1rem; }
.producto-acciones {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.producto-acciones .btn { flex: 1 1 auto; }
.volver {
    display: inline-block;
    margin: 20px 0;
    color: var(--color-muted);
    font-size: 0.95rem;
}

@media (max-width: 760px) {
    .producto-detalle { grid-template-columns: 1fr; gap: 24px; padding: 16px 0 30px; }
    .producto-detalle h1 { font-size: 1.8rem; }
    .brand-tagline { display: none; }
    .brand-name { font-size: 1.7rem; }
    .hero { padding: 36px 16px 8px; }
}

/* ==== Estado vacío ==== */
.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--color-muted);
}
.empty-state h2 {
    color: var(--color-text);
    font-family: var(--font-display);
    font-size: 1.8rem;
}

/* ==== Footer ==== */
.site-footer {
    background: white;
    border-top: 1px solid var(--color-border);
    padding: 30px 0 24px;
    margin-top: 30px;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.88rem;
    letter-spacing: 0.3px;
}
.footer-social {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 14px;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-rose);
    color: var(--color-primary);
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.footer-social a:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}
.footer-copy {
    margin: 0;
    font-size: 0.82rem;
}

/* ==== Botón flotante WhatsApp ==== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: var(--color-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.45);
    z-index: 99;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--color-whatsapp);
    opacity: 0.5;
    animation: pulse 2.4s ease-out infinite;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    background: var(--color-whatsapp-dark);
}
@keyframes pulse {
    0%   { transform: scale(1);   opacity: 0.5; }
    70%  { transform: scale(1.4); opacity: 0; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ==== Animación de entrada del hero ==== */
.hero-overline, .hero-title, .hero-subtitle, .hero-divider {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.hero-title { animation-delay: 0.1s; }
.hero-subtitle { animation-delay: 0.2s; }
.hero-divider { animation-delay: 0.3s; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==== Botón corazón / favorito ==== */
.favorite-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: none;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(120, 80, 90, 0.2);
    padding: 0;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.favorite-btn:hover {
    background: white;
    transform: scale(1.08);
}
.favorite-btn svg {
    transition: fill 0.2s, stroke 0.2s, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.favorite-btn.is-active svg {
    fill: var(--color-primary);
    stroke: var(--color-primary);
}
.favorite-btn.is-pulsing svg {
    animation: heartPulse 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes heartPulse {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    70%  { transform: scale(0.92); }
    100% { transform: scale(1); }
}
.favorite-btn-slide {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 4;
}
.favorite-btn-detalle {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 46px;
    height: 46px;
}
.favorite-btn-card {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
}

/* ==== Info de compra (botones que abren modal) ==== */
.info-compra {
    padding: 30px 0 60px;
}
.info-compra-titulo {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--color-text);
    text-align: center;
    margin: 0 0 18px;
}
.info-compra-botones {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.info-btn { width: 100%; }
@media (max-width: 760px) {
    .info-compra { padding: 16px 0 40px; }
    .info-compra-botones { grid-template-columns: 1fr; gap: 10px; }
}

/* ==== Modal de info (proceso, pagos, datos bancarios) ==== */
.info-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}
.info-modal.is-open { pointer-events: auto; }
.info-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 30, 35, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.info-modal.is-open .info-modal-backdrop { opacity: 1; }
.info-modal-sheet {
    position: relative;
    background: white;
    width: 100%;
    max-width: 500px;
    border-radius: 22px 22px 0 0;
    padding: 14px 26px 28px;
    box-shadow: 0 -10px 40px rgba(80, 50, 55, 0.18);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
    max-height: 90vh;
    overflow-y: auto;
}
.info-modal.is-open .info-modal-sheet { transform: translateY(0); }
.info-modal-handle {
    width: 40px;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    margin: 0 auto 14px;
}
.info-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    z-index: 2;
}
.info-modal-close:hover {
    background: var(--color-rose);
    color: var(--color-primary);
}
.info-modal-sheet h3 {
    margin: 4px 0 6px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--color-text);
}
.info-modal-sheet .info-divider {
    display: block;
    width: 50px;
    height: 2px;
    background: var(--color-accent);
    margin: 0 auto 22px;
    border-radius: 2px;
}
.info-modal-sheet .info-pasos {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.info-modal-sheet .info-pasos li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.info-modal-sheet .info-pasos li > span {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-rose);
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.info-modal-sheet .info-pasos li p {
    margin: 0;
    color: var(--color-text);
    line-height: 1.55;
    font-size: 0.95rem;
}
.info-modal-sheet .info-pasos em {
    color: var(--color-muted);
    font-style: italic;
    font-weight: 500;
}
.info-modal-sheet .info-pagos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.info-modal-sheet .info-pagos li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text);
    font-size: 0.95rem;
}
.info-modal-sheet .info-pagos svg { color: var(--color-primary); }
.info-modal-sheet .info-pagos li span {
    line-height: 1.4;
    text-align: center;
}

/* Datos bancarios dentro del modal */
.info-banco-titular {
    text-align: center;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 18px;
    color: var(--color-text);
}
.info-banco-titular em {
    display: block;
    font-style: normal;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-top: 2px;
}
.info-banco {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.info-banco li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 12px 16px;
}
.info-banco-label {
    display: block;
    font-size: 0.78rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
}
.info-banco-valor {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.5px;
    word-break: break-all;
}
.info-banco-copy {
    flex-shrink: 0;
    background: white;
    border: 1px solid var(--color-border);
    color: var(--color-primary);
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.info-banco-copy:hover {
    background: var(--color-rose);
    border-color: var(--color-accent);
    color: var(--color-primary-dark);
}
.info-banco-copy.is-copied {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}
.info-banco-nota {
    margin: 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.45;
}

.info-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--color-text);
    color: white;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(45, 30, 35, 0.3);
    opacity: 0;
    transition: opacity 0.25s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
    pointer-events: none;
}
.info-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (min-width: 700px) {
    .info-modal { align-items: center; padding: 20px; }
    .info-modal-sheet {
        border-radius: 22px;
        transform: translateY(20px) scale(0.96);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s;
        opacity: 0;
        padding: 30px 32px 32px;
    }
    .info-modal.is-open .info-modal-sheet { transform: translateY(0) scale(1); opacity: 1; }
    .info-modal-handle { display: none; }
}

/* ==== Página de Favoritos ==== */
.hero-compact { padding: 40px 20px 16px; }

.favs-empty {
    text-align: center;
    padding: 50px 20px 60px;
    max-width: 420px;
    margin: 0 auto;
}
.favs-empty-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--color-rose);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}
.favs-empty h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-text);
    margin: 0 0 10px;
}
.favs-empty p {
    color: var(--color-muted);
    margin: 0 0 24px;
    line-height: 1.6;
}

.favs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    padding: 20px 0 60px;
}
.fav-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.fav-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.fav-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    color: transparent;
}
.fav-card-img {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 fallback para Safari iOS < 15 */
    height: 0;
    overflow: hidden;
    background: var(--color-rose);
}
.fav-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@supports (aspect-ratio: 1) {
    .fav-card-img { aspect-ratio: 1 / 1; padding-bottom: 0; height: auto; }
    .fav-card-img img { position: static; }
}
.fav-card-info {
    padding: 16px 18px 20px;
    text-align: center;
}
.fav-card-info h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 4px;
    color: var(--color-text);
    line-height: 1.25;
}
.fav-card-precio {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
}
.producto-detalle-img { position: relative; }

/* ==== Galería de producto ==== */
.producto-galeria { display: flex; flex-direction: column; gap: 12px; }
.galeria-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.galeria-thumb {
    flex: 0 0 70px;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--color-rose);
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.15s;
}
.galeria-thumb img { width: 100%; height: 100%; object-fit: cover; }
.galeria-thumb:hover { transform: translateY(-2px); }
.galeria-thumb.is-active { border-color: var(--color-primary); }

/* ==== Cotizador ==== */
.cotizador {
    background: white;
    border-radius: var(--radius);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    margin: 24px 0;
    border: 1px solid var(--color-border);
}
.cotizador h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin: 0 0 14px;
    font-weight: 600;
    color: var(--color-text);
}
.cotizador-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.cotizador-input label {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.92rem;
}
.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    background: white;
}
.qty-control button {
    width: 38px;
    height: 38px;
    border: none;
    background: transparent;
    font-size: 1.2rem;
    color: var(--color-primary);
    cursor: pointer;
    transition: background 0.15s;
    font-weight: 600;
}
.qty-control button:hover { background: var(--color-rose); }
.qty-control input {
    width: 64px;
    height: 38px;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    background: transparent;
    color: var(--color-text);
    -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-control-sm button { width: 30px; height: 30px; font-size: 1rem; }
.qty-control-sm input { width: 50px; height: 30px; font-size: 0.9rem; }
.cotizador-min {
    color: var(--color-muted);
    font-size: 0.82rem;
}
.cotizador-resumen {
    border-top: 1px dashed var(--color-border);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.cot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
}
.cot-row strong { color: var(--color-text); }
.cot-row em { font-style: normal; font-weight: 600; color: var(--color-primary); margin-left: 4px; }
.cot-descuento { color: #2a7a3a; }
.cot-descuento strong { color: #2a7a3a; }
.cot-total {
    margin-top: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    font-size: 1.1rem;
}
.cot-total strong {
    color: var(--color-primary);
    font-size: 1.3rem;
    font-weight: 700;
}
.cotizador-tiers {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 14px;
}
.tier-chip {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    background: var(--color-rose);
    color: var(--color-muted);
    font-weight: 500;
    transition: all 0.2s;
}
.tier-chip.is-active {
    background: var(--color-primary);
    color: white;
    transform: scale(1.04);
}
.precio-unidad {
    font-size: 0.85rem;
    color: var(--color-muted);
    font-weight: 500;
    margin-left: 4px;
}
.precio-descuento-hint {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 4px 0 0;
    font-size: 0.82rem;
    color: #256942;
    font-weight: 500;
}

/* ==== Badges de stock / entrega ==== */
.stock-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 18px;
    line-height: 1.3;
}
.stock-badge b { font-weight: 700; }
.stock-badge.stock-disponible {
    background: #def4e3;
    color: #1f5f2a;
}
.stock-badge.stock-pedido {
    background: #fdebd6;
    color: #8a5a1f;
}

/* En el slide del catálogo */
.slide-stock {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.slide-stock.stock-disponible { background: #def4e3; color: #1f5f2a; }
.slide-stock.stock-pedido     { background: #fdebd6; color: #8a5a1f; }

/* Tag de categoría (bendición/llavero) en tarjeta y detalle */
.slide-categoria {
    display: inline-block;
    margin-bottom: 6px;
    padding: 3px 10px;
    border-radius: 10px;
    background: var(--color-rose);
    color: var(--color-primary-dark);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}
.categoria-tag {
    display: inline-block;
    margin-bottom: 8px;
    padding: 5px 12px;
    border-radius: 14px;
    background: var(--color-rose);
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

/* Tag de "muestra" en la tarjeta del slider */
.slide-muestra-tag {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Badge "Galería de muestra" en la página del producto */
.muestra-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 18px;
    line-height: 1.3;
    box-shadow: 0 6px 14px rgba(213, 135, 148, 0.25);
}
.muestra-badge b { font-weight: 700; }

/* En el cotizador (split inmediato/sobre pedido) */
.cot-entrega {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-top: 12px;
    line-height: 1.4;
}
.cot-entrega:empty { display: none; }
.cot-entrega-disponible { background: #def4e3; color: #1f5f2a; }
.cot-entrega-pedido     { background: #fdebd6; color: #8a5a1f; }
.cot-entrega-mixto      { background: #fdebd6; color: #8a5a1f; }
.cot-entrega b { font-weight: 700; }

/* En la página de cotización */
.cot-item-entrega {
    display: inline-block;
    margin: 6px 0 8px;
    padding: 3px 9px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
}

/* ==== Calculadora ¿cuántos necesito? ==== */
.calculadora { margin-top: 18px; }
.calc-toggle {
    width: 100%;
    background: var(--color-rose);
    border: none;
    color: var(--color-primary);
    padding: 14px 18px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s;
}
.calc-toggle:hover { background: var(--color-accent); }
.calc-chev { margin-left: auto; transition: transform 0.3s; }
.calc-toggle.is-open .calc-chev { transform: rotate(180deg); }
.calc-body {
    background: white;
    border: 1px solid var(--color-border);
    border-top: none;
    padding: 18px 22px 22px;
    border-radius: 0 0 12px 12px;
    margin-top: -2px;
}
.calc-help {
    margin: 0 0 14px;
    color: var(--color-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}
.calc-input { display: flex; flex-direction: column; gap: 6px; }
.calc-input label { font-weight: 600; font-size: 0.9rem; }
.calc-input input {
    padding: 10px 12px;
    border: 1.5px solid var(--color-border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}
.calc-input input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(213, 135, 148, 0.18);
}
.calc-resultado {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--color-rose);
    border-radius: 10px;
    text-align: center;
}
.calc-resultado p { margin: 0; color: var(--color-text); font-size: 0.9rem; }
.calc-resultado strong {
    font-family: var(--font-display);
    font-size: 2.4rem;
    color: var(--color-primary);
    display: block;
    line-height: 1.1;
}
.calc-resultado span { color: var(--color-muted); font-size: 0.9rem; display: block; margin-bottom: 12px; }

/* ==== Acciones del producto ==== */
.producto-acciones { flex-direction: column; align-items: stretch; }
.producto-acciones .btn { flex: 0 0 auto; }
@media (min-width: 720px) {
    .producto-acciones { flex-direction: row; }
    .producto-acciones .btn { flex: 1 1 auto; }
}

#addToCartBtn.is-success { background: #2a7a3a; }

/* ==== Cotización (página /cotizar.php) ==== */
.cot-empty {
    text-align: center;
    padding: 40px 20px 60px;
    max-width: 460px;
    margin: 0 auto;
}
.cot-empty h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-text);
    margin: 0 0 10px;
}
.cot-empty p { color: var(--color-muted); margin: 0 0 24px; line-height: 1.6; }

.cot-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 16px 0 60px;
}
@media (min-width: 900px) {
    .cot-container { grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; }
}

.cot-items { display: flex; flex-direction: column; gap: 14px; }
.cot-item {
    display: grid;
    grid-template-columns: 90px 1fr auto;
    gap: 14px;
    background: white;
    padding: 14px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    align-items: center;
}
.cot-item-img {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--color-rose);
}
.cot-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cot-item-body { min-width: 0; }
.cot-item-body h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin: 0 0 4px;
    line-height: 1.2;
}
.cot-item-precio {
    font-size: 0.95rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 8px;
}
.cot-item-precio span { font-size: 0.8rem; color: var(--color-muted); font-weight: 500; }
.cot-item-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}
.cot-remove {
    background: transparent;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}
.cot-remove:hover { color: #b73939; background: #fde6e6; }
.cot-item-totales { text-align: right; }
.cot-item-subtotal {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text);
}
.cot-item-tag {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 8px;
    border-radius: 8px;
    background: #def4e3;
    color: #2a7a3a;
    font-size: 0.72rem;
    font-weight: 600;
}
@media (max-width: 600px) {
    .cot-item { grid-template-columns: 70px 1fr; grid-template-areas: 'img body' 'img body' 'totales totales'; }
    .cot-item-img { width: 70px; height: 70px; grid-area: img; }
    .cot-item-body { grid-area: body; }
    .cot-item-totales { grid-area: totales; text-align: left; padding-top: 4px; border-top: 1px dashed var(--color-border); }
}

/* ==== Recordatorio "info para tu compra" en /cotizar ==== */
.cot-info-recordatorio {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    background: var(--color-rose);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 24px 0 8px;
}
.cot-info-recordatorio-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(213, 135, 148, 0.18);
}
.cot-info-recordatorio strong {
    display: block;
    color: var(--color-primary-dark);
    font-size: 1rem;
    margin-bottom: 4px;
}
.cot-info-recordatorio p {
    margin: 0;
    color: var(--color-text);
    font-size: 0.92rem;
    line-height: 1.5;
}
@media (max-width: 600px) {
    .cot-info-recordatorio { padding: 14px 16px; gap: 12px; }
    .cot-info-recordatorio p { font-size: 0.88rem; }
}

/* ==== Extras en el carrito ==== */
.cot-extras-lista {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cot-extras-titulo {
    font-size: 0.78rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 600;
}
.cot-extra-row {
    display: grid;
    grid-template-columns: 40px 1fr auto auto;
    gap: 10px;
    align-items: center;
}
.cot-extra-row img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.cot-extra-body strong { display: block; font-size: 0.88rem; font-weight: 600; color: var(--color-text); }
.cot-extra-precio { font-size: 0.78rem; color: var(--color-muted); }
.cot-extra-sub { font-weight: 700; font-size: 0.9rem; color: var(--color-primary); min-width: 60px; text-align: right; }
@media (max-width: 600px) {
    .cot-extra-row { grid-template-columns: 36px 1fr; grid-template-areas: 'img body' 'qty sub'; }
    .cot-extra-row img { width: 36px; height: 36px; grid-area: img; }
    .cot-extra-body { grid-area: body; }
    .cot-extra-qty { grid-area: qty; }
    .cot-extra-sub { grid-area: sub; text-align: right; }
}

/* ==== Extras en el detalle del producto ==== */
.extras-selector {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 18px 0;
    box-shadow: var(--shadow-sm);
}
.extras-selector h3 {
    margin: 0 0 4px;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
}
.extras-hint {
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 400;
    font-family: var(--font-body);
}
.extras-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 14px;
}
.extra-item {
    display: grid;
    grid-template-columns: auto 40px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 8px 12px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: white;
}
.extra-item:hover { background: var(--color-bg); }
.extra-item.is-checked {
    border-color: var(--color-primary);
    background: var(--color-rose);
}
.extra-check input { width: 18px; height: 18px; cursor: pointer; margin: 0; }
.extra-img { width: 40px; height: 40px; flex-shrink: 0; }
.extra-img img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.extra-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.extra-info strong { color: var(--color-text); font-size: 0.95rem; line-height: 1.2; }
.extra-desc { color: var(--color-muted); font-size: 0.78rem; }
.extra-precio { color: var(--color-primary); font-size: 0.88rem; font-weight: 700; margin-top: 2px; }
.extra-qty { flex-shrink: 0; }
.extras-resumen {
    margin-top: 14px;
    padding: 10px 14px;
    background: var(--color-rose);
    border-radius: 10px;
    color: var(--color-primary-dark);
    font-size: 0.95rem;
    text-align: right;
}
.extras-resumen strong { font-size: 1.1rem; }
@media (max-width: 600px) {
    .extra-item { grid-template-columns: auto 36px 1fr; grid-template-areas: 'check img info' 'qty qty qty'; gap: 10px; }
    .extra-check { grid-area: check; }
    .extra-img { grid-area: img; width: 36px; height: 36px; }
    .extra-img img { width: 36px; height: 36px; }
    .extra-info { grid-area: info; }
    .extra-qty { grid-area: qty; justify-self: end; }
}

/* ==== Lightbox para foto de extra ==== */
.extra-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(20, 12, 14, 0.88);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.22s ease;
    cursor: zoom-out;
}
.extra-lightbox.is-open { opacity: 1; }
.extra-lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    border-radius: 14px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    cursor: default;
    transform: scale(0.96);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    background: white;
}
.extra-lightbox.is-open img { transform: scale(1); }
.extra-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    color: #2D2521;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    transition: background 0.15s, transform 0.15s;
}
.extra-lightbox-close:hover { background: white; transform: scale(1.05); }

.cot-resumen {
    background: white;
    padding: 22px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 88px;
}
.cot-resumen h3 {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: 1.3rem;
}
.cot-resumen-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 14px;
    margin-bottom: 14px;
}
.cot-resumen-rows .cot-row { font-size: 0.9rem; }
.cot-resumen-rows .cot-row em { font-style: normal; color: var(--color-muted); margin: 0 0 0 6px; }
.cot-resumen-piezas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 12px;
    font-size: 0.92rem;
    color: var(--color-text);
}
.cot-resumen-piezas strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}
.cot-resumen-piezas strong.is-bajo { color: #C0392B; }
.cot-min-aviso {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 12px;
}
.cot-min-aviso.is-error {
    background: #FDECEA;
    color: #B23A2E;
    border: 1px solid #F5C9C3;
}
.cot-min-aviso svg { flex-shrink: 0; margin-top: 2px; }
.cot-descuento-aviso {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 0.83rem;
    line-height: 1.4;
    margin-bottom: 10px;
    background: #EDF7F0;
    color: #256942;
    border: 1px solid #B6DFCA;
}
.cot-descuento-aviso svg { flex-shrink: 0; }
.cot-resumen-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.cot-resumen-total strong {
    color: var(--color-primary);
    font-size: 1.4rem;
    font-weight: 700;
}
.btn.is-disabled,
.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(20%);
}
.btn.is-disabled:hover,
.btn:disabled:hover { box-shadow: none; transform: none; }
.cot-aviso {
    font-size: 0.78rem;
    color: var(--color-muted);
    margin: 0 0 16px;
    line-height: 1.5;
}
.cot-resumen .btn { width: 100%; margin-bottom: 8px; }

/* ==== Header con dos íconos (favs + cart) ==== */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ==== Sección de categoría (un slider por categoría en el home) ==== */
.categoria-section {
    padding: 10px 0 0;
    margin-bottom: 10px;
}
.categoria-section + .categoria-section {
    margin-top: 20px;
    padding-top: 30px;
    border-top: 1px dashed var(--color-border);
}
.categoria-header {
    text-align: center;
    margin: 18px 0 -10px;
}
.categoria-titulo {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 4px 0 0;
    color: var(--color-text);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

/* ==== Testimonios (slider o grid) ==== */
.testimonios-section {
    padding: 30px 0 40px;
}
.testimonios-header {
    text-align: center;
    margin-bottom: 18px;
}

/* Modo GRID (lista completa) */
.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    margin-top: 10px;
}
.testimonio-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}
.testimonio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.testimonio-img {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 fallback para Safari iOS < 15 */
    height: 0;
    overflow: hidden;
    background: var(--color-rose);
}
.testimonio-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@supports (aspect-ratio: 1) {
    .testimonio-img { aspect-ratio: 4 / 3; padding-bottom: 0; height: auto; }
    .testimonio-img img { position: static; }
}
.testimonio-body {
    padding: 20px 22px 22px;
    position: relative;
}

/* Modo SLIDER — una reseña a la vez (sin vecinas peeking) */
.testimonios-slider { margin: 10px 0 6px; }
.testimonios-track {
    padding: 30px 0 50px;
    align-items: flex-start;
    gap: 0;
}
.testimonio-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    transition: opacity 0.4s ease;
    opacity: 0.4;
}
.testimonio-slide.is-active { opacity: 1; }

.testimonio-slide-card {
    width: 100%;
    max-width: 540px;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}
.testimonio-slide-img {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* 4:3 fallback para Safari iOS < 15 */
    height: 0;
    overflow: hidden;
    background: var(--color-rose);
}
.testimonio-slide-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@supports (aspect-ratio: 1) {
    .testimonio-slide-img { aspect-ratio: 4 / 3; padding-bottom: 0; height: auto; }
    .testimonio-slide-img img { position: static; }
}
.testimonio-slide-body {
    padding: 22px 24px 24px;
    position: relative;
}
.testimonio-quote {
    color: var(--color-accent);
    margin-bottom: 8px;
}
.testimonio-texto {
    margin: 0 0 14px;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    line-height: 1.5;
    color: var(--color-text);
}
.testimonio-firma { display: flex; flex-direction: column; gap: 2px; }
.testimonio-firma strong {
    color: var(--color-primary);
    font-size: 0.95rem;
}
.testimonio-firma span {
    color: var(--color-muted);
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Variantes "solo captura de pantalla" (sin nombre ni texto) */
.testimonio-slide-card--captura,
.testimonio-card--captura {
    padding: 10px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonio-captura {
    width: 100%;
    height: auto;
    max-height: 540px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    background: var(--color-rose);
}

/* ==== Preguntas frecuentes (FAQs) ==== */
.faqs-section {
    padding: 30px 0 60px;
}
.faqs-header {
    text-align: center;
    margin-bottom: 28px;
}
.faqs-lista {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.faq-item[open] {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}
.faq-pregunta {
    list-style: none;
    cursor: pointer;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
    transition: color 0.15s ease, background 0.15s ease;
}
.faq-pregunta::-webkit-details-marker { display: none; }
.faq-pregunta:hover { color: var(--color-primary); background: var(--color-bg); }
.faq-pregunta > span { flex: 1; line-height: 1.4; }
.faq-chev {
    flex-shrink: 0;
    color: var(--color-primary);
    transition: transform 0.25s ease;
}
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-respuesta {
    padding: 0 22px 20px;
    color: var(--color-text);
    line-height: 1.6;
    font-size: 0.95rem;
}
@media (max-width: 600px) {
    .faq-pregunta { padding: 14px 16px; font-size: 0.95rem; }
    .faq-respuesta { padding: 0 16px 16px; font-size: 0.92rem; }
}

/* ==== Reveal (animación scroll) ==== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==== Toolbar de favoritos (botón compartir) ==== */
.favs-toolbar {
    display: flex;
    justify-content: center;
    margin: 8px 0 18px;
}

/* ==== Form de confirmación de cotización ==== */
.enviar-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 6px;
}
.enviar-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--color-text);
    text-align: left;
}
.enviar-form input {
    padding: 11px 14px;
    border: 1.5px solid var(--color-border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--color-bg);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.enviar-form input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(213, 135, 148, 0.18);
    background: white;
}
.enviar-form .btn-grande { width: 100%; margin-top: 6px; }
.enviar-aviso {
    text-align: center;
    color: var(--color-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    margin: 4px 0 0;
}

/* ==== Modal de compartir ==== */
.share-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}
.share-modal.is-open { pointer-events: auto; }
.share-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(45, 30, 35, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.share-modal.is-open .share-modal-backdrop { opacity: 1; }
.share-modal-sheet {
    position: relative;
    background: white;
    width: 100%;
    max-width: 460px;
    border-radius: 22px 22px 0 0;
    padding: 14px 24px 28px;
    box-shadow: 0 -10px 40px rgba(80, 50, 55, 0.18);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}
.share-modal.is-open .share-modal-sheet { transform: translateY(0); }
.share-modal-handle {
    width: 40px;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    margin: 0 auto 14px;
}
.share-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--color-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.share-modal-close:hover {
    background: var(--color-rose);
    color: var(--color-primary);
}
.share-modal-sheet h3 {
    margin: 4px 0 4px;
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
}
.share-modal-sub {
    text-align: center;
    color: var(--color-muted);
    margin: 0 0 22px;
    font-size: 0.9rem;
    line-height: 1.4;
}
.share-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.share-opt {
    background: transparent;
    border: none;
    padding: 8px 4px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    transition: background 0.15s, transform 0.1s;
    color: var(--color-text);
    font-family: inherit;
}
.share-opt:hover { background: var(--color-bg); }
.share-opt:active { transform: scale(0.96); }
.share-opt-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.share-opt-icon-ig {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.share-opt-label {
    font-size: 0.82rem;
    font-weight: 500;
}

@media (min-width: 700px) {
    .share-modal { align-items: center; padding: 20px; }
    .share-modal-sheet {
        border-radius: 22px;
        transform: translateY(20px) scale(0.96);
        transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s;
        opacity: 0;
        padding: 30px 32px 32px;
    }
    .share-modal.is-open .share-modal-sheet { transform: translateY(0) scale(1); opacity: 1; }
    .share-modal-handle { display: none; }
}

/* ==== Toast ==== */
.share-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--color-text);
    color: white;
    padding: 12px 22px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(45, 30, 35, 0.3);
    opacity: 0;
    transition: opacity 0.25s, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1100;
    max-width: calc(100% - 32px);
    text-align: center;
}
.share-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
