/* =========================================================
   JAQUELIN FLOWERS — HOJA DE ESTILOS
   Índice:
   1. Variables / tokens de diseño
   2. Reset básico
   3. Tipografía y utilidades
   4. Pantalla de entrada (animación)
   5. Pétalos flotantes (ambiente)
   6. Encabezado / navegación
   7. Botones
   8. Hero
   9. Sección Nosotros
   10. Catálogo (grid + tarjetas interactivas)
   11. Contacto
   12. Footer
   13. Animaciones de scroll (reveal)
   14. Accesibilidad / responsive
   ========================================================= */

/* ---------- 1. VARIABLES ---------- */
:root {
  /* Paleta: crema natural + rosa romántico + verde salvia + dorado suave */
  --cream:        #FBF6EE;
  --cream-dark:   #F1E7D8;
  --blush:        #F5D9D3;
  --rose:         #C17B82;
  --rose-dark:    #A15A64;
  --sage:         #8FA07E;
  --sage-dark:    #5E6E4F;
  --forest:       #3B4A34;
  --gold:         #C79A54;
  --white:        #FFFFFF;
  --ink:          #3A342E;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Mulish', system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 32px;

  --shadow-soft: 0 12px 30px rgba(94, 63, 60, 0.10);
  --shadow-hover: 0 18px 40px rgba(94, 63, 60, 0.16);

  --container-w: 1180px;
  --header-h: 76px;

  --ease: cubic-bezier(.25, .8, .35, 1);
}

/* ---------- 2. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; background: none; border: none; cursor: pointer; }
iframe { border: 0; }

/* ---------- 3. TIPOGRAFÍA / UTILIDADES ---------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

h1, h2 { font-family: var(--font-display); font-weight: 600; color: var(--forest); }

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-dark);
  margin-bottom: 10px;
}

section { padding: 96px 0; }

/* ---------- 4. PANTALLA DE ENTRADA ---------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: radial-gradient(circle at 50% 40%, var(--blush) 0%, var(--cream) 70%);
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease);
}
.intro.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro__flower { width: 140px; height: 140px; }
.intro__petals { transform-origin: 100px 100px; animation: intro-rotate 6s linear infinite; }
.petal {
  fill: var(--rose);
  opacity: 0.9;
  transform-origin: 100px 100px;
  animation: intro-bloom 1.4s var(--ease) both;
}
.petal:nth-child(1) { animation-delay: 0.05s; }
.petal:nth-child(2) { animation-delay: 0.15s; fill: var(--rose-dark); }
.petal:nth-child(3) { animation-delay: 0.25s; }
.petal:nth-child(4) { animation-delay: 0.35s; fill: var(--rose-dark); }
.petal:nth-child(5) { animation-delay: 0.45s; }
.petal:nth-child(6) { animation-delay: 0.55s; fill: var(--rose-dark); }
.intro__center { fill: var(--gold); animation: intro-pop 1.6s var(--ease) both; animation-delay: 0.6s; }

.intro__text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--forest);
  opacity: 0;
  animation: intro-text 1s var(--ease) both;
  animation-delay: 0.9s;
}

@keyframes intro-bloom {
  0%   { transform: scale(0) rotate(0deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 0.9; }
}
@keyframes intro-pop {
  0%   { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
@keyframes intro-rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes intro-text {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ---------- 5. PÉTALOS FLOTANTES (AMBIENTE) ---------- */
.petals-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
.petal-fall {
  position: absolute;
  top: -40px;
  width: 14px;
  height: 14px;
  background: var(--rose);
  border-radius: 60% 0 60% 0;
  opacity: 0.55;
  animation-name: fall, sway;
  animation-timing-function: linear, ease-in-out;
  animation-iteration-count: infinite, infinite;
}
@keyframes fall {
  0%   { top: -40px; }
  100% { top: 110vh; }
}
@keyframes sway {
  0%, 100% { margin-left: 0; }
  50%      { margin-left: 40px; }
}

/* ---------- 6. ENCABEZADO ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(251, 246, 238, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(59, 74, 52, 0.08);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(59, 74, 52, 0.08); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--forest);
}
.brand em { color: var(--rose-dark); font-style: italic; }
.brand__leaf { width: 24px; height: 24px; color: var(--sage-dark); }
.brand__leaf svg { width: 100%; height: 100%; fill: currentColor; }

.nav__list { display: flex; gap: 34px; }
.nav__list a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--forest);
  position: relative;
  padding-bottom: 4px;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--rose);
  transition: width 0.3s var(--ease);
}
.nav__list a:hover::after,
.nav__list a:focus-visible::after { width: 100%; }

.site-header__actions { display: flex; align-items: center; gap: 14px; }
.icon-link { width: 20px; height: 20px; color: var(--forest); transition: color 0.25s; }
.icon-link:hover { color: var(--rose-dark); }
.icon-link svg { width: 100%; height: 100%; fill: currentColor; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 7. BOTONES ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn--primary {
  background: var(--rose);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: var(--rose-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn--ghost {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--sage);
}
.btn--ghost:hover { background: var(--sage); color: var(--white); transform: translateY(-2px); }

/* ---------- 8. HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: linear-gradient(180deg, var(--blush) 0%, var(--cream) 65%);
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 2; max-width: 720px; padding-block: 60px; }

.hero__title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  color: var(--forest);
  margin-block: 18px;
}
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }

.hero__decor {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
}
.hero__decor--left {
  width: 320px; height: 320px;
  background: var(--sage);
  top: -80px; left: -120px;
  opacity: 0.25;
}
.hero__decor--right {
  width: 260px; height: 260px;
  background: var(--gold);
  bottom: -100px; right: -80px;
  opacity: 0.2;
}
.hero__wave {
  position: absolute;
  bottom: -2px; left: 0;
  width: 100%;
  height: 90px;
}
.hero__wave path { fill: var(--cream-dark); }

/* ---------- 9. NOSOTROS ---------- */
.about { background: var(--cream-dark); }
.about__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}
.about__text h2 { margin-bottom: 18px; }
.about__text p { font-size: 1.05rem; color: var(--ink); max-width: 540px; }

.about__badges { display: flex; flex-direction: column; gap: 18px; }
.badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  color: var(--forest);
}
.badge svg { width: 26px; height: 26px; fill: none; stroke: var(--rose-dark); stroke-width: 1.8; }
.badge:nth-child(2) svg { fill: var(--sage-dark); stroke: none; }
.badge:nth-child(1) svg { fill: var(--rose-dark); stroke: none; }

/* ---------- 10. CATÁLOGO ---------- */
.section-heading { text-align: center; max-width: 620px; margin-inline: auto 0; margin-bottom: 40px; }
.catalog .section-heading { margin-inline: auto; }
.section-heading__sub { margin-top: 10px; color: var(--sage-dark); font-weight: 600; }

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
}
.filter-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--sage);
  color: var(--forest);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.25s var(--ease);
}
.filter-btn:hover { background: var(--blush); }
.filter-btn.is-active { background: var(--sage-dark); border-color: var(--sage-dark); color: var(--white); }

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

.card {
  perspective: 1200px;
  height: 360px;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.card.is-filtered-out {
  display: none;
}

.card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s var(--ease);
  transform-style: preserve-3d;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.card.is-flipped .card__inner { transform: rotateY(180deg); }

@media (hover: hover) {
  .card:hover .card__inner { transform: rotateY(180deg); }
}

.card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card__front { background: var(--white); }
.card__art {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg, var(--blush));
}
.card__art svg { width: 62%; height: 62%; }

.card__info {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--cream-dark);
}
.card__name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--forest); }
.card__price {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--gold);
  white-space: nowrap;
}

.card__back {
  background: var(--sage-dark);
  color: var(--white);
  transform: rotateY(180deg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  text-align: center;
}
.card__back h3 { font-family: var(--font-display); font-size: 1.4rem; }
.card__back p { font-size: 0.95rem; opacity: 0.92; }
.card__back .btn--primary { align-self: center; margin-top: 6px; }
.card__tag {
  align-self: center;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.15);
  padding: 4px 12px;
  border-radius: 999px;
}

.catalog__note {
  text-align: center;
  margin-top: 40px;
  color: var(--sage-dark);
  font-size: 0.92rem;
}

/* ---------- 11. CONTACTO ---------- */
.contact { background: var(--cream-dark); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}
.contact__info h2 { margin: 8px 0 16px; }
.contact__info > p { max-width: 460px; margin-bottom: 26px; color: var(--ink); }

.contact__list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.contact__list li { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.contact__list svg { width: 22px; height: 22px; fill: var(--rose-dark); flex-shrink: 0; }
.contact__list a:hover { color: var(--rose-dark); }

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 320px;
}
.contact__map iframe { width: 100%; height: 100%; min-height: 320px; }

/* ---------- 12. FOOTER ---------- */
.site-footer { background: var(--forest); color: var(--cream); padding: 50px 0 30px; }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand--footer { color: var(--cream); }
.brand--footer em { color: var(--blush); }

.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-nav a { font-weight: 600; opacity: 0.85; }
.footer-nav a:hover { opacity: 1; color: var(--blush); }

.footer-social { display: flex; gap: 16px; }
.footer-social svg { width: 20px; height: 20px; fill: var(--cream); }
.footer-social a:hover svg { fill: var(--blush); }

.footer-copy { width: 100%; text-align: center; margin-top: 30px; opacity: 0.7; font-size: 0.85rem; }

/* ---------- 13. ANIMACIONES DE SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- 14. ACCESIBILIDAD / RESPONSIVE ---------- */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--rose-dark);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .intro__petals, .petal, .intro__center, .intro__text,
  .petal-fall, .reveal, .card__inner {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .about__inner, .contact__inner { grid-template-columns: 1fr; }
  .about__badges { flex-direction: row; flex-wrap: wrap; }
  .badge { flex: 1 1 200px; }
}

@media (max-width: 760px) {
  section { padding: 70px 0; }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 1px solid rgba(59,74,52,0.08);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s var(--ease);
  }
  .nav.is-open { max-height: 320px; }
  .nav__list { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .nav__list a { display: block; padding: 12px 0; border-bottom: 1px solid rgba(59,74,52,0.06); }

  .hero__actions { flex-direction: column; align-items: flex-start; }
  .badge { flex: 1 1 100%; }
}
