/* ===== Florería Sode ===== */
:root {
  --rosa: #e0527e;
  --rosa-oscuro: #b8325c;
  --rosa-claro: #fde4ec;
  --rubor: #fff5f8;
  --verde: #5f9a32;
  --naranja: #f4a340;
  --tinta: #3d2a33;
  --gris: #7a6770;
  --blanco: #ffffff;
  --sombra: 0 12px 30px rgba(184, 50, 92, 0.12);
  --radio: 22px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --script: 'Great Vibes', cursive;
  --sans: 'Nunito Sans', system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--tinta);
  background: var(--rubor);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; margin: 0; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }

.script {
  font-family: var(--script);
  color: var(--rosa);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 4px;
  line-height: 1.2;
}

.section__head { text-align: center; max-width: 620px; margin: 0 auto 44px; }
.section__head h2 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--tinta); }
.section__head p:last-child { color: var(--gris); margin-top: 12px; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--rosa);
  color: var(--blanco);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--rosa);
  transition: background .25s, transform .25s, box-shadow .25s;
  box-shadow: 0 8px 20px rgba(224, 82, 126, .3);
}
.btn:hover { background: var(--rosa-oscuro); border-color: var(--rosa-oscuro); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--rosa-oscuro); box-shadow: none; }
.btn--ghost:hover { background: var(--rosa); color: var(--blanco); }
.btn--small { padding: 9px 20px; font-size: .92rem; }

/* ===== Encabezado ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 245, 248, .9);
  backdrop-filter: blur(10px);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(184, 50, 92, .1); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav__brand img { height: 50px; width: auto; }
.nav__menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__menu a:not(.btn) {
  text-decoration: none;
  font-weight: 600;
  color: var(--tinta);
  position: relative;
}
.nav__menu a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--rosa);
  transition: width .25s;
}
.nav__menu a:not(.btn):hover::after { width: 100%; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { display: block; width: 26px; height: 2px; margin: 6px 0; background: var(--rosa-oscuro); border-radius: 2px; }

/* ===== Portada ===== */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 90px) 0 clamp(90px, 10vw, 140px);
  background:
    radial-gradient(circle at 12% 20%, rgba(244, 163, 64, .18), transparent 40%),
    radial-gradient(circle at 90% 10%, rgba(224, 82, 126, .22), transparent 45%),
    linear-gradient(180deg, var(--rosa-claro), var(--rubor));
  overflow: hidden;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(3.2rem, 8vw, 5.6rem); font-weight: 600; letter-spacing: -.01em; }
.hero h1 span { color: var(--rosa); font-style: italic; }
.hero__lead { font-size: 1.15rem; color: var(--gris); max-width: 480px; margin: 18px 0 30px; }
.hero__lead strong { color: var(--tinta); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__wa {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px;
  padding: 10px 20px 10px 12px;
  border-radius: 999px;
  background: #25d366;
  color: var(--blanco);
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(37, 211, 102, .3);
  transition: transform .25s;
}
.hero__wa:hover { transform: translateY(-2px); }
.hero__wa svg { width: 26px; height: 26px; stroke: var(--blanco); }
.hero__wa svg .fill { fill: var(--blanco); }

.hero__social { display: flex; gap: 12px; list-style: none; padding: 0; margin: 34px 0 0; }
.hero__social a {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--blanco);
  box-shadow: var(--sombra);
  transition: transform .25s, background .25s;
}
.hero__social a:hover { transform: translateY(-3px); background: var(--rosa); }
.hero__social a:hover svg { stroke: var(--blanco); }
.hero__social a:hover svg .fill { fill: var(--blanco); }

svg { width: 22px; height: 22px; fill: none; stroke: var(--rosa-oscuro); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: var(--rosa-oscuro); stroke: none; }

.hero__gallery { position: relative; height: clamp(380px, 46vw, 540px); }
.hero__img {
  position: absolute;
  object-fit: cover;
  border-radius: var(--radio);
  box-shadow: 0 20px 45px rgba(61, 42, 51, .18);
  border: 6px solid var(--blanco);
}
.hero__img--main { width: 58%; height: 86%; left: 20%; top: 7%; z-index: 2; border-radius: 200px 200px var(--radio) var(--radio); }
.hero__img--top { width: 38%; height: 44%; right: 0; top: 0; transform: rotate(5deg); }
.hero__img--bottom { width: 36%; height: 42%; left: 0; bottom: 0; transform: rotate(-6deg); z-index: 3; }
.hero__badge {
  position: absolute;
  right: 4%; bottom: 6%;
  z-index: 4;
  width: 104px; height: 104px;
  display: grid; place-content: center;
  text-align: center;
  border-radius: 50%;
  background: var(--verde);
  color: var(--blanco);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.2;
  box-shadow: 0 10px 25px rgba(95, 154, 50, .35);
}
.hero__badge strong { font-family: var(--serif); font-size: 1.9rem; letter-spacing: 0; }
.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; height: 70px; fill: var(--blanco); stroke: none; }

/* ===== Nosotros ===== */
.about { background: var(--blanco); }
.about__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.about__photo { margin: 0; position: relative; }
.about__photo::before {
  content: '';
  position: absolute;
  inset: 24px -24px -24px 24px;
  border-radius: var(--radio);
  background: var(--rosa-claro);
  z-index: 0;
}
.about__photo img { position: relative; z-index: 1; border-radius: var(--radio); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__text h2 { font-size: clamp(2.4rem, 5vw, 3.4rem); }
.about__role {
  display: inline-block;
  margin: 10px 0 20px;
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--rosa-claro);
  color: var(--rosa-oscuro);
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .8rem;
}
.about__text > p:not(.script):not(.about__role) { color: var(--gris); }
.about__features { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 26px 0 0; }
.about__features li {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #f3c7d5;
  font-weight: 600;
  font-size: .95rem;
}

/* ===== Catálogo ===== */
.catalog { background: linear-gradient(180deg, var(--rubor), var(--rosa-claro)); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 40px; }
.filter {
  font: inherit;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1.5px solid #f0b8ca;
  background: var(--blanco);
  color: var(--tinta);
  cursor: pointer;
  transition: all .2s;
}
.filter:hover { border-color: var(--rosa); color: var(--rosa-oscuro); }
.filter.is-active { background: var(--rosa); border-color: var(--rosa); color: var(--blanco); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.product {
  display: flex; flex-direction: column;
  background: var(--blanco);
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  transition: transform .3s, box-shadow .3s;
  animation: aparecer .45s ease both;
}
.product[hidden] { display: none; }
.product:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(184, 50, 92, .18); }
.product__media { padding: 0; border: 0; background: #f7f2f4; cursor: zoom-in; aspect-ratio: 4 / 5; overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product:hover .product__media img { transform: scale(1.05); }
.product__body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 22px; text-align: center; }
.product__body h3 { font-size: 1.45rem; font-weight: 600; }
.product__note { margin: 4px 0 0; font-size: .85rem; color: var(--gris); }
.product__price { margin: 8px 0 16px; font-weight: 700; color: var(--rosa-oscuro); font-size: 1.05rem; }
.product__order {
  margin-top: auto;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--verde);
  color: var(--verde);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.product__order:hover { background: var(--verde); color: var(--blanco); }

.catalog__note { text-align: center; color: var(--gris); font-size: .92rem; margin-top: 40px; }
.catalog__note a { color: var(--rosa-oscuro); font-weight: 700; margin-left: 6px; }

@keyframes aparecer { from { opacity: 0; transform: translateY(14px); } }

/* ===== Contacto ===== */
.contact { background: var(--blanco); }
.contact__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.card-contact {
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 18px;
  border-radius: var(--radio);
  background: var(--rubor);
  border: 1px solid #f8d3df;
  text-align: center;
  text-decoration: none;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.card-contact:hover { transform: translateY(-5px); box-shadow: var(--sombra); background: var(--blanco); }
.card-contact__icon {
  display: grid; place-items: center;
  width: 60px; height: 60px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--rosa-claro);
}
.card-contact__icon svg { width: 26px; height: 26px; }
.card-contact h3 { font-size: 1.5rem; }
.card-contact--wa { background: #e9fbef; border-color: #b6ecc8; }
.card-contact--wa .card-contact__icon { background: #25d366; }
.card-contact--wa svg { stroke: var(--blanco); }
.card-contact--wa svg .fill { fill: var(--blanco); }
.card-contact p { margin: 6px 0 0; color: var(--gris); font-weight: 600; word-break: break-word; }

.location {
  display: flex; align-items: center; gap: 20px;
  margin-top: 26px;
  padding: 26px 30px;
  border-radius: var(--radio);
  background: linear-gradient(120deg, var(--rosa), #ec7aa0);
  color: var(--blanco);
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(224, 82, 126, .3);
  transition: transform .25s;
}
.location:hover { transform: translateY(-3px); }
.location__pin { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .2); }
.location__pin svg { stroke: var(--blanco); width: 28px; height: 28px; }
.location__text { display: flex; flex-direction: column; }
.location__text strong { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }
.location__text span { opacity: .9; }
.location__arrow { margin-left: auto; font-size: 1.8rem; transition: transform .25s; }
.location:hover .location__arrow { transform: translateX(6px); }

/* ===== Pie ===== */
.footer { background: var(--tinta); color: #f3dde5; padding: 50px 0 34px; text-align: center; }
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer img { background: var(--blanco); border-radius: 16px; padding: 8px 14px; width: 150px; height: auto; margin-bottom: 10px; }
.footer .script { color: #f7a9c1; }
.footer__links a { color: #f3dde5; text-decoration: none; }
.footer__copy { font-size: .85rem; opacity: .7; margin: 10px 0 0; }

/* ===== WhatsApp flotante ===== */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  display: grid; place-items: center;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  transition: transform .25s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; stroke: var(--blanco); }
.wa-float svg .fill { fill: var(--blanco); }

/* ===== Visor ===== */
.lightbox {
  width: min(900px, 100% - 32px);
  max-height: 92vh;
  padding: 0;
  border: 0;
  border-radius: var(--radio);
  overflow: hidden;
  background: var(--blanco);
}
.lightbox[open] { display: grid; grid-template-columns: 1.3fr 1fr; }
.lightbox::backdrop { background: rgba(61, 42, 51, .75); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; height: 100%; max-height: 92vh; object-fit: cover; }
.lightbox__info { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 36px; }
.lightbox__info h3 { font-size: 2.1rem; }
.lightbox__price { margin: 0; font-weight: 700; color: var(--rosa-oscuro); font-size: 1.2rem; }
.lightbox__close {
  position: absolute; top: 12px; right: 14px;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: var(--blanco);
  color: var(--tinta);
  font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

/* ===== Responsivo ===== */
@media (max-width: 960px) {
  .hero__grid, .about__grid { grid-template-columns: 1fr; }
  .hero__text { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__actions, .hero__social { justify-content: center; }
  .hero__gallery { max-width: 520px; width: 100%; margin: 0 auto; }
  .about__photo { max-width: 420px; margin: 0 auto 20px; }
  .about__photo::before { inset: 14px -12px -12px 14px; }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .card-contact--wa { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    background: var(--rubor);
    box-shadow: 0 12px 20px rgba(184, 50, 92, .1);
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .lightbox[open] { grid-template-columns: 1fr; overflow-y: auto; }
  .lightbox img { max-height: 60vh; }
  .lightbox__info { padding: 24px; text-align: center; }
}

@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product__body { padding: 12px 10px 14px; }
  .product__body h3 { font-size: 1.12rem; }
  .product__price { font-size: .9rem; margin: 6px 0 10px; }
  .product__order { font-size: .78rem; padding: 8px 6px; }
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-contact { padding: 22px 10px; }
  .card-contact h3 { font-size: 1.25rem; }
  .card-contact p { font-size: .85rem; }
  .location { padding: 20px; gap: 14px; }
  .location__text strong { font-size: 1.3rem; }
  .hero__badge { width: 84px; height: 84px; font-size: .68rem; }
  .hero__badge strong { font-size: 1.5rem; }
}

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