/* ==============================
   Dulce Kibba - Landing CSS
   ============================== */
:root {
  --cream: #fff8ef;
  --cream-strong: #f8eadb;
  --white: #ffffff;
  --pink: #f48aa7;
  --pink-soft: #ffe3eb;
  --pink-dark: #c9436f;
  --chocolate: #3b241a;
  --chocolate-soft: #6b4a3c;
  --caramel: #d7965b;
  --whatsapp: #25d366;
  --whatsapp-dark: #128c4a;
  --border: rgba(91, 55, 39, 0.12);
  --shadow: 0 18px 50px rgba(59, 36, 26, 0.12);
  --shadow-soft: 0 12px 32px rgba(59, 36, 26, 0.09);
  --container: 1120px;
  --radius: 24px;
  --radius-sm: 16px;
  --transition: 220ms ease;
  --font-main: "Inter", "Nunito", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(244, 138, 167, 0.18), transparent 34rem),
    linear-gradient(180deg, var(--cream) 0%, #fffdf9 46%, var(--cream) 100%);
  color: var(--chocolate);
  font-family: var(--font-main);
  line-height: 1.6;
  min-width: 320px;
  overflow-x: hidden;
  padding-bottom: 78px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

::selection {
  background: var(--pink-soft);
  color: var(--chocolate);
}

.section {
  margin: 0 auto;
  max-width: var(--container);
  padding: 68px 18px;
}

.section__header {
  margin-bottom: 32px;
}

.section__eyebrow,
.hero__eyebrow {
  color: var(--pink-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section__title {
  color: var(--chocolate);
  font-size: clamp(2rem, 9vw, 3.15rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.06;
}

.section__description {
  color: var(--chocolate-soft);
  font-size: 1rem;
  margin-top: 14px;
  max-width: 620px;
}

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: 0;
  min-height: 56px;
  padding: 15px 24px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition);
  width: 100%;
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  box-shadow: 0 14px 26px rgba(37, 211, 102, 0.28);
  color: var(--white);
}

.button--secondary {
  background: var(--white);
  border: 1px solid rgba(201, 67, 111, 0.24);
  color: var(--pink-dark);
  box-shadow: 0 10px 24px rgba(59, 36, 26, 0.06);
}

.site-header {
  background: rgba(255, 248, 239, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.navbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: var(--container);
  min-height: 70px;
  padding: 0 18px;
  position: relative;
}

.logo {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.logo__image {
  background: var(--pink-soft);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 8px 18px rgba(59, 36, 26, 0.1);
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.logo__text {
  color: var(--chocolate);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.nav-toggle {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(59, 36, 26, 0.08);
  display: grid;
  height: 44px;
  padding: 10px;
  place-items: center;
  width: 44px;
}

.nav-toggle__line {
  background: var(--chocolate);
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 20px;
}

.nav-menu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px;
  position: absolute;
  right: 18px;
  top: 62px;
  width: min(292px, calc(100vw - 36px));
}

.nav-menu.is-open {
  display: flex;
}

.nav-menu__link {
  border-radius: 12px;
  color: var(--chocolate-soft);
  display: block;
  font-size: 0.96rem;
  font-weight: 800;
  padding: 13px 14px;
}

.hero {
  display: grid;
  gap: 34px;
  margin: 0 auto;
  max-width: var(--container);
  padding: 42px 18px 58px;
}

.hero__title {
  color: var(--chocolate);
  font-size: clamp(2.45rem, 13vw, 4.8rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.98;
  max-width: 760px;
}

.hero__text {
  color: var(--chocolate-soft);
  font-size: 1.05rem;
  margin-top: 18px;
  max-width: 560px;
}

.hero__actions {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.hero__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, rgba(255, 227, 235, 0.95), rgba(248, 234, 219, 0.92));
  border: 1px solid rgba(91, 55, 39, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.products__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Alto minimo uniforme en mobile: con 2 columnas angostas el texto varia mas de
   lineas entre tarjetas, sin este piso una fila queda mas alta que la siguiente. */
.product-card {
  min-height: 420px;
}

.product-card,
.review-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.product-card:hover {
  border-color: rgba(244, 138, 167, 0.38);
  box-shadow: 0 18px 46px rgba(59, 36, 26, 0.14);
  transform: translateY(-4px);
}

.product-card__content,
.review-card {
  padding: 20px;
}

.product-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.product-card__title {
  color: var(--chocolate);
  font-size: 1.14rem;
  font-weight: 900;
  line-height: 1.2;
}

.product-card__text,
.about__text,
.cta__text {
  color: var(--chocolate-soft);
  font-size: 1rem;
  margin-top: 8px;
}

/* En mobile la descripcion se trunca a 1 linea para que ninguna tarjeta quede
   mucho mas alta que sus vecinas en la grilla de 2 columnas; "Ver mas" la expande. */
.product-card__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  overflow: hidden;
}

.product-card__text.is-expanded {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
}

/* Boton "Ver mas / Ver menos" (solo se ve en mobile, ver media query mas abajo). */
.product-card__toggle {
  background: none;
  border: 0;
  color: var(--pink-dark);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 4px;
  padding: 0;
  text-decoration: underline;
}

.product-card__toggle[hidden] {
  display: none;
}

.product-card__price {
  background: var(--pink-soft);
  border-radius: 999px;
  color: var(--pink-dark);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  padding: 7px 13px;
  width: fit-content;
}

.product-card__content > .product-card__price,
.product-card__content > .product-card__prices {
  margin-top: auto;
  padding-top: 16px;
}

.product-card__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about {
  display: grid;
  gap: 30px;
}

.about__image-wrapper {
  background: linear-gradient(135deg, var(--cream-strong), var(--pink-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.about__list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.about__list li {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--chocolate);
  font-weight: 800;
  padding: 13px 14px 13px 42px;
  position: relative;
}

.about__list li::before {
  background: linear-gradient(135deg, var(--pink), var(--caramel));
  border-radius: 50%;
  content: "";
  height: 10px;
  left: 18px;
  position: absolute;
  top: 21px;
  width: 10px;
}

.reviews {
  background: linear-gradient(180deg, rgba(255, 227, 235, 0.55), rgba(248, 234, 219, 0.45));
  max-width: none;
}

.reviews .section__header,
.reviews__columns,
.reviews__trust-badge {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--container);
}

/* Fila con los 3 bloques: formulario, testimonios y capturas de WhatsApp.
   En pantallas angostas se apilan; desde 900px quedan lado a lado y del mismo alto. */
.reviews__columns {
  display: grid;
  gap: 24px;
}

/* Bloque 1: formulario "Dejanos tu opinion" */
.review-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  transition: transform var(--transition), box-shadow var(--transition);
}

/* Mismo efecto hover de .review-form-card y .whatsapp-proof-card: se declara una sola vez. */
.review-form-card:hover,
.whatsapp-proof-card:hover {
  box-shadow: 0 18px 46px rgba(59, 36, 26, 0.14);
  transform: translateY(-2px);
}

.review-form-card__title {
  color: var(--chocolate);
  font-size: 1.3rem;
  font-weight: 900;
  line-height: 1.2;
}

.review-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.review-form__label {
  color: var(--chocolate-soft);
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.review-form__input,
.review-form__textarea {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--chocolate);
  padding: 13px 14px;
  transition: border-color var(--transition), background-color var(--transition);
  width: 100%;
}

.review-form__textarea {
  resize: vertical;
}

.review-form__input:focus,
.review-form__textarea:focus {
  background: var(--white);
  border-color: var(--pink);
  outline: 2px solid rgba(244, 138, 167, 0.28);
  outline-offset: 1px;
}

.review-form__error {
  color: #b3261e;
  font-size: 0.9rem;
  font-weight: 700;
}

.review-form__submit {
  align-items: center;
  display: inline-flex;
  gap: 10px;
}

.review-form-card__microcopy {
  color: var(--chocolate-soft);
  font-size: 0.9rem;
  margin-top: 16px;
  text-align: center;
}

/* Bloque 2: carrusel de testimonios */
.reviews__carousel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.reviews__carousel-track {
  position: relative;
}

[data-carousel-slide] {
  display: none;
}

[data-carousel-slide].is-active {
  animation: fadeUp 420ms ease both;
  display: block;
}

/* Los testimonios usan fondo solido y mas padding que el resto de .product-card, .review-card
   (borde/radio/sombra/transicion ya vienen de esa regla compartida, no hace falta repetirlos). */
.review-card {
  background: var(--white);
  padding: 24px 22px;
}

.review-card:hover {
  border-color: rgba(244, 138, 167, 0.38);
  box-shadow: 0 18px 46px rgba(59, 36, 26, 0.14);
  transform: translateY(-2px);
}

.review-card__stars {
  display: flex;
  gap: 3px;
}

.review-card__text {
  color: var(--chocolate);
  font-size: 1.05rem;
  font-weight: 650;
  margin-top: 14px;
}

.review-card__author {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 2px;
  margin-top: 18px;
  padding-top: 16px;
}

.review-card__name {
  color: var(--chocolate);
  font-weight: 900;
}

.review-card__source {
  color: var(--chocolate-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.review-card__purchase {
  color: var(--pink-dark);
  font-size: 0.85rem;
  font-weight: 800;
  margin-top: 10px;
}

.reviews__carousel .product-card__carousel-dots {
  justify-content: center;
  margin-top: 18px;
  position: static;
  transform: none;
}

.reviews__trust-badge {
  background: var(--pink-soft);
  border-radius: 999px;
  color: var(--pink-dark);
  display: block;
  font-weight: 900;
  margin-top: 30px;
  padding: 12px 22px;
  text-align: center;
  width: fit-content;
}

/* Bloque 3: "Mensajes reales que nos alegran el dia" */
.whatsapp-proof-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 22px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-proof-card__eyebrow {
  color: var(--pink-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.whatsapp-proof-card__title {
  color: var(--chocolate);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-top: 6px;
}

.whatsapp-proof__frame {
  margin: 20px auto 0;
  max-width: 300px;
  position: relative;
  width: 100%;
}

.whatsapp-proof__carousel {
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.whatsapp-proof__badge {
  background: var(--chocolate);
  border-radius: 999px;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 900;
  padding: 6px 14px;
  position: absolute;
  right: -10px;
  top: -10px;
  z-index: 3;
}

.cta {
  background: linear-gradient(135deg, rgba(59, 36, 26, 0.94), rgba(106, 63, 43, 0.94));
  color: var(--white);
  display: grid;
  gap: 24px;
  margin-bottom: 0;
  margin-top: 38px;
  max-width: none;
  padding: 44px 18px;
}

.cta__title {
  color: var(--white);
  font-size: clamp(2rem, 9vw, 3rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.03;
}

.cta__text {
  color: rgba(255, 255, 255, 0.78);
}

.cta__actions {
  display: grid;
  gap: 12px;
}

.footer {
  background: #20130f;
  color: var(--white);
  padding: 46px 18px 24px;
}

.footer__brand,
.footer__links,
.footer__bottom,
.cta__content,
.cta__actions {
  margin-left: auto;
  margin-right: auto;
  max-width: var(--container);
  width: 100%;
}

.footer__brand {
  display: grid;
  gap: 18px;
}

.logo--footer .logo__text {
  color: var(--white);
}

.footer__text {
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
}

.footer__links {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 12px;
  margin-top: 28px;
  padding: 22px 0;
}

.footer__link {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 800;
}

.footer__bottom {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  padding-top: 22px;
}

.footer__link[href^="https://wa.me"] {
  align-items: center;
  background: linear-gradient(135deg, var(--whatsapp), var(--whatsapp-dark));
  border-radius: 999px;
  bottom: 18px;
  box-shadow: 0 14px 30px rgba(18, 140, 74, 0.35);
  color: var(--white);
  display: inline-flex;
  font-size: 0;
  height: 58px;
  justify-content: center;
  position: fixed;
  right: 18px;
  width: 58px;
  z-index: 50;
}

.footer__link[href^="https://wa.me"]::before {
  content: "WA";
  font-size: 0.9rem;
  font-weight: 900;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__content,
.hero__media,
.product-card {
  animation: fadeUp 700ms ease both;
}

@media (min-width: 640px) {
  body {
    padding-bottom: 0;
  }

  /* Desde tablet se muestra la descripcion completa; "Ver mas" es solo para mobile. */
  .product-card__text {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
  }

  .product-card__toggle {
    display: none;
  }

  .section {
    padding: 82px 24px;
  }

  .section__header {
    margin: 0 auto 42px;
    max-width: 680px;
    text-align: center;
  }

  .button {
    width: auto;
  }

  .hero {
    padding: 56px 24px 76px;
  }

  .hero__actions,
  .cta__actions {
    display: flex;
    flex-wrap: wrap;
  }

  .products__grid {
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Alto minimo uniforme: en grilla multi-columna el contenido de texto varia
     (titulo/descripcion), así que sin este piso las tarjetas de una fila quedan
     parejas entre si pero distintas de otras filas. */
  .product-card {
    min-height: 540px;
  }

  .cta {
    border-radius: var(--radius);
    margin: 82px auto;
    max-width: calc(var(--container) - 48px);
    padding: 40px;
  }

  .footer__brand {
    align-items: start;
    display: flex;
    justify-content: space-between;
  }

  .footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
  }
}

@media (min-width: 900px) {
  .navbar {
    min-height: 78px;
    padding: 0 24px;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    align-items: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    gap: 28px;
    padding: 0;
    position: static;
    width: auto;
  }

  .hero {
    align-items: center;
    gap: 54px;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.85fr);
    min-height: calc(100vh - 78px);
    padding-bottom: 88px;
    padding-top: 68px;
  }

  .products__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .reviews__columns {
    align-items: stretch;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about {
    align-items: center;
    gap: 56px;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
  }

  .cta {
    align-items: center;
    display: flex;
    justify-content: space-between;
  }

  .footer__link[href^="https://wa.me"] {
    bottom: 24px;
    height: 64px;
    right: 24px;
    width: 64px;
  }
}

/* Carrusel reutilizable para todas las tarjetas de producto */
.product-card__carousel {
  aspect-ratio: 4 / 3.35;
  background: linear-gradient(135deg, var(--pink-soft), var(--cream-strong));
  overflow: hidden;
  position: relative;
}

.product-card__carousel-track {
  height: 100%;
  position: relative;
}

.product-card__carousel-image {
  background: #fff;
  height: 100%;
  inset: 0;
  object-fit: contain;
  opacity: 0;
  position: absolute;
  transition: opacity 260ms ease;
  width: 100%;
}

.product-card__carousel-image.is-active {
  opacity: 1;
  position: absolute;
  z-index: 1;
}

.product-card__carousel-dots {
  bottom: 12px;
  display: flex;
  gap: 7px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 2;
}

.product-card__carousel-dot {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(59, 36, 26, 0.16);
  height: 9px;
  transition: background-color var(--transition), width var(--transition);
  width: 9px;
}

.product-card__carousel-dot.is-active {
  background: var(--pink-dark);
  width: 24px;
}
/* ===== Carrusel sección Nosotros ===== */

.about__image-wrapper .product-card__carousel {
  aspect-ratio: 4 / 5;
  width: 100%;
  height: 100%;
}

.about__image-wrapper .product-card__carousel-track {
  width: 100%;
  height: 100%;
}

.about__image-wrapper .product-card__carousel-image {
  background: #fff;
  width: 100%;
  height: 100%;
  object-fit: contain;
}