/* ============================================================
   INSTAL·LACIONS JAUME NADAL — Main Stylesheet
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700&family=Source+Sans+3:wght@400;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --navy:       #1E4A8C;
  --steel:      #8BAED4;
  --white:      #FFFFFF;
  --light-bg:   #F2F5F9;
  --dark-bg:    #0D1E35;
  --accent:     #E8400A;
  --text:       #1A1A2E;
  --text-light: #5A6A80;

  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Source Sans 3', sans-serif;

  --nav-height: 88px;
  --transition: 0.25s ease;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:  0 6px 24px rgba(0,0,0,0.12);
  --radius:     8px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* Eliminate 300ms tap delay and tap flash on all interactive elements */
a, button, [role="button"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
}

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

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

ul { list-style: none; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--white);
  display: flex;
  align-items: center;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  z-index: 1000;
  transition: box-shadow var(--transition);
}

.navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.12); }

.nav-logo img { height: 68px; width: auto; display: block; }

.nav-links {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  letter-spacing: 0.02em;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--navy);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active { color: var(--navy); }
.nav-links a.active::after { transform: scaleX(1); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 3px 6px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-light);
  transition: all var(--transition);
  line-height: 1.4;
}

.lang-btn:hover { border-color: var(--steel); color: var(--navy); }
.lang-btn.active { border-color: var(--navy); color: var(--navy); background: var(--light-bg); }

/* CTA nav button */
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent);
  color: var(--white) !important;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  padding: 9px 18px;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn-nav-cta:hover { background: #c93508; }
.btn-nav-cta:active { transform: scale(0.97); }
.btn-nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 999;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  display: none;
}

@media (max-width: 767px) {
  .mobile-menu { display: block; }
}

.mobile-menu.open { max-height: 500px; }

.mobile-menu-inner {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu-inner a {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--light-bg);
  font-weight: 600;
  color: var(--text);
  transition: color var(--transition);
}

.mobile-menu-inner a:last-of-type { border-bottom: none; }
.mobile-menu-inner a:hover, .mobile-menu-inner a.active { color: var(--navy); }

.mobile-lang {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--light-bg);
  margin-top: 0.5rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-align: center;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover { background: #c93508; border-color: #c93508; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover { background: #163a70; border-color: #163a70; }

.btn-white-orange {
  background: var(--white);
  color: var(--accent);
  border-color: var(--white);
}
.btn-white-orange:hover { background: var(--light-bg); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 4rem clamp(1rem, 4vw, 2.5rem) 0;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-logo img {
  height: 48px;
  width: auto;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}

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

.footer-links a {
  color: var(--steel);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-contact h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-contact p {
  font-size: 0.9rem;
  color: var(--steel);
  line-height: 1.8;
}

.footer-contact a {
  color: var(--steel);
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-light);
  max-width: 1100px;
  margin: 0 auto;
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  opacity: 0;
  pointer-events: none;
}

.whatsapp-btn:hover { transform: scale(1.08); }

.whatsapp-btn svg { width: 30px; height: 30px; }

/* Tooltip now handled by .wa-tooltip span — see ANIMATIONS v2 block */

@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 32px rgba(37,211,102,0.7); }
}

/* ============================================================
   SECTION WRAPPER
   ============================================================ */
section { padding: 5rem clamp(1rem, 4vw, 2.5rem); }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--navy);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 2rem;
}

/* ============================================================
   HOME — HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-height) 1.5rem 3rem;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-logo {
  width: 180px;
  height: auto;
  display: block;
  margin: 0 auto 32px;
  filter: brightness(0) invert(1);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  transition: opacity 0.6s ease;
}

.scroll-indicator.hidden { opacity: 0; pointer-events: none; }

.scroll-arrow {
  display: block;
  color: var(--steel);
  font-size: 1.4rem;
  animation: bounce 1.8s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  line-height: 1.0;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--steel);
  margin-bottom: 2.5rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

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

.hero-phone {
  font-size: 1.2rem;
  color: var(--steel);
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ============================================================
   HOME — ABOUT
   ============================================================ */
.about { background: var(--light-bg); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.stats-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.stat-box {
  flex: 1;
  min-width: 110px;
  border-top: 3px solid var(--navy);
  padding-top: 1rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--steel);
  line-height: 1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.3rem;
  font-weight: 600;
}

.about-body {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* ============================================================
   HOME — WHY US
   ============================================================ */
.why-us {
  background: var(--navy);
  padding: 80px clamp(1rem, 4vw, 2.5rem);
  text-align: center;
}

.why-us-label {
  color: var(--steel);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.why-us-heading {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  margin-bottom: 3rem;
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.why-box {
  padding: 32px 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.why-box-visible {
  opacity: 1;
  transform: translateY(0);
}

.why-box-bar {
  width: 40px;
  height: 3px;
  background: var(--accent);
  margin-bottom: 1.25rem;
}

.why-box-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.why-box-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.why-box-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   HOME — SERVICES PREVIEW
   ============================================================ */
.services-preview { background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

@keyframes serviceCardIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.service-card {
  background: var(--white);
  border: 1px solid #E4ECF4;
  border-top: 3px solid var(--steel);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  will-change: transform;
  animation: serviceCardIn 0.5s ease forwards;
  animation-play-state: paused;
  opacity: 0;
}

.services-preview.visible .service-card { animation-play-state: running; }
.services-preview.visible .service-card:nth-child(1) { animation-delay: 0.05s; }
.services-preview.visible .service-card:nth-child(2) { animation-delay: 0.10s; }
.services-preview.visible .service-card:nth-child(3) { animation-delay: 0.15s; }
.services-preview.visible .service-card:nth-child(4) { animation-delay: 0.20s; }
.services-preview.visible .service-card:nth-child(5) { animation-delay: 0.25s; }
.services-preview.visible .service-card:nth-child(6) { animation-delay: 0.30s; }

.service-card:hover {
  border-top-color: var(--navy);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.6;
}

.services-cta { margin-top: 2.5rem; text-align: center; }

.link-arrow {
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  transition: gap var(--transition), color var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.link-arrow:hover { color: var(--accent); }
.link-arrow:hover .arrow { transform: translateX(4px); }
.arrow { transition: transform var(--transition); }

/* ============================================================
   HOME — TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--light-bg); }

.testimonials-sub {
  font-size: 1rem;
  color: var(--text-light);
  margin-top: 0.5rem;
  margin-bottom: 2.5rem;
}

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

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  border-left: 4px solid var(--steel);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.stars { font-size: 1rem; margin-bottom: 0.75rem; letter-spacing: 0.05em; }

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1rem;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
}

.google-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--light-bg);
  border: 1px solid #D0D8E4;
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}

.testimonials-cta { margin-top: 2rem; text-align: center; }

/* ============================================================
   HOME — BRANDS STRIP
   ============================================================ */
.brands-strip {
  background: var(--dark-bg);
  text-align: center;
}

.brands-strip .section-title { color: var(--white); }

.brands-strip-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 2rem;
}

.strip-logo {
  max-height: 40px;
  max-width: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(0.7);
  transition: filter 0.3s ease;
}

.strip-logo:hover { filter: brightness(0) invert(1) opacity(1); }

.strip-cta {
  display: block;
  text-align: center;
  margin-top: 24px;
  color: var(--steel);
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.strip-cta:hover { color: var(--white); text-decoration: underline; }

/* ============================================================
   HOME — FAQ
   ============================================================ */
.faq-section {
  background: var(--white);
  padding: 80px clamp(1rem, 4vw, 2.5rem);
}

.faq-inner {
  max-width: 800px;
  margin: 0 auto;
}

.faq-label {
  color: var(--steel);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.faq-heading {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
}

.faq-list { border-top: 1px solid #E8ECF2; }

.faq-item { border-bottom: 1px solid #E8ECF2; }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1rem;
}

.faq-question span:first-child {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #1A1A2E;
  transition: color 0.2s ease;
  line-height: 1.3;
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  color: var(--navy);
  line-height: 1;
  transition: transform 0.3s ease;
  font-weight: 300;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  font-size: 0.95rem;
  color: #5A6A80;
  line-height: 1.7;
  padding-bottom: 20px;
  margin: 0;
}

/* open state */
.faq-item.open .faq-question span:first-child { color: var(--navy); }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-answer { max-height: 500px; }

/* ============================================================
   HOME — CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--accent);
  text-align: center;
}

.cta-banner .section-title { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.5rem); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--dark-bg);
  padding: calc(var(--nav-height) + 3rem) clamp(1rem, 4vw, 2.5rem) 3rem;
  min-height: 280px;
  display: flex;
  align-items: center;
}

.page-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1;
}

.page-hero-phone {
  color: var(--steel);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: right;
}

/* ============================================================
   SERVICIOS PAGE — CINEMATIC IMAGE CARDS
   ============================================================ */

/* Section wrapper */
.services-editorial {
  background: var(--dark-bg);
  padding: 80px clamp(1rem, 4vw, 2.5rem);
}

/* Header — light text on dark bg */
.sed-header { margin-bottom: 3rem; }

.sed-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 8px;
}

.sed-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.25rem;
}

.sed-sub {
  color: rgba(255, 255, 255, 0.3);
  font-style: italic;
  display: block;
}

.sed-line {
  width: 60px;
  height: 3px;
  background: var(--steel);
  border-radius: 2px;
}

/* Cards grid */
.sed-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Card entrance animation */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Card shell */
.sed-card {
  position: relative;
  min-height: 380px;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transition: box-shadow 0.4s ease;
}

.sed-card.card-visible {
  animation: cardIn 0.55s ease forwards;
}

.sed-card:hover {
  box-shadow: 0 8px 32px rgba(30, 74, 140, 0.4);
}

/* Layer 1 — Background image */
.sdc-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.sed-card:hover .sdc-bg { transform: scale(1.06); }

/* Layer 2 — Gradient overlay */
.sdc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13, 30, 53, 0.95) 0%,
    rgba(13, 30, 53, 0.55) 50%,
    rgba(13, 30, 53, 0.15) 100%
  );
  pointer-events: none;
}

/* Layer 3 — Text content */
.sdc-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
}

/* Top row: icon left, number right */
.sdc-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sdc-icon {
  font-size: 1.4rem;
  line-height: 1;
}

.sdc-number {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--steel);
  letter-spacing: 0.15em;
}

/* Divider */
.sdc-divider {
  width: 32px;
  height: 3px;
  background: var(--steel);
  border-radius: 2px;
  margin-bottom: 12px;
  transition: background 0.4s ease;
}

.sed-card:hover .sdc-divider { background: var(--accent); }

/* Service name */
.sdc-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.15;
  margin-bottom: 10px;
}

/* Description */
.sdc-desc {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
  .sed-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: 1 column */
@media (max-width: 767px) {
  .sed-grid { grid-template-columns: 1fr; gap: 14px; }
  .sed-card { min-height: 300px; }
}

/* ============================================================
   MARCAS PAGE
   ============================================================ */
.brands-intro {
  background: var(--light-bg);
  text-align: center;
  padding: 5rem clamp(1rem, 4vw, 2.5rem);
}

.brands-intro-inner { max-width: 700px; margin: 0 auto; }

.jn-monogram {
  width: 64px;
  height: 64px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

.brands-quote {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.brands-attribution {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.brand-photo-section {
  background: #F2F5F9;
  padding: 80px clamp(1rem, 4vw, 2.5rem);
  overflow-x: hidden;
}

.brand-photo-section .section-title {
  font-size: 2.5rem;
  color: var(--navy);
}

.brand-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 2.5rem;
}

@keyframes brandFadeIn {
  from { opacity: 0; transform: translateY(16px) translateZ(0); }
  to   { opacity: 1; transform: translateY(0)    translateZ(0); }
}

.brand-photo-card {
  background: var(--white);
  border: 1px solid #E8ECF2;
  border-radius: 12px;
  padding: 28px 24px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(30,74,140,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  will-change: transform, box-shadow;
  backface-visibility: hidden;
  animation: brandFadeIn 0.35s ease both;
}

/* nth-child stagger — 21 cards × 0.04s */
.brand-photo-card:nth-child(1)  { animation-delay: 0.04s; }
.brand-photo-card:nth-child(2)  { animation-delay: 0.08s; }
.brand-photo-card:nth-child(3)  { animation-delay: 0.12s; }
.brand-photo-card:nth-child(4)  { animation-delay: 0.16s; }
.brand-photo-card:nth-child(5)  { animation-delay: 0.20s; }
.brand-photo-card:nth-child(6)  { animation-delay: 0.24s; }
.brand-photo-card:nth-child(7)  { animation-delay: 0.28s; }
.brand-photo-card:nth-child(8)  { animation-delay: 0.32s; }
.brand-photo-card:nth-child(9)  { animation-delay: 0.36s; }
.brand-photo-card:nth-child(10) { animation-delay: 0.40s; }
.brand-photo-card:nth-child(11) { animation-delay: 0.44s; }
.brand-photo-card:nth-child(12) { animation-delay: 0.48s; }
.brand-photo-card:nth-child(13) { animation-delay: 0.52s; }
.brand-photo-card:nth-child(14) { animation-delay: 0.56s; }
.brand-photo-card:nth-child(15) { animation-delay: 0.60s; }
.brand-photo-card:nth-child(16) { animation-delay: 0.64s; }
.brand-photo-card:nth-child(17) { animation-delay: 0.68s; }
.brand-photo-card:nth-child(18) { animation-delay: 0.72s; }
.brand-photo-card:nth-child(19) { animation-delay: 0.76s; }
.brand-photo-card:nth-child(20) { animation-delay: 0.80s; }
.brand-photo-card:nth-child(21) { animation-delay: 0.84s; }

.brand-photo-card:hover {
  transition-delay: 0s;
  transform: translateY(-5px) translateZ(0);
  box-shadow: 0 12px 28px rgba(30,74,140,0.12);
  border-color: var(--steel);
}

.brand-photo-card img {
  max-width: 160px;
  max-height: 70px;
  width: auto;
  height: auto;
  object-fit: contain;
  will-change: filter;
  transform: translateZ(0);
  transition: filter 0.2s ease;
}

.brand-card-label {
  font-size: 0.75rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
}

/* ============================================================
   CONTACTO PAGE
   ============================================================ */
.contact-section {
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-details h2,
.contact-form-col h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--navy);
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}

.contact-divider {
  width: 48px;
  height: 3px;
  background: var(--steel);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.contact-intro {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text);
}

.contact-info-item .ci-icon { flex-shrink: 0; font-size: 1.1rem; }

.contact-phone-big {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--navy);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.directions-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color var(--transition);
}
.directions-link:hover { color: var(--accent); }

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #D0D8E4;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy);
}

.form-group input:user-invalid,
.form-group textarea:user-invalid {
  border-color: #E8400A;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  margin-top: 0.5rem;
}

.btn-submit:hover { background: #c93508; }
.btn-submit:active { transform: scale(0.98); }

/* ============================================================
   ANIMATIONS — INTERSECTION OBSERVER
   ============================================================ */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   LEGAL PAGES (aviso-legal, privacidad)
   ============================================================ */
.legal-hero {
  height: 200px;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
}

.legal-hero h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.05em;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px;
  background: var(--white);
}

.legal-lang-note {
  font-size: 0.85rem;
  color: var(--steel);
  font-style: italic;
  border-left: 3px solid var(--steel);
  padding: 10px 14px;
  background: #F2F5F9;
  border-radius: 0 4px 4px 0;
  margin-bottom: 2rem;
}

.legal-intro {
  font-size: 0.95rem;
  color: #5A6A80;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.legal-heading {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 40px;
  margin-bottom: 8px;
}

.legal-bar {
  display: block;
  width: 40px;
  height: 3px;
  background: var(--steel);
  margin-bottom: 16px;
}

.legal-content p {
  font-size: 0.95rem;
  color: #5A6A80;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.legal-content strong { color: #1A1A2E; }

/* Definition list */
.legal-dl {
  margin: 0 0 1.5rem;
  border-top: 1px solid #E8ECF2;
}

.legal-dl-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0 1rem;
  border-bottom: 1px solid #E8ECF2;
  padding: 8px 0;
  align-items: baseline;
}

.legal-dl-row dt {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
}

.legal-dl-row dd {
  font-size: 0.875rem;
  color: #5A6A80;
  margin: 0;
}

/* Bullet list */
.legal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.legal-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.95rem;
  color: #5A6A80;
  line-height: 1.8;
  margin-bottom: 0.4rem;
}

.legal-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--steel);
}

/* Labeled paragraphs (a, b, c ...) */
.legal-labeled {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0 0.5rem;
  margin-bottom: 0.75rem;
}

.legal-labeled-key {
  font-weight: 600;
  color: #1A1A2E;
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal-labeled-val {
  font-size: 0.95rem;
  color: #5A6A80;
  line-height: 1.8;
}

@media (max-width: 600px) {
  .legal-dl-row { grid-template-columns: 1fr; gap: 2px; }
  .legal-dl-row dt { color: var(--navy); }
}

/* ============================================================
   RESPONSIVE — TABLET (768–1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .brands-grid-cards { grid-template-columns: repeat(2, 1fr); }
  .brand-photo-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { gap: 2.5rem; }
  .service-block { gap: 2.5rem; }
  .why-us-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   RESPONSIVE — MOBILE (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  :root { --nav-height: 64px; }

  .nav-links { display: none; }
  .nav-right { display: none; }
  .hamburger { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .brands-grid-cards { grid-template-columns: 1fr 1fr; }

  .service-block {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 3rem 1rem;
  }
  .service-block.reverse { direction: ltr; }

  .service-image-placeholder { height: 200px; }
  .service-number { font-size: 5rem; top: -1.5rem; left: -0.5rem; }

  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .whatsapp-btn { width: 48px; height: 48px; bottom: 16px; right: 16px; }
  .whatsapp-btn svg { width: 24px; height: 24px; }

  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 280px; }

  .scroll-indicator { display: none; }
  .hero-logo { width: 130px; margin-bottom: 24px; }
  .why-us-grid { grid-template-columns: 1fr; }
  .why-us-heading { font-size: 2rem; }
  .brand-photo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .brand-photo-card { padding: 20px 16px; min-height: 120px; }
  .brand-photo-card img { max-width: 120px; max-height: 55px; }
  .brands-strip-logos { gap: 20px; }
  .strip-logo { max-height: 28px; max-width: 80px; }

  .stats-row { gap: 1rem; }
  .stat-box { min-width: 90px; }

  .page-hero-phone { font-size: 0.9rem; }

  section { padding: 3.5rem clamp(1rem, 4vw, 1.5rem); }
}

@media (max-width: 480px) {
  .brands-grid-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   ANIMATIONS v2 — Motion Layer (pure CSS + JS, no libraries)
   ============================================================ */

/* ============================================================
   NAVBAR — Transparent → frosted on scroll
   ============================================================ */
.navbar {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(30,74,140,0.08);
}

/* Transparent state: white text/logo */
.navbar:not(.scrolled) .nav-links a        { color: var(--white); }
.navbar:not(.scrolled) .nav-links a::after { background: rgba(255,255,255,0.8); }
.navbar:not(.scrolled) .nav-logo img       { filter: brightness(0) invert(1); }
.navbar:not(.scrolled) .lang-btn           { color: rgba(255,255,255,0.75); border-color: transparent; }
.navbar:not(.scrolled) .lang-btn.active    { color: var(--white); border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.12); }
.navbar:not(.scrolled) .hamburger span     { background: var(--white); }

/* Nav underline slides from left */
.nav-links a::after {
  transform-origin: left;
  transition: transform 0.3s ease;
}

/* CTA button spring hover */
.btn-nav-cta:hover {
  background: #c93508;
  box-shadow: 0 6px 20px rgba(232,64,10,0.35);
  transform: scale(1.03);
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

/* ============================================================
   HERO — Staggered entrance animations
   ============================================================ */
@keyframes heroFadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-logo   { will-change: transform; animation: heroFadeDown 0.7s ease-out 0.1s both; }
.hero-line-1 { display: block; will-change: transform; animation: heroFadeUp 0.7s ease-out 0.3s both; }
.hero-line-2 { display: block; will-change: transform; animation: heroFadeUp 0.7s ease-out 0.5s both; }
.hero-sub    { will-change: opacity; animation: heroFadeIn 0.7s ease-out 0.7s both; }
.hero-ctas   { will-change: transform; animation: heroFadeUp 0.7s ease-out 0.9s both; }
.hero-phone  { will-change: opacity; animation: heroFadeIn 0.7s ease-out 1.1s both; }
.scroll-indicator { will-change: opacity; animation: heroFadeIn 0.7s ease-out 1.4s both; }

/* Scroll arrow: fade in first, then bounce */
.scroll-arrow { animation: heroFadeIn 0.7s ease-out 1.4s both, bounce 1.8s ease-in-out 2.2s infinite; }

/* Override bounce keyframe to 10px per spec */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(10px); }
}

/* ============================================================
   DATA-REVEAL — Universal scroll-triggered reveal system
   ============================================================ */
[data-reveal] {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}
[data-reveal="up"]    { transform: translateY(40px); }
[data-reveal="left"]  { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="fade"]  { transform: none; }

[data-reveal].revealed {
  opacity: 1;
  transform: translate(0);
}

/* ============================================================
   SERVICE CARDS — Spring hover + sliding top border + icon spin
   ============================================================ */
.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: var(--accent);
  transition: width 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(30,74,140,0.15);
  border-top-color: var(--steel);
}

.service-card:hover::after { width: 100%; }

.service-card-icon { will-change: auto; }

/* ============================================================
   TESTIMONIAL CARDS — spring hover + star pop
   ============================================================ */
.testimonial-card {
  will-change: transform;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--accent);
  box-shadow: 0 8px 24px rgba(30,74,140,0.1);
}

.star-item {
  display: inline-block;
  opacity: 0;
  transform: scale(0) rotate(-30deg);
  animation: starPop 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

@keyframes starPop {
  0%   { opacity: 0; transform: scale(0) rotate(-30deg); }
  60%  { transform: scale(1.3) rotate(5deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

/* ============================================================
   FAQ — Chevron icon + smooth answer reveal + hover bg slide
   ============================================================ */
.faq-question { position: relative; overflow: hidden; }

.faq-question::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0;
  background: rgba(30,74,140,0.04);
  transition: width 0.3s ease;
  pointer-events: none;
}
.faq-question:hover::before { width: 100%; }

/* Replace text "+" with CSS chevron */
.faq-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
  font-size: 0;
  color: transparent;
  transition: none;
}

.faq-icon::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translate(-65%, -60%) rotate(-45deg);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}

.faq-item.open .faq-icon::before {
  transform: translate(-50%, -65%) rotate(45deg);
}

/* Answer: opacity fade + smooth height */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1),
              opacity 0.3s ease 0.05s;
}
.faq-item.open .faq-answer { max-height: 500px; opacity: 1; }

/* Active question: accent left border animates in */
.faq-item .faq-question { border-left: 3px solid transparent; padding-left: 0; transition: border-color 0.3s ease, padding-left 0.3s ease; }
.faq-item.open .faq-question { border-left-color: var(--accent); padding-left: 8px; }

/* ============================================================
   WHY-US — Icon drop-in + bar width animate
   ============================================================ */
.why-box-icon {
  will-change: transform, opacity;
  transform: translateY(-20px) rotate(-15deg);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34,1.56,0.64,1), opacity 0.4s ease;
}
.why-box-visible .why-box-icon { transform: translateY(0) rotate(0); opacity: 1; }

.why-us-grid .why-box:nth-child(1) .why-box-icon { transition-delay: 0s; }
.why-us-grid .why-box:nth-child(2) .why-box-icon { transition-delay: 0.1s; }
.why-us-grid .why-box:nth-child(3) .why-box-icon { transition-delay: 0.2s; }
.why-us-grid .why-box:nth-child(4) .why-box-icon { transition-delay: 0.3s; }

.why-box-bar { width: 0; transition: width 0.5s ease; }
.why-box-visible .why-box-bar { width: 40px; }

.why-us-grid .why-box:nth-child(1) .why-box-bar { transition-delay: 0.3s; }
.why-us-grid .why-box:nth-child(2) .why-box-bar { transition-delay: 0.4s; }
.why-us-grid .why-box:nth-child(3) .why-box-bar { transition-delay: 0.5s; }
.why-us-grid .why-box:nth-child(4) .why-box-bar { transition-delay: 0.6s; }

/* ============================================================
   CTA BANNER — Spring button hover
   ============================================================ */
.cta-banner .btn:hover {
  box-shadow: 0 8px 25px rgba(232,64,10,0.45);
  transform: translateY(-3px) scale(1.02);
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
}
.cta-banner .btn:active { transform: scale(0.97); transition: transform 0.1s ease; }

/* ============================================================
   WHATSAPP — Spring entrance + sonar ripple + rotate hover
   ============================================================ */
.whatsapp-btn {
  opacity: 0;
  transform: scale(0);
  pointer-events: none;
  will-change: transform, opacity;
  /* remove old box-shadow animation via override */
  transition: none;
}

.whatsapp-btn.visible {
  opacity: 1;
  pointer-events: auto;
  animation: waSpring 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards;
}

.whatsapp-btn.wa-ready {
  transform: scale(1);
  animation: none;
}

/* Sonar rings via ::before / ::after */
.whatsapp-btn.wa-ready::before,
.whatsapp-btn.wa-ready::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0;
  z-index: -1;
  animation: waRipple 2.4s ease-out infinite;
}
.whatsapp-btn.wa-ready::after { animation-delay: 0.8s; }

.whatsapp-btn:hover {
  transform: scale(1.12) rotate(8deg) !important;
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1) !important;
}

/* Tooltip span (replaces ::before pseudo tooltip) */
.wa-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--dark-bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.whatsapp-btn:hover .wa-tooltip { opacity: 1; }

@keyframes waSpring {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
@keyframes waRipple {
  0%   { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ============================================================
   PREFERS REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
