/* ================================================
   Consultoría Louis Pasteur – Design System v2
   Inspirado en m3consulting.com.mx
   Paleta original mantenida
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---------- Variables ---------- */
:root {
  --bg: #ffffff;
  --bg-alt: #f8f9fb;
  --muted: #f3f4f6;
  --text: #0d2d44;
  --sub: #3c3f42;
  --accent: #debc2a;
  --accent-hover: #c9a91e;
  --border: #e7eaee;
  --shadow-sm: 0 2px 8px rgba(13, 45, 68, .06);
  --shadow: 0 10px 30px rgba(13, 45, 68, .08);
  --shadow-lg: 0 20px 50px rgba(13, 45, 68, .12);
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--sub);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 72px 0;
}

.section-muted {
  background: var(--bg-alt);
}

.center {
  text-align: center;
}

.muted {
  color: #66727c;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text);
  line-height: 1.15;
  font-weight: 800;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 18px;
}

h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  margin: 0 0 14px;
}

h3 {
  font-size: clamp(18px, 2.5vw, 22px);
  margin: 0 0 10px;
}

p {
  margin: 0 0 14px;
  line-height: 1.7;
}

/* ---------- Header ---------- */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand-logo {
  height: 68px;
  width: auto;
  display: block;
  transition: transform var(--transition), filter var(--transition);
  filter: brightness(0) invert(1);
}

.brand-logo:hover {
  transform: scale(1.03);
}

.nav {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.nav a,
.dropbtn {
  font-weight: 600;
  color: #fff;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  display: inline-block;
  transition: all var(--transition);
  letter-spacing: -.01em;
}

.nav a:hover,
.dropbtn:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.nav a.active,
.dropbtn.active {
  background: rgba(255, 255, 255, .15);
  color: #fff;
}

.header-cta {
  margin-left: 8px;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  border: none;
  background: transparent;
  color: #fff;
  border-radius: var(--radius-xs);
  padding: 0;
  font-size: 18px;
  cursor: pointer;
  transition: all var(--transition);
}

/* ---------- Header Scrolled State ---------- */
.site-header.scrolled {
  background: #fff;
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.site-header.scrolled .brand-logo {
  filter: none;
}

.site-header.scrolled .nav a,
.site-header.scrolled .dropbtn {
  color: var(--text);
}

.site-header.scrolled .nav a:hover,
.site-header.scrolled .dropbtn:hover {
  background: rgba(13, 45, 68, .06);
  color: var(--text);
}

.site-header.scrolled .nav a.active,
.site-header.scrolled .dropbtn.active {
  background: rgba(222, 188, 42, .12);
  color: var(--text);
}

.site-header.scrolled .nav-toggle .bar {
  background: var(--text);
}

.site-header.scrolled .nav-toggle .bar::before,
.site-header.scrolled .nav-toggle .bar::after {
  background: var(--text);
}

/* ---------- Dropdown ---------- */
.dropdown {
  position: relative;
}

.dropbtn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0;
  animation: dropIn .2s ease forwards;
}

/* Invisible bridge to prevent closing on hover gap */
.dropdown-content::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.dropdown-content a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  font-size: 14px;
  font-weight: 500;
  color: var(--sub);
}

.dropdown-content a:hover {
  background: rgba(13, 45, 68, .05);
  color: var(--text);
}

@media (hover: hover) {
  .dropdown:hover .dropdown-content {
    display: block;
  }
}

.dropdown.open .dropdown-content {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 13px 24px;
  font-weight: 700;
  font-size: 15px;
  font-family: inherit;
  border: 2px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: -.01em;
  gap: 8px;
}

.btn-primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  box-shadow: 0 4px 14px rgba(13, 45, 68, .25);
}

.btn-primary:hover {
  background: #0a2338;
  border-color: #0a2338;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 45, 68, .3);
}

.btn-accent {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(222, 188, 42, .3);
}

.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(222, 188, 42, .4);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(13, 45, 68, .04);
  border-color: rgba(13, 45, 68, .15);
  transform: translateY(-1px);
}

/* ---------- Hero (Video) ---------- */
.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--text);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(13, 45, 68, .72) 0%, rgba(13, 45, 68, .48) 50%, rgba(13, 45, 68, .68) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 5%;
}

.hero h1 {
  color: #fff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: -.02em;
  animation: heroFadeUp .8s ease-out both;
}

.hero-highlight {
  background: var(--accent);
  color: var(--text);
  padding: 2px 10px;
  border-radius: 4px;
  display: inline;
  font-weight: 900;
}

.hero p {
  margin: 0 auto 12px;
  font-size: 15px;
  color: rgba(255, 255, 255, .8);
  line-height: 1.7;
  max-width: 700px;
  animation: heroFadeUp .8s ease-out .15s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFadeUp .8s ease-out .3s both;
}

/* Hero buttons on dark bg */
.hero .btn-primary {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(222, 188, 42, .35);
}

.hero .btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 8px 30px rgba(222, 188, 42, .45);
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, .25);
  color: #fff;
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .4);
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Grids ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  transition: all var(--transition);
}

.panel:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: rgba(222, 188, 42, .3);
}

.panel h3 {
  margin: 0 0 10px;
  color: var(--text);
}

.panel p {
  margin: 0;
  color: var(--sub);
}

/* ---------- Lists ---------- */
.list-check {
  padding-left: 20px;
}

.list-check li {
  margin: 10px 0;
  line-height: 1.6;
}

.list-check li::marker {
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(222, 188, 42, .3));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(222, 188, 42, .25);
}

.card:hover::after {
  transform: scaleX(1);
}

.card-title {
  font-weight: 900;
  color: var(--text);
  font-size: 20px;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}

.card-text {
  color: #66727c;
  line-height: 1.6;
  font-size: 15px;
}

/* ---------- CTA Boxes ---------- */
.cta {
  margin-top: 32px;
  border: 1px solid rgba(222, 188, 42, .3);
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, rgba(222, 188, 42, .06), rgba(222, 188, 42, .02));
  transition: all var(--transition);
}

.cta:hover {
  border-color: rgba(222, 188, 42, .5);
  box-shadow: 0 8px 30px rgba(222, 188, 42, .1);
}

.cta h3 {
  margin: 0 0 6px;
  color: var(--text);
}

.cta p {
  margin: 0;
  color: #4a5560;
}

/* ---------- Video Hero (sub-pages) ---------- */
.video-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--text);
}

.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .4;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13, 45, 68, .80), rgba(13, 45, 68, .55));
}

.video-content {
  position: relative;
  color: #fff;
  z-index: 2;
}

.video-content h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.08;
  color: #fff;
  animation: heroFadeUp .8s ease-out both;
}

.video-content p {
  margin: 0 0 24px;
  max-width: 780px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .85);
  animation: heroFadeUp .8s ease-out .15s both;
}

.video-content .btn {
  animation: heroFadeUp .8s ease-out .3s both;
}

/* ---------- Contact ---------- */
.contact-box {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 24px;
  margin-top: 24px;
}

.contact-info {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  background: #fff;
}

.form {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  background: #fff;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid-full {
  grid-column: span 2;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.field label {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.field input,
.field select,
.field textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 15px;
  outline: none;
  font-family: 'Inter', sans-serif;
  transition: all var(--transition);
  background: #fff;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(222, 188, 42, .15);
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 14px 0;
  color: #4a5560;
}

.checkbox input {
  margin-top: 4px;
}

/* ---------- Alerts ---------- */
.alert {
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 14px;
  font-weight: 500;
  font-size: 14px;
}

.alert.ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.alert.err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  background: var(--text);
  color: rgba(255, 255, 255, .7);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.footer-title {
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.footer-brand {
  font-weight: 900;
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}

.footer-muted {
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  line-height: 1.6;
}

.footer-col a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .45);
  font-size: 13px;
  text-align: center;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .7);
  transition: all var(--transition);
  margin: 0;
}

.footer-social a:hover {
  background: var(--accent);
  color: var(--text);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Section Headers ---------- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.section-header p {
  color: #66727c;
  font-size: 17px;
}

.section-label {
  display: inline-block;
  background: rgba(222, 188, 42, .12);
  color: var(--accent-hover);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ---------- Methodology / Feature Cards ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.feature-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
  border-color: rgba(222, 188, 42, .25);
}

.feature-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 3px 0 0 3px;
  transform: scaleY(0);
  transition: transform var(--transition);
}

.feature-card:hover::before {
  transform: scaleY(1);
}

.feature-card h3 {
  font-size: 17px;
  margin: 0 0 6px;
}

.feature-card p {
  margin: 0;
  font-size: 14px;
  color: #66727c;
  line-height: 1.6;
}

/* ---------- Stats Row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  padding: 28px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: all var(--transition);
}

.stat-item:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(222, 188, 42, .1);
  transform: translateY(-3px);
}

.stat-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1;
}

.stat-label {
  margin-top: 8px;
  color: #66727c;
  font-size: 14px;
}

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.testimonial-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  transition: all var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 56px;
  font-weight: 900;
  color: rgba(222, 188, 42, .15);
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-style: italic;
  color: var(--sub);
  line-height: 1.7;
  font-size: 15px;
  margin-bottom: 18px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
}

.testimonial-role {
  color: #66727c;
  font-size: 13px;
  margin-top: 2px;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
  text-align: center;
  padding: 56px 32px;
  background: linear-gradient(135deg, var(--text), #143752);
  border-radius: 24px;
  color: #fff;
  margin: 40px 0;
}

.cta-banner h2 {
  color: #fff;
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, .8);
  max-width: 600px;
  margin: 0 auto 24px;
}

.cta-banner .btn-accent {
  font-size: 16px;
  padding: 16px 32px;
}

/* ---------- Page Hero (internal pages) ---------- */
.page-hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  background: linear-gradient(135deg, var(--text) 0%, #143752 100%);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 30%, rgba(222, 188, 42, .08), transparent),
    radial-gradient(ellipse 40% 60% at 20% 70%, rgba(255, 255, 255, .03), transparent);
}

.page-hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 10px;
  text-align: center;
  animation: heroFadeUp .8s ease-out both;
}

.page-hero p {
  color: rgba(255, 255, 255, .8);
  font-size: 17px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  animation: heroFadeUp .8s ease-out .15s both;
}

.page-hero .section-label {
  display: none !important;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 45, 68, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px;
}

.modal-overlay.show {
  display: flex;
}

.modal-container {
  background: #fff;
  width: 100%;
  max-width: 640px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .05);
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
  animation: modalSlide .35s ease-out;
  border-top: 4px solid var(--accent);
}

.modal-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

@keyframes modalSlide {
  from {
    transform: translateY(24px) scale(.97);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--muted);
  border: none;
  border-radius: var(--radius-xs);
  width: 38px;
  height: 38px;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--border);
  transform: rotate(90deg);
}

.modal-header {
  padding: 32px 32px 0;
}

.modal-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 6px;
}

.modal-subtitle {
  margin: 0;
  color: #66727c;
  font-size: 15px;
}

.modal-body {
  padding: 28px 32px 32px;
}

.modal-body .form {
  border: none;
  padding: 0;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* --- Mobile nav overlay backdrop --- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13, 45, 68, .4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 98;
}

.nav-overlay.show {
  display: block;
}

@media (max-width: 920px) {
  .site-header {
    position: absolute !important;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-card {
    order: -1;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .grid-2 {
    grid-template-columns: 1fr !important;
  }

  .grid-3 {
    grid-template-columns: 1fr !important;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .contact-box {
    grid-template-columns: 1fr;
  }

  /* --- Footer centrado en móvil --- */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-col a {
    text-align: center;
  }

  .footer-muted {
    max-width: 400px;
  }

  .footer-social {
    justify-content: center;
  }

  .cta {
    flex-direction: column;
    text-align: center;
    align-items: stretch;
  }

  .cta .btn {
    align-self: center;
  }

  /* --- Menú fullscreen móvil --- */
  .nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    margin: 0;
    background: var(--text);
    padding: 120px 32px 40px; /* Aligned to top, giving space for the header */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* Keeps the menu items stable and static at the top when submenus open */
    gap: 8px; /* Breathing room between items */
    z-index: 99;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: none;
  }

  .nav.show {
    opacity: 1;
    visibility: visible;
  }

  .nav a,
  .nav .dropbtn {
    text-align: center;
    width: 100%;
    max-width: 320px;
    color: #fff;
    padding: 12px 20px;
    border-radius: var(--radius-xs);
    font-size: 17px;
    font-weight: 600;
    border: none;
    background: transparent;
    cursor: pointer;
  }

  .nav a:hover,
  .nav .dropbtn:hover {
    background: rgba(255, 255, 255, .1);
    color: #fff;
  }

  .nav a.active {
    background: rgba(222, 188, 42, .2);
    color: var(--accent);
    font-weight: 700;
  }

  .dropdown {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .dropdown-content {
    position: static;
    box-shadow: none;
    border: none;
    padding: 4px 0;
    display: none;
    transform: none;
    opacity: 1;
    animation: none;
    min-width: auto;
    background: transparent; /* Elegant transparent styling (no bulky box) */
    border-radius: 0;
    margin-top: 0;
  }

  /* Dropdown toggle — must come AFTER base .dropdown-content */
  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown.open .dropdown-content {
    display: block;
    transform: none !important;
    left: auto !important;
  }

  /* Highlight parent category beautifully when submenu is open */
  .dropdown.open .dropbtn {
    color: var(--accent) !important;
    font-weight: 700;
  }

  /* Elegant nested sub-links layout on mobile */
  .nav .dropdown-content a {
    display: block; /* Stacks sub-links vertically and centers properly */
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    border-radius: var(--radius-xs);
  }

  .nav .dropdown-content a:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.05);
  }

  .dropdown-content::before {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 101;
    width: 44px;
    height: 44px;
    padding: 0;
  }

  /* Animated hamburger icon */
  .nav-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all .3s ease;
    position: relative;
  }

  .nav-toggle .bar::before,
  .nav-toggle .bar::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all .3s ease;
  }

  .nav-toggle .bar::before {
    top: -7px;
  }

  .nav-toggle .bar::after {
    top: 7px;
  }

  /* X animation when open */
  .nav-toggle.active .bar {
    background: transparent;
  }

  .nav-toggle.active .bar::before {
    top: 0;
    transform: rotate(45deg);
    background: #fff;
  }

  .nav-toggle.active .bar::after {
    top: 0;
    transform: rotate(-45deg);
    background: #fff;
  }

  /* When header is scrolled, bars should be dark */
  .site-header.scrolled .nav-toggle .bar {
    background: var(--text);
  }

  .site-header.scrolled .nav-toggle .bar::before,
  .site-header.scrolled .nav-toggle .bar::after {
    background: var(--text);
  }

  /* When menu is open, bars always white (over dark bg) */
  .nav-toggle.active .bar::before,
  .nav-toggle.active .bar::after {
    background: #fff !important;
  }
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-grid-full {
    grid-column: span 1;
  }

  .section {
    padding: 48px 0;
  }

  .hero {
    height: 100vh;
    min-height: 500px;
    padding: 80px 0 40px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .page-hero {
    height: auto;
    min-height: 350px;
    padding: 80px 0 40px;
  }

  .video-hero {
    min-height: 55vh;
  }

  .stats-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-item {
    padding: 20px 12px;
  }

  .stat-number {
    font-size: 28px;
  }

  .cta-banner {
    padding: 40px 20px;
    border-radius: 16px;
  }

  .footer-bottom small {
    display: block;
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-badges span {
    font-size: 12px;
    padding: 6px 12px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* ---------- Floating Quote Button ---------- */
.quote-floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--text);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90; /* Sits comfortably above scrolled header (100) and content, but below overlays (200) */
  box-shadow: 0 8px 30px rgba(222, 188, 42, 0.45);
  transition: all var(--transition);
  animation: quotePulse 2s infinite;
}

.quote-floating-btn svg {
  width: 24px;
  height: 24px;
  transition: transform var(--transition);
}

.quote-floating-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(222, 188, 42, 0.6);
}

.quote-floating-btn:hover svg {
  transform: rotate(-10deg) scale(1.1);
}

/* Elegant Tooltip */
.quote-floating-tooltip {
  position: absolute;
  right: 70px;
  background: var(--text);
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.quote-floating-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 5px 0 5px 5px;
  border-style: solid;
  border-color: transparent transparent transparent var(--text);
}

.quote-floating-btn:hover .quote-floating-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

@keyframes quotePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(222, 188, 42, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(222, 188, 42, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(222, 188, 42, 0);
  }
}

/* Adjust button layout on mobile to prevent overlays */
@media (max-width: 600px) {
  .quote-floating-btn {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }
  .quote-floating-tooltip {
    display: none;
  }
}