/* ============================================================
   EL PERRO BIEN — CSS Premium
   Paleta: Navy profundo · Azul acento · Blanco · Gris elegante
   Tipografía: Manrope (headings) + Inter (body)
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────────────────── */
:root {
  --navy:        #0F1B2D;
  --navy-mid:    #1A3A5C;
  --navy-light:  #243B55;
  --blue:        #2563EB;
  --blue-light:  #3B82F6;
  --blue-pale:   #EFF6FF;
  --blue-border: #BFDBFE;
  --green:       #10B981;
  --green-wa:    #25D366;
  --white:       #FFFFFF;
  --off-white:   #F8FAFC;
  --gray-50:     #F8F9FA;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-400:    #94A3B8;
  --gray-600:    #475569;
  --gray-700:    #334155;
  --gray-900:    #0F172A;
  --radius-sm:   6px;
  --radius:      12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow:      0 4px 16px rgba(15,27,45,.08);
  --shadow-md:   0 8px 32px rgba(15,27,45,.12);
  --shadow-lg:   0 20px 60px rgba(15,27,45,.16);
  --transition:  0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-head:   'Manrope', sans-serif;
  --font-body:   'Inter', sans-serif;
  --max-w:       1200px;
  --max-w-text:  720px;
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; }

/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 600; }
p  { max-width: 68ch; }
.lead { font-size: 1.15rem; color: var(--gray-600); line-height: 1.75; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 128px 0; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn-primary:hover {
  background: #1D4ED8;
  border-color: #1D4ED8;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37,99,235,.35);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-pale);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-whatsapp {
  background: var(--green-wa);
  color: var(--white);
  border-color: var(--green-wa);
}
.btn-whatsapp:hover {
  background: #22C55E;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
}
.btn-lg { padding: 17px 36px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow);
}
.nav-container {
  display: flex;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-img {
  height: 48px;
  width: auto;
  display: block;
}
.logo-mark {
  width: 36px; height: 36px;
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.5px;
}
.logo-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
  background: var(--gray-100);
}
/* Desktop: botón CTA fuera del ul */
.nav-cta { margin-left: 8px; }
/* El botón dentro del menú mobile no debe verse en desktop */
.nav-links-mobile-cta { display: none; }

/* Evitar que .nav-links a sobreescriba el color y padding del botón CTA */
.nav-links a.btn-primary {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}
.nav-links a.btn-primary:hover {
  color: var(--white);
  background: #1D4ED8;
  border-color: #1D4ED8;
  background-color: #1D4ED8;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #1e4d8c 100%);
  position: relative;
  overflow: hidden;
  padding-top: 72px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(37,99,235,.12) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(16,185,129,.06) 0%, transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 80px 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,99,235,.2);
  border: 1px solid rgba(37,99,235,.3);
  color: #93C5FD;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.hero-badge span.dot {
  width: 6px; height: 6px;
  background: #60A5FA;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: normal;
  color: #60A5FA;
}
.hero-sub {
  color: rgba(255,255,255,.75);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
}
.hero-trust-item svg { color: #60A5FA; flex-shrink: 0; }

/* Pain card */
.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(8px);
}
.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-card-header h3 {
  color: rgba(255,255,255,.9);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}
.pain-list { display: flex; flex-direction: column; gap: 14px; }
.pain-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,.8);
  font-size: 15px;
  line-height: 1.4;
}
.pain-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.pain-icon.red   { background: rgba(239,68,68,.2); color: #FCA5A5; }
.pain-icon.amber { background: rgba(245,158,11,.2); color: #FCD34D; }
.pain-icon.purple{ background: rgba(167,139,250,.2); color: #C4B5FD; }
.hero-card-footer {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.5);
  font-size: 13px;
  line-height: 1.5;
}

/* ── Section headers ─────────────────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--blue);
  border-radius: 1px;
}
.section-header { max-width: var(--max-w-text); margin-bottom: 64px; }
.section-header.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header.center p { margin-left: auto; margin-right: auto; }
.section-header h2 { margin-bottom: 16px; }
.section-header p { color: var(--gray-600); font-size: 1.05rem; line-height: 1.75; }

/* ── Identification block ────────────────────────────────────────────────── */
.identification { background: var(--gray-50); }
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.pain-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition);
}
.pain-card:hover {
  border-color: var(--blue-border);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.pain-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}
.pain-card-body h4 { margin-bottom: 6px; font-size: 16px; color: var(--navy); }
.pain-card-body p { font-size: 14px; color: var(--gray-600); margin: 0; max-width: none; }

/* ── Error block ─────────────────────────────────────────────────────────── */
.market-error { background: var(--white); }
.error-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.error-card {
  padding: 36px 32px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--transition);
}
.error-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.error-number {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  color: var(--gray-100);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.04em;
}
.error-card h3 { margin-bottom: 10px; color: var(--navy); font-size: 1.2rem; }
.error-card p { font-size: 15px; color: var(--gray-600); margin: 0; max-width: none; }
.error-tag {
  position: absolute;
  top: 20px; right: 20px;
  background: #FEF2F2;
  color: #DC2626;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 100px;
}

/* ── Differential ────────────────────────────────────────────────────────── */
.differential { background: var(--navy); position: relative; overflow: hidden; }
.differential::before {
  content: '';
  position: absolute;
  top: -50%;right: -10%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,.15) 0%, transparent 70%);
}
.differential .section-label { color: #93C5FD; }
.differential .section-label::before { background: #93C5FD; }
.differential h2 { color: var(--white); }
.differential .section-header p { color: rgba(255,255,255,.65); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  position: relative;
  z-index: 1;
}
.step-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  padding: 36px 28px;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}
.step-card:hover {
  background: rgba(255,255,255,.09);
  transform: translateY(-4px);
}
.step-number {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  color: rgba(37,99,235,.4);
  line-height: 1;
  margin-bottom: 20px;
  letter-spacing: -0.04em;
}
.step-card h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 10px; }
.step-card p  { color: rgba(255,255,255,.6); font-size: 14px; margin: 0; max-width: none; }

/* ── Philosophy ──────────────────────────────────────────────────────────── */
.philosophy { background: var(--blue-pale); }
.philosophy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.philosophy-quote {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.philosophy-quote em {
  font-style: normal;
  color: var(--blue);
}
.philosophy-body p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 16px;
}
.principles-list { display: flex; flex-direction: column; gap: 16px; }
.principle-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--blue-border);
}
.principle-check {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.principle-text h4 { font-size: 14px; color: var(--navy); margin-bottom: 2px; }
.principle-text p  { font-size: 13px; color: var(--gray-600); margin: 0; max-width: none; }

/* ── Testimonials ────────────────────────────────────────────────────────── */
.testimonials { background: var(--white); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition);
  position: relative;
}
.testimonial-card:hover {
  border-color: var(--blue-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
  color: #F59E0B;
}
.testimonial-text {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 24px;
  max-width: none;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}
.testimonial-info strong { display: block; font-size: 14px; font-weight: 600; color: var(--navy); }
.testimonial-info span   { font-size: 13px; color: var(--gray-400); }

/* ── Team block ──────────────────────────────────────────────────────────── */
.team-preview { background: var(--gray-50); }
.disciplines-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.discipline-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}
.discipline-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.discipline-icon {
  width: 60px; height: 60px;
  border-radius: var(--radius);
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--blue);
}
.discipline-card h3 { font-size: 1rem; color: var(--navy); margin-bottom: 8px; }
.discipline-card p  { font-size: 13px; color: var(--gray-600); margin: 0; max-width: none; }

/* ── Services teaser ─────────────────────────────────────────────────────── */
.services-teaser { background: var(--white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-card:hover::before { opacity: 1; }
.service-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  margin-bottom: 24px;
  transition: all var(--transition);
}
.service-card:hover .service-card-icon {
  background: var(--blue);
  color: var(--white);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card p  { font-size: 14px; color: var(--gray-600); margin-bottom: 20px; max-width: none; }
.service-card a.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  transition: gap var(--transition);
}
.service-card:hover a.link { gap: 10px; }

/* ── CTA final ────────────────────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(37,99,235,.2) 0%, transparent 70%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: var(--white); margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,.75); font-size: 1.05rem; margin: 0 auto 40px; }
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Page hero (inner pages) ─────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 140px 0 80px;
  text-align: center;
}
.page-hero .breadcrumb {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.6); transition: color var(--transition); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero h1 { color: var(--white); margin-bottom: 20px; }
.page-hero .lead { color: rgba(255,255,255,.75); margin: 0 auto; }

/* ── Forms ───────────────────────────────────────────────────────────────── */
.form-container {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 24px; }
.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-label .req { color: var(--blue); margin-left: 3px; }
.form-control {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--gray-900);
  background: var(--white);
  transition: all var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.form-control.error {
  border-color: #EF4444;
  background-color: #FFF5F5;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}
.form-control.error:focus {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.2);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-hint { font-size: 13px; color: var(--gray-400); margin-top: 6px; }
.form-error-msg {
  font-size: 12px;
  color: #DC2626;
  margin-top: 5px;
  display: none;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  line-height: 1.4;
}
.form-error-msg.show { display: flex; }
.form-error-msg::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23DC2626' stroke-width='2.5'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}
.honeypot { display: none !important; visibility: hidden; }
.form-submit-wrap { margin-top: 32px; }
.form-submit-wrap .btn { width: 100%; justify-content: center; }
.form-notice {
  margin-top: 16px;
  font-size: 13px;
  color: var(--gray-400);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Alert */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error   { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* ── Thank you page ──────────────────────────────────────────────────────── */
.thanks-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 0 80px;
  text-align: center;
}
.thanks-icon {
  width: 80px; height: 80px;
  background: #ECFDF5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  color: var(--green);
}
.thanks-wrap h1 { margin-bottom: 16px; }
.thanks-wrap .lead { margin: 0 auto 40px; }
.thanks-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Admin ───────────────────────────────────────────────────────────────── */
.admin-body { background: var(--gray-50); font-family: var(--font-body); }
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--navy);
  color: var(--white);
  flex-shrink: 0;
  position: fixed;
  top: 0; bottom: 0;
  overflow-y: auto;
  z-index: 100;
}
.admin-sidebar-logo {
  padding: 24px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-sidebar-logo .logo-text { font-size: 15px; }
.admin-nav { padding: 16px 12px; }
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,.7);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 2px;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(255,255,255,.1);
  color: var(--white);
}
.admin-main { margin-left: 240px; flex: 1; }
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-content { padding: 32px; }
.admin-page-title { font-size: 1.4rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.admin-page-sub   { font-size: 14px; color: var(--gray-400); }

/* Stats cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
}
.stat-label { font-size: 13px; color: var(--gray-400); margin-bottom: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; }
.stat-value { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--navy); }
.stat-change { font-size: 13px; color: var(--green); margin-top: 4px; }

/* Table */
.data-table-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.data-table-header h3 { font-size: 16px; color: var(--navy); margin: 0; }
.table-filters { display: flex; gap: 8px; align-items: center; }
.filter-select {
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--gray-700);
  background: var(--white);
  cursor: pointer;
}
.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { padding: 14px 24px; text-align: left; }
.data-table th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-400); border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.data-table td { font-size: 14px; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--gray-50); }
.data-table a { color: var(--blue); font-weight: 600; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.badge-nuevo     { background: #EFF6FF; color: #1E40AF; }
.badge-contactado{ background: #FEF3C7; color: #92400E; }
.badge-calificado{ background: #ECFDF5; color: #065F46; }
.badge-cerrado   { background: #F0FDF4; color: #166534; }
.badge-perdido   { background: #FEF2F2; color: #991B1B; }
.badge-alta      { background: #FEE2E2; color: #991B1B; }
.badge-normal    { background: var(--gray-100); color: var(--gray-700); }

/* Login */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-50);
  padding: 20px;
}
.login-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 48px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}
.login-header { text-align: center; margin-bottom: 40px; }
.login-header .logo-mark { margin: 0 auto 16px; width: 48px; height: 48px; font-size: 14px; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.8);
}
.footer-container {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: 36px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 24px 64px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo .logo-mark { background: rgba(255,255,255,.15); color: var(--white); }
.footer-logo .logo-text { color: var(--white); }
.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  background: var(--white);
  border-radius: 8px;
  padding: 6px 10px;
}
.footer-tagline { font-size: 14px; color: rgba(255,255,255,.55); margin-bottom: 24px; max-width: 260px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all var(--transition);
}
.footer-social a svg { width: 18px; height: 18px; }
.footer-social a:hover { background: rgba(255,255,255,.15); color: var(--white); }
.site-footer h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,.4);
  margin-bottom: 20px;
}
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a {
  font-size: 14px;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.site-footer ul a:hover { color: var(--white); }
.footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-contact ul svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: rgba(255,255,255,.4); }
.footer-contact ul span,
.footer-contact ul a { font-size: 14px; color: rgba(255,255,255,.65); }
.footer-wa { margin-top: 20px; font-size: 14px; padding: 12px 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px;
}
.footer-bottom-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }

/* ── WhatsApp float ──────────────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: var(--green-wa);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  z-index: 900;
  transition: all var(--transition);
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37,211,102,.6);
}
.wa-tooltip {
  position: absolute;
  right: 68px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  top: 50%; right: -6px;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--navy);
  border-right: 0;
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }

/* ── Scroll reveal ───────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-blue   { color: var(--blue); }
.text-muted  { color: var(--gray-400); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 40px 0; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid    { grid-template-columns: 1fr; gap: 48px; }
  .hero-card    { max-width: 520px; }
  .steps-grid   { grid-template-columns: repeat(2, 1fr); }
  .error-grid   { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .disciplines-grid  { grid-template-columns: repeat(2, 1fr); }
  .services-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-container  { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .philosophy-inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    padding: 24px;
    z-index: 999;
    gap: 8px;
  }
  .nav-links.open li a { font-size: 18px; padding: 14px 16px; }
  /* Preservar tamaño y colores del botón CTA dentro del menú móvil */
  .nav-links.open li a.btn-primary {
    font-size: 15px;
    padding: 14px 28px;
    color: var(--white);
    justify-content: center;
  }
  /* Mostrar el botón dentro del menú y ocultar el nav-cta de desktop */
  .nav-links.open .nav-links-mobile-cta { display: flex; }
  .nav-cta { display: none !important; }

  .hero { padding-top: 72px; }
  .hero-grid { padding: 60px 0; }
  .hero h1   { font-size: 2.2rem; }

  .error-grid   { grid-template-columns: 1fr; }
  .steps-grid   { grid-template-columns: 1fr; }
  .testimonials-grid  { grid-template-columns: 1fr; }
  .disciplines-grid   { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }

  .section    { padding: 64px 0; }
  .section-lg { padding: 80px 0; }

  .footer-container { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 40px; }
  .admin-sidebar { display: none; }
  .admin-main { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-container { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cta-actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .disciplines-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 15px 28px; }
  .admin-content { padding: 20px; }
  .data-table th, .data-table td { padding: 12px 16px; }
  .login-card { padding: 32px 24px; }
}
