@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-display-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --shadow-soft: 0 4px 20px -4px rgb(var(--primary-rgb) / 0.08);
  --shadow-elevated: 0 8px 40px -8px rgb(var(--primary-rgb) / 0.12);
  --shadow-romantic: 0 0 30px -5px rgb(var(--primary-rgb) / 0.15);
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a,
button,
input,
textarea {
  font: inherit;
}

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

button {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--input);
  border-radius: 8px;
  padding: 0.95rem 1rem;
  background: var(--secondary);
  color: var(--foreground);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-foreground);
}

input:focus,
textarea:focus {
  border-color: var(--ring);
  box-shadow: 0 0 0 1px var(--ring);
}

textarea {
  resize: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
}

p {
  margin: 0;
}

/* Aligned with Lovable: max-w-7xl = 1280px, px-6 lg:px-8 */
.container-wide {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: 24px;
}

@media (min-width: 1024px) {
  .container-wide {
    padding-inline: 32px;
  }
}

/* Nav link underline animation (same as Lovable) */
.link-underline {
  position: relative;
  display: inline-block;
}

.link-underline::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.3s var(--transition-smooth);
}

.link-underline:hover::after {
  transform: scaleX(1);
}

/* Buttons: match Lovable (h-11 rounded-md px-8 text-sm font-body font-medium) */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem; /* h-11 = 44px */
  padding: 0 2rem;     /* px-8 */
  border-radius: 6px;  /* rounded-md */
  font-family: var(--font-body);
  font-size: 0.875rem; /* text-sm */
  font-weight: 500;
  white-space: nowrap;
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.button:hover {
  transform: translateY(-1px) scale(1.02);
}

.button--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.button--primary:hover {
  background: color-mix(in srgb, var(--primary) 90%, transparent); /* hover:bg-primary/90 */
  box-shadow: 0 0 24px color-mix(in srgb, var(--primary) 45%, transparent);
}

.button--outline {
  border: 1px solid var(--input);
  background: var(--background);
  color: var(--foreground);
}

.button--outline:hover {
  background: var(--accent);
  color: var(--accent-foreground);
  border-color: var(--accent);
}

.button--glow {
  animation: glow-pulse 2.5s ease-in-out infinite;
}

.button--block {
  width: 100%;
}

/* Match Lovable [&_svg]:size-4 [&_svg]:shrink-0 — icon 1rem, no shrink */
.button__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  pointer-events: none;
}

/* Gold gradient text (same as Lovable) */
.gold-text {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-left: 0.25rem;
}

.section-heading {
  text-align: center;
  margin-bottom: 56px;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

/* Card style matching Lovable (testimonials, CTA) */
.card-romantic {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth);
}

.card-romantic:hover {
  border-color: rgb(var(--primary-rgb) / 0.4);
  box-shadow: var(--shadow-romantic);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}

/* Igual que Lovable: bg-background/95 backdrop-blur-sm border-b border-border */
.site-header.is-scrolled,
.dps-contact-route .site-header,
body.error404 .site-header {
  background: color-mix(in srgb, var(--background) 95%, transparent);
  backdrop-filter: blur(4px); /* backdrop-blur-sm */
  -webkit-backdrop-filter: blur(4px);
  border-bottom-color: var(--border);
}

/* Tablet y móvil: header siempre con el mismo fondo opaco que al scrollear (sin depender de scroll) */
@media (max-width: 900px) {
  .site-header {
    background: color-mix(in srgb, var(--background) 95%, transparent);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-bottom-color: var(--border);
  }
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.site-brand__logo,
.site-footer__logo {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  object-fit: cover;
}

.site-brand__title,
.site-footer__brand-title {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav__link,
.site-footer__list a,
.site-footer__list button,
.contact-page__back {
  color: rgb(var(--foreground-rgb) / 0.8);
  transition: color 0.25s ease, opacity 0.25s ease;
}

.site-nav__link:hover,
.site-footer__list a:hover,
.site-footer__list button:hover,
.contact-page__back:hover {
  color: var(--primary);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.button--header {
  white-space: nowrap;
}

.site-nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}

.site-nav__toggle-icon--close {
  display: none;
}

.site-nav__toggle.is-open .site-nav__toggle-icon--hamburger {
  display: none;
}

.site-nav__toggle.is-open .site-nav__toggle-icon--close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-nav__toggle-x {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.site-nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.site-nav__mobile {
  display: none;
  padding: 0 0 20px;
  border-top: 1px solid var(--border);
}

.site-nav__mobile.is-open {
  display: grid;
  gap: 0.5rem;
}

.site-nav__mobile-link {
  display: block;
  padding: 0.6rem 0;
  text-align: left;
}

.site-nav__mobile-cta {
  margin-top: 0.5rem;
}

.site-main,
.contact-page,
.not-found-page,
.generic-page {
  padding-top: calc(var(--header-height) + 16px);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--background);
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: radial-gradient(circle at 1px 1px, var(--primary) 1px, transparent 0);
  background-size: 40px 40px;
}

.hero__cursor-glow {
  position: absolute;
  z-index: 0;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgb(var(--primary-rgb) / 0.15);
  filter: blur(60px);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__container {
  position: relative;
  z-index: 10; /* match Lovable relative z-10 so content is above floaters */
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
  padding-block: 96px 120px; /* py-24 lg:py-32 */
}

.hero__content {
  max-width: 600px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1rem;
  margin-bottom: 2rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-style: italic;
}

/* Match Lovable: text-4xl md:text-5xl lg:text-6xl font-bold tracking-tight mb-6 leading-[1.1], dos líneas */
.hero__title {
  margin-bottom: 1.5rem;
  font-size: 2.25rem;   /* text-4xl */
  line-height: 1.1;
  letter-spacing: -0.025em; /* tracking-tight */
  font-weight: 700;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 3rem;    /* md:text-5xl */
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 3.75rem; /* lg:text-6xl */
  }
}

.hero__description {
  max-width: 560px;
  margin-bottom: 2.5rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__cards {
  position: relative;
  height: 550px;
}

.hero-card {
  position: absolute;
  width: 260px;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-elevated);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Hover: borde dorado/primary como Lovable (no blanco) */
.hero-card:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
  box-shadow: 0 20px 50px -12px color-mix(in srgb, var(--primary) 20%, transparent);
}

.hero-card__media {
  position: relative;
  overflow: hidden;
}

.hero-card__media img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.hero-card:hover .hero-card__media img {
  transform: scale(1.05);
}

.hero-card__shimmer {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(90deg, transparent 0%, rgb(var(--primary-rgb) / 0.08) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

.hero-card:hover .hero-card__shimmer {
  opacity: 1;
}

.hero-card__match {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.75rem;
  font-weight: 600;
}

.hero-card__match-icon,
.hero-card__verified-icon,
.hero-card__button-icon,
.feature-card__svg,
.service-card__svg,
.service-card__check,
.stat-card__svg,
.testimonial-card__star,
.site-footer__icon,
.contact-page__info-icon,
.problem-section__float-icon,
.problem-section__sparkle-icon,
.contact-success__icon-svg,
.contact-page__back-icon {
  width: 16px;
  height: 16px;
}

.hero-card__body {
  padding: 1rem;
}

.hero-card__title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.hero-card__title-row h3 {
  font-size: 1.125rem;
}

.hero-card__verified {
  color: var(--primary);
  animation: pulse-scale 2s ease-in-out infinite;
}

.hero-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.hero-card__tags span {
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--secondary-foreground);
  font-size: 0.625rem;
}

.hero-card__bio {
  display: -webkit-box;
  margin-bottom: 0.75rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  line-height: 1.7;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hero-card__actions {
  display: flex;
  gap: 0.5rem;
}

.hero-card__button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-height: 40px;
  border-radius: 10px;
  font-size: 0.75rem;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.hero-card__button:hover {
  transform: scale(1.03);
}

.hero-card__button--secondary {
  border: 1px solid var(--border);
  color: var(--muted-foreground);
}

.hero-card__button--secondary:hover {
  background: rgb(var(--foreground-rgb) / 0.03);
}

.hero-card__button--primary {
  background: var(--primary);
  color: var(--primary-foreground);
}

.hero__floaters > * {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

/* Floating hearts: match Lovable text-primary/15 — amarillo/dorado muy suave que casi se camufla con el fondo */
.hero__heart {
  color: var(--primary);
  opacity: 0.15;
  animation: hero-heart 4.5s ease-in-out infinite;
}

.hero__heart-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
}

/* Sizes like Lovable: i%3===0 → w-6 (24px), i%3===1 → w-4 (16px), else w-8 (32px) */
.hero__heart--2 .hero__heart-icon,
.hero__heart--5 .hero__heart-icon,
.hero__heart--8 .hero__heart-icon {
  width: 16px;
  height: 16px;
}

.hero__heart--3 .hero__heart-icon,
.hero__heart--6 .hero__heart-icon {
  width: 32px;
  height: 32px;
}

.hero__heart--1 { left: 10%; top: 20%; animation-delay: 0s; animation-duration: 4s; }
.hero__heart--2 { left: 22%; top: 45%; animation-delay: 0.6s; animation-duration: 4.5s; animation-name: hero-heart-alt; }
.hero__heart--3 { left: 34%; top: 70%; animation-delay: 1.2s; animation-duration: 5s; }
.hero__heart--4 { left: 46%; top: 20%; animation-delay: 1.8s; animation-duration: 5.5s; animation-name: hero-heart-alt; }
.hero__heart--5 { left: 58%; top: 45%; animation-delay: 2.4s; animation-duration: 6s; animation-name: hero-heart-alt; }
.hero__heart--6 { left: 70%; top: 70%; animation-delay: 3s; animation-duration: 6.5s; }
.hero__heart--7 { left: 82%; top: 20%; animation-delay: 3.6s; animation-duration: 7s; animation-name: hero-heart-alt; }
.hero__heart--8 { left: 94%; top: 45%; animation-delay: 4.2s; animation-duration: 7.5s; animation-name: hero-heart-alt; }

.hero__bubble {
  border-radius: 50%;
  border: 1px solid rgb(var(--primary-rgb) / 0.1);
  background: rgb(var(--primary-rgb) / 0.05);
  animation: hero-bubble 6s ease-in-out infinite;
}

.hero__bubble--1 { width: 12px; height: 12px; left: 5%; top: 30%; }
.hero__bubble--2 { width: 20px; height: 20px; left: 23%; top: 45%; animation-delay: 0.8s; }
.hero__bubble--3 { width: 28px; height: 28px; left: 41%; top: 60%; animation-delay: 1.6s; }
.hero__bubble--4 { width: 36px; height: 36px; left: 59%; top: 75%; animation-delay: 2.4s; }
.hero__bubble--5 { width: 44px; height: 44px; left: 77%; top: 45%; animation-delay: 3.2s; }
.hero__bubble--6 { width: 52px; height: 52px; left: 90%; top: 60%; animation-delay: 4s; }

/* Stats bar: igual que Lovable (bg-secondary border-y border-border, container-wide py-12) */
.stats-bar {
  background: var(--secondary);
  border-block: 1px solid var(--border);
}

.stats-bar__inner {
  padding-block: 3rem; /* py-12 como en Lovable */
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem; /* gap-8 */
}

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

.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem; /* gap-4 */
  transition: transform 0.2s ease;
}

.stat-card:hover {
  transform: translateX(4px);
}

/* Fondo redondo igual que Lovable (w-10 h-10 rounded-full bg-primary/10) */
.stat-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;   /* w-10 */
  height: 40px;  /* h-10 */
  border-radius: 9999px;  /* rounded-full */
  background: color-mix(in srgb, var(--primary) 10%, transparent); /* bg-primary/10 como Lovable */
  color: var(--primary);
  overflow: hidden;
}

.stat-card__icon .stat-card__svg {
  width: 20px;   /* w-5 como en Lovable */
  height: 20px;  /* h-5 */
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 1.25rem;  /* text-xl */
  font-weight: 600;    /* font-semibold */
}

.stat-card__value span {
  color: var(--muted-foreground);
  font-family: var(--font-body);
  font-size: 0.875rem; /* text-sm */
  font-weight: 500;    /* font-medium */
}

.stat-card__description {
  margin-top: 0.25rem; /* mt-1 */
  color: var(--muted-foreground);
  font-family: var(--font-body);
  font-size: 0.75rem;  /* text-xs */
}

.problem-section,
.timeline-section,
.faq-section {
  background: var(--background);
}

.services-section,
.testimonials-section {
  background: rgb(var(--secondary-rgb) / 0.5);
}

.problem-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5rem;
  align-items: center;
  padding-block: 80px;
}

.problem-section__media {
  position: relative;
  min-height: 520px;
}

.problem-section__image {
  position: absolute;
  overflow: hidden;
  border: 4px solid var(--background);
  border-radius: 32px;
}

.problem-section__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.problem-section__image--primary {
  inset: 0 auto auto 0;
  width: 65%;
  height: 85%;
  z-index: 2;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.5);
}

.problem-section__image--secondary {
  right: 0;
  bottom: 0;
  width: 50%;
  height: 65%;
  z-index: 1;
  box-shadow: 0 20px 40px -20px rgb(0 0 0 / 0.45);
}

/* Iconos flotantes igual que Lovable (posiciones, tamaños, animaciones) */
.problem-section__float,
.problem-section__sparkle,
.problem-section__bubble {
  position: absolute;
  z-index: 3;
}

.problem-section__float {
  color: var(--primary);
}

/* Tamaños Lovable: w-8, w-6, w-5 (32px, 24px, 20px) */
.problem-section__float--one .problem-section__float-icon { width: 32px; height: 32px; }
.problem-section__float--two .problem-section__float-icon { width: 24px; height: 24px; }
.problem-section__float--three .problem-section__float-icon { width: 20px; height: 20px; }

.problem-section__float--one {
  top: -8px;
  right: 35%;
  animation: problem-float-one 3s ease-in-out infinite;
}

.problem-section__float--two {
  bottom: 30%;
  left: -12px; /* -left-3 como Lovable */
  animation: problem-float-two 4s ease-in-out infinite 1s;
}

.problem-section__float--three {
  top: 20%;
  right: -8px;
  animation: problem-float-three 3.5s ease-in-out infinite 0.5s;
}

.problem-section__sparkle {
  top: 10%;
  right: 15%;
  color: color-mix(in srgb, var(--primary) 60%, transparent); /* text-primary/60 */
  animation: problem-sparkle 5s ease-in-out infinite 0.8s;
}

.problem-section__sparkle .problem-section__sparkle-icon {
  width: 20px;
  height: 20px;
}

.problem-section__bubble {
  left: 30%;
  bottom: 10%;
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--primary) 20%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  animation: problem-bubble 4.5s ease-in-out infinite 1.5s;
}

.problem-section__copy {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.8;
}

.problem-features-grid,
.services-grid,
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}

.problem-features-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem; /* gap-4 como Lovable */
}

/* feature-card: mismo estilo que Lovable card-romantic p-5 text-center */
.feature-card {
  padding: 1.25rem; /* p-5 */
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 12px; /* rounded-xl como card-romantic */
  background: var(--card);
  transition: transform 0.25s ease, box-shadow 0.5s var(--transition-smooth), border-color 0.5s var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  box-shadow: var(--shadow-romantic);
}

.feature-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;   /* w-7 como Lovable */
  height: 28px;  /* h-7 */
  margin: 0 auto 0.75rem; /* mb-3, centrado */
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

.feature-card__icon .feature-card__svg {
  width: 16px;  /* w-4 */
  height: 16px; /* h-4 */
}

.feature-card h3 {
  margin: 0 0 0.25rem; /* mb-1 */
  font-family: var(--font-display);
  font-size: 1rem;     /* text-base */
  font-weight: 700;   /* font-bold */
}

.feature-card p {
  margin: 0;
  color: var(--muted-foreground);
  font-family: var(--font-body);
  font-size: 0.75rem;  /* text-xs */
  line-height: 1.625;  /* leading-relaxed */
}

.panel-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.services-section .container-wide,
.timeline-section .container-wide,
.testimonials-section .container-wide,
.faq-section .container-wide,
.site-footer__inner {
  padding-block: 80px;
}

.services-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem; /* gap-6 como Lovable */
}

@media (min-width: 1024px) {
  .services-grid {
    gap: 2rem; /* lg:gap-8 */
  }
}

.testimonials-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem; /* gap-6 como Lovable */
}

@media (min-width: 1024px) {
  .testimonials-grid {
    gap: 2rem; /* lg:gap-8 */
  }
}

/* Service cards: mismo estilo que Lovable (rounded-2xl border bg-card p-8 hover:shadow-lg) */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem; /* p-8 */
  border: 1px solid var(--border);
  border-radius: 16px; /* rounded-2xl */
  background: var(--card);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.service-card--featured {
  border-color: var(--primary);
  box-shadow: 0 8px 40px -8px rgb(var(--primary-rgb) / 0.18);
  z-index: 10;
}

@media (min-width: 768px) {
  .service-card--featured {
    margin-top: -1rem;   /* md:-mt-4 */
    margin-bottom: -1rem; /* md:mb-[-16px] */
  }
}

.service-card__badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.375rem 1rem; /* py-1.5 px-4 */
  border-radius: 9999px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-body);
  font-size: 0.625rem;   /* text-[10px] */
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;   /* w-10 */
  height: 40px;  /* h-10 */
  margin-bottom: 0.75rem; /* mb-3 */
  border-radius: 12px;   /* rounded-xl */
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
}

.service-card__icon .service-card__svg {
  width: 20px;   /* w-5 */
  height: 20px;  /* h-5 */
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem; /* text-lg */
  font-weight: 700;    /* font-bold */
  margin: 0;
}

.service-card__subtitle {
  margin: 0.25rem 0 0; /* mt-1 */
  color: var(--muted-foreground);
  font-family: var(--font-body);
  font-size: 0.75rem; /* text-xs */
}

.service-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem; /* gap-1 */
  margin: 1.5rem 0; /* mb-6 */
}

.service-card__price span {
  font-family: var(--font-display);
  font-size: 2.25rem; /* text-4xl */
  font-weight: 700;
}

.service-card__price small {
  color: var(--muted-foreground);
  font-family: var(--font-body);
  font-size: 0.875rem; /* text-sm */
}

.service-card__features {
  flex: 1;
  padding-top: 1.5rem;   /* pt-6 */
  margin-bottom: 2rem;   /* mb-8 */
  border-top: 1px solid var(--border);
}

.service-card__features-label {
  margin: 0 0 0.75rem; /* mb-3 */
  color: var(--foreground);
  font-family: var(--font-body);
  font-size: 0.75rem;   /* text-xs */
  font-weight: 600;     /* font-semibold */
}

.service-card__features ul,
.site-footer__list,
.contact-page__info-list,
.faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem; /* gap-2.5 */
  color: var(--muted-foreground);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
}

.service-card__features li + li {
  margin-top: 0.75rem; /* space-y-3 */
}

.service-card__check {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 0.15rem;
}

/* How it works: match Lovable layout (max-w-5xl, grid 1fr auto 1fr, gap-8, py-12) */
.timeline-section .section-heading {
  margin-bottom: 4rem; /* mb-16 */
}

.timeline {
  position: relative;
  max-width: 64rem; /* max-w-5xl = 1024px */
  margin: 0 auto;
}

.timeline__line,
.timeline__progress {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  transform: translateX(-50%);
}

.timeline__line {
  bottom: 0;
  background: var(--border);
}

.timeline__progress {
  height: 0;
  background: var(--primary);
  transform-origin: top center;
}

/* Article = wrapper (like Lovable's motion.div.relative); row = grid (like md:grid md:grid-cols-[1fr_auto_1fr] gap-8 items-center py-12) */
.timeline__item {
  position: relative;
}

.timeline__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem; /* gap-8 */
  align-items: center;
  padding-block: 3rem; /* py-12 */
}

/* Normal (even): image left pr-8, text right pl-8 */
.timeline__item--normal .timeline__media {
  padding-right: 2rem; /* pr-8 */
}

.timeline__item--normal .timeline__content {
  padding-left: 2rem; /* pl-8 */
  text-align: left;
}

/* Reverse (odd): text left with pr-8 text-right, image right with pl-8 */
.timeline__item--reverse .timeline__media {
  order: 3;
  padding-left: 2rem; /* pl-8 */
}

.timeline__item--reverse .timeline__content {
  order: 1;
  padding-right: 2rem; /* pr-8 */
  text-align: right;
}

.timeline__item--reverse .timeline__indicator {
  order: 2;
}

/* Step indicator: circle with border (like Lovable w-14 h-14 rounded-full border-2 shadow-md) */
.timeline__indicator {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3.5rem;   /* w-14 = 56px */
  height: 3.5rem;
  border: 2px solid var(--primary);
  border-radius: 50%;
  background: var(--background);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); /* shadow-md */
}

/* Step reached / active: filled circle */
.timeline__indicator.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}

.timeline__media-inner {
  overflow: hidden;
  border-radius: 1rem; /* rounded-2xl */
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); /* shadow-lg */
}

.timeline__media img,
.timeline__media-inner img {
  width: 100%;
  height: 14rem; /* h-56 = 224px, match Lovable */
  object-fit: cover;
  transition: transform 0.5s ease;
}

.timeline__media:hover img {
  transform: scale(1.05);
}

/* Step label: text-xs tracking-[0.15em] uppercase text-primary/60 font-body (match Lovable) */
.timeline__step-label {
  color: var(--primary);
  opacity: 0.6;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  line-height: 1.25;
  text-transform: uppercase;
  display: block;
}

.timeline__content h3 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.25rem; /* text-xl */
  font-weight: 700;
}

.timeline__content p {
  color: var(--muted-foreground);
  font-size: 0.875rem; /* text-sm */
  line-height: 1.625;  /* leading-relaxed */
}

/* Testimonial cards: mismo estilo que Lovable (card-romantic p-8) */
.testimonial-card {
  padding: 2rem; /* p-8 */
  border: 1px solid var(--border);
  border-radius: 12px; /* rounded-xl como card-romantic */
  background: var(--card);
  transition: transform 0.3s ease, box-shadow 0.5s var(--transition-smooth), border-color 0.5s var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  box-shadow: var(--shadow-romantic);
}

.testimonial-card__stars {
  display: flex;
  gap: 0.25rem; /* gap-1 */
  margin-bottom: 1rem; /* mb-4 */
  color: var(--primary);
}

.testimonial-card__star {
  width: 16px;  /* w-4 */
  height: 16px; /* h-4 */
  animation: popIn 0.5s ease both;
}

.testimonial-card__quote {
  margin: 0 0 1.5rem; /* mb-6 */
  color: color-mix(in srgb, var(--foreground) 90%, transparent); /* text-foreground/90 */
  font-family: var(--font-body);
  font-size: 0.875rem;  /* text-sm */
  font-style: italic;
  line-height: 1.625;   /* leading-relaxed */
}

.testimonial-card__name {
  font-family: var(--font-display);
  font-size: 0.875rem;  /* text-sm */
  font-weight: 500;     /* font-medium */
  margin: 0;
}

.testimonial-card__role {
  margin: 0;
  color: var(--muted-foreground);
  font-family: var(--font-body);
  font-size: 0.75rem;   /* text-xs */
}

/* FAQ: mismo estilo que Lovable (AccordionItem + AccordionTrigger) */
.faq-list {
  max-width: 42rem; /* max-w-2xl = 672px */
  margin: 0 auto;
  display: grid;
  gap: 0.75rem; /* space-y-3 */
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px; /* rounded-xl */
  padding-inline: 1.5rem; /* px-6 */
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item.is-open {
  border-color: color-mix(in srgb, var(--primary) 30%, transparent); /* data-[state=open]:border-primary/30 */
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 1rem 0; /* py-4 */
  text-align: left;
  font-family: var(--font-display);
  font-size: 0.875rem; /* text-sm */
  font-weight: 500;   /* font-medium */
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

@media (min-width: 768px) {
  .faq-item__trigger {
    font-size: 1rem; /* md:text-base */
  }
}

.faq-item__trigger:hover {
  color: var(--primary);
  text-decoration: underline;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 16px;   /* h-4 w-4 */
  height: 16px;
  color: inherit;
  transition: transform 0.2s ease;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(180deg); /* [&[data-state=open]>svg]:rotate-180 */
}

.faq-item__content {
  padding: 0 0 1rem; /* pb-4 */
  color: var(--muted-foreground);
  font-family: var(--font-body);
  font-size: 0.875rem; /* text-sm */
  line-height: 1.625; /* leading-relaxed */
}

.faq-item__content p {
  margin: 0;
}

/* CTA: misma estructura que Lovable (section.container-wide.py-20 > card) */
.cta-section {
  background: var(--background);
  padding-block: 80px; /* py-20 cuando la section es el container */
}

/* CTA card: mismo estilo que Lovable (card-romantic max-w-4xl flex-col md:flex-row) */
.cta-card {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  max-width: 56rem; /* max-w-4xl */
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px; /* rounded-xl card-romantic */
  background: color-mix(in srgb, var(--secondary) 50%, transparent); /* bg-secondary/50 */
  transition: box-shadow 0.5s var(--transition-smooth), border-color 0.5s var(--transition-smooth);
}

.cta-card:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent); /* card-romantic hover */
  box-shadow: var(--shadow-romantic);
}

@media (min-width: 768px) {
  .cta-card {
    flex-direction: row; /* imagen izquierda, contenido derecha como Lovable */
  }
}

.cta-card__media {
  flex-shrink: 0;
  width: 100%;
  height: 12rem; /* h-48 en móvil */
}

@media (min-width: 768px) {
  .cta-card__media {
    width: 14rem;   /* md:w-56 = 224px */
    min-width: 14rem;
    height: auto;
    align-self: stretch; /* misma altura que la card */
  }
}

@media (min-width: 1024px) {
  .cta-card__media {
    width: 16rem;   /* lg:w-64 = 256px */
    min-width: 16rem;
  }
}

.cta-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenido: a la derecha de la imagen en desktop (flex: 1), text-center md:text-left */
.cta-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 0%;
  min-width: 0; /* permite que el flex item se encoja */
  padding: 2.5rem; /* p-10 */
  text-align: center;
}

@media (min-width: 768px) {
  .cta-card__content {
    padding: 4rem;   /* md:p-16 */
    text-align: left;
  }
}

.cta-card__icon {
  width: fit-content;
  margin: 0 auto 1.5rem; /* mb-6, centrado en móvil */
  color: var(--primary);
  animation: pulse-scale 2.5s ease-in-out infinite;
}

@media (min-width: 768px) {
  .cta-card__icon {
    margin-left: 0;
    margin-right: 0;
  }
}

.cta-card__icon-svg {
  width: 40px;   /* w-10 */
  height: 40px;  /* h-10 */
}

.cta-card__content h2 {
  margin: 0 0 1rem; /* mb-4 */
  font-family: var(--font-display);
  font-size: 1.5rem;  /* text-2xl */
  font-weight: 700;
}

@media (min-width: 768px) {
  .cta-card__content h2 {
    font-size: 1.875rem; /* md:text-3xl */
  }
}

.cta-card__content p {
  margin: 0 0 2rem; /* mb-8 */
  max-width: 28rem; /* max-w-md */
  color: var(--muted-foreground);
  font-family: var(--font-body);
}

.cta-card__content .button {
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .cta-card__content .button {
    margin-left: 0;
    margin-right: 0;
  }
}

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.site-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.site-footer__description {
  max-width: 340px;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.8;
}

.site-footer__title {
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
}

.site-footer__list {
  display: grid;
  gap: 0.75rem;
}

.site-footer__list button {
  padding: 0;
  text-align: left;
}

.site-footer__list--contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Iconos de contacto en footer: mismo color que Lovable (text-primary) */
.site-footer__list--contact .site-footer__icon {
  color: var(--primary);
  flex-shrink: 0;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

/* Contact page: mismo estilo que Lovable (container-wide py-10, max-w-4xl, grid lg:grid-cols-3) */
.contact-page {
  min-height: 100vh; /* min-h-screen */
}

.contact-page .container-wide.contact-page__container {
  padding-block: 2.5rem; /* py-10 */
}

.contact-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem; /* mb-8 */
  font-size: 0.875rem; /* text-sm */
  font-family: var(--font-body);
  color: var(--muted-foreground);
}

.contact-page__back:hover {
  color: var(--primary);
}

.contact-page__main {
  max-width: 56rem; /* max-w-4xl */
  margin-left: auto;
  margin-right: auto;
}

.contact-page__header {
  text-align: center;
  margin-bottom: 3rem; /* mb-12 */
}

.contact-page__header h1,
.contact-success h1 {
  margin: 0 0 1rem; /* mb-4 */
  font-family: var(--font-display);
  font-size: 1.875rem; /* text-3xl */
  font-weight: 500;    /* font-medium */
}

@media (min-width: 768px) {
  .contact-page__header h1 {
    font-size: 2.25rem; /* md:text-4xl */
  }
}

.contact-page__header p,
.contact-success p {
  margin: 0;
  color: var(--muted-foreground);
  font-family: var(--font-body);
}

.contact-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem; /* gap-10 en móvil */
}

@media (min-width: 1024px) {
  .contact-page__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7rem; /* mucho más espacio entre sidebar y formulario (triple del añadido anterior) */
  }

  .contact-page__sidebar {
    grid-column: span 1;
  }

  .contact-page__form-wrap {
    grid-column: span 2;
  }
}

.contact-page__sidebar {
  display: grid;
  gap: 1.5rem; /* space-y-6 */
}

/* Cards de contacto: mismo estilo que Lovable card-luxury p-6 */
.contact-page .panel-card {
  padding: 1.5rem; /* p-6 */
  border: 1px solid var(--border);
  border-radius: 12px; /* rounded-xl */
  background: var(--card);
  transition: border-color 0.5s var(--transition-smooth), box-shadow 0.5s var(--transition-smooth);
}

.contact-page .panel-card:hover {
  border-color: color-mix(in srgb, var(--primary) 40%, transparent);
  box-shadow: var(--shadow-romantic);
}

.panel-card {
  padding: 1.5rem;
}

.panel-card--center {
  text-align: center;
}

.contact-page .panel-card--center p {
  margin: 0 0 0.75rem; /* mb-3 */
  font-size: 0.875rem; /* text-sm */
  font-family: var(--font-body);
  color: var(--muted-foreground);
}

.contact-page .panel-card--center .button {
  width: 100%; /* w-full como Lovable */
  font-size: 0.875rem; /* size="sm" */
}

.contact-page .panel-card h2 {
  margin: 0 0 1rem; /* mb-4 */
  font-family: var(--font-display);
  font-size: 1.125rem; /* text-lg */
  font-weight: 500;    /* font-medium */
}

.panel-card h2 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.panel-card p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.contact-page__info-list {
  display: grid;
  gap: 1rem; /* space-y-4 */
}

.contact-page__info-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem; /* gap-3 */
  font-size: 0.875rem; /* text-sm */
  font-family: var(--font-body);
}

.contact-page__info-list li a:hover {
  color: var(--primary);
}

/* Iconos de contacto: mismo color que Lovable (w-5 h-5 text-primary) */
.contact-page__info-list .contact-page__info-icon {
  width: 20px;
  height: 20px;
  color: var(--primary);
  flex-shrink: 0;
}

/* Formulario: mismo estilo que Lovable (space-y-6, grid gap-6, inputs rounded) */
.contact-form {
  display: grid;
  gap: 1.5rem; /* space-y-6 como Lovable */
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem; /* gap-6 */
}

@media (min-width: 768px) {
  .contact-form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Botón submit: mismo tamaño que Lovable (h-11 44px, ancho ~199px en desktop, con icono) */
.contact-form .button[type="submit"] {
  width: 100%;
  height: 2.75rem; /* h-11 = 44px como Lovable */
  min-height: 2.75rem;
  border-radius: 6px; /* rounded-md */
  padding-left: 2rem;  /* px-8 */
  padding-right: 2rem;
  font-size: 0.875rem; /* text-sm */
  font-weight: 500;    /* font-medium */
  font-family: var(--font-body);
  outline: none;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem; /* gap-2 como Lovable */
  white-space: nowrap;
}
.contact-form .button[type="submit"] .button__icon,
.contact-form .button[type="submit"] .contact-form__submit-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  pointer-events: none;
}
.contact-form .button[type="submit"]:hover {
  transform: none; /* Lovable: solo hover:bg-primary/90, sin lift */
}
.contact-form .button[type="submit"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--background), 0 0 0 4px var(--ring, var(--primary));
}

@media (min-width: 768px) {
  .contact-form .button[type="submit"] {
    width: auto;   /* md:w-auto: mismo tamaño que Lovable ~199px */
    min-width: 8rem;
    justify-self: start; /* no estirar en el grid, igual que Lovable */
  }
}

.contact-form__field label {
  display: block;
  margin-bottom: 0.5rem; /* mb-2 */
  font-size: 0.875rem;   /* text-sm */
  font-weight: 500;      /* font-medium */
  font-family: var(--font-body);
}

.contact-form__field input,
.contact-form__field textarea {
  width: 100%;
  padding: 0.75rem 1rem; /* py-3 px-4 */
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--foreground);
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: var(--muted-foreground);
}

.contact-form__field input:focus,
.contact-form__field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 1px var(--primary);
}

.contact-success {
  max-width: 720px;
  min-height: 60vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.contact-success__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-foreground);
}

.not-found-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding-inline: 1.5rem;
}

.not-found-page__inner {
  text-align: center;
}

.not-found-page__inner h1 {
  margin-bottom: 1rem;
  font-size: 4rem;
}

.not-found-page__inner p {
  margin-bottom: 1rem;
  color: var(--muted-foreground);
  font-size: 1.25rem;
}

.not-found-page__inner a {
  color: var(--primary);
  text-decoration: underline;
}

.generic-page__inner {
  padding-block: 80px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 8px rgb(var(--primary-rgb) / 0.3); }
  50% { box-shadow: 0 0 24px rgb(var(--primary-rgb) / 0.5); }
}

/* Match Lovable: y [0,-30,0], x [0,±10,0], rotate [0,±10,0], scale [1,1.1,1] */
@keyframes hero-heart {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-30px) translateX(10px) rotate(10deg) scale(1.1); }
}

@keyframes hero-heart-alt {
  0%, 100% { transform: translateY(0) translateX(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-30px) translateX(-10px) rotate(-10deg) scale(1.1); }
}

@keyframes hero-bubble {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-20px); opacity: 0.75; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes spinPulse {
  0%, 100% { opacity: 0.5; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(180deg); }
}

/* Problem section: animaciones como Lovable */
@keyframes problem-float-one {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(10deg); }
}

@keyframes problem-float-two {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-8px) translateX(5px); }
}

@keyframes problem-float-three {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.2); }
}

@keyframes problem-sparkle {
  0% { opacity: 0.5; transform: scale(0.8) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(180deg); }
  100% { opacity: 0.5; transform: scale(0.8) rotate(360deg); }
}

@keyframes problem-bubble {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-15px); opacity: 0.8; }
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1100px) {
  .hero__container,
  .problem-section__grid,
  .contact-page__grid {
    grid-template-columns: 1fr;
  }

  .hero__cards {
    height: 500px;
  }

  /* Tablet: footer sigue en 3 cols (se apila solo en 640px) */
}

@media (max-width: 900px) {
  :root {
    --header-height: 64px;
  }

  .site-nav__links,
  .button--header {
    display: none;
  }

  .site-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Menú móvil solo visible cuando está abierto (.is-open), no siempre */
  .site-nav__mobile[hidden] {
    display: none !important;
  }

  .site-nav__mobile.is-open {
    display: grid !important;
  }

  .hero {
    min-height: auto;
  }

  .hero__container {
    padding-block: 72px 96px;
  }

  .hero__cursor-glow {
    display: none;
  }

  /* Tablet: problem-features 2 cols, services 3 cols, testimonials 3 cols; footer 3 cols; timeline intercalado */
  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .cta-card__content {
    padding: 2.5rem;
    text-align: center;
  }

  .cta-card__icon {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-card__content .button {
    margin-left: auto;
    margin-right: auto;
  }

  .site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container-wide {
    padding-inline: 20px;
  }

  /* Ocultar cards del hero solo en móvil pequeño para no saturar */
  .hero__cards {
    display: none;
  }

  /* Móvil: grids en 1 columna (footer 3 cols → 1 col) */
  .problem-features-grid,
  .services-grid,
  .testimonials-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  /* How it works: pasos apilados en móvil */
  .timeline__line,
  .timeline__progress {
    left: 24px;
    transform: none;
  }

  .timeline__row {
    grid-template-columns: auto 1fr;
    gap: 1rem;
    padding-left: 0.25rem;
    padding-block: 2rem;
  }

  .timeline__media,
  .timeline__content {
    grid-column: 2;
  }

  .timeline__indicator {
    width: 40px;
    height: 40px;
    font-size: 0.75rem;
    order: 0;
  }

  .timeline__item--reverse .timeline__media,
  .timeline__item--reverse .timeline__content,
  .timeline__item--reverse .timeline__indicator {
    order: initial;
  }

  .timeline__item--reverse .timeline__content {
    text-align: left;
  }

  .timeline__media img,
  .timeline__media-inner img {
    height: 160px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
  }

  .problem-section__media {
    min-height: 420px;
  }

  .problem-section__image--primary {
    width: 70%;
    height: 80%;
  }

  .problem-section__image--secondary {
    width: 55%;
    height: 58%;
  }

  .service-card,
  .testimonial-card,
  .faq-item,
  .panel-card {
    padding: 1.25rem;
  }
}
