/* =====================
   HERO — SWIPER Y DOTS
===================== */

/* Contenedor relativo para los dots de paginación */
.hero-container { position: relative; }

/* Swiper del hero — altura fija en desktop */
.hero-swiper {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.hero-swiper .swiper-slide { width: 100%; height: 100%; }

/* Ocultar paginación nativa de Swiper */
.hero-pagination { display: none !important; }

/* Dots manuales centrados en la parte inferior del hero */
.hero-pagination-vertical {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 24px;
  z-index: 10;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}

.hero-bullet {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hero-text);
  opacity: 0.3;
  cursor: pointer;
  transition: opacity 0.3s ease, width 0.3s ease, border-radius 0.3s ease;
}

.hero-bullet-active {
  opacity: 1;
  width: 20px;
  height: 5px;
  border-radius: 3px;
  background: var(--hero-text);
}

@media (max-width: 1100px) {
  .hero-swiper { height: calc(100dvh - 94px); }
}

@media (max-width: 680px) {
  .hero-pagination-vertical { bottom: 16px; }
}

/* =====================
   HERO — LAYOUT INTERNO
===================== */

/* Grid 50/50: texto izquierda, imagen derecha */
.hero-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  background: var(--bg-hero-img);
  position: relative;
  isolation: isolate;
}

/* Columna de texto */
.hero-left {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 4;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.hero-eyebrow-line { width: 60px; height: 1px; background: var(--hero-line); }

.hero-eyebrow-text {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--hero-eyebrow);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
}

.hero-left h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 58px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--hero-text);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
}

.hero-bajada {
  font-size: 18px;
  line-height: 1.75;
  color: var(--hero-muted);
  margin-bottom: 32px;
  max-width: 500px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
}

.hero-meta {
  font-size: 12px;
  color: var(--hero-meta);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  border-top: 0.5px solid var(--hero-border);
  padding-top: 18px;
}

/* CTA del hero */
.hero-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--hero-btn-bg);
  border: 1px solid var(--hero-btn-border);
  color: var(--hero-text);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  padding: 10px 18px;
  margin-bottom: 24px;
  cursor: pointer;
  transition: all 0.2s;
  width: fit-content;
}

.hero-read-btn svg { stroke: currentColor; }

/* Hover dark: fondo crema, texto vinotinto */
[data-theme="dark"] .hero-read-btn:hover { background: #F0EAE8; color: #702030; border-color: #702030; }

/* Hover light: fondo vinotinto, texto crema */
[data-theme="light"] .hero-read-btn:hover { background: #702030; color: #F0EAE8; border-color: #F0EAE8; }

/* Columna de imagen — absoluta, cubre todo el hero */
.hero-right {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* Blur enmascarado: fuerte a la izquierda, desvanece a la derecha */
.hero-right::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(to right, black 0%, black 20%, transparent 60%);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 20%, transparent 60%);
  z-index: 2;
}

/* Degradado vinotinto sobre la imagen */
.hero-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(112, 32, 48, 0.98) 0%,
    rgba(112, 32, 48, 0.80) 20%,
    rgba(112, 32, 48, 0.40) 45%,
    rgba(112, 32, 48, 0.08) 70%,
    rgba(112, 32, 48, 0.00) 100%
  );
  z-index: 3;
}

/* Light mode: degradado crema */
[data-theme="light"] .hero-right-overlay {
  background: linear-gradient(
    to right,
    rgba(245, 237, 232, 0.98) 0%,
    rgba(245, 237, 232, 0.80) 20%,
    rgba(245, 237, 232, 0.40) 45%,
    rgba(245, 237, 232, 0.08) 70%,
    rgba(245, 237, 232, 0.00) 100%
  );
}

.hero-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s ease; }
.hero-right:hover .hero-img { transform: scale(1.02); }

/* Hero responsive — columna única */
@media (max-width: 1100px) {
  .hero-wrap { grid-template-columns: 1fr; }

  .hero-right::before {
    mask-image: linear-gradient(to right, black 0%, black 30%, transparent 200%);
    -webkit-mask-image: linear-gradient(to right, black 0%, black 30%, transparent 200%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .hero-right-overlay {
    background: linear-gradient(
      to right,
      rgba(112, 32, 48, 0.95) 0%,
      rgba(112, 32, 48, 0.75) 60%,
      rgba(112, 32, 48, 0.00) 100%
    );
  }

  [data-theme="light"] .hero-right-overlay {
    background: linear-gradient(
      to right,
      rgba(245, 237, 232, 0.95) 0%,
      rgba(245, 237, 232, 0.75) 60%,
      rgba(245, 237, 232, 0.00) 100%
    );
  }

  .hero-left { padding: 40px 28px 48px; justify-content: flex-start; }

  /* Escala de texto 80% */
  .hero-left h1              { font-size: 46px; }
  .hero-bajada               { font-size: 14.4px; margin-right: 60px; }
  .hero-eyebrow-text,
  .hero-read-btn,
  .hero-meta                 { font-size: 9.6px; }
}

@media (max-width: 680px) {
  .hero-left h1 { font-size: 36px; }
}
