/* =========================================================
   QUINTANA RUIZ ASESORES DE SEGUROS — DESIGN SYSTEM
   ========================================================= */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font: inherit; color: inherit; }
ul { list-style: none; }

/* SVG icon rendering — Safari & cross-browser fix */
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  overflow: visible;
  fill: currentColor;
}
svg[fill="none"] { fill: none; }

/* ---------- Design Tokens ---------- */
:root {
  /* Brand colors (from logo) */
  --color-primary: #1E5BBF;         /* bright brand blue */
  --color-primary-dark: #154A9F;
  --color-navy: #1A2556;            /* deep navy */
  --color-navy-dark: #121A3E;

  /* Accent */
  --color-accent: #FFB800;          /* premium gold CTA */
  --color-accent-dark: #E6A500;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1DA851;

  /* Neutrals */
  --color-white: #ffffff;
  --color-bg: #ffffff;
  --color-bg-soft: #F5F8FD;
  --color-bg-alt: #F0F4FA;
  --color-border: #E4E8F0;
  --color-text: #1A2556;
  --color-text-muted: #5A6784;
  --color-text-light: #8B93A7;

  /* Typography */
  --font-heading: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 37, 86, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 37, 86, 0.08);
  --shadow-lg: 0 10px 40px rgba(26, 37, 86, 0.10);
  --shadow-xl: 0 20px 60px rgba(26, 37, 86, 0.14);

  /* Layout */
  --container: 1200px;
  --container-narrow: 900px;
  --header-h: 100px;
}

/* ---------- Body ---------- */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--color-navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { color: var(--color-text-muted); }

.text-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.text-lead { font-size: 1.125rem; line-height: 1.7; color: var(--color-text-muted); }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

section { padding: clamp(64px, 8vw, 112px) 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-header p { margin-top: 12px; }

.bg-soft { background: var(--color-bg-soft); }
.bg-navy { background: var(--color-navy); color: #fff; }
.bg-navy h1, .bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy p  { color: rgba(255,255,255,0.82); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--color-accent); color: var(--color-navy); box-shadow: 0 6px 18px rgba(255, 184, 0, 0.32); }
.btn-primary:hover { background: var(--color-accent-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255, 184, 0, 0.4); }

.btn-secondary { background: var(--color-primary); color: #fff; }
.btn-secondary:hover { background: var(--color-primary-dark); transform: translateY(-2px); }

.btn-whatsapp { background: var(--color-whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--color-whatsapp-dark); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--color-navy); border: 2px solid var(--color-border); }
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary); }

.btn-ghost { background: transparent; color: var(--color-primary); padding: 8px 0; }
.btn-ghost:hover { color: var(--color-primary-dark); }

.btn-lg { padding: 18px 32px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { height: 88px; width: auto; display: block; }
.site-logo-text { font-family: var(--font-heading); font-weight: 700; color: var(--color-navy); font-size: 1.1rem; line-height: 1; }
.site-logo-text small { display: block; font-size: 0.65rem; font-weight: 500; letter-spacing: 0.08em; color: var(--color-text-light); text-transform: uppercase; margin-top: 3px; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav > ul { display: flex; gap: 32px; }
.site-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-navy);
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--color-primary); }
.site-nav a.active { color: var(--color-primary); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: '▾'; margin-left: 4px; font-size: 0.7em; opacity: 0.6;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -16px;
  min-width: 240px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
}
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}
.dropdown-menu a:hover { background: var(--color-bg-soft); color: var(--color-primary); }
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  color: var(--color-navy);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 10vw, 128px) 0 clamp(80px, 10vw, 128px);
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(30, 91, 191, 0.08), transparent 60%),
    radial-gradient(50% 60% at 10% 100%, rgba(26, 37, 86, 0.06), transparent 60%),
    linear-gradient(180deg, #fff 0%, var(--color-bg-soft) 100%);
  overflow: hidden;
}

/* ---------- Hero Photo (variant C – home + landings) ---------- */
.hero.hero-photo {
  padding: clamp(28px, 4vw, 56px) 0 clamp(72px, 9vw, 120px);
  background:
    linear-gradient(135deg, rgba(15, 26, 61, 0.92) 0%, rgba(30, 91, 191, 0.78) 100%),
    var(--bg-image, url('https://images.unsplash.com/photo-1521791136064-7986c2920216?w=1600&auto=format&fit=crop')) center / cover no-repeat;
  color: #fff;
}
.hero.hero-photo h1 { color: #fff; }
.hero.hero-photo h1 span {
  color: #FFB800;
}
.hero.hero-photo .text-lead { color: rgba(255, 255, 255, 0.88); }
.hero.hero-photo .hero-badge {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero.hero-photo .hero-badge strong { color: #fff; }
.hero.hero-photo .hero-trust { border-top-color: rgba(255, 255, 255, 0.20); }
.hero.hero-photo .hero-trust .trust-item strong { color: #fff; }
.hero.hero-photo .hero-trust .trust-item span { color: rgba(255, 255, 255, 0.72); }
.hero.hero-photo .floating-card {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.30);
}
.hero.hero-photo .hero-visual img { box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem; font-weight: 500;
  color: var(--color-text-muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.hero-badge strong { color: var(--color-navy); }
.hero-badge .stars { color: #FFB800; letter-spacing: 2px; }

.hero h1 { margin-bottom: 24px; }
.hero h1 span { color: var(--color-primary); }
.hero .text-lead { margin-bottom: 32px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust {
  display: flex; gap: 36px; flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.hero-trust .trust-item strong {
  display: block;
  font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700;
  color: var(--color-navy); line-height: 1;
}
.hero-trust .trust-item span { font-size: 0.85rem; color: var(--color-text-muted); }

.hero-visual {
  position: relative;
}
.hero-visual img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  object-fit: cover;
  aspect-ratio: 4/5;
}
.hero-visual .floating-card {
  position: absolute;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--color-border);
}
.hero-visual .floating-card.card-1 { top: 24px; left: -32px; }
.hero-visual .floating-card.card-2 { bottom: 40px; right: -24px; }
.hero-visual .floating-card .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
}
.hero-visual .floating-card strong { display: block; font-size: 0.95rem; color: var(--color-navy); }
.hero-visual .floating-card span { font-size: 0.78rem; color: var(--color-text-muted); }

/* ---------- Quick-select coberturas bar ---------- */
.quick-coverage {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  margin: -56px auto 0;
  position: relative;
  z-index: 5;
  max-width: var(--container);
}
.quick-coverage h3 { margin-bottom: 20px; font-size: 1.1rem; text-align: center; }
.quick-coverage-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.quick-coverage-grid a {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: all 0.2s;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-navy);
  background: var(--color-bg-soft);
}
.quick-coverage-grid a:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.quick-coverage-grid a svg { width: 32px; height: 32px; color: var(--color-primary); transition: color 0.2s; }
.quick-coverage-grid a:hover svg { color: #fff; }

/* ---------- Features / Why choose us ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all 0.25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.feature-card .icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-primary), var(--color-navy));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.feature-card .icon svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.95rem; }

/* ---------- Coverage cards grid ---------- */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.coverage-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  transition: all 0.3s;
  overflow: hidden;
  display: flex; flex-direction: column;
}
.coverage-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.coverage-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }
.coverage-card:hover::before { transform: scaleX(1); }
.coverage-card .icon {
  width: 64px; height: 64px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  color: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  transition: all 0.3s;
}
.coverage-card:hover .icon { background: var(--color-primary); color: #fff; }
.coverage-card .icon svg { width: 32px; height: 32px; }
.coverage-card h3 { margin-bottom: 12px; }
.coverage-card p { margin-bottom: 20px; flex: 1; }
.coverage-card .link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--color-primary); font-weight: 600; font-size: 0.92rem;
}
.coverage-card .link svg { width: 16px; height: 16px; transition: transform 0.2s; }
.coverage-card:hover .link svg { transform: translateX(4px); }

/* ---------- Companies carousel ---------- */
.companies-section { padding: 72px 0; background: #fff; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.companies-title { text-align: center; font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--color-text-light); margin-bottom: 36px; }

.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  flex-shrink: 0;
  height: 80px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 24px;
}
.marquee-item img {
  max-height: 56px;
  max-width: 170px;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  opacity: 0.85;
  transition: all 0.3s ease;
}
.marquee-item:hover img { filter: grayscale(0%); opacity: 1; transform: scale(1.05); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}
/* Variante para 2 miembros (home + nosotros) */
.team-grid.team-grid-pair {
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
}
@media (max-width: 640px) {
  .team-grid.team-grid-pair {
    grid-template-columns: minmax(0, 380px);
    justify-content: center;
  }
}
.team-card {
  background: #fff;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all 0.3s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.team-card-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: var(--color-bg-soft);
}
.team-card-body { padding: 24px; text-align: center; }
.team-card h4 { font-size: 1.15rem; margin-bottom: 4px; }
.team-card .role { color: var(--color-primary); font-weight: 600; font-size: 0.9rem; margin-bottom: 12px; }
.team-card .bio { font-size: 0.88rem; color: var(--color-text-muted); margin-bottom: 16px; }
.team-card .socials { display: flex; gap: 10px; justify-content: center; }
.team-card .socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  color: var(--color-navy);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.team-card .socials a:hover { background: var(--color-primary); color: #fff; }
.team-card .socials svg { width: 16px; height: 16px; }

/* ---------- Reviews ---------- */
.reviews-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 48px;
  gap: 32px; flex-wrap: wrap;
}
.google-score {
  display: flex; align-items: center; gap: 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  box-shadow: var(--shadow-sm);
}
.google-score .score-num { font-family: var(--font-heading); font-weight: 700; font-size: 2rem; color: var(--color-navy); line-height: 1; }
.google-score .stars { color: #FFB800; font-size: 1rem; letter-spacing: 2px; }
.google-score small { display: block; font-size: 0.78rem; color: var(--color-text-muted); margin-top: 4px; }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.review-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s;
  display: flex; flex-direction: column;
}
.review-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.review-card .stars { color: #FFB800; letter-spacing: 2px; margin-bottom: 12px; font-size: 0.95rem; }
.review-card .quote { color: var(--color-text); font-size: 0.95rem; line-height: 1.65; margin-bottom: 24px; flex: 1; }
.review-card .reviewer { display: flex; align-items: center; gap: 12px; }
.review-card .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-navy));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem;
  font-family: var(--font-heading);
}
.review-card .reviewer strong { display: block; font-size: 0.95rem; color: var(--color-navy); }
.review-card .reviewer span { font-size: 0.8rem; color: var(--color-text-muted); }
.review-card .google-mark {
  margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--color-border);
  font-size: 0.78rem; color: var(--color-text-light);
  display: flex; align-items: center; gap: 6px;
}

/* Leave-a-review CTA card */
.leave-review {
  margin-top: 56px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}
.leave-review-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 280px;
}
.leave-review-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FFB800, #FF9500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(255, 184, 0, 0.30);
}
.leave-review-content h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
  color: var(--color-navy);
}
.leave-review-content p {
  font-size: 0.92rem;
  margin: 0;
  color: var(--color-text-muted);
}
.leave-review-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .leave-review { padding: 24px 20px; gap: 20px; flex-direction: column; align-items: stretch; }
  .leave-review-actions { flex-direction: column; }
  .leave-review-actions .btn { width: 100%; }
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 960px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: all 0.3s;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.blog-card a:has(.blog-card-img) { display: block; }
.blog-card-img {
  width: 100%;
  height: 220px;
  display: block;
  object-fit: cover;
  background: var(--color-bg-soft);
}
.blog-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.blog-card .category {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.blog-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.blog-card h3 a:hover { color: var(--color-primary); }
.blog-card p { font-size: 0.9rem; margin-bottom: 18px; flex: 1; }
.blog-card .meta { font-size: 0.8rem; color: var(--color-text-muted); }

/* ---------- CTA Section ---------- */
.cta-section {
  background:
    radial-gradient(60% 100% at 80% 0%, rgba(30, 91, 191, 0.55), transparent 60%),
    radial-gradient(60% 100% at 20% 100%, rgba(255, 184, 0, 0.15), transparent 60%),
    var(--color-navy);
  color: #fff;
  text-align: center;
  border-radius: var(--radius-xl);
  padding: clamp(56px, 8vw, 96px) clamp(24px, 5vw, 64px);
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { color: rgba(255,255,255,0.82); font-size: 1.1rem; margin-bottom: 32px; max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-section .hero-cta { justify-content: center; margin-bottom: 0; }

/* CTA Promo (10% descuento — Home) */
.cta-section.cta-promo {
  background:
    radial-gradient(70% 100% at 80% 0%, rgba(255, 184, 0, 0.30), transparent 60%),
    radial-gradient(60% 100% at 20% 100%, rgba(30, 91, 191, 0.45), transparent 60%),
    linear-gradient(135deg, #0F1A3D 0%, #1A2556 60%, #1E5BBF 100%);
}
.cta-section .promo-badge {
  display: inline-block;
  background: #FFB800;
  color: #1A2556;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 20px;
  box-shadow: 0 6px 20px rgba(255, 184, 0, 0.35);
}
.cta-section .discount-num {
  color: #FFB800;
  font-size: 1.15em;
  font-weight: 800;
}
.cta-section .promo-fineprint {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin: 24px auto 0;
  max-width: 560px;
}

/* Outline button on dark backgrounds */
.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn-outline-light.btn-lg { padding: 18px 32px; font-size: 1rem; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255, 255, 255, 0.10); transform: translateY(-2px); }

/* ---------- Forms ---------- */
.form-wrap {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 48px);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--color-navy); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-navy);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(30, 91, 191, 0.1);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-consent { font-size: 0.85rem; color: var(--color-text-muted); display: flex; gap: 10px; align-items: flex-start; margin: 10px 0 20px; }
.form-submit { width: 100%; padding: 16px; font-size: 1rem; }

/* ---------- Promo Modal ---------- */
.promo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: promo-fade 0.3s ease;
}
.promo-modal[hidden] { display: none !important; }
.promo-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 14, 35, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.promo-modal-content {
  position: relative;
  z-index: 1;
  max-width: 460px;
  width: 100%;
  background:
    radial-gradient(70% 100% at 80% 0%, rgba(255, 184, 0, 0.22), transparent 60%),
    linear-gradient(135deg, #0F1A3D 0%, #1A2556 60%, #1E5BBF 100%);
  color: #fff;
  border-radius: 24px;
  padding: 48px 36px 32px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: promo-bounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
}
.promo-modal-content::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 184, 0, 0.20) 0%, transparent 70%);
  pointer-events: none;
}
.promo-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}
.promo-modal-close:hover { background: rgba(255, 255, 255, 0.22); }

.promo-modal-badge {
  display: inline-block;
  background: #FFB800;
  color: #1A2556;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 24px;
  box-shadow: 0 6px 18px rgba(255, 184, 0, 0.35);
}
.promo-modal-discount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
  line-height: 1;
}
.promo-modal-discount .discount-num-big {
  font-family: var(--font-heading);
  font-size: 5rem;
  font-weight: 800;
  color: #FFB800;
  line-height: 0.95;
  text-shadow: 0 4px 24px rgba(255, 184, 0, 0.40);
}
.promo-modal-discount .discount-off {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
}
.promo-modal-content h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.promo-modal-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-bottom: 28px;
  line-height: 1.6;
}
.promo-modal-cta {
  width: 100%;
  margin-bottom: 14px;
}
.promo-modal-dismiss {
  display: block;
  margin: 0 auto;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 8px 16px;
  transition: color 0.2s;
}
.promo-modal-dismiss:hover { color: rgba(255, 255, 255, 0.85); }
.promo-modal-fineprint {
  font-size: 0.72rem !important;
  color: rgba(255, 255, 255, 0.40) !important;
  margin: 18px 0 0 !important;
}

@keyframes promo-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes promo-bounce {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@media (max-width: 480px) {
  .promo-modal { padding: 16px; }
  .promo-modal-content { padding: 40px 24px 26px; }
  .promo-modal-discount .discount-num-big { font-size: 4rem; }
  .promo-modal-discount .discount-off { font-size: 1.5rem; }
  .promo-modal-content h3 { font-size: 1.25rem; }
}

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  background: var(--color-whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38);
  z-index: 90;
  animation: wa-pulse 2.4s infinite;
  transition: transform 0.2s;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 34px; height: 34px; }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38), 0 0 0 0 rgba(37, 211, 102, 0.45); }
  50% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.38), 0 0 0 16px rgba(37, 211, 102, 0); }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.72);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}
.footer-brand img {
  height: 88px;
  width: auto;
  margin-bottom: 18px;
  background: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: inline-block;
}
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-bottom: 20px; max-width: 320px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: all 0.2s;
}
.footer-social a:hover { background: var(--color-primary); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; }

.site-footer h5 { color: #fff; font-size: 1rem; margin-bottom: 18px; font-family: var(--font-heading); }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { font-size: 0.9rem; color: rgba(255,255,255,0.7); transition: color 0.2s; }
.site-footer ul a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.footer-contact svg { width: 18px; height: 18px; color: var(--color-primary); flex-shrink: 0; margin-top: 2px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-bottom a:hover { color: #fff; }
.footer-bottom .credit-link {
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.footer-bottom .credit-link:hover { color: #ffffff; text-decoration: underline; }

/* ---------- Page Headers (interior pages) ---------- */
.page-header {
  background:
    radial-gradient(60% 80% at 80% 20%, rgba(30, 91, 191, 0.10), transparent 60%),
    linear-gradient(180deg, var(--color-bg-soft) 0%, #fff 100%);
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
  text-align: center;
}
.page-header .breadcrumbs { font-size: 0.85rem; color: var(--color-text-muted); margin-bottom: 16px; }
.page-header .breadcrumbs a { color: var(--color-primary); }
.page-header h1 { margin-bottom: 16px; }
.page-header p { font-size: 1.1rem; max-width: 720px; margin: 0 auto; }

/* Page header with photo background (variant) */
.page-header.page-header-photo {
  background:
    linear-gradient(135deg, rgba(15, 26, 61, 0.86) 0%, rgba(30, 91, 191, 0.74) 100%),
    var(--bg-image, none) center / cover no-repeat;
  color: #fff;
  position: relative;
}
.page-header.page-header-photo h1 { color: #fff; }
.page-header.page-header-photo p { color: rgba(255, 255, 255, 0.90); }
.page-header.page-header-photo .breadcrumbs { color: rgba(255, 255, 255, 0.72); }
.page-header.page-header-photo .breadcrumbs a { color: #FFB800; }

/* ---------- Two-column content section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-image img {
  width: 100%; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3; object-fit: cover;
}
.split ul { margin-top: 18px; }
.split ul li {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 14px;
  color: var(--color-text);
}
.split ul li svg {
  width: 22px; height: 22px;
  color: var(--color-accent);
  flex-shrink: 0; margin-top: 2px;
}

/* ---------- Values / Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat {
  padding: 32px 20px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.stat .num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat .label { color: var(--color-text-muted); font-size: 0.9rem; }

/* ---------- Values grid ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.value-item {
  text-align: center;
  padding: 32px 20px;
}
.value-item .icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--color-bg-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
}
.value-item .icon svg { width: 32px; height: 32px; }
.value-item h4 { margin-bottom: 10px; font-size: 1.1rem; }

/* ---------- Compare table ---------- */
.compare-table {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.compare-table table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td {
  padding: 18px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
.compare-table th {
  background: var(--color-bg-soft);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--color-navy);
}
.compare-table td.yes { color: #16a34a; font-weight: 600; }
.compare-table td.no { color: var(--color-text-light); }
.compare-table tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: var(--color-navy);
  font-family: var(--font-heading);
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem; color: var(--color-primary); font-weight: 400;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body {
  padding: 0 24px 22px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Article (blog) ---------- */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) 24px;
}
.article .category {
  display: inline-block;
  font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.article h1 { margin-bottom: 20px; }
.article .meta { color: var(--color-text-muted); font-size: 0.9rem; margin-bottom: 32px; display: flex; gap: 16px; flex-wrap: wrap; }
.article img.featured {
  width: 100%;
  max-height: 420px;
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 32px;
  display: block;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 16px 0;
  display: block;
}
.article-body h2 { margin: 40px 0 16px; font-size: 1.7rem; }
.article-body h3 { margin: 32px 0 14px; font-size: 1.25rem; }
.article-body p { margin-bottom: 20px; color: var(--color-text); line-height: 1.8; }
.article-body ul, .article-body ol { padding-left: 1.2rem; margin-bottom: 20px; }
.article-body ul li, .article-body ol li { margin-bottom: 10px; color: var(--color-text); }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 12px 20px;
  margin: 28px 0;
  background: var(--color-bg-soft);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-navy);
  font-style: italic;
}
.article-cta {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
  text-align: center;
}
.article-cta h3 { margin-bottom: 10px; }
.article-cta p { margin-bottom: 20px; }

/* ---------- Utils ---------- */
.text-center { text-align: center; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.mb-sm { margin-bottom: 12px; }
.mb-md { margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .hero-visual .floating-card.card-1 { left: 0; }
  .hero-visual .floating-card.card-2 { right: 0; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-image { order: -1; }
  .quick-coverage-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --header-h: 88px; }
  .site-logo img { height: 72px; }

  .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px; gap: 0; border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-lg); align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .site-nav > ul { flex-direction: column; gap: 0; width: 100%; }
  .site-nav > ul > li { border-bottom: 1px solid var(--color-border); }
  .site-nav > ul > li:last-child { border-bottom: 0; }
  .site-nav a { display: block; padding: 14px 4px; }
  .dropdown-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 16px; min-width: auto; }
  .nav-cta .btn:not(.btn-primary) { display: none; }
  .nav-toggle { display: inline-flex; }

  .form-row { grid-template-columns: 1fr; }
  .quick-coverage { margin-top: -24px; padding: 20px; }
  .quick-coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .hero-trust { gap: 24px; }
  .reviews-header { flex-direction: column; align-items: flex-start; }
  .whatsapp-float { width: 54px; height: 54px; bottom: 18px; right: 18px; }
}

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .container { padding: 0 20px; }
  .page-header { padding: 44px 0 36px; }
  .section-header { margin-bottom: 36px; }

  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-visual .floating-card { display: none; }
  .hero-visual img { aspect-ratio: 3/4; }
  .hero-trust { gap: 20px; padding-top: 24px; }
  .hero-trust .trust-item strong { font-size: 1.35rem; }
  .hero-badge { font-size: 0.78rem; padding: 6px 12px; }

  .quick-coverage { margin-top: -18px; padding: 18px 14px; }
  .quick-coverage-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .quick-coverage-grid a { padding: 16px 8px; font-size: 0.85rem; }
  .quick-coverage-grid a svg { width: 26px; height: 26px; }

  .feature-card { padding: 24px 22px; }
  .coverage-card { padding: 28px 22px; }

  .cta-section { padding: 48px 22px; border-radius: var(--radius-lg); }
  .cta-section .hero-cta { flex-direction: column; align-items: stretch; }

  .form-wrap { padding: 24px 20px; }
  .stats-grid { gap: 14px; }
  .stat { padding: 22px 14px; }
  .stat .num { font-size: 2rem; }

  .reviews-header { flex-direction: column; align-items: flex-start; gap: 18px; }
  .google-score { width: 100%; }

  :root { --header-h: 76px; }
  .site-logo img { height: 60px; }

  .logo-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .logo-cell { height: 92px !important; font-size: 0.95rem !important; }
}

@media (max-width: 400px) {
  :root { --header-h: 66px; }
  .site-logo img { height: 50px; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.4rem; }
  .hero-trust { gap: 14px; }
  .hero-trust .trust-item strong { font-size: 1.2rem; }
  .hero-trust .trust-item span { font-size: 0.75rem; }
  .container { padding: 0 16px; }
  .hero-trust { flex-wrap: wrap; }
  .hero-trust .trust-item { flex: 1; min-width: 30%; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
