
:root {
  --pink: #df7295;
  --pink-dark: #a83e66;
  --burgundy: #56283d;
  --cream: #fffaf3;
  --text: #654b56;
  --line: #f0dce3;
  --shadow: 0 14px 40px rgba(111, 52, 77, .13);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  background: #ffe8ee;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.65;
  background-color: #ffe8ee;
  background-image: url("imagenes/fondo-alfressi.png");
  background-position: center top;
  background-repeat: repeat-y;
  background-size: 100% auto;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

h1, h2, h3, .logo {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--burgundy);
  line-height: 1.2;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 8px 0 12px; }
p { margin-top: 0; }

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 14px 5%;
  background: rgba(255, 245, 248, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.logo { font-size: 1.8rem; font-weight: 700; white-space: nowrap; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 17px; }
.nav a { font-size: .82rem; font-weight: 700; }
.nav a:hover { color: var(--pink-dark); }

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 60px 8%;
  background: rgba(255, 245, 248, .30);
}

.hero-copy { max-width: 610px; }
.eyebrow {
  color: var(--pink-dark);
  letter-spacing: 1.5px;
  font-size: .74rem;
  font-weight: 700;
}
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.7rem); margin: 18px 0; }
.hero h1 em { color: var(--pink-dark); }
.hero-copy p { max-width: 480px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.hero-logo { width: 100%; max-width: 520px; justify-self: center; }
.hero-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 14px 20px rgba(105, 25, 75, .18));
  transition: transform .3s ease;
}
.hero-logo img:hover { transform: scale(1.02); }

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 12px 19px;
  border: 0;
  border-radius: 30px;
  font-size: .9rem;
  font-weight: 700;
  text-align: center;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--pink); color: white; }
.btn-primary:hover { background: var(--pink-dark); }
.btn-light { background: white; color: var(--burgundy); border: 1px solid var(--line); }
.btn-whatsapp { background: #209b59; color: white; }

.section { padding: 72px 7%; background: transparent; }
.section-heading { max-width: 680px; text-align: center; margin: 0 auto 36px; }
.section-heading p { color: #806773; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(240, 220, 227, .9);
  border-radius: 22px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow);
  transition: transform .25s;
}
.product-card:hover { transform: translateY(-5px); }
.product-card > img { width: 100%; height: 285px; object-fit: cover; }
.product-info { padding: 20px; }
.product-tag { color: var(--pink-dark); font-size: .68rem; letter-spacing: 1px; font-weight: 700; }
.product-info h3 { font-size: 1.45rem; margin: 8px 0; }
.product-info p { min-height: 60px; font-size: .9rem; color: #806773; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.product-bottom strong { color: var(--burgundy); font-size: 1.35rem; white-space: nowrap; }
.product-bottom .btn { padding: 10px 13px; }
.featured { outline: 2px solid #efbad0; }
.popular {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: white;
  color: var(--pink-dark);
  border-radius: 25px;
  padding: 7px 12px;
  font-size: .75rem;
  font-weight: 700;
}
.center { text-align: center; margin-top: 28px; }
.small-note { color: #8f7480; font-size: .83rem; }

.custom-section { background: rgba(255, 239, 245, .43); }
.builder {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: stretch;
  gap: 30px;
  max-width: 1050px;
  margin: auto;
  padding: 28px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 25px;
  box-shadow: var(--shadow);
}
.field-label, fieldset legend, .review-form label {
  display: block;
  margin: 14px 0 8px;
  color: var(--burgundy);
  font-weight: 700;
}
select, input:not([type="checkbox"]), textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #e9d3dc;
  border-radius: 12px;
  background: #fffdfd;
  color: var(--text);
}
fieldset { min-width: 0; margin: 18px 0 0; padding: 0; border: 0; }
fieldset legend { margin-bottom: 10px; }
fieldset legend span { font-size: .8rem; color: #8f7480; font-weight: 500; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.choice-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffafd;
  cursor: pointer;
  font-size: .84rem;
}
.choice-grid label:has(input:checked) { background: #fff0f5; border-color: var(--pink); }
.choice-grid input { accent-color: var(--pink-dark); }
.builder-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.builder-bottom strong { display: block; color: var(--burgundy); font-size: 1.5rem; }
.builder-photo { position: relative; min-height: 380px; }
.builder-photo img { width: 100%; height: 100%; min-height: 380px; border-radius: 18px; object-fit: cover; }
.photo-caption {
  position: absolute;
  bottom: 15px;
  left: 15px;
  right: 15px;
  padding: 12px;
  text-align: center;
  border-radius: 12px;
  background: rgba(255, 250, 243, .94);
  color: var(--burgundy);
  font-weight: 700;
}

.about-section {
  display: grid;
  grid-template-columns: .65fr 1.35fr;
  align-items: center;
  gap: 7%;
  background: rgba(255, 250, 243, .35);
}
.about-mark {
  display: grid;
  place-items: center;
  width: min(270px, 100%);
  aspect-ratio: 1;
  margin: auto;
  border-radius: 50%;
  background: rgba(248, 220, 229, .95);
  color: var(--pink-dark);
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, .65);
  font-family: "Playfair Display", serif;
  font-size: 8rem;
}
.about-mark span { font-size: 2.5rem; }
.about-copy { max-width: 750px; }
.signature { color: var(--pink-dark); font-weight: 700; }

.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  padding: 23px 19px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .93);
  box-shadow: 0 8px 25px rgba(111, 52, 77, .07);
}
.step > span { color: var(--pink); font: 2rem "Playfair Display", serif; }
.step h3 { margin: 12px 0 8px; }
.step p { margin: 0; font-size: .9rem; color: #806773; }

.reviews-section { background: rgba(255, 240, 245, .42); }
.review-form {
  max-width: 580px;
  margin: auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, .95);
}
.review-form .btn { margin-top: 16px; }
.reviews-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 24px;
}
.review-card {
  padding: 20px;
  overflow-wrap: anywhere;
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.review-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.stars { color: #d89535; letter-spacing: 2px; }

.contact-section { background: rgba(255, 250, 243, .32); }
.location-card {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  max-width: 1050px;
  margin: auto;
  overflow: hidden;
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.location-photo { position: relative; min-height: 320px; }
.location-photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.location-label {
  position: absolute;
  bottom: 15px;
  left: 15px;
  padding: 9px 14px;
  border-radius: 25px;
  background: #fffaf3;
  color: var(--burgundy);
  font-weight: 700;
  font-size: .85rem;
}
.location-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 30px;
}
.location-info h3, .social-area h3 { margin: 8px 0; font-size: 1.7rem; }
.location-info .btn { width: 100%; }
.social-area { margin-top: 40px; text-align: center; }
.social-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.social-links a {
  padding: 12px 19px;
  background: rgba(255, 255, 255, .95);
  border: 1px solid var(--line);
  border-radius: 28px;
  color: var(--pink-dark);
  font-weight: 700;
  transition: transform .2s;
}
.social-links a:hover { transform: translateY(-3px); }

.footer {
  padding: 35px 20px 100px;
  text-align: center;
  background: rgba(250, 228, 235, .88);
}
.footer p { margin: 10px 0; }
.footer small { color: #806773; }

.cart-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 501;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 19px;
  border: 0;
  border-radius: 40px;
  background: var(--pink-dark);
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 8px 25px rgba(87, 38, 60, .28);
  transition: transform .2s;
}
.cart-float:hover { transform: translateY(-3px); }
#cart-count { font-size: .9rem; font-weight: 700; }

.cart-panel {
  position: fixed;
  right: 18px;
  bottom: 88px;
  z-index: 500;
  width: min(390px, calc(100vw - 28px));
  max-height: 75vh;
  overflow: auto;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 15px 50px rgba(71, 34, 51, .25);
}
.cart-panel[hidden] { display: none; }
.cart-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cart-heading h2 { font-size: 1.5rem; }
.icon-button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #fff0f4;
}
.cart-line { padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line h3 { margin: 0 0 5px; font-size: 1rem; }
.cart-line p { margin: 0; font-size: .82rem; }
.cart-line-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.quantity-controls { display: flex; align-items: center; gap: 9px; }
.quantity-controls button, .remove-item {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff7fa;
}
.remove-item { margin-top: 8px; color: #a33d5d; }
.cart-total { display: flex; justify-content: space-between; padding: 17px 0; font-size: 1.2rem; }
#checkout { width: 100%; }
.clear-cart { display: block; margin: 12px auto 0; border: 0; background: transparent; color: #806773; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 95px;
  z-index: 1000;
  width: max-content;
  max-width: calc(100% - 30px);
  padding: 12px 18px;
  border-radius: 25px;
  background: var(--burgundy);
  color: white;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 15px);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1050px) {
  .header { align-items: flex-start; flex-direction: column; }
  .nav { width: 100%; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  body { background-size: auto 480px; }
  .header { padding: 12px 5%; }
  .nav { flex-wrap: nowrap; overflow-x: auto; padding: 5px 0 8px; }
  .nav a { flex-shrink: 0; }
  .hero { grid-template-columns: 1fr; padding: 36px 6%; text-align: center; gap: 25px; }
  .hero-copy { margin: auto; }
  .hero-actions { justify-content: center; }
  .hero-logo { grid-row: 1; max-width: 360px; }
  .section { padding: 52px 5%; }
  .product-grid, .builder, .about-section, .location-card { grid-template-columns: 1fr; }
  .product-card > img { height: 270px; }
  .builder { padding: 18px; }
  .builder-photo, .builder-photo img { min-height: 240px; max-height: 300px; }
  .about-mark { width: 185px; font-size: 5.5rem; }
  .about-mark span { font-size: 2rem; }
  .steps-grid { gap: 10px; }
  .step { padding: 16px 12px; }
  .step h3 { font-size: 1.05rem; }
  .location-photo, .location-photo img { min-height: 230px; max-height: 300px; }
  .location-info { padding: 22px; }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .builder-bottom { align-items: stretch; flex-direction: column; }
  .builder-bottom .btn { width: 100%; }
  .cart-float { right: 14px; bottom: 14px; }
  .cart-panel { right: 10px; bottom: 80px; }
}

@media (max-width: 380px) {
  .choice-grid, .steps-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; transition: none !important; }
}


/* Elementos añadidos: horarios y métodos de pago */
.opening-hours { margin-top: 12px; }
.payment-options {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.payment-options legend { font-weight: 700; color: var(--burgundy); padding: 0 6px; }
.payment-options label { display: flex; align-items: center; gap: 8px; }
.qr-payment {
  margin: 12px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff7fa;
  text-align: center;
}
.qr-payment img { width: min(100%, 300px); margin: 10px auto; border-radius: 8px; }
.qr-payment p { margin-bottom: 8px; }
