/* ================================================================
   DESPENSA VILO — LANDING PAGE
   Pegar completo en: Apariencia > Personalizar > CSS adicional

   Todo el diseño está contenido dentro de .dv-landing para evitar
   cambios accidentales en carrito, checkout y otras páginas.
   ================================================================ */

/* ---------- 1. Variables ---------- */
.dv-landing {
  --dv-cream: #f3efdf;
  --dv-cream-light: #faf8ef;
  --dv-green: #173f35;
  --dv-green-dark: #0d2d26;
  --dv-yellow: #e3c755;
  --dv-yellow-light: #f0df91;
  --dv-rust: #8b4638;
  --dv-ink: #17211d;
  --dv-muted: #66706a;
  --dv-line: rgba(23, 33, 29, 0.22);
  --dv-white: #fffef8;
  --dv-serif: Georgia, "Times New Roman", serif;
  --dv-sans: Arial, Helvetica, sans-serif;
  --dv-container: 1240px;
  --dv-gutter: clamp(20px, 4vw, 64px);
  --dv-section: clamp(72px, 9vw, 136px);
  --dv-transition: 220ms ease;

  width: 100%;
  overflow: clip;
  color: var(--dv-ink);
  background: var(--dv-cream);
  font-family: var(--dv-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 2. Base encapsulada ---------- */
.dv-landing,
.dv-landing *,
.dv-landing *::before,
.dv-landing *::after {
  box-sizing: border-box;
}

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

.dv-landing h1,
.dv-landing h2,
.dv-landing h3,
.dv-landing h4,
.dv-landing p,
.dv-landing blockquote,
.dv-landing figure {
  margin: 0;
}

.dv-landing h1,
.dv-landing h2,
.dv-landing h3,
.dv-landing blockquote {
  color: inherit;
  font-family: var(--dv-serif);
  font-weight: 400;
  letter-spacing: -0.025em;
}

.dv-landing h1 {
  max-width: 760px;
  font-size: clamp(48px, 7vw, 104px);
  line-height: 0.98;
}

.dv-landing h2 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.04;
}

.dv-landing h3 {
  font-size: clamp(28px, 3vw, 46px);
  line-height: 1.08;
}

.dv-landing p {
  max-width: 660px;
}

.dv-landing a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.dv-landing a:hover {
  color: inherit;
}

.dv-container {
  width: min(100%, var(--dv-container));
  margin-inline: auto;
  padding-inline: var(--dv-gutter);
}

.dv-section {
  padding-block: var(--dv-section);
}

.dv-section--cream-light { background: var(--dv-cream-light); }
.dv-section--green { background: var(--dv-green); color: var(--dv-cream-light); }
.dv-section--yellow { background: var(--dv-yellow); }
.dv-section--rust { background: var(--dv-rust); color: var(--dv-white); }

.dv-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: currentColor;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dv-lead {
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
}

.dv-muted { color: var(--dv-muted); }
.dv-text-center { text-align: center; }
.dv-text-center > * { margin-inline: auto; }

/* ---------- 3. Botones ---------- */
.dv-button,
.dv-landing button.dv-button,
.dv-landing a.dv-button,
.dv-landing .button,
.dv-landing button.single_add_to_cart_button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid var(--dv-green);
  border-radius: 0;
  color: var(--dv-white);
  background: var(--dv-green);
  box-shadow: none;
  font-family: var(--dv-sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--dv-transition), background var(--dv-transition),
    border-color var(--dv-transition), transform var(--dv-transition);
}

.dv-button:hover,
.dv-landing button.dv-button:hover,
.dv-landing a.dv-button:hover,
.dv-landing .button:hover,
.dv-landing button.single_add_to_cart_button:hover {
  border-color: var(--dv-green-dark);
  color: var(--dv-white);
  background: var(--dv-green-dark);
  transform: translateY(-2px);
}

.dv-button--outline,
.dv-landing a.dv-button--outline,
.dv-landing button.dv-button--outline {
  color: var(--dv-green);
  background: transparent;
}

.dv-button--outline:hover,
.dv-landing a.dv-button--outline:hover,
.dv-landing button.dv-button--outline:hover {
  color: var(--dv-white);
  background: var(--dv-green);
}

.dv-button--light,
.dv-landing a.dv-button--light {
  border-color: var(--dv-cream-light);
  color: var(--dv-green-dark);
  background: var(--dv-cream-light);
}

.dv-button--light:hover,
.dv-landing a.dv-button--light:hover {
  border-color: var(--dv-yellow);
  color: var(--dv-green-dark);
  background: var(--dv-yellow);
}

.dv-button--full { width: 100%; }

.dv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

/* ---------- 4. Hero ---------- */
.dv-hero {
  display: grid;
  min-height: min(760px, calc(100vh - 100px));
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  background: var(--dv-cream);
}

.dv-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(64px, 9vw, 140px) var(--dv-gutter);
}

.dv-hero__content p {
  margin-top: 28px;
  font-size: clamp(18px, 2vw, 23px);
}

.dv-hero__media {
  position: relative;
  display: flex;
  min-height: 620px;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--dv-green);
}

.dv-hero__media::before {
  position: absolute;
  z-index: -1;
  top: 11%;
  left: 50%;
  width: min(72%, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--dv-yellow);
  content: "";
  transform: translateX(-50%);
}

.dv-hero__media img {
  width: min(88%, 720px);
  max-height: 90%;
  object-fit: contain;
  object-position: center bottom;
}

.dv-hero__origin {
  position: absolute;
  top: 28px;
  right: 28px;
  color: var(--dv-white);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.15em;
  text-align: right;
  text-transform: uppercase;
}

/* ---------- 5. Introducciones de sección ---------- */
.dv-section-heading {
  display: grid;
  margin-bottom: clamp(44px, 6vw, 88px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: 40px;
}

.dv-section-heading--center {
  display: block;
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
}

.dv-section-heading--center p {
  margin: 24px auto 0;
}

/* ---------- 6. Suave / Intenso ---------- */
.dv-profile {
  display: grid;
  min-height: 660px;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  border-top: 1px solid var(--dv-line);
}

.dv-profile + .dv-profile { margin-top: 1px; }

.dv-profile--reverse .dv-profile__media {
  grid-column: 2;
}

.dv-profile--reverse .dv-profile__content {
  grid-row: 1;
  grid-column: 1;
}

.dv-profile__media {
  position: relative;
  display: flex;
  min-height: 600px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dv-yellow-light);
}

.dv-profile--intenso .dv-profile__media {
  background: var(--dv-green);
}

.dv-profile__media img {
  width: min(82%, 650px);
  height: 88%;
  object-fit: contain;
  transition: transform 500ms ease;
}

.dv-profile:hover .dv-profile__media img {
  transform: scale(1.025);
}

.dv-profile__number {
  position: absolute;
  top: 28px;
  left: 28px;
  font-family: var(--dv-serif);
  font-size: 22px;
}

.dv-profile--intenso .dv-profile__number {
  color: var(--dv-white);
}

.dv-profile__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 104px);
  background: var(--dv-cream-light);
}

.dv-profile__content p {
  margin-top: 24px;
}

.dv-profile__sizes {
  margin-top: 30px;
  color: var(--dv-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- 7. Selector WooCommerce ---------- */
.dv-landing .variations_form,
.dv-product-form {
  width: 100%;
  margin-top: 32px;
}

.dv-landing .variations,
.dv-landing .variations tbody,
.dv-landing .variations tr,
.dv-landing .variations th,
.dv-landing .variations td {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
}

.dv-landing .variations label,
.dv-product-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dv-landing select,
.dv-landing input[type="number"],
.dv-product-form select {
  width: 100%;
  min-height: 50px;
  padding: 10px 14px;
  border: 1px solid var(--dv-line);
  border-radius: 0;
  color: var(--dv-ink);
  background: var(--dv-white);
  box-shadow: none;
  font-family: var(--dv-sans);
}

.dv-landing .reset_variations {
  display: inline-block;
  margin-top: 8px;
  color: var(--dv-muted);
  font-size: 12px;
}

.dv-landing .single_variation_wrap { margin-top: 16px; }

.dv-landing .woocommerce-variation-price,
.dv-landing .price {
  margin-bottom: 16px;
  color: var(--dv-ink);
  font-family: var(--dv-serif);
  font-size: 26px;
}

.dv-landing .woocommerce-variation-availability {
  margin-bottom: 12px;
  font-size: 13px;
}

.dv-landing .woocommerce-variation-add-to-cart {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
}

.dv-landing .quantity input.qty {
  height: 50px;
  margin: 0;
  text-align: center;
}

/* ---------- 8. Manifiesto ---------- */
.dv-manifesto {
  position: relative;
  display: grid;
  min-height: 530px;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1.45fr);
  align-items: center;
  padding: var(--dv-section) var(--dv-gutter);
  overflow: hidden;
  color: var(--dv-white);
  background: var(--dv-green);
}

.dv-manifesto__mark {
  color: rgba(255, 255, 255, 0.13);
  font-family: var(--dv-serif);
  font-size: clamp(160px, 25vw, 380px);
  line-height: 0.7;
  text-align: center;
}

.dv-manifesto blockquote {
  max-width: 850px;
  font-size: clamp(44px, 6vw, 86px);
  line-height: 1.03;
}

.dv-manifesto p {
  margin-top: 28px;
  font-size: clamp(17px, 2vw, 22px);
}

/* ---------- 9. Varietales ---------- */
.dv-varietals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 56px);
}

.dv-varietal {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.dv-varietal__media {
  display: flex;
  width: 100%;
  aspect-ratio: 4 / 5;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  overflow: hidden;
  background: var(--dv-yellow-light);
}

.dv-varietal:nth-child(even) .dv-varietal__media {
  background: var(--dv-green);
}

.dv-varietal__media img {
  width: 80%;
  height: 90%;
  object-fit: contain;
  transition: transform 500ms ease;
}

.dv-varietal:hover .dv-varietal__media img {
  transform: scale(1.035);
}

.dv-varietal p { margin-top: 16px; }
.dv-varietal .dv-button { margin-top: 24px; }

/* ---------- 10. Guía rápida ---------- */
.dv-guide {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(40px, 8vw, 120px);
  background: var(--dv-yellow);
}

.dv-guide__list {
  border-top: 1px solid var(--dv-line);
}

.dv-guide__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding-block: 22px;
  border-bottom: 1px solid var(--dv-line);
}

.dv-guide__item span:first-child {
  font-family: var(--dv-serif);
}

.dv-guide__item strong {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- 11. Aceto ---------- */
.dv-aceto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 9vw, 130px);
}

.dv-aceto__media {
  position: relative;
  display: flex;
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dv-rust);
}

.dv-aceto__media img {
  width: 82%;
  height: 88%;
  object-fit: contain;
}

.dv-aceto__content p { margin-top: 24px; }

/* ---------- 12. Confianza ---------- */
.dv-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--dv-line);
  border-bottom: 1px solid var(--dv-line);
}

.dv-trust__item {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}

.dv-trust__item + .dv-trust__item {
  border-left: 1px solid var(--dv-line);
}

.dv-trust__icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

/* ---------- 13. Footer propio opcional ---------- */
.dv-footer {
  padding: clamp(64px, 9vw, 120px) var(--dv-gutter) 36px;
  color: var(--dv-white);
  background: var(--dv-green-dark);
}

.dv-footer__grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(2, minmax(160px, 0.7fr));
  gap: clamp(36px, 7vw, 100px);
}

.dv-footer__brand {
  font-family: var(--dv-serif);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
}

.dv-footer h3 {
  margin-bottom: 16px;
  font-family: var(--dv-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dv-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dv-footer li + li { margin-top: 8px; }

.dv-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
}

/* ---------- 14. Mensajes de WooCommerce ---------- */
.dv-landing .woocommerce-message,
.dv-landing .woocommerce-info,
.dv-landing .woocommerce-error {
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid var(--dv-line);
  border-top-width: 1px;
  color: var(--dv-ink);
  background: var(--dv-cream-light);
}

.dv-landing .woocommerce-message::before,
.dv-landing .woocommerce-info::before {
  color: var(--dv-green);
}

/* ---------- 15. Elementor / GeneratePress ---------- */
/* Al contenedor principal de Elementor asignarle la clase: dv-landing */
.dv-landing.elementor,
.elementor .dv-landing {
  margin: 0;
}

.dv-landing .elementor-widget:not(:last-child) {
  margin-bottom: 0;
}

/* Opcional: agregar dv-home al body mediante GeneratePress Elements.
   Estas reglas eliminan el espacio del contenido solamente en la landing. */
body.dv-home .site-content,
body.dv-home .content-area,
body.dv-home .site-main,
body.dv-home .inside-article {
  margin: 0;
  padding: 0;
}

body.dv-home .site.grid-container {
  max-width: none;
}

body.dv-home .entry-header,
body.dv-home .entry-title {
  display: none;
}

/* ---------- 16. Accesibilidad ---------- */
.dv-landing :focus-visible {
  outline: 3px solid var(--dv-yellow);
  outline-offset: 3px;
}

.dv-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------- 17. Responsive tablet ---------- */
@media (max-width: 980px) {
  .dv-hero {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .dv-hero__media { min-height: 600px; }

  .dv-section-heading,
  .dv-guide,
  .dv-aceto {
    grid-template-columns: 1fr;
  }

  .dv-profile {
    min-height: 0;
    grid-template-columns: 1fr 1fr;
  }

  .dv-profile__media { min-height: 520px; }

  .dv-profile__content { padding: 52px 40px; }

  .dv-manifesto {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .dv-aceto__media { max-width: 700px; }
}

/* ---------- 18. Responsive mobile ---------- */
@media (max-width: 700px) {
  .dv-landing {
    --dv-gutter: 20px;
    --dv-section: 72px;
  }

  .dv-landing h1 {
    font-size: clamp(44px, 14vw, 66px);
  }

  .dv-landing h2 {
    font-size: clamp(36px, 11vw, 52px);
  }

  .dv-landing h3 {
    font-size: 32px;
  }

  .dv-actions {
    display: grid;
    width: 100%;
  }

  .dv-button { width: 100%; }

  .dv-hero__content {
    min-height: 520px;
    padding: 72px var(--dv-gutter);
  }

  .dv-hero__media { min-height: 480px; }

  .dv-hero__media::before {
    top: 12%;
    width: 78%;
  }

  .dv-hero__origin {
    top: 18px;
    right: 18px;
  }

  .dv-section-heading { gap: 24px; }

  .dv-profile,
  .dv-profile--reverse {
    display: flex;
    flex-direction: column;
  }

  .dv-profile__media {
    min-height: 440px;
  }

  .dv-profile__content {
    padding: 52px var(--dv-gutter) 64px;
  }

  .dv-manifesto {
    display: block;
    min-height: 0;
  }

  .dv-manifesto__mark {
    position: absolute;
    right: -20px;
    bottom: 5px;
    font-size: 230px;
  }

  .dv-manifesto__content {
    position: relative;
    z-index: 1;
  }

  .dv-varietals {
    gap: 16px;
  }

  .dv-varietal__media {
    aspect-ratio: 3 / 4;
    margin-bottom: 18px;
  }

  .dv-varietal p {
    font-size: 14px;
  }

  .dv-guide__item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .dv-guide__item span:first-child { display: none; }

  .dv-trust {
    grid-template-columns: 1fr;
  }

  .dv-trust__item + .dv-trust__item {
    border-top: 1px solid var(--dv-line);
    border-left: 0;
  }

  .dv-footer__grid { grid-template-columns: 1fr; }

  .dv-footer__bottom {
    flex-direction: column;
    margin-top: 52px;
  }
}

/* ---------- 19. Mobile pequeño ---------- */
@media (max-width: 440px) {
  .dv-varietals {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .dv-varietal__media {
    aspect-ratio: 4 / 5;
  }

  .dv-landing .woocommerce-variation-add-to-cart {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

/* ---------- 20. Preferencias de movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  .dv-landing *,
  .dv-landing *::before,
  .dv-landing *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
