/*
  LuluLove · identidad visual 2026
  Uso de la paleta rosada de referencia, sin azul:
  Mauve #BD8E89 · Pink #E5C5C1 · Prune #7E6269 · Blush #F4E1E0

  Esta capa se carga después de styles.css y ordena la jerarquía visual del
  sitio sin modificar la lógica de catálogo, carrito, reseñas o contacto.
*/
:root {
  --navy: #7e6269; /* alias de compatibilidad: no es azul */
  --mauve: #bd8e89;
  --pink: #e5c5c1;
  --prune: #7e6269;
  --blush: #f4e1e0;
  --paper: #fffaf9;
  --ink: var(--prune);
  --surface: var(--blush);
  --surface-2: var(--pink);
  --line: rgba(126, 98, 105, .24);
  --line-soft: rgba(126, 98, 105, .14);
  --cream: #fffaf9;
  --muted: #765f68;
  --gold: var(--mauve);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--blush); }
body { background: var(--blush); color: var(--prune); }
::selection { background: var(--mauve); color: var(--paper); }
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline: 2px solid var(--mauve); outline-offset: 3px; }

/* Cabecera: el fondo profundo queda reservado para la navegación y el pie. */
.site-header {
  background: rgba(126, 98, 105, .98);
  border-bottom-color: rgba(244, 225, 224, .24);
}
.site-header .nav-wrap { min-height: 94px !important; }
.site-header .brand { align-items: flex-start; min-width: 196px; }
.site-header .brand .wordmark { display: none !important; }
.site-header .brand .brand-signature {
  display: block !important;
  width: 196px;
  height: 64px;
  overflow: hidden;
}
.brand-signature img {
  display: block;
  width: 196px;
  max-width: none;
  height: auto;
  margin-top: -18px;
  mix-blend-mode: screen;
}
.main-nav { color: var(--pink); }
.main-nav a:hover,
.main-nav .active { color: var(--paper); }
.cart-trigger { color: var(--paper); }
.cart-trigger b { background: var(--mauve); color: var(--prune); }
.cart-icon { color: var(--pink); }
.header-whatsapp { background: #25d366; color: #fff; }
.header-whatsapp:hover { background: #1eae55; }

/* Héroes claros: más aire y texto oscuro para recuperar legibilidad. */
.hero,
.catalog-hero,
.about-hero,
.reviews-hero {
  background:
    radial-gradient(circle at 80% 10%, rgba(229, 197, 193, .72), transparent 32%),
    radial-gradient(circle at 8% 92%, rgba(244, 225, 224, .92), transparent 38%),
    linear-gradient(135deg, var(--blush) 0%, var(--paper) 68%, var(--pink) 145%);
  color: var(--prune);
  border-bottom: 1px solid rgba(126, 98, 105, .12);
}
.hero h1,
.catalog-hero h1,
.about-hero h1,
.reviews-hero h1,
.hero h2,
.catalog-hero h2,
.about-hero h2,
.reviews-hero h2 { color: var(--prune); }
.hero h1 i,
.hero h2 i,
.catalog-hero h1 i,
.catalog-hero h2 i,
.about-hero h1 i,
.about-hero h2 i,
.reviews-hero h1 i,
.reviews-hero h2 i { color: var(--mauve); }
.eyebrow,
.footer-label { color: var(--mauve); }
.hero-text,
.muted,
.section-heading .muted,
.hero-note { color: var(--muted); }
.hero-note .line,
.line { background: var(--mauve); }
.hero-stamp {
  background: rgba(255, 250, 249, .8);
  border-color: rgba(189, 142, 137, .78);
  color: var(--prune);
}
.hero-visual .placeholder-image,
.product-media.placeholder-image,
.gallery-main.placeholder-image,
.modal-media.placeholder-image {
  background: linear-gradient(140deg, var(--pink) 0%, var(--mauve) 100%);
  color: var(--paper);
}
.hero-image .asset-image[data-content-image] {
  opacity: 0;
  transition: opacity .18s ease;
}
.hero-image .asset-image[data-content-image].content-image-ready {
  opacity: 1;
}
.placeholder-image::before { border-color: rgba(255, 250, 249, .5); }
.placeholder-image small { color: var(--paper); }

/* Secciones: Blush/Pink para separar bloques sin oscurecer el sitio. */
.intro,
.about-story,
.catalog-section,
.product-detail,
.about-page,
.about-process,
.reviews-archive {
  background: var(--blush);
  color: var(--prune);
}
.featured,
.related-section,
.about-principles,
.reviews-section {
  background:
    radial-gradient(circle at 90% 0%, rgba(189, 142, 137, .16), transparent 34%),
    var(--paper);
  color: var(--prune);
  border-top: 1px solid rgba(126, 98, 105, .08);
  border-bottom: 1px solid rgba(126, 98, 105, .08);
}
.intro .eyebrow,
.about-story .eyebrow,
.about-principle .eyebrow { color: var(--mauve); }
.intro h2,
.about-story h2,
.about-principles h2,
.about-process h2,
.reviews-section h2,
.reviews-archive h2 { color: var(--prune); }
.intro h2 i,
.about-story h2 i,
.about-principles h2 i,
.about-process h2 i,
.reviews-section h2 i,
.reviews-archive h2 i { color: var(--mauve); }
.intro-copy p,
.about-copy p { color: var(--muted); }
.text-link { color: var(--prune); border-bottom-color: var(--mauve); }
.text-link:hover { color: var(--mauve); }

.about-principle,
.review-card {
  background: rgba(229, 197, 193, .26);
  border-color: rgba(126, 98, 105, .22);
  color: var(--prune);
}
.about-principle:hover,
.review-card:hover { border-color: rgba(189, 142, 137, .68); }
.about-principle h3,
.about-step h3 { color: var(--prune); }
.about-principle p,
.about-step p { color: var(--muted); }
.about-step { border-top-color: var(--mauve); }
.about-step strong { color: var(--mauve); }

.quote-band,
.about-cta {
  background: var(--mauve);
  color: var(--paper);
}
.quote-band blockquote,
.about-cta h2 { color: var(--paper); text-shadow: 0 1px 0 rgba(126, 98, 105, .14); }
.quote-band span { color: var(--blush); }
.about-cta .eyebrow { color: var(--paper); }
.about-cta .button { background: var(--prune); color: var(--paper); border-color: var(--prune); }
.about-cta .button:hover { background: var(--paper); color: var(--prune); }

/* Botones y controles: contorno fino, contraste estable y tamaños armónicos. */
.button {
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: .25px;
}
.button-primary,
.button-light {
  background: var(--mauve);
  border-color: var(--mauve);
  color: var(--prune);
  box-shadow: 0 8px 20px rgba(126, 98, 105, .12);
}
.button-primary:hover,
.button-light:hover {
  background: var(--prune);
  border-color: var(--prune);
  color: var(--paper);
  transform: translateY(-2px);
}
.button-outline,
.hero-actions .button-outline {
  background: rgba(255, 250, 249, .36);
  border-color: rgba(126, 98, 105, .52);
  color: var(--prune);
}
.button-outline:hover,
.hero-actions .button-outline:hover {
  background: var(--paper);
  border-color: var(--mauve);
  color: var(--prune);
}

/* Productos: blanco cálido, ficha contenida y precio visible. */
.product-card {
  padding: 10px;
  border: 1px solid rgba(126, 98, 105, .20);
  border-radius: 18px;
  background: rgba(255, 250, 249, .9);
  color: var(--prune);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(189, 142, 137, .74);
  box-shadow: 0 16px 30px rgba(126, 98, 105, .10);
}
.product-media { overflow: hidden; border-radius: 12px; }
.product-card h3 { color: var(--prune); }
.product-card p,
.product-meta { color: var(--muted); }
.product-footer { border-top-color: rgba(126, 98, 105, .20); }
.availability,
.add-link,
.review-link,
.detail-support a { color: var(--mauve); }
.add-link:hover,
.review-link:hover,
.detail-support a:hover { color: var(--prune); }
.badge-featured { background: var(--mauve); color: var(--prune); }
.badge-new { background: var(--prune); color: var(--paper); }
.badge,
.quick-view { z-index: 4; }
.quick-view {
  background: var(--paper);
  border-color: var(--mauve);
  color: var(--prune);
}
.quick-view:hover { background: var(--mauve); border-color: var(--mauve); color: var(--prune); }

.catalog-toolbar .search-box,
.catalog-toolbar select,
.reviews-filters select,
.detail-note textarea,
.detail-buy input,
.modal-qty input {
  background: var(--paper);
  border-color: rgba(126, 98, 105, .28);
  color: var(--prune);
}
.search-box { color: var(--mauve); }
.search-box input { color: var(--prune); }
.search-box input::placeholder { color: rgba(118, 95, 104, .72); }
.check-label { color: var(--muted); }

/* Reseñas, detalle y carrito sobre superficies claras. */
.review-card { border-radius: 16px; }
.review-top,
.review-card small { color: var(--muted); }
.stars { color: var(--mauve); }
.review-card p { color: var(--prune); }
.reviews-filters label { color: var(--muted); }
.pagination-button { border-color: rgba(126, 98, 105, .28); color: var(--prune); }
.pagination-button:hover,
.pagination-button.active { border-color: var(--mauve); background: var(--mauve); color: var(--prune); }
.gallery-thumb { background: var(--paper); border-color: rgba(126, 98, 105, .28); }
.gallery-thumb.selected { border-color: var(--mauve); }
.detail-intro,
.detail-support,
.detail-list { color: var(--muted); }
.detail-list { border-color: rgba(126, 98, 105, .22); }
.detail-list b { color: var(--prune); }
.detail-price,
.modal-price { color: var(--prune); }

.modal-backdrop,
.drawer-backdrop { background: rgba(126, 98, 105, .58); }
.modal-panel,
.cart-drawer {
  background: var(--paper);
  color: var(--prune);
  border-color: rgba(126, 98, 105, .28);
  box-shadow: 0 24px 70px rgba(126, 98, 105, .22);
}
.modal-close { color: var(--prune); }
.modal-close:hover { color: var(--mauve); }
.modal-description,
.cart-note,
.cart-item-info small,
.qty .remove { color: var(--muted); }
.drawer-head,
.cart-footer,
.cart-item { border-color: rgba(126, 98, 105, .20); }
.qty button { color: var(--prune); }
.item-note,
.cart-empty span { color: var(--mauve) !important; }
.clear-button { color: var(--mauve); }
.clear-button:hover { color: var(--prune); }

.review-modal { background: var(--paper); }
.review-modal input,
.review-modal select,
.review-modal textarea,
.contact-form input,
.contact-form textarea {
  background: rgba(244, 225, 224, .42);
  border-color: rgba(126, 98, 105, .28);
  color: var(--prune);
}
.review-modal input::placeholder,
.review-modal textarea::placeholder,
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(118, 95, 104, .72); }
.review-modal input:focus,
.review-modal select:focus,
.review-modal textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--mauve); background: var(--paper); }
.stars-input label { color: rgba(126, 98, 105, .35); }
.stars-input label:has(input:checked),
.stars-input label:hover { color: var(--mauve); }

/* Contacto: panel claro y formulario con campos distinguibles. */
.contact-section {
  background:
    radial-gradient(circle at 84% 8%, rgba(229, 197, 193, .66), transparent 32%),
    var(--blush);
  color: var(--prune);
}
.contact-panel {
  background: rgba(255, 250, 249, .92);
  border-color: rgba(126, 98, 105, .22);
  box-shadow: 0 20px 45px rgba(126, 98, 105, .10);
}
.direct-panel { background: rgba(229, 197, 193, .42); border-color: rgba(189, 142, 137, .60); }
.contact-section .eyebrow { color: var(--mauve); }
.contact-section h1,
.contact-section h2 { color: var(--prune); }
.contact-section h1 i,
.contact-section h2 i { color: var(--mauve); }
.contact-lead,
.direct-intro,
.contact-form label { color: var(--muted); }
.contact-form label small,
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(118, 95, 104, .72); }
.contact-form input,
.contact-form textarea { background: rgba(244, 225, 224, .34); }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--mauve); background: var(--paper); }
.direct-channel {
  background: rgba(255, 250, 249, .52);
  border-color: rgba(126, 98, 105, .22);
}
.direct-channel:hover { background: var(--paper); border-color: var(--mauve); }
.channel-label,
.direct-channel strong span,
.contact-panel .form-feedback { color: var(--mauve); }
.direct-channel strong { color: var(--prune); }

/* Pie y estados. */
.site-footer { background: var(--prune); color: var(--pink); }
.footer-bottom { border-top-color: rgba(244, 225, 224, .20); }
.whatsapp-float { background: #25d366; box-shadow: 0 8px 24px rgba(126, 98, 105, .28); }
.whatsapp-float:hover { background: #1eae55; }
.toast { background: var(--paper); color: var(--prune); border: 1px solid var(--mauve); }
.form-feedback { color: var(--mauve); }

@media (max-width: 800px) {
  .site-header .nav-wrap { min-height: 78px !important; }
  .site-header .brand { min-width: 148px; }
  .site-header .brand .brand-signature { width: 148px; height: 49px; }
  .brand-signature img { width: 148px; margin-top: -13px; }
  .main-nav { top: 78px !important; background: var(--prune); border-bottom-color: rgba(244, 225, 224, .22); }
  .product-card { padding: 7px; border-radius: 13px; }
  .contact-panel { border-radius: 22px; }
}

/* Ajuste final de marca: firma limpia, sin rectángulo de imagen y con bajada visible. */
.site-header { background: var(--prune); }
.site-header .brand { display: flex; flex-direction: column; align-items: flex-start; gap: 0; min-width: 196px; }
.site-header .brand .brand-signature { background: transparent; }
.site-header .brand .brand-signature img { background: transparent; mix-blend-mode: screen; }
.site-header .brand .wordmark { display: block !important; margin-top: -7px; line-height: 1; }
.site-header .brand .wordmark-main { display: none; }
.site-header .brand .wordmark-sub { display: block; color: var(--paper); font: 500 8px/1 var(--sans); letter-spacing: 1.35px; white-space: nowrap; }
.site-header .brand:hover .wordmark-sub { color: var(--pink); }
.site-footer .brand .wordmark { display: flex !important; flex-direction: column; }
.site-footer .brand .wordmark-main { color: var(--paper); }
.site-footer .brand .wordmark-sub { color: var(--pink); }

/* Galería del detalle rápido y del detalle completo. */
.modal-media { min-height: 0 !important; padding: 16px; background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
.modal-gallery-main { position: relative; display: block; width: 100%; min-height: 450px; padding: 0; overflow: hidden; border: 1px solid rgba(126, 98, 105, .20); background: var(--blush); cursor: zoom-in; }
.modal-gallery-main .asset-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal-gallery-main > span { display: none; }
.modal-gallery-main video { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; }
.modal-gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 1px 4px; }
.modal-gallery-thumb { flex: 0 0 66px; width: 66px; height: 66px; padding: 0; overflow: hidden; border: 1px solid rgba(126, 98, 105, .22); background: var(--paper); cursor: pointer; }
.modal-gallery-thumb.selected { border-color: var(--mauve); box-shadow: 0 0 0 2px rgba(189, 142, 137, .18); }
.modal-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 30px; background: rgba(62, 45, 52, .88); }
.gallery-lightbox-image { max-width: min(100%, 1040px); max-height: 82vh; object-fit: contain; border: 1px solid rgba(244, 225, 224, .35); box-shadow: 0 26px 80px rgba(38, 26, 32, .34); }
.gallery-lightbox-close, .gallery-lightbox-nav { position: absolute; display: grid; place-items: center; border: 1px solid rgba(244, 225, 224, .42); border-radius: 50%; background: rgba(255, 250, 249, .10); color: var(--paper); cursor: pointer; }
.gallery-lightbox-close { top: 22px; right: 24px; width: 42px; height: 42px; font-size: 25px; }
.gallery-lightbox-nav { top: 50%; width: 44px; height: 44px; transform: translateY(-50%); font-size: 24px; }
.gallery-lightbox-prev { left: 22px; }
.gallery-lightbox-next { right: 22px; }
.gallery-lightbox-close:hover, .gallery-lightbox-nav:hover { background: var(--mauve); color: var(--prune); }
.gallery-lightbox-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: var(--paper); font-size: 11px; letter-spacing: 1px; }
.gallery-main { cursor: zoom-in; }
.gallery-main .asset-image { cursor: zoom-in; }
.gallery-thumbs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 3px; }
.gallery-thumb { flex: 0 0 78px; background: var(--paper); }

/* Stock: la disponibilidad debe ser entendible antes de intentar agregar. */
.add-link:disabled, .button:disabled { opacity: .45; cursor: not-allowed; transform: none !important; }
.availability.sold-out { color: var(--muted); }
.product-stock { min-height: 18px; margin: 0 0 10px; color: var(--mauve); font-size: 10px; font-weight: 700; letter-spacing: .45px; text-transform: uppercase; }
.product-stock.sold-out { color: var(--muted); }
.stock-note { margin-top: 10px; color: var(--mauve); font-size: 11px; }
.stock-note.sold-out { color: var(--muted); }
.add-link.out-of-stock, .button.out-of-stock { color: var(--muted); }
.add-link.out-of-stock:hover { color: var(--mauve); }

/* Datos del cliente para enviar el pedido desde el carrito. */
.cart-footer { max-height: 62vh; overflow-y: auto; }
.cart-email-box {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(126, 98, 105, .20);
}
.cart-email-box .eyebrow { margin-bottom: 8px; font-size: 9px; }
.cart-email-help { margin: 0 0 13px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.cart-email-form { display: flex; flex-direction: column; gap: 11px; }
.cart-email-form label { display: flex; flex-direction: column; gap: 5px; color: var(--prune); font-size: 10px; }
.cart-email-form label small { color: var(--muted); font-size: 9px; }
.cart-email-form input {
  width: 100%;
  border: 1px solid rgba(126, 98, 105, .26);
  border-radius: 9px;
  background: rgba(255, 250, 249, .45);
  color: var(--prune);
  padding: 10px 11px;
  outline: 0;
}
.cart-email-form input:focus { border-color: var(--mauve); background: var(--paper); }
.cart-email-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cart-email-form .button { margin-top: 1px; padding: 11px 15px; }
.cart-email-feedback { min-height: 16px; margin: 1px 0 0; color: var(--mauve); font-size: 10px; line-height: 1.4; }
.cart-email-feedback.error { color: var(--prune); }

.site-notification-modal,
.order-success-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(92, 64, 76, .42);
  animation: site-notification-fade .18s ease-out;
}
.site-notification-card,
.order-success-card {
  width: min(100%, 430px);
  padding: 32px;
  border: 1px solid rgba(255, 247, 244, .72);
  border-radius: 24px;
  background: var(--paper);
  color: var(--prune);
  box-shadow: 0 20px 70px rgba(92, 64, 76, .24);
  text-align: center;
  animation: site-notification-rise .22s ease-out;
}
.site-notification-card .eyebrow,
.order-success-card .eyebrow { margin-bottom: 12px; color: var(--mauve); }
.site-notification-card h2,
.order-success-card h2 { margin: 0; color: var(--prune); font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 40px); font-weight: 500; }
.site-notification-message,
.order-success-card p:not(.eyebrow) { margin: 14px 0 24px; color: var(--muted); line-height: 1.6; }
.site-notification-card .button,
.order-success-card .button { min-width: 150px; }
.site-notification-error .site-notification-card { border-color: rgba(126, 98, 105, .42); }
.site-notification-error .site-notification-card .eyebrow { color: var(--prune); }

@keyframes site-notification-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes site-notification-rise { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 800px) {
  .site-header .brand { min-width: 148px; }
  .site-header .brand .brand-signature { width: 148px; height: 49px; }
  .site-header .brand .brand-signature img { width: 148px; margin-top: -13px; }
  .site-header .brand .wordmark-sub { font-size: 7px; letter-spacing: 1px; }
  .modal-gallery-main { min-height: 270px; }
  .modal-media { padding: 10px; }
  .gallery-lightbox { padding: 18px; }
  .gallery-lightbox-nav { width: 36px; height: 36px; }
  .gallery-lightbox-prev { left: 9px; }
  .gallery-lightbox-next { right: 9px; }
  .cart-footer { max-height: 68vh; }
  .cart-email-grid { grid-template-columns: 1fr; }
}
