/* ==========================================================================
   FunnelExpert — Shared Base Styles
   Reset, typography, layout, buttons, nav, footer, modals, forms, animations.
   All templates inherit these. Template-specific CSS extends/overrides.
   ========================================================================== */

/* ==========================================================================
   CSS Variables (defaults — overridden by tenant config via :root inline)
   ========================================================================== */

:root {
  /* Brand colors (overridden per tenant) */
  --dark: #0A394E;
  --dark-lighter: #0C4862;
  --accent: #5C7A7A;
  --surface: #FCFCFC;
  --white: #FFFFFF;
  --text: #2a2a2a;
  --text-light: #555;

  /* Alias used across sections.css (mirrors --dark) */
  --bg-primary: var(--dark);

  /* Shadows (tinted, not black) */
  --shadow: 0 2px 20px rgba(10, 57, 78, .08);
  --shadow-lg: 0 8px 40px rgba(10, 57, 78, .12);

  /* Radii */
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Status colors */
  --success: #2D7A5E;
  --error: #B83B3B;
  --warning: #C47A1A;
  --info: #3A7D9E;

  /* Brand / 3rd-party colors */
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #20bd5a;
  --color-phone: #0099CC;
  --color-phone-hover: #0088b5;
  --color-star: #FFD700;

  /* z-index scale (frontend) */
  --z-nav: 1000;
  --z-social-proof: 9980;
  --z-fab: 9990;
  --z-cookie-overlay: 9998;
  --z-cookie: 9999;
  --z-lightbox: 10000;
}

/* Skip link (accessibility) */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10001;
  padding: 8px 16px;
  background: var(--dark);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body, 'Open Sans', system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-heading, 'Poppins', Georgia, serif);
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 1.2rem;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.4;
}

p {
  margin-bottom: 1.1rem;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 54px;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 44px;
  font-family: var(--font-heading, 'Poppins', Georgia, serif);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .4s cubic-bezier(.25, .46, .45, .94);
}

.btn-cta {
  background: var(--accent, var(--bg-primary));
  color: var(--white);
  font-size: 1.1rem;
  padding: 18px 44px;
  box-shadow: 0 4px 16px rgba(10, 57, 78, .2);
}

.btn-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(10, 57, 78, .3);
  filter: brightness(1.1);
}

.btn-subtle {
  background: rgba(255, 255, 255, .25);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(8px);
}

.btn-subtle:hover {
  background: rgba(255, 255, 255, .4);
  border-color: rgba(255, 255, 255, .5);
}

.btn-load-more {
  display: inline-block;
  padding: 14px 40px;
  font-family: var(--font-heading, 'Poppins', Georgia, serif);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: var(--bg-primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all .3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-load-more:hover {
  background: color-mix(in srgb, var(--bg-primary) 85%, white);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: 14px 0;
  transition: all .3s;
  background: rgba(10, 57, 78, .65);
  backdrop-filter: blur(8px);
}

.nav.scrolled {
  box-shadow: 0 2px 20px rgba(10, 57, 78, .2);
  padding: 10px 0;
  background: rgba(10, 57, 78, .97);
  backdrop-filter: blur(12px);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: var(--font-heading, 'Poppins', Georgia, serif);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo img { height: 42px; width: auto; border-radius: 8px; object-fit: contain; }

.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--dark, #0A394E);
  backdrop-filter: blur(12px);
  flex-direction: column;
  padding: 20px 24px;
  gap: 16px;
  list-style: none;
  align-items: center;
}

.nav-links.open { display: flex; }

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .9;
  transition: all .3s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}

.nav-links a:hover { opacity: 1; color: var(--accent, var(--white)); }

.nav-cta {
  padding: 10px 24px !important;
  font-size: .875rem !important;
  opacity: 1 !important;
  background: var(--accent, var(--bg-primary));
  color: var(--white) !important;
  border-radius: var(--radius-md, 8px);
  margin-left: 20px;
}

.nav-cta:hover { filter: brightness(1.15); }

/* Language switcher */
.lang-switcher {
  display: none;
  gap: 4px;
  align-items: center;
}

.lang-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  padding: 2px;
  opacity: .55;
  transition: all .3s cubic-bezier(.25, .46, .45, .94);
  display: flex;
  align-items: center;
}

.lang-btn:hover, .lang-btn.active { opacity: 1; border-color: var(--accent); }
.lang-btn svg { width: 22px; height: 14px; border-radius: 3px; display: block; }
.nav-links .lang-switcher-mobile {
  display: flex;
  gap: 6px;
  padding: 8px 0;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 8px;
  padding-top: 16px;
}

/* Mobile toggle */
.nav-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: all .3s;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg-primary);
  color: var(--white);
  padding: 44px 0 28px;
  text-align: center;
  font-size: .95rem;
}

.footer-host {
  font-family: var(--font-heading, 'Poppins', Georgia, serif);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  color: var(--white);
}

.footer-contact { display: flex; justify-content: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; flex-direction: column; align-items: center; }
.footer-contact a { color: rgba(255, 255, 255, .6); text-decoration: none; transition: color .3s; font-size: 1rem; }
.footer-contact a:hover { color: var(--accent); }

.footer-address { color: rgba(255, 255, 255, .45); font-size: .88rem; margin-bottom: 14px; }

.footer-legal {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.footer-legal a,
.footer-legal button {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, .45);
  font-size: .85rem;
  text-decoration: none;
  transition: color .3s;
  font-family: inherit;
}

.footer-legal a:hover, .footer-legal button:hover { color: var(--accent); }

.footer-credits { margin-top: 10px; font-size: .875rem; color: rgba(255, 255, 255, .25); }
.footer-credits a { color: rgba(255, 255, 255, .35); text-decoration: none; transition: color .3s; }
.footer-credits a:hover { color: var(--accent); }
.footer-watermark { font-size: .875rem; color: rgba(255, 255, 255, .35); margin-top: 6px; }
.footer-watermark a { color: rgba(255, 255, 255, .45); text-decoration: none; }
.footer-powered { font-size: .875rem; color: rgba(255, 255, 255, .2); margin-top: 4px; }
.footer-powered a { color: rgba(255, 255, 255, .3); text-decoration: none; }

/* ==========================================================================
   Modals
   ========================================================================== */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 57, 78, .6);
  z-index: var(--z-cookie);
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

/* Native <dialog> modal (replaces .modal-overlay) */
dialog.modal-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: none;
  width: auto;
  overflow: visible;
}
dialog.modal-dialog::backdrop {
  background: rgba(10, 57, 78, .6);
  backdrop-filter: blur(4px);
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 16px 48px rgba(10, 57, 78, .2);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  transition: color .3s;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover { color: var(--bg-primary); }

.modal h3 {
  font-size: 1.2rem;
  color: var(--bg-primary);
  margin-bottom: 20px;
}

.modal p, .modal li { font-size: .95rem; color: var(--text-light); line-height: 1.7; margin-bottom: 10px; }
.modal h4 { font-size: 1rem; color: var(--bg-primary); margin: 20px 0 10px; font-weight: 700; }
.modal ul { padding-left: 20px; }

/* ==========================================================================
   Forms (generic)
   ========================================================================== */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--bg-primary);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid var(--border, #D3DDE1);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color .3s, box-shadow .3s;
  width: 100%;
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 2px solid var(--accent, #5C7A7A);
  outline-offset: 2px;
  border-color: var(--accent, var(--bg-primary));
  box-shadow: 0 0 0 3px rgba(10, 57, 78, .15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-placeholder, #8A9DA5);
}

/* ==========================================================================
   Cookie Consent
   ========================================================================== */

.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-cookie-overlay);
  background: var(--dark, #1a1a2e);
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 16px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(10, 57, 78, .2);
}

.cookie-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .4);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color .3s;
}

.cookie-close:hover { color: var(--white); }

.cookie-text {
  color: rgba(255, 255, 255, .75);
  font-size: .9rem;
  text-align: center;
  margin-bottom: 16px;
}

.cookie-services {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.cookie-service {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  max-width: 280px;
  text-align: center;
}

.cookie-svc-name { font-weight: 600; color: var(--white); font-size: .9rem; margin-bottom: 4px; }
.cookie-svc-desc { font-size: .875rem; color: rgba(255, 255, 255, .5); line-height: 1.4; margin-bottom: 8px; }

.btn-cookie-accept {
  background: rgba(255, 255, 255, .15);
  border: none;
  color: rgba(255, 255, 255, .85);
  padding: 6px 16px;
  border-radius: var(--radius-md, 8px);
  cursor: pointer;
  font-size: .875rem;
  transition: all .3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-cookie-accept:hover { background: rgba(255, 255, 255, .25); color: #fff; }

.cookie-actions { display: flex; gap: 10px; justify-content: center; }

.btn-cookie-all {
  padding: 10px 28px;
  background: var(--accent, var(--bg-primary));
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: .9rem;
  transition: all .3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-cookie-all:hover { filter: brightness(1.1); }

.btn-cookie-essential {
  padding: 10px 28px;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .85);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: .9rem;
  transition: all .3s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-cookie-essential:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 57, 78, .92);
  z-index: var(--z-lightbox);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 98vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, .6);
  font-size: 2.2rem;
  cursor: pointer;
  transition: color .3s;
  z-index: 10;
}

.lightbox-close:hover { color: var(--white); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, .4);
  font-size: 2.5rem;
  cursor: pointer;
  transition: color .3s;
  z-index: 10;
  padding: 20px;
}

.lightbox-nav:hover { color: var(--white); }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

.lightbox video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-md);
}

#lightbox-embed {
  width: 80vw;
  height: 80vh;
  max-width: 1200px;
}

.lightbox-consent-prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 5;
}

.lightbox-consent-prompt .consent-inner {
  background: rgba(10, 57, 78, .95);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  max-width: 420px;
}

.lightbox-consent-prompt p {
  color: rgba(255, 255, 255, .8);
  font-size: .95rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.btn-consent-accept {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent, var(--bg-primary));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s;
}

.btn-consent-accept:hover { filter: brightness(1.1); transform: translateY(-2px); }

/* ==========================================================================
   Contact FAB (Floating Action Buttons)
   ========================================================================== */

.contact-fab {
  position: fixed;
  bottom: max(12px, env(safe-area-inset-bottom));
  right: 8px;
  z-index: var(--z-fab);
  display: flex;
  gap: 8px;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition: all .5s cubic-bezier(.25, .46, .45, .94);
  pointer-events: none;
}

.contact-fab.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.fab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  min-width: auto;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  color: var(--white);
  box-shadow: 0 2px 12px rgba(10, 57, 78, .15);
  transition: all .3s;
  opacity: 1;
}

.fab-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(10, 57, 78, .2); opacity: 1; }
.fab-btn-wa { background: var(--color-whatsapp); }
.fab-btn-wa:hover { background: var(--color-whatsapp-hover); }
.fab-btn-call { background: var(--color-phone); }
.fab-btn-call:hover { background: var(--color-phone-hover); }
.fab-icon { font-size: 1.1rem; line-height: 1; }
.fab-label { white-space: nowrap; display: none; }

/* ==========================================================================
   Social Proof Toast
   ========================================================================== */

.social-proof-toast {
  position: fixed;
  bottom: max(6px, env(safe-area-inset-bottom));
  left: 6px;
  z-index: var(--z-social-proof);
  background: var(--white);
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 200px;
  font-size: .875rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all .5s cubic-bezier(.25, .46, .45, .94);
  pointer-events: none;
}

.social-proof-toast.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

.toast-close {
  position: absolute;
  top: 4px; right: 8px;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1.1rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */

/* Scroll animations */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.25, .46, .45, .94); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.scale-in { opacity: 0; transform: scale(.88); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.25, .46, .45, .94); }
.scale-in.visible { opacity: 1; transform: scale(1); }

.slide-left { opacity: 0; transform: translateX(-50px); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.25, .46, .45, .94); }
.slide-left.visible { opacity: 1; transform: translateX(0); }

.slide-right { opacity: 0; transform: translateX(50px); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), transform .8s cubic-bezier(.25, .46, .45, .94); }
.slide-right.visible { opacity: 1; transform: translateX(0); }

.blur-in { opacity: 0; filter: blur(8px); transform: translateY(20px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), filter .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.25, .46, .45, .94); }
.blur-in.visible { opacity: 1; filter: blur(0); transform: translateY(0); }

/* Section title reveal */
.section h2 { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16, 1, .3, 1), transform .7s cubic-bezier(.25, .46, .45, .94); }
.section h2.visible { opacity: 1; transform: translateY(0); }

/* Stagger delays */
.stagger > .fade-in:nth-child(1), .stagger > .scale-in:nth-child(1) { transition-delay: .1s; }
.stagger > .fade-in:nth-child(2), .stagger > .scale-in:nth-child(2) { transition-delay: .2s; }
.stagger > .fade-in:nth-child(3), .stagger > .scale-in:nth-child(3) { transition-delay: .25s; }
.stagger > .fade-in:nth-child(4), .stagger > .scale-in:nth-child(4) { transition-delay: .3s; }
.stagger > .fade-in:nth-child(5), .stagger > .scale-in:nth-child(5) { transition-delay: .35s; }
.stagger > .fade-in:nth-child(6), .stagger > .scale-in:nth-child(6) { transition-delay: .4s; }
.stagger > .fade-in:nth-child(7), .stagger > .scale-in:nth-child(7) { transition-delay: .45s; }
.stagger > .fade-in:nth-child(8), .stagger > .scale-in:nth-child(8) { transition-delay: .5s; }
.stagger > .fade-in:nth-child(9), .stagger > .scale-in:nth-child(9) { transition-delay: .55s; }
.stagger > .fade-in:nth-child(10), .stagger > .scale-in:nth-child(10) { transition-delay: .6s; }
.stagger > .fade-in:nth-child(11), .stagger > .scale-in:nth-child(11) { transition-delay: .65s; }
.stagger > .fade-in:nth-child(12), .stagger > .scale-in:nth-child(12) { transition-delay: .7s; }

/* ==========================================================================
   Responsive — Mobile First (min-width breakpoints)
   ========================================================================== */

@media (min-width: 375px) {
  .modal { padding: 28px 20px; }
  .contact-fab { bottom: 16px; right: 12px; gap: 10px; }
  .fab-btn { width: 48px; height: 48px; padding: 12px; }
  .lightbox img { max-width: 95vw; max-height: 80vh; }
}

@media (min-width: 481px) {
  body { font-size: 18px; }
  .footer-contact { gap: 28px; flex-direction: row; }
  .nav-logo img { height: 48px !important; }
  .lightbox img { max-width: 90vw; max-height: 85vh; }
}

@media (min-width: 601px) {
  .modal { padding: 36px 32px; }
  .modal h3 { font-size: 1.4rem; }
  .fab-btn { padding: 12px 20px; border-radius: 28px; width: auto; height: auto; min-width: auto; opacity: .92; }
  .fab-label { display: inline; }
  .contact-fab { bottom: 24px; right: 20px; gap: 12px; flex-direction: row; }
  .social-proof-toast { bottom: 24px; left: 24px; max-width: 320px; padding: 14px 18px; font-size: .88rem; border-radius: var(--radius-md); }
  .nav-links { max-height: none; overflow-y: visible; }
}

@media (min-width: 768px) {
  .section { padding: 100px 0; }
  .cookie-consent { padding: 24px 32px; }
  .cookie-services { flex-direction: row; align-items: stretch; }
  .nav-logo img { height: 32px !important; }
  .lang-switcher { display: flex; }
}

@media (min-width: 901px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; position: static; background: none; flex-direction: row; padding: 0; gap: 20px; }
  .nav-links a { font-size: .875rem; letter-spacing: .5px; }
  .nav-links .lang-switcher-mobile { display: none; }
  .lang-switcher { display: flex; }
}

@media (min-width: 1081px) {
  .nav-links a { font-size: .875rem; letter-spacing: .5px; }
  .nav-links { gap: 20px; }
}

/* ==========================================================================
   Reduced Motion (vestibular disorders affect ~35% of adults over 40)
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .fade-in, .scale-in, .slide-left, .slide-right, .blur-in,
  .section h2 {
    transition: opacity .2s cubic-bezier(.16, 1, .3, 1) !important;
    transform: none !important;
    filter: none !important;
  }
  .social-proof-toast {
    transition: opacity .2s cubic-bezier(.16, 1, .3, 1) !important;
    transform: none !important;
  }
}
