/*
Theme Name: DulceMundo Chile
Theme URI: https://dulcemundo.cl
Author: DulceMundo
Author URI: https://dulcemundo.cl
Description: Tema profesional para tienda de dulces chilena. Incluye landing page de alta conversión, animaciones de scroll, efecto máquina de escribir y diseño completamente responsive.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dulcemundo
Tags: food, e-commerce, custom-colors, custom-menu, featured-images, responsive-layout, translation-ready

This theme requires WooCommerce for full shop functionality.
*/

/* =============================================
   VARIABLES GLOBALES
   ============================================= */
:root {
  --dm-vino:       #60253a;
  --dm-dorado:     #d9952e;
  --dm-coral:      #ee4062;
  --dm-teal:       #2da39d;
  --dm-bg:         #fdf8f4;
  --dm-white:      #ffffff;
  --dm-gray:       #f5f0eb;
  --dm-text:       #2c1a24;
  --dm-text-light: #7a5a66;
  --dm-radius-sm:  8px;
  --dm-radius-md:  16px;
  --dm-radius-lg:  20px;
  --dm-radius-xl:  50px;
  --dm-transition: 0.3s ease;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--dm-bg);
  color: var(--dm-text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dm-transition);
}

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* =============================================
   TIPOGRAFÍA
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  color: var(--dm-vino);
}

p { line-height: 1.7; }

/* =============================================
   ANIMACIONES DE SCROLL
   ============================================= */
.dm-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.dm-reveal.dm-visible { opacity: 1; transform: translateY(0); }

.dm-reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.dm-reveal-left.dm-visible { opacity: 1; transform: translateX(0); }

.dm-reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.dm-reveal-right.dm-visible { opacity: 1; transform: translateX(0); }

.dm-reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.dm-reveal-scale.dm-visible { opacity: 1; transform: scale(1); }

.dm-delay-1 { transition-delay: 0.1s; }
.dm-delay-2 { transition-delay: 0.2s; }
.dm-delay-3 { transition-delay: 0.3s; }
.dm-delay-4 { transition-delay: 0.4s; }
.dm-delay-5 { transition-delay: 0.5s; }

/* =============================================
   BOTONES
   ============================================= */
.dm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--dm-radius-xl);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
  border: none;
  letter-spacing: 0.3px;
  line-height: 1;
}
.dm-btn:hover { transform: translateY(-2px) scale(1.03); }
.dm-btn:active { transform: scale(0.97); }
.dm-btn:focus-visible {
  outline: 3px solid var(--dm-dorado);
  outline-offset: 3px;
}

.dm-btn-white {
  background: var(--dm-white);
  color: var(--dm-coral);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.dm-btn-white:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.2); color: var(--dm-coral); }

.dm-btn-dorado {
  background: var(--dm-dorado);
  color: var(--dm-white);
  box-shadow: 0 4px 15px rgba(217,149,46,0.4);
}
.dm-btn-dorado:hover { background: #e8a230; box-shadow: 0 8px 25px rgba(217,149,46,0.5); color: var(--dm-white); }

.dm-btn-vino {
  background: var(--dm-vino);
  color: var(--dm-white);
  box-shadow: 0 4px 15px rgba(96,37,58,0.35);
}
.dm-btn-vino:hover { box-shadow: 0 8px 25px rgba(96,37,58,0.45); color: var(--dm-white); }

.dm-btn-outline {
  background: transparent;
  color: var(--dm-white);
  border: 2px solid rgba(255,255,255,0.7);
}
.dm-btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--dm-white); color: var(--dm-white); }

.dm-btn-teal {
  background: var(--dm-teal);
  color: var(--dm-white);
  box-shadow: 0 4px 15px rgba(45,163,157,0.4);
}
.dm-btn-teal:hover { box-shadow: 0 8px 25px rgba(45,163,157,0.5); color: var(--dm-white); }

/* =============================================
   SECCIÓN LABELS GLOBALES
   ============================================= */
.dm-section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dm-teal);
  margin-bottom: 12px;
}
.dm-section-label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--dm-teal);
  display: inline-block;
}

.dm-section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.2;
  color: var(--dm-vino);
  margin-bottom: 12px;
}

.dm-section-subtitle {
  color: var(--dm-text-light);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 50px;
}

/* =============================================
   LAYOUT SECTIONS
   ============================================= */
.dm-section {
  padding: 80px 5%;
}

.dm-section--gray { background-color: var(--dm-gray); }
.dm-section--vino { background-color: var(--dm-vino); }
.dm-section--coral { background-color: var(--dm-coral); }
.dm-section--teal { background: linear-gradient(135deg, var(--dm-teal) 0%, #1e8a84 100%); }

/* =============================================
   HEADER / NAVEGACIÓN
   ============================================= */
#dm-header {
  background: var(--dm-coral);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: 68px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(238,64,98,0.35);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#dm-header.scrolled {
  box-shadow: 0 4px 30px rgba(238,64,98,0.45);
}

/* Logo */
.dm-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.dm-logo__icon {
  width: 42px;
  height: 42px;
  background: var(--dm-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
}
.dm-logo__text {
  font-family: 'Playfair Display', serif;
  color: var(--dm-white);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.1;
}
.dm-logo__sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  display: block;
}

/* Nav desktop */
.dm-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.dm-nav a {
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 4px 0;
  position: relative;
}
.dm-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dm-white);
  transition: width 0.3s ease;
}
.dm-nav a:hover { color: var(--dm-white); }
.dm-nav a:hover::after { width: 100%; }

/* Nav actions */
.dm-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger */
.dm-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.dm-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dm-white);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.dm-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.dm-hamburger.active span:nth-child(2) { opacity: 0; }
.dm-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.dm-mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--dm-coral);
  padding: 20px 5%;
  border-top: 1px solid rgba(255,255,255,0.2);
  z-index: 9998;
  flex-direction: column;
  gap: 4px;
}
.dm-mobile-menu.open { display: flex; }
.dm-mobile-menu a {
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 1rem;
}
.dm-mobile-menu a:last-child { border-bottom: none; }

/* =============================================
   HERO
   ============================================= */
#dm-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--dm-vino) 0%, #8a3454 50%, var(--dm-vino) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 100px 5% 60px;
}

.dm-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.dm-hero__bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: var(--dm-dorado);
}
.dm-hero__bg-circle:nth-child(1) { width: 500px; height: 500px; top: -150px; right: -100px; }
.dm-hero__bg-circle:nth-child(2) { width: 300px; height: 300px; bottom: -80px; left: 10%; background: var(--dm-coral); opacity: 0.12; }
.dm-hero__bg-circle:nth-child(3) { width: 200px; height: 200px; top: 30%; left: 40%; opacity: 0.06; }

.dm-hero__content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.dm-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217,149,46,0.2);
  border: 1px solid rgba(217,149,46,0.5);
  color: var(--dm-dorado);
  padding: 6px 16px;
  border-radius: var(--dm-radius-xl);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: dmFadeInDown 0.8s ease forwards;
}

@keyframes dmFadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dm-hero__title {
  font-family: 'Playfair Display', serif;
  color: var(--dm-white);
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 1.1;
  margin-bottom: 20px;
  animation: dmFadeInUp 0.9s 0.2s ease both;
}
.dm-hero__title em {
  font-style: normal;
  color: var(--dm-dorado);
}

@keyframes dmFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dm-hero__desc {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 36px;
  animation: dmFadeInUp 0.9s 0.4s ease both;
}

.dm-hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: dmFadeInUp 0.9s 0.5s ease both;
}

.dm-hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 50px;
  animation: dmFadeInUp 0.9s 0.6s ease both;
  flex-wrap: wrap;
}
.dm-hero__stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--dm-dorado);
  display: block;
}
.dm-hero__stat-label {
  color: rgba(255,255,255,0.65);
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}

.dm-hero__visual {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 45%;
  max-width: 520px;
  pointer-events: none;
  animation: dmFloatUp 1s 0.3s ease both, dmFloat 4s 1.3s ease-in-out infinite;
}

@keyframes dmFloatUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes dmFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* Cursor de escritura */
#dm-typed-cursor {
  border-right: 3px solid var(--dm-dorado);
  animation: dmCursorBlink 0.75s step-end infinite;
}
@keyframes dmCursorBlink {
  from, to { border-color: var(--dm-dorado); }
  50%       { border-color: transparent; }
}

/* =============================================
   MARQUEE BAND
   ============================================= */
#dm-marquee-band {
  background: var(--dm-dorado);
  padding: 14px 0;
  overflow: hidden;
}
.dm-marquee__track {
  display: flex;
  animation: dmMarquee 25s linear infinite;
  white-space: nowrap;
  width: max-content;
}
@keyframes dmMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.dm-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 24px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--dm-white);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.dm-marquee__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  flex-shrink: 0;
}

/* =============================================
   CATEGORÍAS
   ============================================= */
.dm-cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}
.dm-cat-card {
  background: var(--dm-white);
  border-radius: var(--dm-radius-lg);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  text-decoration: none;
  display: block;
}
.dm-cat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(96,37,58,0.12);
  border-color: var(--dm-coral);
}
.dm-cat-card__icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
  transition: transform 0.3s ease;
}
.dm-cat-card:hover .dm-cat-card__icon { transform: scale(1.2) rotate(-5deg); }
.dm-cat-card__name {
  font-weight: 700;
  color: var(--dm-vino);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.dm-cat-card__count {
  font-size: 0.78rem;
  color: var(--dm-text-light);
  font-weight: 600;
}

/* =============================================
   PRODUCTOS
   ============================================= */
.dm-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.dm-prod-card {
  background: var(--dm-white);
  border-radius: var(--dm-radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dm-prod-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(96,37,58,0.12);
}
.dm-prod-card__img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  position: relative;
  overflow: hidden;
}
.dm-prod-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--dm-coral);
  color: var(--dm-white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--dm-radius-xl);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.dm-prod-card__info { padding: 18px 20px 22px; }
.dm-prod-card__brand {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--dm-teal);
  margin-bottom: 4px;
}
.dm-prod-card__name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dm-vino);
  margin-bottom: 10px;
  line-height: 1.3;
}
.dm-prod-card__price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dm-prod-card__price {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dm-dorado);
}
.dm-add-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--dm-vino);
  color: var(--dm-white);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.2s ease;
  line-height: 1;
}
.dm-add-btn:hover { background: var(--dm-coral); transform: scale(1.1) rotate(90deg); }

/* =============================================
   MARCAS
   ============================================= */
.dm-brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.dm-brand-pill {
  background: var(--dm-white);
  border: 2px solid var(--dm-gray);
  color: var(--dm-vino);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 22px;
  border-radius: var(--dm-radius-xl);
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
  cursor: default;
  display: inline-block;
}
.dm-brand-pill:hover {
  background: var(--dm-vino);
  color: var(--dm-white);
  border-color: var(--dm-vino);
  transform: scale(1.05);
}

/* =============================================
   BENEFICIOS
   ============================================= */
.dm-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.dm-benefit-card {
  background: var(--dm-white);
  border-radius: var(--dm-radius-lg);
  padding: 32px 26px;
  text-align: center;
  border-bottom: 4px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.dm-benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(96,37,58,0.1);
  border-bottom-color: var(--dm-coral);
}
.dm-benefit-card__icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 18px;
}
.dm-benefit-card__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dm-vino);
  margin-bottom: 8px;
  font-family: 'Nunito', sans-serif;
}
.dm-benefit-card__desc {
  color: var(--dm-text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}
.dm-icon-bg-coral { background: rgba(238,64,98,0.1); }
.dm-icon-bg-dorado { background: rgba(217,149,46,0.1); }
.dm-icon-bg-teal { background: rgba(45,163,157,0.1); }
.dm-icon-bg-vino { background: rgba(96,37,58,0.1); }

/* =============================================
   TESTIMONIOS
   ============================================= */
.dm-section--vino .dm-section-title { color: var(--dm-white); }
.dm-section--vino .dm-section-label { color: var(--dm-dorado); }
.dm-section--vino .dm-section-label::before { background: var(--dm-dorado); }

.dm-testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.dm-testi-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--dm-radius-lg);
  padding: 28px;
}
.dm-testi-card__stars { color: var(--dm-dorado); font-size: 1.1rem; margin-bottom: 14px; }
.dm-testi-card__text {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.dm-testi-card__author { display: flex; align-items: center; gap: 12px; }
.dm-testi-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dm-white);
  flex-shrink: 0;
}
.dm-testi-card__name { font-weight: 700; color: var(--dm-white); font-size: 0.9rem; }
.dm-testi-card__loc { color: rgba(255,255,255,0.5); font-size: 0.78rem; }

/* =============================================
   CTA SECTION
   ============================================= */
.dm-cta-section {
  position: relative;
  overflow: hidden;
  text-align: center;
}
.dm-cta-section__title {
  color: var(--dm-white);
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 16px;
  position: relative;
}
.dm-cta-section__desc {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.dm-cta-section__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* =============================================
   DELIVERY SECTION
   ============================================= */
.dm-delivery-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.dm-delivery__visual {
  background: linear-gradient(135deg, var(--dm-vino), #8a3454);
  border-radius: 24px;
  padding: 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.dm-delivery__visual::before {
  content: '';
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -60px;
  right: -60px;
}
.dm-delivery__icon { font-size: 6rem; display: block; margin-bottom: 16px; position: relative; }
.dm-delivery__title {
  font-family: 'Playfair Display', serif;
  color: var(--dm-white);
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.dm-delivery__sub { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.dm-delivery__tags { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.dm-delivery__tag {
  background: rgba(255,255,255,0.15);
  color: var(--dm-white);
  padding: 6px 16px;
  border-radius: var(--dm-radius-xl);
  font-size: 0.8rem;
  font-weight: 700;
}

.dm-delivery-feats { display: flex; flex-direction: column; gap: 20px; }
.dm-delivery-feat { display: flex; align-items: flex-start; gap: 16px; }
.dm-delivery-feat__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.dm-delivery-feat__title { font-weight: 700; color: var(--dm-vino); margin-bottom: 4px; font-size: 1rem; }
.dm-delivery-feat__desc { color: var(--dm-text-light); font-size: 0.88rem; line-height: 1.5; }

/* =============================================
   EVENTOS
   ============================================= */
.dm-eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.dm-evento-card {
  border-radius: var(--dm-radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  height: 280px;
  display: flex;
  align-items: flex-end;
  transition: transform 0.3s ease;
}
.dm-evento-card:hover { transform: scale(1.02); }
.dm-evento-card__bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  line-height: 1;
}
.dm-evento-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(96,37,58,0.85) 40%, transparent);
}
.dm-evento-card__info {
  position: relative;
  z-index: 2;
  padding: 24px;
  width: 100%;
}
.dm-evento-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--dm-white);
  margin-bottom: 6px;
}
.dm-evento-card__desc { color: rgba(255,255,255,0.75); font-size: 0.83rem; }

/* =============================================
   NEWSLETTER
   ============================================= */
.dm-newsletter { text-align: center; }
.dm-newsletter__title {
  font-family: 'Playfair Display', serif;
  color: var(--dm-white);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  margin-bottom: 12px;
}
.dm-newsletter__desc {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 32px;
}
.dm-newsletter__form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  background: var(--dm-white);
  border-radius: var(--dm-radius-xl);
  padding: 5px 5px 5px 24px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.dm-newsletter__input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.95rem;
  color: var(--dm-text);
  background: transparent;
  padding: 8px 0;
  min-width: 0;
}
.dm-newsletter__input::placeholder { color: #aaa; }

/* =============================================
   FOOTER
   ============================================= */
#dm-footer {
  background: var(--dm-coral);
  color: var(--dm-white);
  padding: 60px 5% 30px;
}
.dm-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.dm-footer__brand p {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  line-height: 1.7;
  margin: 14px 0 20px;
}
.dm-footer__social { display: flex; gap: 10px; }
.dm-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  text-decoration: none;
  color: var(--dm-white);
}
.dm-social-btn:hover { background: rgba(255,255,255,0.3); }

.dm-footer__col h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.9);
}
.dm-footer__col ul li { margin-bottom: 10px; }
.dm-footer__col ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}
.dm-footer__col ul li a:hover { color: var(--dm-white); }

.dm-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.dm-footer__bottom p {
  color: rgba(255,255,255,0.6);
  font-size: 0.82rem;
}

/* =============================================
   FLOATING CART
   ============================================= */
#dm-float-cart {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9990;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--dm-dorado);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 24px rgba(217,149,46,0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: var(--dm-white);
}
#dm-float-cart:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(217,149,46,0.6);
}
.dm-cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--dm-coral);
  color: var(--dm-white);
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =============================================
   WOOCOMMERCE COMPATIBILITY
   ============================================= */
.woocommerce-page .dm-section,
.woocommerce .dm-section {
  padding-top: 40px;
}

/* =============================================
   SKIP LINK ACCESIBILIDAD
   ============================================= */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--dm-vino);
  color: var(--dm-white);
  padding: 10px 20px;
  z-index: 99999;
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .dm-footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .dm-delivery-wrap { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .dm-nav { display: none; }
  .dm-hamburger { display: flex; }
  .dm-header-actions .dm-btn { display: none; }
  .dm-hero__visual { display: none; }
  #dm-hero { padding: 100px 5% 60px; }
  .dm-hero__stats { gap: 24px; }
  .dm-section { padding: 60px 5%; }
  .dm-cta-section__btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .dm-footer__grid { grid-template-columns: 1fr; }
  .dm-hero__stats { gap: 16px; }
  .dm-hero__stat-num { font-size: 1.5rem; }
  .dm-newsletter__form { flex-direction: column; padding: 12px; gap: 8px; border-radius: 16px; }
  #dm-float-cart { bottom: 20px; right: 20px; }
}

/* =============================================
   PRINT
   ============================================= */
@media print {
  #dm-header, #dm-float-cart, .dm-hamburger { display: none; }
  body { font-size: 12pt; }
}

/* =============================================
   BARRA DE PROMOCIONES / DESCUENTOS
   ============================================= */
#dm-promo-bar {
  background: var(--dm-vino);
  color: var(--dm-white);
  height: 36px;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
}

#dm-promo-bar.dm-promo-hidden { display: none; }

.dm-promo-bar__track {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: 100%;
  position: relative;
}

.dm-promo-bar__inner {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: dmPromoScroll 28s linear infinite;
  will-change: transform;
}

@keyframes dmPromoScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

.dm-promo-bar__item {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0 20px;
  color: rgba(255,255,255,0.95);
}

.dm-promo-bar__sep {
  color: var(--dm-dorado);
  font-size: 0.65rem;
  flex-shrink: 0;
}

.dm-promo-bar__close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0 12px;
  height: 100%;
  flex-shrink: 0;
  transition: color 0.2s;
  line-height: 1;
}
.dm-promo-bar__close:hover { color: var(--dm-white); }

/* Empuja el header cuando hay promo bar */
body.dm-has-promo #dm-header { top: 36px; }
body.dm-has-promo #dm-hero   { padding-top: 136px; }
body.dm-has-promo .dm-mobile-menu { top: 104px; }

/* =============================================
   BUSCADOR EN EL HEADER
   ============================================= */
.dm-header-search {
  position: relative;
  flex: 1;
  max-width: 320px;
  margin: 0 16px;
}

.dm-search-form {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--dm-radius-xl);
  overflow: hidden;
  transition: background 0.2s, border-color 0.2s;
}
.dm-search-form:focus-within {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.6);
}

.dm-search-form__input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 8px 14px;
  color: var(--dm-white);
  font-size: 0.85rem;
  font-family: 'Nunito', sans-serif;
  min-width: 0;
}
.dm-search-form__input::placeholder { color: rgba(255,255,255,0.65); }
.dm-search-form__input::-webkit-search-cancel-button { display: none; }

.dm-search-form__btn {
  background: none;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
  line-height: 1;
}
.dm-search-form__btn:hover { color: var(--dm-white); }

/* Sugerencias autocomplete */
.dm-search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--dm-white);
  border-radius: var(--dm-radius-md);
  box-shadow: 0 10px 40px rgba(0,0,0,0.18);
  overflow: hidden;
  z-index: 9999;
}
.dm-search-suggestions[hidden] { display: none; }

.dm-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--dm-text);
  transition: background 0.15s;
  text-decoration: none;
}
.dm-suggest-item:hover { background: var(--dm-gray); }
.dm-suggest-item__icon { font-size: 1.2rem; }
.dm-suggest-item__name { font-weight: 600; flex: 1; }
.dm-suggest-item__price { color: var(--dm-dorado); font-weight: 700; font-size: 0.8rem; }

/* Buscador mobile en menú */
.dm-search-form--mobile {
  margin: 8px 0 12px;
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
  border-radius: var(--dm-radius-xl);
}
.dm-search-form--mobile input {
  color: var(--dm-white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 14px;
  flex: 1;
  min-width: 0;
}
.dm-search-form--mobile input::placeholder { color: rgba(255,255,255,0.65); }
.dm-search-form--mobile button {
  background: none;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
}

/* =============================================
   BUSCADOR EN EL FOOTER
   ============================================= */
.dm-footer__search {
  border-top: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding: 28px 0;
  margin-bottom: 40px;
  text-align: center;
}

.dm-footer__search-label {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.dm-footer-search-form {
  display: flex;
  max-width: 560px;
  margin: 0 auto;
  border-radius: var(--dm-radius-xl);
  overflow: hidden;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
}
.dm-footer-search-form:focus-within {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
}

.dm-footer-search-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 13px 20px;
  color: var(--dm-white);
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  min-width: 0;
}
.dm-footer-search-form input::placeholder { color: rgba(255,255,255,0.6); }

/* =============================================
   CARRITO COUNT EN EL HEADER
   ============================================= */
#dm-header .dm-cart-count {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--dm-vino);
  color: var(--dm-white);
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  margin-left: 2px;
  vertical-align: middle;
}

/* =============================================
   RESPONSIVE ADICIONAL (BUSCADOR + PROMO)
   ============================================= */
@media (max-width: 1024px) {
  .dm-header-search { max-width: 220px; }
}

@media (max-width: 768px) {
  .dm-header-search { display: none; }
  body.dm-has-promo #dm-hero { padding-top: 120px; }

  .dm-footer-search-form {
    flex-direction: column;
    border-radius: var(--dm-radius-md);
  }
  .dm-footer-search-form input { padding: 12px 16px; }
  .dm-footer-search-form .dm-btn {
    border-radius: 0 0 var(--dm-radius-md) var(--dm-radius-md) !important;
    text-align: center;
    justify-content: center;
  }
}
