/* ============================================================
   VAINILLA ROSÉ REPOSTERÍA — styles.css
   Sistema de diseño: artesanal, elegante, femenino, cálido
   Mobile-first | Responsive | CSS Variables
   ============================================================ */

/* ===== VARIABLES DEL SISTEMA ===== */
:root {
  /* Paleta de color */
  --rose-light:  #F7DDE6;
  --cream:       #FFF7EF;
  --cream-deep:  #F6E6D8;
  --rose:        #D98CA3;
  --rose-deep:   #9B4F63;
  --brown-soft:  #7A5C4B;
  --chocolate:   #4A2E25;
  --sage:        #B8C7A3;
  --white:       #FFFFFF;
  --text:        #3A2A25;
  --muted:       #7D6860;
  --border:      rgba(155, 79, 99, 0.18);
  --shadow:      0 18px 45px rgba(74, 46, 37, 0.12);

  /* Tipografía */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;

  /* Espaciado */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Radios */
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-full: 999px;

  /* Transiciones */
  --transition: all 0.35s ease;
  --transition-slow: all 0.55s ease;

  /* Nav height */
  --nav-h: 72px;
}

/* ===== RESET Y BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== UTILIDADES ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.section-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--chocolate);
  margin-bottom: 1rem;
}

.section-title em {
  font-style: italic;
  color: var(--rose-deep);
}

.section-subtitle,
.section-body {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 62ch;
  margin-bottom: 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header .section-subtitle,
.section-header .section-body {
  margin-inline: auto;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.93rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--rose-deep) 0%, var(--rose) 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(155, 79, 99, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #7d3d4f 0%, var(--rose-deep) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(155, 79, 99, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--rose-deep);
  border: 1.5px solid var(--rose-deep);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: var(--rose-light);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--rose-deep);
  border: 1.5px solid var(--border);
  font-size: 0.85rem;
  padding: 0.65rem 1.4rem;
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--rose-light);
  border-color: var(--rose);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 1.1rem 2.4rem;
  font-size: 1.05rem;
}

.btn:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
}

.btn-icon { font-size: 1.1em; }

/* ===== SCROLL REVEAL ===== */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.reveal-fade {
  opacity: 0;
  transition: opacity 0.8s ease;
  transition-delay: var(--delay, 0s);
}

.reveal-up.is-visible,
.reveal-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NAVEGACIÓN ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 247, 239, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(74, 46, 37, 0.08);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}

.logo-main {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--chocolate);
  letter-spacing: 0.01em;
}

.logo-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose-deep);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--chocolate);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--cream);
  padding: 1.5rem 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 8px 32px rgba(74, 46, 37, 0.1);
}

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

.nav-link {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.nav-link:hover { color: var(--rose-deep); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--rose-deep), var(--rose));
  color: var(--white) !important;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(155, 79, 99, 0.25);
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(155, 79, 99, 0.35); }

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

  .nav-menu {
    display: flex;
    position: static;
    background: none;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    border: none;
    box-shadow: none;
  }

  .nav-link {
    padding: 0.4rem 0.75rem;
    font-size: 0.88rem;
    border: none;
  }

  .nav-cta {
    margin-top: 0;
    padding: 0.55rem 1.25rem;
  }
}

/* ===== HERO SCROLL WRAPPER ===== */
.hero-scroll-wrapper {
  position: relative;
  height: 600vh;
}

/* ===== HERO ===== */
.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: block;
  background: linear-gradient(160deg, var(--cream) 0%, var(--rose-light) 60%, var(--cream-deep) 100%);
}

/* Canvas: fondo absoluto detrás del contenido */
.hero-animation-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Contenido: siempre visible, encima del canvas */
.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 100%;
  max-width: none;
  text-align: center;
  min-height: 0;
  padding: 2.6rem 1.25rem 0.85rem;
  background: linear-gradient(
    to top,
    rgba(255, 247, 239, 0.96) 0%,
    rgba(255, 247, 239, 0.82) 62%,
    rgba(255, 247, 239, 0) 100%
  );
}

.hero-content > * {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-deep);
  background: var(--rose-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.35rem 1rem;
  margin-bottom: 0.45rem;
}

.hero-title {
  position: relative;
  top: 18px;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4.2vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--chocolate);
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}

.hero-title-line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero-title-line > span {
  display: block;
  opacity: 0;
  transform: translateY(115%) rotate(1.5deg);
  transform-origin: left bottom;
  animation: heroLineReveal 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title-line:nth-child(2) > span {
  animation-delay: 0.2s;
}

.hero-title-line:nth-child(3) > span {
  animation-delay: 0.4s;
}

@keyframes heroLineReveal {
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

.hero-title em {
  font-style: italic;
  color: var(--rose-deep);
}

.hero-subtitle {
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  color: var(--muted);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 0.75rem;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 0.65rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

/* ===== PROPUESTA PARA EVENTOS ===== */
.event-proposal {
  padding: clamp(5rem, 9vw, 8rem) 0;
  background: var(--cream-deep);
}

.event-proposal-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.event-proposal-lead h2 {
  max-width: 15ch;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.04;
  color: var(--chocolate);
}

.event-proposal-details {
  padding-top: 0.5rem;
}

.event-proposal-text {
  max-width: 52ch;
  margin-bottom: 2rem;
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.45;
  color: var(--chocolate);
}

.event-proposal-list {
  display: grid;
  gap: 0.9rem;
}

.event-proposal-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(155, 79, 99, 0.22);
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.event-proposal-list li span {
  color: var(--rose-deep);
}

@media (min-width: 800px) {
  .event-proposal-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

/* ===== HISTORIA DE MARCA ===== */
.brand-story {
  padding: 7rem 0;
  background: var(--white);
  overflow: clip;
}

.brand-story-intro {
  text-align: center;
  margin-bottom: 4rem;
}

.brand-story-intro .section-title {
  margin-inline: auto;
}

.brand-story-list {
  padding-bottom: 12vh;
}

.brand-story-card {
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
  width: min(92%, 1280px);
  min-height: clamp(25rem, 46vw, 38rem);
  margin-inline: auto;
  margin-bottom: 18vh;
  overflow: visible;
  isolation: isolate;
  background: var(--white);
  box-shadow: 0 20px 55px rgba(74, 46, 37, 0.12);
}

.brand-story-card:nth-child(1) { z-index: 1; }
.brand-story-card:nth-child(2) { z-index: 2; top: calc(var(--nav-h) + 2rem); }
.brand-story-card:nth-child(3) { z-index: 3; top: calc(var(--nav-h) + 3rem); }
.brand-story-card:nth-child(4) { z-index: 4; top: calc(var(--nav-h) + 4rem); }

.brand-story-card > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  background: var(--white);
  transform: scale(1.035);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-story-card.is-visible > img {
  transform: scale(1);
}

.brand-story-copy {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: min(46%, 34rem);
  padding: clamp(1.8rem, 4vw, 3.4rem);
  background: rgba(255, 255, 255, 0.96);
  color: var(--chocolate);
  box-shadow: 0 24px 70px rgba(74, 46, 37, 0.16);
  transform: translateY(-50%);
}

.brand-story-card--right .brand-story-copy {
  right: clamp(-2rem, -3vw, -0.5rem);
}

.brand-story-card--left .brand-story-copy {
  left: clamp(-2rem, -3vw, -0.5rem);
}

.brand-story-copy p {
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.3vw, 2.05rem);
  line-height: 1.35;
}

.brand-story-copy p + p {
  margin-top: 1.1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

@media (max-width: 760px) {
  .hero-title {
    top: 12px;
    margin-bottom: 0.45rem;
  }

  .brand-story {
    padding: 5rem 0;
  }

  .brand-story-list {
    padding-bottom: 8vh;
  }

  .brand-story-card {
    position: sticky;
    top: calc(var(--nav-h) + 0.5rem);
    width: calc(100% - 2rem);
    min-height: 0;
    display: grid;
    margin-bottom: 16vh;
    overflow: hidden;
    background: var(--cream);
  }

  .brand-story-card:nth-child(2) { top: calc(var(--nav-h) + 1rem); }
  .brand-story-card:nth-child(3) { top: calc(var(--nav-h) + 1.5rem); }
  .brand-story-card:nth-child(4) { top: calc(var(--nav-h) + 2rem); }

  .brand-story-card > img {
    height: 16rem;
    min-height: 0;
    object-fit: cover;
  }

  .brand-story-copy,
  .brand-story-card--right .brand-story-copy,
  .brand-story-card--left .brand-story-copy {
    position: relative;
    inset: auto;
    top: auto;
    width: 100%;
    padding: 1.6rem;
    box-shadow: none;
    transform: none;
  }

  .brand-story-copy p {
    font-size: 1.35rem;
  }
}

.badge {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brown-soft);
  background: rgba(255, 247, 239, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.9rem;
  letter-spacing: 0.04em;
}

/* ===== BARRA DE CONFIANZA ===== */
.trust-bar {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-lg) 0;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
}

.trust-icon {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.trust-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--chocolate);
}

.trust-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (min-width: 640px) {
  .trust-list { grid-template-columns: repeat(4, 1fr); }
}

/* ===== SECCIÓN ABOUT ===== */
.about {
  padding: var(--space-2xl) 0;
  background: var(--cream);
}

.about-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
}

.about-text .section-title { margin-bottom: 1rem; }

.about-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text);
}

.list-dot {
  color: var(--rose);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-image .image-placeholder--tall {
  min-height: 360px;
  border-radius: var(--radius-lg);
}

.about-photo {
  height: clamp(22rem, 45vw, 34rem);
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== IMAGEN EDITORIAL CON REVEAL Y PARALLAX ===== */
.media-reveal {
  --media-shift: 0px;
  position: relative;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.05s cubic-bezier(0.76, 0, 0.24, 1);
}

.media-reveal.is-visible {
  clip-path: inset(0 0 0 0);
}

.media-reveal img {
  display: block;
  width: 100%;
  height: calc(100% + 56px);
  object-fit: cover;
  transform: translate3d(0, var(--media-shift), 0) scale(1.08);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.media-reveal.is-visible img {
  transform: translate3d(0, var(--media-shift), 0) scale(1.02);
}

.media-reveal--wide img {
  object-position: center;
}

.media-reveal--panorama {
  height: clamp(21rem, 52vw, 42rem);
}

.process-story {
  position: relative;
  padding: 0 0 6rem;
  background: var(--white);
}

.process-story-copy {
  position: relative;
  max-width: 780px;
  margin-top: clamp(-5rem, -7vw, -3rem);
  padding: clamp(2rem, 4vw, 3.5rem);
  background: var(--white);
  text-align: center;
  z-index: 2;
}

.process-story-copy .section-body {
  margin-inline: auto;
}

/* ===== CARRUSELES EDITORIALES ===== */
.editorial-carousel {
  --carousel-height: clamp(25rem, 56vw, 43rem);
  position: relative;
  width: min(100%, 1500px);
  margin-inline: auto;
  overflow: hidden;
  background: var(--cream-deep);
}

.carousel-viewport {
  overflow: hidden;
  height: var(--carousel-height);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.045);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.carousel-slide.is-active img {
  transform: scale(1);
}

.carousel-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(74, 46, 37, 0.24);
  border-radius: 50%;
  background: rgba(255, 247, 239, 0.9);
  color: var(--chocolate);
  font-size: 1.25rem;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.carousel-control:hover,
.carousel-control:focus-visible {
  background: var(--chocolate);
  color: var(--white);
  transform: translateY(-50%) scale(1.06);
}

.carousel-control--prev { left: clamp(0.75rem, 2vw, 2rem); }
.carousel-control--next { right: clamp(0.75rem, 2vw, 2rem); }

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  z-index: 3;
  display: flex;
  gap: 0.55rem;
  transform: translateX(-50%);
}

.carousel-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 0 0 1px rgba(74, 46, 37, 0.2);
  transition: transform 0.25s ease, background 0.25s ease;
}

.carousel-dot.is-active {
  background: var(--white);
  transform: scale(1.45);
}

.editorial-carousel--dark {
  width: 100%;
  max-width: none;
  --carousel-height: clamp(23rem, 48vw, 39rem);
  background: var(--chocolate);
}

.editorial-carousel--dark .carousel-control {
  border-color: rgba(255, 255, 255, 0.35);
}

/* ===== GLUTEN FREE ===== */
.gluten-free {
  padding: 7rem 0 0;
  background: var(--white);
  overflow: hidden;
}

.gluten-free-intro {
  text-align: center;
  padding-bottom: 3.5rem;
}

.gluten-free-intro .section-body {
  margin-inline: auto;
}

.gluten-free-title {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25em;
  margin-bottom: 1.25rem;
  font-family: var(--font-heading);
  font-size: clamp(3.4rem, 9vw, 8rem);
  font-weight: 300;
  line-height: 0.92;
  color: var(--chocolate);
}

.gluten-free-title span,
.gluten-free-title em {
  display: inline-block;
}

.gluten-free-title em {
  color: var(--rose-deep);
  font-weight: 300;
}

.editorial-carousel--gluten {
  width: 100%;
  max-width: none;
  --carousel-height: clamp(23rem, 50vw, 40rem);
  background: #f4eee8;
}

@media (max-width: 640px) {
  .editorial-carousel {
    --carousel-height: 18rem;
  }

  .editorial-carousel--dark,
  .editorial-carousel--gluten {
    --carousel-height: 17rem;
  }

  .carousel-control {
    width: 2.65rem;
    height: 2.65rem;
  }

  .gluten-free {
    padding-top: 5rem;
  }

  .gluten-free-title {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
}

/* ===== PLACEHOLDERS DE IMAGEN ===== */
.image-placeholder {
  width: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--cream-deep) 100%);
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.image-placeholder .placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 1rem;
  font-style: italic;
}

.placeholder-icon-lg { font-size: 2.5rem; }

/* ===== PRODUCTOS ===== */
.products {
  padding: var(--space-2xl) 0;
  background: var(--cream-deep);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px rgba(74, 46, 37, 0.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.product-image {
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.product-image img,
.product-image .image-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--border);
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img,
.product-card:hover .product-image .image-placeholder {
  transform: scale(1.03);
}

.product-info {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--chocolate);
}

.product-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

/* Card CTA especial */
.product-card--cta {
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--cream-deep) 100%);
  border: 2px solid var(--border);
  align-items: center;
  justify-content: center;
}

.cta-card-inner {
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  justify-content: center;
}

.cta-card-icon { font-size: 2rem; }

.cta-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--chocolate);
}

.cta-card-desc {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 26ch;
}

@media (min-width: 640px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== OCASIONES ===== */
.occasions {
  padding: var(--space-2xl) 0;
  background: var(--cream);
}

.occasions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  max-width: 980px;
  margin-inline: auto;
  margin-bottom: var(--space-lg);
}

.occasion-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.occasion-item:hover {
  border-color: var(--rose);
  background: var(--rose-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(155, 79, 99, 0.12);
}

.occasion-icon { font-size: 1.75rem; }

.occasion-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--chocolate);
  letter-spacing: 0.02em;
}

.occasions-cta { text-align: center; }

@media (max-width: 639px) {
  .occasion-item:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 1rem) / 2);
    min-width: 150px;
    justify-self: center;
  }
}

/* ===== GALERÍA ===== */
.gallery {
  padding: var(--space-2xl) 0;
  background: var(--chocolate);
}

.gallery .section-eyebrow { color: var(--rose-light); }
.gallery .section-title { color: var(--white); }
.gallery .section-subtitle { color: rgba(255,247,239,0.7); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  position: relative;
  background: linear-gradient(135deg, rgba(247,221,230,0.15) 0%, rgba(122,92,75,0.2) 100%);
  border: 1px solid rgba(155, 79, 99, 0.25);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-placeholder > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-placeholder:hover {
  transform: scale(1.02);
}

.gallery-placeholder:hover > img {
  transform: scale(1.08);
}

.gallery-placeholder-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  transition: transform 0.5s ease;
}

.gallery-placeholder:hover .gallery-placeholder-inner {
  transform: scale(1.1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(74,46,37,0.75) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.gallery-placeholder:hover .gallery-overlay { opacity: 1; }

.gallery-overlay span {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== PROCESO ===== */
.process {
  padding: var(--space-2xl) 0;
  background: var(--rose-light);
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

.process-step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 0;
}

.process-connector {
  width: 2px;
  height: 32px;
  background: linear-gradient(to bottom, var(--rose), transparent);
  margin-left: 1.4rem;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 300;
  color: var(--rose-deep);
  line-height: 1;
  min-width: 2.8rem;
  opacity: 0.7;
}

.step-content { flex: 1; }

.step-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--chocolate);
  margin-bottom: 0.25rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
}

.process-cta { text-align: center; }

/* ===== PERSONALIZACIÓN ===== */
.customize {
  padding: var(--space-2xl) 0;
  background: var(--cream);
}

.customize-grid {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

.customize-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}

.customize-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.customize-list li span { color: var(--rose); }

.note-card {
  background: linear-gradient(135deg, var(--white) 0%, var(--rose-light) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow);
}

.note-icon { font-size: 2rem; }

.note-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--chocolate);
}

.note-text {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 34ch;
}

@media (min-width: 768px) {
  .customize-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== TESTIMONIOS ===== */
.testimonials {
  padding: var(--space-2xl) 0;
  background: var(--cream-deep);
}

.testimonials-grid {
  display: grid;
  gap: 1.25rem;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(74, 46, 37, 0.06);
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.testimonial-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--chocolate);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose-deep), var(--rose));
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.testimonial-name {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--chocolate);
  font-style: normal;
}

.testimonial-event {
  font-size: 0.78rem;
  color: var(--muted);
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ===== CTA SECTION ===== */
.cta-section {
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, var(--rose-light) 0%, var(--cream-deep) 50%, var(--rose-light) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(217,140,163,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(155,79,99,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.cta-decoration {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--rose);
  font-size: 0.8rem;
  opacity: 0.6;
}

.cta-text {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.cta-note {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

/* ===== FAQ ===== */
.faq {
  padding: var(--space-2xl) 0;
  background: var(--cream);
}

.faq-container { max-width: 760px; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(74, 46, 37, 0.06);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  transition: background 0.2s;
}

.faq-item:last-child { border-bottom: none; }
.faq-item:has(.faq-question[aria-expanded="true"]) { background: var(--rose-light); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.2rem 1.5rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--chocolate);
  cursor: pointer;
  background: none;
  border: none;
  gap: 1rem;
  transition: color 0.2s;
}

.faq-question:hover { color: var(--rose-deep); }

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rose-light);
  color: var(--rose-deep);
  font-size: 1.25rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}

.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--rose-deep);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer:not([hidden]) {
  max-height: 400px;
  padding-bottom: 1.25rem;
}

.faq-answer[hidden] { display: block !important; }

.faq-answer p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--chocolate);
  color: rgba(255, 247, 239, 0.85);
  padding-top: var(--space-xl);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding-bottom: var(--space-xl);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-logo span {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose-light);
  font-family: var(--font-body);
  margin-top: -2px;
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,247,239,0.6);
  margin-bottom: 1.25rem;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255,247,239,0.7);
  transition: color 0.2s;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255,247,239,0.15);
  border-radius: var(--radius-full);
}

.social-link:hover { color: var(--rose-light); border-color: var(--rose-light); }

.footer-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rose-light);
  margin-bottom: 1rem;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-list li {
  font-size: 0.88rem;
  color: rgba(255,247,239,0.7);
}

.footer-list em {
  font-style: italic;
  opacity: 0.6;
}

.footer-link {
  color: rgba(255,247,239,0.7);
  transition: color 0.2s;
}

.footer-link:hover { color: var(--rose-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,247,239,0.1);
  padding: 1.25rem 1.25rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-legal {
  font-size: 0.78rem;
  color: rgba(255,247,239,0.4);
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,247,239,0.4);
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* ===== BOTÓN FLOTANTE WHATSAPP ===== */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: var(--white);
  border-radius: var(--radius-full);
  padding: 0.8rem 1.25rem 0.8rem 1rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  background: #1da851;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.5);
}

.whatsapp-float-text {
  display: none;
}

@media (min-width: 480px) {
  .whatsapp-float-text { display: inline; }
}

/* Entrada animada del botón flotante */
@keyframes slideInFromRight {
  from { opacity: 0; transform: translateX(60px); }
  to   { opacity: 1; transform: translateX(0); }
}

.whatsapp-float {
  animation: slideInFromRight 0.6s ease 1.5s both;
}

/* ===== DECORACIONES ORGÁNICAS ===== */
.organic-divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--rose), var(--rose-deep));
  border-radius: 2px;
  margin: 0 auto 1.5rem;
}

/* ===== MEDIA QUERIES GENERALES ===== */
@media (max-width: 479px) {
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .hero-content {
    padding: 3rem 3rem 1rem;
  }
}

/* ===== FOCUS STATES ACCESIBLES ===== */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== PRINT ===== */
@media print {
  .site-header,
  .whatsapp-float,
  .nav-toggle { display: none; }
  body { padding-top: 0; }
}

/* ==========================================================
   WELCOME — Sección editorial emocional
   "Un postre bien hecho es una forma de cuidar"
   ========================================================== */
.welcome {
  padding: 7rem 0;
  background: var(--cream);
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.welcome-img-wrap {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  height: clamp(30rem, 58vw, 46rem);
}

.image-placeholder--portrait {
  aspect-ratio: 3 / 4;
}

.welcome-lang {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.18em;
  color: var(--rose-deep);
  margin-bottom: 1.25rem;
}

.welcome-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 4.5vw, 3.75rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--chocolate);
  margin-bottom: 1.75rem;
}

.welcome-title em {
  font-style: italic;
  color: var(--rose-deep);
}

.welcome-divider {
  width: 3rem;
  height: 1px;
  background: var(--rose-deep);
  opacity: 0.45;
  margin-bottom: 1.75rem;
}

.welcome-body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chocolate);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  margin-top: 0.5rem;
  transition: color 0.25s ease, gap 0.25s ease;
}

.link-cta:hover {
  color: var(--rose-deep);
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .welcome { padding: 5rem 0; }
}

/* ==========================================================
   FAVORITOS — Magazine grid "Our favorites"
   "Simple. Artesanal. Hecho con detalle."
   ========================================================== */
.favoritos {
  padding: 7rem 0;
  background:
    linear-gradient(180deg, rgba(255, 247, 239, 0.55), rgba(246, 230, 216, 0.9)),
    var(--cream-deep);
}

.favoritos-header {
  margin-bottom: 4rem;
}

.favoritos-lang {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.18em;
  color: var(--rose-deep);
  margin-bottom: 0.6rem;
}

.favoritos-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.75vw, 3.25rem);
  font-weight: 300;
  color: var(--chocolate);
  line-height: 1.1;
  max-width: 36rem;
}

.favoritos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.fav-card {
  position: relative;
  display: grid;
  min-height: clamp(24rem, 38vw, 33rem);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(155, 79, 99, 0.14);
  border-radius: 2px;
  box-shadow: 0 18px 45px rgba(74, 46, 37, 0.08);
  isolation: isolate;
  transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.fav-card::after {
  content: "Ver detalle";
  position: absolute;
  left: clamp(1.2rem, 2.4vw, 1.7rem);
  bottom: clamp(1.2rem, 2.4vw, 1.7rem);
  z-index: 3;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.86);
  color: var(--chocolate);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.fav-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--cream);
  z-index: 1;
  transition: opacity 0.62s ease, filter 0.62s ease;
}

.fav-img > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 0.82s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.62s ease;
}

.fav-img .image-placeholder {
  min-height: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  transform: scale(1);
  transition: transform 0.82s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.62s ease;
}

.fav-img .image-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(74, 46, 37, 0.04), rgba(74, 46, 37, 0.28));
  pointer-events: none;
}

.fav-body {
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: transparent;
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.42s ease 0.18s, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.18s;
}

.fav-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--white);
  transform: translateY(101%);
  transition: transform 0.56s cubic-bezier(0.76, 0, 0.24, 1);
  pointer-events: none;
}

.fav-card:hover,
.fav-card:focus-within,
.fav-card.is-hovered,
.fav-card.is-demo {
  transform: translateY(-6px);
  border-color: rgba(155, 79, 99, 0.26);
  box-shadow: 0 26px 62px rgba(74, 46, 37, 0.15);
}

.fav-card:hover::after,
.fav-card:focus-within::after,
.fav-card.is-hovered::after,
.fav-card.is-demo::after {
  opacity: 0;
  transform: translateY(10px);
}

.fav-card:hover::before,
.fav-card:focus-within::before,
.fav-card.is-hovered::before,
.fav-card.is-demo::before {
  transform: translateY(0);
}

.fav-card:hover .fav-img,
.fav-card:focus-within .fav-img,
.fav-card.is-hovered .fav-img,
.fav-card.is-demo .fav-img {
  opacity: 0.08;
  filter: saturate(0.7);
}

.fav-card:hover .fav-img .image-placeholder,
.fav-card:focus-within .fav-img .image-placeholder,
.fav-card.is-hovered .fav-img .image-placeholder,
.fav-card.is-demo .fav-img .image-placeholder,
.fav-card:hover .fav-img > img,
.fav-card:focus-within .fav-img > img,
.fav-card.is-hovered .fav-img > img,
.fav-card.is-demo .fav-img > img {
  transform: scale(1.12);
}

@media (prefers-reduced-motion: reduce) {
  .hero-title-line > span {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .media-reveal {
    clip-path: none;
    transition: none;
  }

  .media-reveal img {
    transform: none;
    transition: none;
  }
}

.fav-card:hover .fav-body,
.fav-card:focus-within .fav-body,
.fav-card.is-hovered .fav-body,
.fav-card.is-demo .fav-body {
  opacity: 1;
  transform: translateY(0);
}

.fav-tag,
.fav-name,
.fav-desc,
.fav-link {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.fav-name { transition-delay: 0.04s; }
.fav-desc { transition-delay: 0.08s; }
.fav-link { transition-delay: 0.12s, 0.12s, 0s; }

.fav-card:hover .fav-tag,
.fav-card:hover .fav-name,
.fav-card:hover .fav-desc,
.fav-card:hover .fav-link,
.fav-card:focus-within .fav-tag,
.fav-card:focus-within .fav-name,
.fav-card:focus-within .fav-desc,
.fav-card:focus-within .fav-link,
.fav-card.is-hovered .fav-tag,
.fav-card.is-hovered .fav-name,
.fav-card.is-hovered .fav-desc,
.fav-card.is-hovered .fav-link,
.fav-card.is-demo .fav-tag,
.fav-card.is-demo .fav-name,
.fav-card.is-demo .fav-desc,
.fav-card.is-demo .fav-link {
  opacity: 1;
  transform: translateY(0);
}

.fav-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 0.55rem;
}

.fav-name {
  font-family: var(--font-heading);
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  font-weight: 400;
  color: var(--chocolate);
  line-height: 1.08;
  margin-bottom: 0.75rem;
}

.fav-desc {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted);
  margin-bottom: 1.25rem;
  flex: 1;
}

.fav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--chocolate);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition:
    opacity 0.42s ease,
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.2s,
    border-color 0.2s,
    gap 0.2s;
  transition-delay: 0.12s, 0.12s, 0s, 0s, 0s;
}

.fav-link:hover,
.fav-link:focus-visible {
  color: var(--rose-deep);
  border-color: var(--rose-deep);
  gap: 0.65rem;
}

.fav-link:focus-visible {
  outline: 3px solid var(--rose-light);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  .favoritos { padding: 5rem 0; }
  .favoritos-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }
}

@media (max-width: 560px) {
  .favoritos-grid { grid-template-columns: 1fr; }
  .fav-card { min-height: 22rem; }
  .fav-card::after { display: none; }
  .fav-body {
    opacity: 1;
    transform: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), var(--white) 58%);
  }
  .fav-tag,
  .fav-name,
  .fav-desc,
  .fav-link {
    opacity: 1;
    transform: none;
  }
  .fav-card::before { display: none; }
  .fav-img { opacity: 0.22; }
}
