
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;1,500&display=swap');

/* COLORES GENERALES */
:root {
  --green: #789879;
  --green-dark: #344f3b;
  --green-light: #e5ede1;
  --beige: #f5f0e6;
  --cream: #fbf9f4;
  --orange: #cf8e6d;
  --ink: #252923;
  --muted: #777a70;
  --black: #171a17;
  --line: #e4e2d9;
  --shadow: 0 20px 45px rgba(44, 60, 42, .17);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

button, input, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* ENCABEZADO */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 249, 244, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1180px, 90%);
  height: 82px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.nav-link {
  color: #62685e;
  font-size: .9rem;
  transition: color .25s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--green-dark);
}

.logo,
.footer-logo {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: .17em;
}

.logo span,
.footer-logo span {
  color: var(--orange);
}

.header-cta {
  justify-self: end;
  border: 1px solid #d9ded3;
  border-radius: 30px;
  padding: 11px 19px;
  font-size: .85rem;
  transition: .25s;
}

.header-cta:hover {
  background: var(--green-dark);
  color: white;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font-size: 1.7rem;
}

/* BOTONES */
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 13px 24px;
  border: none;
  border-radius: 40px;
  font-size: .88rem;
  font-weight: 600;
  transition: transform .25s, background .25s;
}

.button:hover {
  transform: translateY(-3px);
}

.button-dark {
  background: var(--green-dark);
  color: white;
}

.button-dark:hover {
  background: #253b2b;
}

.button-light {
  background: white;
  color: var(--black);
}

.button-light:hover {
  background: var(--green-light);
}

/* CARRUSEL */
.hero {
  width: min(1380px, 94%);
  margin: 25px auto 0;
  background: var(--beige);
  border-radius: 25px;
  overflow: hidden;
}

.hero-slider {
  min-height: 490px;
}

.slide {
  display: none;
  grid-template-columns: 1fr 1fr;
  min-height: 490px;
  align-items: center;
}

.slide.active {
  display: grid;
  animation: fadeIn .5s ease;
}

.hero-copy {
  padding: 50px clamp(25px, 6vw, 85px);
}

.eyebrow {
  display: inline-block;
  color: var(--green-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
}

h1, h2 {
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.04em;
}

.hero h1,
.hero h2 {
  margin: 22px 0;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
}

h1 em, h2 em {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: var(--green-dark);
}

.hero-copy p {
  max-width: 390px;
  margin-bottom: 28px;
  color: #646b60;
}

/* IMÁGENES DEL CARRUSEL */
.hero-image {
  height: 440px;
  margin: 22px;
  border-radius: 20px;
  overflow: hidden;
  background: var(--green-light);
}

.hero-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform .6s ease;
}

.slide.active .hero-image:hover img {
  transform: scale(1.04);
}

.slider-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 35px 25px;
}

.slider-dots {
  display: flex;
  gap: 10px;
}

.dot {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 20px;
  background: #c5c9bd;
  transition: .25s;
}

.dot.active {
  width: 28px;
  background: var(--green-dark);
}

.slider-arrows {
  display: flex;
  gap: 8px;
}

.slider-arrows button {
  width: 40px;
  height: 40px;
  border: 1px solid #d9ded3;
  border-radius: 50%;
  background: transparent;
  font-size: 1.1rem;
  transition: .25s;
}

.slider-arrows button:hover {
  background: var(--green-dark);
  color: white;
}

/* CONTENEDORES */
.section-wrap {
  width: min(1120px, 88%);
  margin: auto;
}

.intro {
  max-width: 760px;
  padding: 110px 10px 100px;
  text-align: center;
}

.intro h2 {
  margin: 20px 0;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
}

.intro h2 em {
  color: var(--green);
}

.intro p {
  max-width: 530px;
  margin: auto;
  color: var(--muted);
}

/* PRODUCTOS */
.products {
  padding: 30px 0 110px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 35px;
}

.section-heading h2,
.contact-heading h2 {
  margin: 10px 0;
  font-size: clamp(2rem, 3.6vw, 2.9rem);
}

.section-heading h2 span,
.contact-heading h2 span {
  color: var(--orange);
}

.section-heading p,
.contact-heading p {
  color: var(--muted);
  font-size: .95rem;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 270px;
  padding: 10px 15px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 40px;
}

.search-box span {
  color: var(--green-dark);
  font-size: 1.5rem;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-size: .85rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 25px;
}

.product-card {
  min-width: 0;
  transition: transform .3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-visual {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  padding: 0;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  background: var(--green-light);
  transition: box-shadow .3s ease;
}

.product-card:hover .product-visual {
  box-shadow: var(--shadow);
}

/* FOTOGRAFÍAS DE LOS PRODUCTOS */
.product-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform .4s ease;
}

.product-card:hover .product-visual img {
  transform: scale(1.07);
}

.quick-view {
  position: absolute;
  left: 50%;
  bottom: 25px;
  transform: translate(-50%, 12px);
  padding: 11px 19px;
  background: rgba(255,255,255,.95);
  border-radius: 30px;
  white-space: nowrap;
  color: var(--green-dark);
  font-size: .85rem;
  font-weight: 600;
  opacity: 0;
  transition: .3s ease;
}

.product-card:hover .quick-view,
.product-visual:focus-visible .quick-view {
  opacity: 1;
  transform: translate(-50%, 0);
}

.product-info {
  padding: 18px 3px 0;
}

.product-info h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.product-description {
  margin-top: 4px;
  color: var(--muted);
  font-size: .85rem;
}

.price {
  margin-top: 13px;
  font-size: .95rem;
  font-weight: 700;
}

.product-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 13px;
  padding: 13px 0;
  border: none;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--green-dark);
  font-weight: 600;
  text-align: left;
}

.product-link:hover {
  color: var(--green);
}

.no-results {
  padding: 25px;
  text-align: center;
  color: var(--muted);
}

/* MEDIOS DE PAGO */
.payment {
  background: var(--black);
  color: white;
  padding: 90px 6%;
}

.payment-inner {
  width: min(1080px, 100%);
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 75px;
}

.payment .eyebrow {
  color: #b6cbb0;
}

.payment h2 {
  margin: 20px 0;
  font-size: clamp(2.5rem, 4vw, 3.8rem);
}

.payment h2 em {
  color: #b7cbb0;
}

.payment-inner > div:first-child p {
  max-width: 360px;
  color: #c1c3bd;
}

.payment-options {
  display: grid;
}

.payment-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid #3b3e38;
}

.payment-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  border: 1px solid #4b5549;
  border-radius: 50%;
  color: #c4d7bd;
  font-size: 1.3rem;
}

.payment-item h3 {
  font-size: .95rem;
}

.payment-item p {
  color: #bfc2ba;
  font-size: .82rem;
}

.payment-options .button {
  justify-self: start;
  margin-top: 28px;
}

/* CONTACTO */
.contact {
  padding: 100px 0;
}

.contact-heading {
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
}

.contact-details {
  display: grid;
  align-content: start;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.contact-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 1.2rem;
}

.contact-item > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-item small {
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .1em;
}

.contact-item strong {
  font-size: .9rem;
  overflow-wrap: anywhere;
}

.contact-arrow {
  margin-left: auto;
  color: var(--green-dark);
}

.contact-item[href]:hover strong {
  color: var(--green);
}

/* FORMULARIO NEGRO */
.contact-form {
  display: grid;
  align-content: start;
  padding: 30px;
  background: var(--black);
  color: white;
  border-radius: 20px;
}

.contact-form h3 {
  margin-bottom: 20px;
  font-size: 1.35rem;
}

.contact-form label {
  margin: 13px 0 7px;
  font-size: .85rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #454940;
  border-radius: 10px;
  background: #222620;
  color: white;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #9eb69a;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .button {
  justify-self: start;
  margin-top: 22px;
}

#form-feedback {
  margin-top: 12px;
  color: #d7e7d0;
  font-size: .85rem;
}

/* TÉRMINOS */
.terms {
  width: min(1120px, 88%);
  margin: 0 auto 70px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.terms-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 22px 0;
  border: none;
  background: transparent;
  font-weight: 600;
  text-align: left;
}

.terms-symbol {
  font-size: 1.4rem;
  color: var(--green-dark);
}

.terms-content {
  padding-bottom: 24px;
  color: var(--muted);
  font-size: .9rem;
}

.terms-content p + p {
  margin-top: 10px;
}

/* PIE DE PÁGINA */
.footer {
  display: grid;
  justify-items: center;
  gap: 13px;
  padding: 45px 20px 30px;
  background: var(--black);
  color: white;
  text-align: center;
}

.footer p {
  color: #c3c7be;
  font-size: .85rem;
}

.back-top {
  margin: 7px 0;
  font-size: .85rem;
}

.back-top:hover {
  color: #c5d7bd;
}

.footer small {
  width: min(500px, 100%);
  padding-top: 15px;
  border-top: 1px solid #393d36;
  color: #b5b8b0;
  font-size: .75rem;
}

/* VENTANA DE PRODUCTOS */
.product-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(750px, 92%);
  max-width: none;
  max-height: 90vh;
  overflow: auto;
  border: none;
  border-radius: 22px;
  background: var(--cream);
  box-shadow: 0 25px 90px rgba(0,0,0,.3);
}

.product-dialog[open] {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-dialog::backdrop {
  background: rgba(17,23,17,.7);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 15px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: white;
  font-size: 1.6rem;
}

.dialog-image {
  min-height: 350px;
  overflow: hidden;
  background: var(--green-light);
}

.dialog-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.dialog-copy {
  align-self: center;
  padding: 35px;
}

.dialog-copy h2 {
  margin: 15px 0;
  font-size: 2rem;
}

.dialog-copy > p {
  color: var(--muted);
}

.dialog-price {
  margin: 20px 0;
  font-weight: 700;
}

/* ANIMACIÓN */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* TABLETS */
@media (max-width: 850px) {
  .header-inner {
    gap: 12px;
  }

  .nav {
    gap: 14px;
  }

  .header-cta {
    display: none;
  }

  .hero-slider,
  .slide {
    min-height: 410px;
  }

  .hero-copy {
    padding: 35px;
  }

  .hero-image {
    height: 350px;
  }

  .payment-inner,
  .contact-grid {
    gap: 35px;
  }
}

/* CELULARES */
@media (max-width: 600px) {
  html {
    scroll-padding-top: 75px;
  }

  .header-inner {
    height: 70px;
    grid-template-columns: 1fr auto 1fr;
  }

  .logo {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.3rem;
  }

  .menu-toggle {
    display: block;
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    padding: 20px 6%;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-link {
    padding: 12px 0;
  }

  .hero {
    width: 92%;
    margin-top: 15px;
    border-radius: 18px;
  }

  .hero-slider,
  .slide {
    min-height: 0;
  }

  .slide.active {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 38px 25px 25px;
  }

  .hero h1,
  .hero h2 {
    font-size: clamp(2.7rem, 11vw, 3.5rem);
  }

  .hero-image {
    height: 260px;
    margin: 0 15px 15px;
  }

  .slider-controls {
    padding: 0 22px 20px;
  }

  .intro {
    padding: 80px 5px 65px;
  }

  .products {
    padding: 20px 0 75px;
  }

  .section-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }

  .search-box {
    width: 100%;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .product-visual {
    aspect-ratio: 1 / .95;
  }

  .quick-view {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .payment {
    padding: 65px 7%;
  }

  .payment-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .contact {
    padding: 70px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .contact-form {
    padding: 23px;
  }

  .terms {
    margin-bottom: 50px;
  }

  .product-dialog[open] {
    grid-template-columns: 1fr;
  }

  .dialog-image,
  .dialog-image img {
    min-height: 220px;
    max-height: 260px;
  }

  .dialog-copy {
    padding: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
