:root {
  --color-bg: #fdf3f1;
  --color-crema: #f7e3df;
  --color-marron: #c23b56;
  --color-marron-oscuro: #7a2840;
  --color-rosa: #f2c9d1;
  --color-dorado: #c9a227;
  --color-texto: #5a2d3c;
  --color-blanco: #ffffff;
  --whatsapp-verde: #25d366;
  --whatsapp-verde-oscuro: #1da851;

  --font-titulo: "Playfair Display", serif;
  --font-script: "Allura", cursive;
  --font-cuerpo: "Poppins", sans-serif;

  --radius: 14px;
  --shadow: 0 6px 18px rgba(58, 35, 23, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-cuerpo);
  color: var(--color-texto);
  background: var(--color-bg);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--font-titulo);
  margin: 0;
}

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

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

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  color: var(--color-marron);
}

.section-subtitle {
  text-align: center;
  margin: 8px 0 36px;
  color: #6b5a4e;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--color-marron);
  color: var(--color-crema);
}

.btn-whatsapp,
.btn-whatsapp-nav {
  background: var(--whatsapp-verde);
  color: white;
}

.btn-whatsapp:hover,
.btn-whatsapp-nav:hover {
  background: var(--whatsapp-verde-oscuro);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: var(--color-bg);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-titulo);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-marron);
}

.logo-img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: var(--color-marron);
  border-radius: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-menu a {
  font-weight: 500;
  color: var(--color-marron-oscuro);
}

.nav-menu a:hover {
  color: var(--color-marron);
}

.btn-whatsapp-nav {
  padding: 8px 16px;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 24px;
    gap: 16px;
    display: none;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  }

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

@media (min-width: 821px) {
  .nav-toggle {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: url("../img/hero.jpg") center/cover no-repeat;
  color: white;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(90, 26, 45, 0.55);
}

.hero-script {
  font-family: var(--font-script);
  font-size: clamp(2.4rem, 7vw, 3.6rem);
  margin: 0;
  line-height: 1;
}

.hero-content {
  position: relative;
  text-align: center;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  margin-bottom: 14px;
}

.hero-tagline {
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Catálogo */
.catalogo {
  padding: 70px 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--color-blanco);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.product-img-wrap {
  position: relative;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.img-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--color-marron-oscuro);
}

.img-nav:hover {
  background: var(--color-blanco);
}

.img-prev {
  left: 8px;
}

.img-next {
  right: 8px;
}

.img-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.img-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.img-dot.active {
  background: var(--color-blanco);
}

.product-card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card-body h3 {
  font-size: 1.1rem;
  color: var(--color-marron);
}

.product-desc {
  font-size: 0.88rem;
  color: #6b5a4e;
  flex: 1;
}

.product-precio {
  font-weight: 600;
  color: var(--color-marron-oscuro);
  font-size: 1.05rem;
}

.variante-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-marron);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.variante-select {
  border: 1px solid var(--color-dorado);
  border-radius: 999px;
  padding: 8px 12px;
  font-family: var(--font-cuerpo);
  font-size: 0.85rem;
  color: var(--color-texto);
  background: var(--color-blanco);
  cursor: pointer;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-dorado);
  border-radius: 999px;
  overflow: hidden;
}

.qty-control button {
  background: var(--color-crema);
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 1rem;
}

.qty-control span {
  width: 28px;
  text-align: center;
  font-weight: 600;
}

.btn-agregar {
  flex: 1;
  background: var(--color-marron);
  color: var(--color-crema);
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.85rem;
}

.btn-agregar:hover {
  background: var(--color-marron-oscuro);
}

/* Entrega */
.entrega {
  padding: 70px 0;
  background: var(--color-crema);
}

.entrega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.entrega-card {
  background: var(--color-blanco);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.entrega-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.entrega-card h3 {
  font-size: 1.05rem;
  color: var(--color-marron);
  margin-bottom: 12px;
}

.entrega-card ul li {
  font-size: 0.9rem;
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
  color: #5a4a3e;
}

.entrega-card ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-dorado);
}

/* Testimonios */
.testimonios {
  padding: 70px 0;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.testimonio-card {
  background: var(--color-blanco);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  margin: 0;
}

.estrellas {
  color: var(--color-dorado);
  margin: 0 0 10px;
}

.cita {
  font-style: italic;
  color: var(--color-texto);
}

.testimonio-card footer {
  margin-top: 14px;
  font-weight: 600;
  color: var(--color-marron);
  font-size: 0.9rem;
}

/* Sobre la dueña */
.sobre-fran {
  padding: 70px 0;
}

.sobre-fran-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: center;
}

.sobre-fran-foto {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.sobre-fran-texto p {
  color: #6b4a5a;
  line-height: 1.7;
}

@media (max-width: 700px) {
  .sobre-fran-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .sobre-fran-foto {
    margin: 0 auto;
  }

  .sobre-fran-texto h2 {
    text-align: center !important;
  }
}

/* Contacto */
.contacto {
  padding: 70px 0;
  background: var(--color-crema);
}

.contacto-grid {
  text-align: center;
}

.contacto-info {
  display: inline-block;
  text-align: left;
  margin: 24px 0;
}

.contacto-info li {
  margin-bottom: 10px;
}

.contacto-info a {
  color: var(--color-marron);
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--color-marron-oscuro);
  color: var(--color-crema);
  text-align: center;
  padding: 20px 0;
  font-size: 0.85rem;
}

/* Barra flotante de pedido */
.pedido-bar {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 200;
  display: none;
}

.pedido-bar.visible {
  display: block;
}

.pedido-bar-toggle {
  background: var(--color-marron);
  color: var(--color-crema);
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
}

/* Panel de pedido */
.pedido-panel {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: 380px;
  max-height: 80vh;
  background: var(--color-blanco);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
  z-index: 250;
  display: none;
  flex-direction: column;
}

.pedido-panel.open {
  display: flex;
}

@media (min-width: 480px) {
  .pedido-panel {
    bottom: 18px;
    right: 18px;
    border-radius: 18px;
  }
}

.pedido-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.pedido-panel-header button {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
}

.pedido-panel-items {
  overflow-y: auto;
  padding: 12px 20px;
  flex: 1;
}

.pedido-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f1ece6;
  font-size: 0.9rem;
}

.pedido-item-remove {
  background: none;
  border: none;
  color: #b33;
  cursor: pointer;
  font-size: 0.85rem;
}

.pedido-panel-empty {
  color: #8a7a6c;
  text-align: center;
  padding: 24px 0;
  font-size: 0.9rem;
}

.pedido-panel-footer {
  padding: 16px 20px;
  border-top: 1px solid #eee;
}

.pedido-panel-total {
  font-weight: 600;
  margin: 0 0 12px;
  text-align: right;
}

.pedido-panel-footer .btn {
  width: 100%;
  text-align: center;
}
