/* ==========================================================================
   Funerales VidaNueva — Design System
   Paleta extraída del logotipo de marca: azul marino profundo + dorado.
   ========================================================================== */

:root {
  --navy-950: #0a1226;
  --navy-900: #0e1b38;
  --navy-800: #142c54;
  --navy-700: #1c3c6e;
  --navy-600: #2a4d84;
  --gold-600: #ad8642;
  --gold-500: #c9a463;
  --gold-400: #d8bc85;
  --gold-300: #e8d7ae;
  --cream-50: #faf8f4;
  --cream-100: #f3efe5;
  --cream-200: #e9e2d3;
  --white: #ffffff;
  --ink-900: #191f2e;
  --ink-700: #3c4356;
  --ink-500: #656d80;
  --ink-300: #9aa1b0;

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-script: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 2px 10px rgba(10, 18, 38, 0.08);
  --shadow-md: 0 12px 32px rgba(10, 18, 38, 0.14);
  --shadow-lg: 0 24px 64px rgba(10, 18, 38, 0.22);
  --shadow-gold: 0 10px 30px rgba(173, 134, 66, 0.35);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-gold { color: var(--gold-600); font-style: italic; font-family: var(--font-script); font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}
.btn-icon { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-950);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(173, 134, 66, 0.45); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); transform: translateY(-3px); }
.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  width: 100%;
  margin-top: 22px;
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.18); }
.btn-lg { padding: 17px 34px; font-size: 1rem; }
.btn-nav { padding: 11px 22px; font-size: 0.88rem; }

/* ---------- Loading Screen ---------- */
#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--navy-950);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
#loading-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { position: relative; width: 92px; height: 92px; display: flex; align-items: center; justify-content: center; }
.loader-ring {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(201, 164, 99, 0.2);
  border-top-color: var(--gold-500);
  border-radius: 50%;
  animation: spin 1.1s linear infinite;
}
.loader-logo { width: 62px; height: 62px; border-radius: 50%; animation: pulse 1.6s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 0.75; transform: scale(0.96); } 50% { opacity: 1; transform: scale(1.02); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  padding: 22px 0;
  transition: padding 0.4s var(--ease), background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled {
  padding: 12px 0;
  background: rgba(10, 18, 38, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-md);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0; transition: width 0.4s var(--ease), height 0.4s var(--ease); }
.site-header.is-scrolled .brand-logo { width: 52px; height: 52px; }
.brand-wordmark { height: 44px; width: auto; transition: height 0.4s var(--ease); }
.site-header.is-scrolled .brand-wordmark { height: 36px; }

.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav ul { display: flex; align-items: center; gap: 30px; }
.nav-link {
  position: relative;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after, .nav-link.is-active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: none;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 0 auto;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 160px 0 120px;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.hero-media-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,18,38,0.88) 0%, rgba(10,18,38,0.82) 45%, rgba(10,18,38,0.95) 100%),
    linear-gradient(100deg, rgba(10,18,38,0.55) 0%, rgba(10,18,38,0.15) 60%);
}
#particles-canvas { position: absolute; inset: 0; z-index: 1; opacity: 0.5; }
.hero-glow {
  position: absolute;
  top: -10%; right: -10%;
  width: 60%; height: 70%;
  background: radial-gradient(circle, rgba(201, 164, 99, 0.22) 0%, transparent 70%);
  z-index: 1;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 18px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1.12;
  font-weight: 600;
  margin-bottom: 22px;
}
.gradient-text {
  background: linear-gradient(100deg, var(--white) 20%, var(--gold-300) 55%, var(--gold-500) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-typewriter {
  font-family: var(--font-script);
  font-style: italic;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--cream-100);
  margin-bottom: 20px;
  min-height: 1.6em;
}
.typewriter-word { color: var(--gold-400); font-weight: 600; }
.typewriter-cursor { color: var(--gold-400); animation: blink 0.9s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(243, 239, 229, 0.86);
  max-width: 620px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }

.hero-social { display: flex; align-items: center; gap: 16px; }
.hero-social-label { font-size: 0.82rem; color: rgba(255,255,255,0.6); letter-spacing: 0.05em; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: var(--white);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s var(--ease);
}
.social-links a:hover { background: var(--gold-500); color: var(--navy-950); border-color: var(--gold-500); transform: translateY(-3px); }
.social-links a svg { width: 17px; height: 17px; }

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 20px;
  z-index: 2;
}
.scroll-indicator span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--gold-400);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0% { top: 8px; opacity: 1; } 80% { top: 22px; opacity: 0; } 100% { top: 22px; opacity: 0; } }

/* ---------- Section shared ---------- */
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { color: var(--gold-600); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy-900);
  margin-bottom: 18px;
}
.section-desc { font-size: 1.02rem; line-height: 1.75; color: var(--ink-500); }

/* ---------- About ---------- */
.about { padding: 110px 0; background: var(--cream-50); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 72px; align-items: center; }
.about-media { position: relative; }
.about-media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.about-media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.about-media:hover .about-media-frame img { transform: scale(1.05); }
.about-media-badge {
  position: absolute;
  bottom: -26px; right: -26px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(201,164,99,0.4);
}
.badge-number { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--gold-400); line-height: 1; }
.badge-label { font-size: 0.78rem; color: rgba(255,255,255,0.75); margin-top: 6px; line-height: 1.4; }

.about-content .section-title { text-align: left; }
.about-content .section-desc { text-align: left; margin-bottom: 40px; }
.about-pillars { display: flex; flex-direction: column; gap: 26px; }
.pillar { display: flex; gap: 18px; align-items: flex-start; }
.pillar-icon {
  flex-shrink: 0;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: var(--gold-400);
  display: flex; align-items: center; justify-content: center;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--navy-900); margin-bottom: 6px; }
.pillar p { font-size: 0.94rem; line-height: 1.65; color: var(--ink-500); }

/* ---------- Services ---------- */
.services { padding: 110px 0; background: var(--white); }
.service-category {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 100px;
}
.service-category:last-of-type { margin-bottom: 64px; }
.service-category--reverse .service-cat-media { order: 2; }
.service-category--reverse .service-cat-content { order: 1; }
.service-cat-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.service-cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.service-category:hover .service-cat-media img { transform: scale(1.04); }
.service-cat-tag { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-600); margin-bottom: 12px; }
.service-cat-content h3 { font-family: var(--font-display); font-size: 1.7rem; color: var(--navy-900); margin-bottom: 14px; }
.service-cat-desc { color: var(--ink-500); line-height: 1.7; margin-bottom: 22px; }
.service-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--ink-700);
  margin-bottom: 12px;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
}
.services-cta {
  text-align: center;
  background: var(--cream-100);
  border-radius: var(--radius-lg);
  padding: 46px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.services-cta p { font-size: 1.08rem; color: var(--navy-900); font-weight: 500; max-width: 520px; }

/* ---------- Flores de despedida ---------- */
.flowers { padding: 110px 0; background: var(--cream-50); }

/* ---------- Despedida con palomas ---------- */
.palomas { padding: 110px 0; background: var(--white); }
.about-grid--reverse .about-media { order: 2; }
.about-grid--reverse .about-content { order: 1; }

/* ---------- Parallax banners ---------- */
.parallax-banner {
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 130px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.parallax-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,18,38,0.75), rgba(10,18,38,0.6));
}
.parallax-content { position: relative; z-index: 1; text-align: center; }
.parallax-content .eyebrow { color: var(--gold-400); }
.parallax-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  color: var(--white);
  font-weight: 600;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.3;
}

/* ---------- Why us ---------- */
.why-us { padding: 110px 0; background: var(--cream-50); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border: 1px solid var(--cream-200);
}
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: var(--gold-400); }
.feature-icon {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: var(--navy-950);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-family: var(--font-display); font-size: 1.12rem; color: var(--navy-900); margin-bottom: 10px; }
.feature-card p { font-size: 0.92rem; line-height: 1.65; color: var(--ink-500); }

/* ---------- Prevision ---------- */
.prevision { padding: 110px 0; background: var(--white); }
.prevision-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.prevision-content .section-title, .prevision-content .section-desc { text-align: left; }
.prevision-content .section-desc { margin-bottom: 28px; }
.prevision-points { display: flex; flex-direction: column; gap: 14px; margin-bottom: 34px; }
.prevision-points li { font-size: 0.98rem; color: var(--ink-700); line-height: 1.6; padding-left: 26px; position: relative; }
.prevision-points li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--gold-600);
  font-weight: 700;
}
.prevision-points li span { font-weight: 700; color: var(--navy-900); }

.prevision-card {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  border-radius: var(--radius-lg);
  padding: 46px 40px;
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201,164,99,0.35);
  position: relative;
  overflow: hidden;
}
.prevision-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -30%;
  width: 70%; height: 90%;
  background: radial-gradient(circle, rgba(201,164,99,0.25), transparent 70%);
}
.prevision-card-label { position: relative; display: block; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-400); margin-bottom: 10px; }
.prevision-card-price {
  position: relative;
  display: block;
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}
.prevision-card-currency { font-size: 2.2rem; vertical-align: top; color: var(--gold-400); }
.prevision-card-unit { position: relative; display: block; font-size: 0.85rem; color: rgba(255,255,255,0.65); margin: 10px 0 28px; }
.prevision-card-list { position: relative; display: flex; flex-direction: column; gap: 12px; text-align: left; padding: 0 6px; }
.prevision-card-list li { font-size: 0.92rem; color: rgba(255,255,255,0.85); padding-left: 24px; position: relative; }
.prevision-card-list li::before { content: '◆'; position: absolute; left: 0; top: 1px; color: var(--gold-500); font-size: 0.65rem; }

/* ---------- Gallery ---------- */
.gallery { padding: 110px 0; background: var(--cream-50); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }

/* ---------- Contact ---------- */
.contact { padding: 110px 0; background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.contact-info .section-title, .contact-info .section-desc { text-align: left; }
.contact-info .section-desc { margin-bottom: 34px; }
.contact-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; font-size: 0.96rem; color: var(--ink-700); line-height: 1.6; }
.contact-list li svg { width: 22px; height: 22px; color: var(--gold-600); flex-shrink: 0; margin-top: 2px; }
.contact-list a { color: var(--navy-800); font-weight: 600; }
.contact-list a:hover { color: var(--gold-600); }

.map-embed { margin-top: 64px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.map-embed iframe { display: block; width: 100%; }

.contact-card-panel {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201,164,99,0.35);
}
.contact-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,164,99,0.15);
  border: 1px solid rgba(201,164,99,0.4);
  color: var(--gold-400);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.contact-card-badge svg { width: 15px; height: 15px; }
.contact-card-panel h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 12px; }
.contact-card-panel p { font-size: 0.95rem; color: rgba(255,255,255,0.72); line-height: 1.65; margin-bottom: 28px; }
.contact-card-panel .btn { width: 100%; }
.contact-card-phone { display: block; margin-top: 18px; font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.contact-card-phone a { color: var(--gold-400); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,0.75); padding: 80px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer-col h4 { font-family: var(--font-display); font-size: 1rem; color: var(--white); margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col li { font-size: 0.9rem; line-height: 1.6; color: rgba(255,255,255,0.55); }
.footer-col a:hover { color: var(--gold-400); }
.footer-col .social-links a { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.footer-bottom { padding: 26px 0; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); text-align: center; }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #1eb857);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  z-index: 400;
  animation: floatPulse 2.6s ease-in-out infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes floatPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 10px 30px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.08); }
}

/* ---------- Scroll reveal ----------
   Only hides content once JS confirms it can reveal it again (html.js,
   set immediately on load). If JS fails/blocked, content stays visible. */
:where(html.js) .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.hero-inner .reveal:nth-child(1) { transition-delay: 0.05s; }
.hero-inner .reveal:nth-child(2) { transition-delay: 0.15s; }
.hero-inner .reveal:nth-child(3) { transition-delay: 0.25s; }
.hero-inner .reveal:nth-child(4) { transition-delay: 0.35s; }
.hero-inner .reveal:nth-child(5) { transition-delay: 0.45s; }
.hero-inner .reveal:nth-child(6) { transition-delay: 0.55s; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .about-grid, .service-category, .prevision-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-category--reverse .service-cat-media { order: 1; }
  .service-category--reverse .service-cat-content { order: 2; }
  .about-grid--reverse .about-media { order: 1; }
  .about-grid--reverse .about-content { order: 2; }
  .about-media { max-width: 460px; margin: 0 auto; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 82vw); background: var(--navy-950); flex-direction: column; align-items: flex-start; justify-content: center; padding: 40px 32px; gap: 40px; transform: translateX(100%); transition: transform 0.45s var(--ease); box-shadow: var(--shadow-lg); }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 22px; }
  .nav-link { font-size: 1.05rem; }
  .btn-nav { width: 100%; justify-content: center; }
  .nav-toggle { display: flex; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero { padding: 140px 0 100px; text-align: left; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .section-head { margin-bottom: 40px; }
  .about, .services, .flowers, .palomas, .why-us, .prevision, .gallery, .contact { padding: 80px 0; }
  .about-media-badge { position: static; margin-top: -40px; margin-left: 20px; align-self: flex-start; width: fit-content; }
  .features-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .parallax-banner { background-attachment: scroll; padding: 90px 0; }
  .prevision-card, .contact-card-panel { padding: 36px 26px; }
  .prevision-card-price { font-size: 3.2rem; }
  .services-cta { padding: 34px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
