/* Manu Silva — Financial Advisor | Dark Premium Design — REDESIGN */
:root {
  --bg-deep: #05060a;
  --bg-offset: #0c0e14;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #60607a;
  --accent: #2997ff;
  --accent-glow: rgba(41, 151, 255, 0.3);
  --accent-purple: #a855f7;
  --accent-pink: #ec4899;
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur: 32px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 40px;
  --font-sans: "Inter", -apple-system, sans-serif;
  --font-serif: "Playfair Display", serif;
  --nav-h: 72px;
  --section-gap: 100px;
  --max-w: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

/* --- Remove Number Input Spinners --- */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

/* Parallax Section */
.parallax-bg {
  position: absolute;
  top: -20%;
  left: 0;
  width: 100%;
  height: 140%;
  background-size: cover;
  background-position: center;
  opacity: 0.12;
  z-index: -1;
  pointer-events: none;
}

/* Fluid Background */
.fluid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-deep);
}

.blob {
  position: absolute;
  filter: blur(140px);
  opacity: 0.15;
  border-radius: 50%;
  animation: blobMove 30s infinite alternate;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, var(--accent), transparent 70%);
}

.blob-2 {
  bottom: -15%;
  right: -10%;
  width: 75vw;
  height: 75vw;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
  animation-delay: -10s;
  animation-direction: alternate-reverse;
}

@keyframes blobMove {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(120px, 60px) scale(1.15);
  }
}

/* Layout & Contrast */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--section-gap) 0;
  position: relative;
}

.section-offset {
  background: var(--bg-offset);
}

/* ─── DARK SECTIONS ─── */
.section-dark {
  background: var(--bg-deep);
  color: var(--text-primary);
}

/* ─── LIGHT SECTIONS — Apple-inspired ─── */
.section-light {
  background: #f5f5f7;
  color: #1d1d1f;
}

.section-light h2,
.section-light h3,
.section-light h4,
.section-light strong {
  color: #1d1d1f;
}

.section-light p {
  color: #424245;
}

.section-light .section-label {
  color: var(--accent);
}

.section-light .section-header h2 {
  color: #1d1d1f;
}

.section-light .section-header p {
  color: #6e6e73;
}

/* ── Glass cards in light sections ── */
.section-light .credential-item,
.section-light .trust-item {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.04),
    0 1px 2px rgba(0, 0, 0, 0.03);
}

.section-light .credential-item:hover,
.section-light .trust-item:hover {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.section-light .credential-item i,
.section-light .trust-icon {
  color: var(--accent);
}

.section-light .credential-item p,
.section-light .trust-text p {
  color: #6e6e73;
}

/* ── About section in light ── */
.section-light .about-text p {
  color: #424245;
}

.section-light .icon-list li {
  color: #424245;
}

.section-light .icon-list li i {
  color: var(--accent);
}

/* ── Form inputs in light sections ── */
.section-light input[type="number"],
.section-light input[type="email"],
.section-light input[type="text"],
.section-light input[type="tel"],
.section-light textarea,
.section-light select {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #1d1d1f;
}

.section-light input[type="number"]::placeholder,
.section-light input[type="email"]::placeholder,
.section-light input[type="text"]::placeholder,
.section-light input[type="tel"]::placeholder,
.section-light textarea::placeholder {
  color: #86868b;
}

.section-light input[type="number"]:focus,
.section-light input[type="email"]:focus,
.section-light input[type="text"]:focus,
.section-light input[type="tel"]:focus,
.section-light textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.12);
}

.section-light .input-unit {
  color: #6e6e73;
}

.section-light label {
  color: #424245;
}

.section-light .range-value {
  color: #1d1d1f;
}

.section-light .range-slider {
  background: rgba(0, 0, 0, 0.08);
}

/* ── Office details in light ── */
.section-light .office-detail a {
  color: var(--accent);
}

/* ── Contact QR in light ── */
.section-light .contact-qr {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.section-light .contact-qr p {
  color: #6e6e73;
}

/* Added Contrast Divider */
.section-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--glass-border),
    transparent
  );
  width: 100%;
}

.section-label {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 24px;
  display: inline-block;
}

.section-header {
  max-width: 750px;
  margin-bottom: 72px;
}

.section-header h2 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.2rem;
  line-height: 1.5;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 42px;
  background: var(--accent);
  color: #fff !important;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 100px;
  transition: all 0.4s var(--ease-out);
  box-shadow: 0 15px 30px rgba(41, 151, 255, 0.25);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #1a8bff;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 20px 40px var(--accent-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  transition: all 0.4s var(--ease-out);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Navbar */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: all 0.5s var(--ease-out);
}

#navbar.scrolled {
  background: rgba(5, 6, 10, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--glass-border);
  height: 64px;
}

/* Navbar on light sections */
#navbar.nav-on-light {
  --nav-text: #1d1d1f;
  --nav-text-sec: #424245;
}

#navbar.nav-on-light .logo {
  color: #1d1d1f;
}

#navbar.nav-on-light nav a {
  color: #424245;
}

#navbar.nav-on-light nav a:hover {
  color: #1d1d1f;
}

#navbar.nav-on-light .hamburger span {
  background: #1d1d1f;
}

#navbar.nav-on-light .nav-social a {
  color: #424245;
}

#navbar.nav-on-light .nav-social a:hover {
  color: var(--accent);
}

#navbar.nav-on-light.scrolled {
  background: rgba(245, 245, 247, 0.85);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#navbar.nav-on-light .logo-subtitle {
  color: #6e6e73;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  color: var(--text-primary);
}

.logo-accent {
  color: var(--accent);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 48px;
  align-items: center;
}

nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s;
}

nav a:hover {
  color: var(--text-primary);
}

.btn-nav {
  padding: 10px 24px;
  background: var(--accent);
  border-radius: 100px;
  color: #fff !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 4px;
  transition: all 0.4s var(--ease-out);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Logo subtitle */
.logo-subtitle {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1;
  text-align: center;
}

/* Nav Social Icons */
.nav-social {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-left: 24px;
}

.nav-social a {
  color: var(--text-secondary);
  font-size: 1.15rem;
  transition: all 0.3s var(--ease-out);
}

.nav-social a:hover {
  color: var(--accent);
  transform: scale(1.15);
}

/* WhatsApp Floating Action Button */
.whatsapp-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.4s var(--ease-out);
  animation: waPulse 2.5s infinite;
}

.whatsapp-fab svg {
  width: 28px;
  height: 28px;
}

.whatsapp-fab:hover {
  transform: scale(1.12) translateY(-4px);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.5);
}

@keyframes waPulse {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow:
      0 8px 32px rgba(37, 211, 102, 0.6),
      0 0 0 12px rgba(37, 211, 102, 0.08);
  }
}

/* Range slider styling */
.range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  outline: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(41, 151, 255, 0.4);
  transition: transform 0.2s;
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.range-value {
  text-align: center;
  margin-top: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

/* Hero */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #b0b0c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-agent {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 24px;
}

.hero-text h1 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  opacity: 0.9;
}

/* Trust Grid */
#trust {
  padding: 60px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all 0.4s var(--ease-out);
}

.trust-item:hover {
  background: var(--bg-card-hover);
  transform: translateY(-8px);
}

.trust-icon {
  font-size: 2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.trust-text h4 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  font-weight: 800;
}

.trust-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 48px;
  max-width: 550px;
}

/* Global paragraph spacing */
.about-text p,
.section-header p,
.cta-content p,
.hero-subtitle {
  margin-bottom: 24px;
}

.about-text p:last-of-type {
  margin-bottom: 0;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-text h2 {
  margin-bottom: 28px;
}

.about-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 40px;
  margin-bottom: 24px;
  color: #1d1d1f;
}

.about-bullets {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.about-bullets li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 20px;
  line-height: 1.6;
  color: #424245;
}

.about-bullets li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
  font-size: 1.8rem;
  line-height: 1;
}

.about-highlight {
  font-size: 1.2rem;
  font-weight: 500;
  color: #1d1d1f;
  background: rgba(41, 151, 255, 0.05);
  border-left: 4px solid var(--accent);
  padding: 24px 32px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  line-height: 1.5;
  margin-top: 48px;
  font-style: italic;
}

/* Image placeholder in About */
.about-image-placeholder {
  margin-top: 40px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.about-image-placeholder img {
  width: 100%;
  height: auto;
  display: block;
}

/* Credentials list (right column) */
.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.credentials-title {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.credential-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  transition: all 0.4s var(--ease-out);
}

.credential-item:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: rgba(41, 151, 255, 0.3);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.credential-item i {
  font-size: 1.4rem;
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.credential-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}

.credential-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* Service Cards REDESIGN */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all 0.5s var(--ease-out);
  display: flex;
  flex-direction: column;
  text-align: center;
  height: 100%;
  position: relative;
  padding: 0; /* NO PADDING at card level */
}

.service-card:hover {
  transform: translateY(-12px);
  border-color: rgba(41, 151, 255, 0.5);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.7);
  background: rgba(255, 255, 255, 0.06);
}

/* Full Bleed Image */
.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.5s var(--ease-out);
}

.card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 60%,
    var(--bg-offset) 100%
  );
}

.service-card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: 24px 20px 32px; /* Tighter margins as requested */
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(
    135deg,
    rgba(41, 151, 255, 0.2),
    rgba(41, 151, 255, 0.05)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 20px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  line-height: 1.2;
  font-weight: 800;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-tag {
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #fff;
  padding: 8px 20px;
  background: var(--accent);
  border-radius: 100px;
  box-shadow: 0 8px 12px rgba(41, 151, 255, 0.3);
  letter-spacing: 0.08em;
}

/* Simulator */
.simulator-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(var(--glass-blur));
  overflow: hidden;
}

.simulator-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 48px;
  align-items: stretch;
}

.simulator-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-width: 0; /* Prevent overflow */
}

.simulator-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.simulator-chart {
  flex: 1;
  min-height: 350px;
  position: relative;
}

.simulator-chart canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

.results-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
}

.result-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.result-row strong {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: 800;
}

.result-row.total strong {
  color: #fff;
  font-size: 1.6rem;
}

/* Contact — Unified Section */
.contact-unified {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.06);
}

.contact-map {
  min-height: 480px;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
}

.contact-details {
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Contact action cards */
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-action-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-action-card.whatsapp {
  background: rgba(37, 211, 102, 0.06);
  border-color: rgba(37, 211, 102, 0.15);
}

.contact-action-card.whatsapp:hover {
  background: rgba(37, 211, 102, 0.12);
  transform: translateX(6px);
}

.contact-action-card.email {
  background: rgba(41, 151, 255, 0.06);
  border-color: rgba(41, 151, 255, 0.15);
}

.contact-action-card.email:hover {
  background: rgba(41, 151, 255, 0.12);
  transform: translateX(6px);
}

.contact-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-action-card.whatsapp .contact-action-icon {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}

.contact-action-card.email .contact-action-icon {
  background: rgba(41, 151, 255, 0.15);
  color: var(--accent);
}

.contact-action-icon svg {
  width: 20px;
  height: 20px;
}

.contact-action-card div {
  flex: 1;
}

.contact-action-card strong {
  display: block;
  font-size: 0.95rem;
  color: #1d1d1f;
  margin-bottom: 2px;
}

.contact-action-card span {
  font-size: 0.82rem;
  color: #6e6e73;
}

.contact-action-arrow {
  color: #86868b;
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.contact-action-card:hover .contact-action-arrow {
  transform: translateX(4px);
  color: #1d1d1f;
}

/* Office info */
.office-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.office-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.office-detail:last-child {
  border-bottom: none;
}

.office-detail i {
  color: var(--accent);
  width: 18px;
  text-align: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.office-detail strong {
  display: block;
  font-size: 0.85rem;
  color: #1d1d1f;
}

.office-detail p {
  font-size: 0.82rem;
  color: #6e6e73;
  margin: 0;
}

.office-detail a {
  color: var(--accent);
  text-decoration: none;
}

.office-detail a:hover {
  text-decoration: underline;
}

/* Contact bottom actions */
.contact-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Hide Add to Contacts on desktop */
.btn-add-contact {
  display: none !important;
}

.contact-bottom-actions .contact-qr {
  margin-right: auto;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: 100px;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  background: transparent;
  color: #1d1d1f;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(41, 151, 255, 0.04);
}

input,
textarea {
  width: 100%;
  padding: 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #fff;
  outline: none;
}

footer {
  padding: 80px 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.footer-links {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 24px;
  color: var(--text-secondary);
}

.footer-copy {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.85rem;
  color: #86868b;
}

/* CTA Section — Light redesign (Enriched) */
/* CTA Premium Section — Reimagined */
.cta-premium {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
  color: white;
  border-top: 1px solid var(--glass-border);
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

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

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 6, 10, 0.95) 0%,
    rgba(5, 6, 10, 0.6) 40%,
    rgba(5, 6, 10, 0.2) 100%
  );
  z-index: 1;
}

.cta-card-premium {
  position: relative;
  z-index: 2;
  max-width: 750px;
}

.cta-card-premium h2 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}

.text-accent-gradient {
  background: linear-gradient(135deg, var(--accent) 0%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.cta-card-premium p {
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-bottom: 48px;
  max-width: 620px;
  line-height: 1.5;
  font-weight: 400;
}

.cta-bullets {
  display: flex;
  gap: 40px;
  margin-bottom: 56px;
}

.cta-bullet {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 1.05rem;
  color: white;
}

.cta-bullet i {
  color: var(--accent);
  font-size: 1.3rem;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.cta-buttons {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-premium .btn-primary {
  padding: 20px 48px;
  font-size: 1.15rem;
  box-shadow: 0 20px 40px -10px rgba(41, 151, 255, 0.4);
}

.cta-premium .btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px 40px;
  font-size: 1.15rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.cta-premium .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  .cta-premium {
    padding: 100px 0;
    text-align: center;
  }
  .cta-overlay {
    background: linear-gradient(
      180deg,
      rgba(5, 6, 10, 0.9) 0%,
      rgba(5, 6, 10, 0.8) 100%
    );
  }
  .cta-card-premium {
    margin: 0 auto;
  }
  .cta-card-premium p {
    margin-inline: auto;
  }
  .cta-bullets {
    justify-content: center;
    gap: 24px;
    flex-direction: column;
    align-items: center;
  }
  .cta-buttons {
    justify-content: center;
    flex-direction: column;
    gap: 16px;
  }
  .cta-buttons .btn {
    width: 100%;
  }
}

/* Testimonials — Horizontal Scroll */
.testimonials-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 12px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.testimonials-scroll::-webkit-scrollbar {
  height: 6px;
}

.testimonials-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.testimonials-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 100px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.5s var(--ease-out);
  min-width: 320px;
  max-width: 380px;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.testimonial-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-8px);
  border-color: rgba(41, 151, 255, 0.3);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.testimonial-stars {
  font-size: 1.2rem;
  color: #f59e0b;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--glass-border);
}

.testimonial-author strong {
  font-size: 1rem;
  color: var(--text-primary);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

/* Location / Encuéntrame */
.location-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: start;
}

.map-embed {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}

.map-embed iframe {
  display: block;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 16px;
}

.location-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

/* ── Back to Top Button ── */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 100px;
  width: 50px;
  height: 50px;
  background: rgba(41, 151, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-dark);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(41, 151, 255, 0.4);
}

@media (max-width: 768px) {
  .whatsapp-fab {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  .whatsapp-fab svg {
    width: 28px;
    height: 28px;
  }
  .back-to-top {
    bottom: 20px;
    right: 85px; /* Stay clear of whatsapp button */
    width: 45px;
    height: 45px;
  }
}

.location-detail i {
  font-size: 1.3rem;
  color: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}

.location-detail strong {
  display: block;
  margin-bottom: 4px;
}

.location-detail p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
/* Contact QR & vCard */
.contact-qr {
  text-align: center;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.contact-qr img {
  margin: 0 auto 12px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.contact-qr p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Desktop: show QR, hide add-to-contacts */
.btn-add-contact {
  display: none;
}

/* ═══════════════════════════════════════
   WOW EFFECTS
   ═══════════════════════════════════════ */

/* ── Smooth Scroll ── */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

/* ── Custom Cursor Removed ── */

/* ── Magnetic Buttons ── */
.btn-primary,
.btn-nav {
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}

/* ── Hover Spotlight on Cards ── */
.service-card,
.testimonial-card,
.credential-item,
.trust-item,
.contact-action-card,
.cta-card {
  position: relative;
  overflow: hidden;
}

.service-card::after,
.testimonial-card::after,
.credential-item::after,
.trust-item::after,
.cta-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle 200px at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.08),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 1;
}

.service-card:hover::after,
.testimonial-card:hover::after,
.credential-item:hover::after,
.trust-item:hover::after,
.cta-card:hover::after {
  opacity: 1;
}

/* Light sections: darker spotlight */
.section-light .service-card::after,
.section-light .credential-item::after,
.section-light .trust-item::after,
.section-light .cta-card::after {
  background: radial-gradient(
    circle 200px at var(--mx, 50%) var(--my, 50%),
    rgba(41, 151, 255, 0.07),
    transparent 60%
  );
}

/* ── Animations — Reveal with Spring ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-child {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.reveal.visible .reveal-child {
  opacity: 1;
  transform: translateY(0);
}

/* Delay Utils */
.delay-1 {
  transition-delay: 200ms !important;
}
.delay-1-5 {
  transition-delay: 350ms !important;
}
.delay-2 {
  transition-delay: 500ms !important;
}
.delay-3 {
  transition-delay: 800ms !important;
}

/* ── Accessibility: Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  .reveal-child {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 1023px) {
  /* Mobile brightness — slightly lighter backgrounds */
  :root {
    --bg-deep: #0e1018;
    --bg-offset: #151820;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.09);
  }

  .fluid-bg .blob {
    opacity: 0.22;
  }

  body,
  html {
    overflow-x: hidden !important;
    position: relative;
    width: 100%;
  }

  .hero-grid,
  .simulator-grid {
    grid-template-columns: 1fr;
    text-align: center;
    width: 100%;
    margin: 0 auto;
  }
  .hero-subtitle {
    margin-inline: auto;
  }
  .hero-agent {
    margin-bottom: 16px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    text-align: left; /* Keep left alignment on mobile */
    gap: 48px;
  }
  .credentials-list {
    text-align: left;
  }
  .services-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
  }
  .testimonial-card {
    min-width: 280px;
  }
  .nav-inner nav {
    display: none;
  }
  .nav-social {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  /* Contact unified — stack on mobile */
  .contact-unified {
    grid-template-columns: 1fr;
  }
  .contact-map {
    min-height: 300px;
    max-height: 300px;
  }
  .contact-details {
    padding: 28px 24px;
  }
  /* Mobile: hide QR, show add-to-contacts */
  .contact-qr {
    display: none;
  }
  .btn-add-contact {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  .contact-bottom-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }
  /* CTA card responsive */
  .cta-card {
    padding: 48px 28px;
  }
  .cta-features {
    flex-direction: column;
    gap: 12px;
  }

  /* Simulator Mobile Adjustments */
  .simulator-card {
    padding: 24px 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .simulator-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  .simulator-form,
  .simulator-right,
  .simulator-chart,
  .results-summary {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  .results-summary {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 16px !important;
  }
  .result-row {
    flex-direction: row !important;
    justify-content: space-between !important;
    width: 100% !important;
  }
  .simulator-chart {
    min-height: 250px !important;
    height: auto !important;
  }
  canvas {
    max-width: 100% !important;
  }
  input[type="number"],
  .input-with-unit,
  .range-slider {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .container {
    padding: 0 16px !important;
    overflow-x: hidden !important;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .credential-item {
    padding: 16px;
  }
  h1 {
    font-size: 3rem !important;
  }
  .testimonial-card {
    min-width: 260px;
    padding: 28px 20px;
  }
  .whatsapp-fab {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
  .whatsapp-fab svg {
    width: 24px;
    height: 24px;
  }
}
