/* Palette B: Navy + Cyan */
/* ============================================================
   INFONECTA — site.css
   CSS puro, sin dependencias externas.
   Organización:
     1. Variables & reset
     2. Tipografía base
     3. Layout utilities
     4. Componentes — botones
     5. Componentes — header & nav
     6. Componentes — hero
     7. Componentes — secciones & tarjetas
     8. Componentes — formularios & modales
     9. Componentes — footer
    10. Animaciones & helpers
    11. Responsive (mobile-first breakpoints)
   ============================================================ */


/* ── 1. Variables & reset ─────────────────────────────────── */

:root {
  --navy:        #0D1F3C;
  --navy-light:  #0c2248;
  --navy-pale:   #e0f9fc;
  --blue:        #1560BD;
  --orange:      #06b6d4;
  --orange-dark: #0891b2;
  --orange-pale: rgba(6,182,212,0.08);
  --white:       #ffffff;
  --gray-50:     #f8f9fa;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-300:    #d1d5db;
  --gray-400:    #9ca3af;
  --gray-500:    #6b7280;
  --gray-600:    #4b5563;
  --gray-700:    #374151;
  --gray-800:    #1f2937;
  --blue-100:    #bfdbfe;
  --blue-200:    #93c5fd;
  --red-50:      #fef2f2;
  --red-100:     #fecaca;
  --red-600:     #dc2626;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:  6px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 6px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(13,31,60,0.10);
  --shadow-lg:  0 8px 32px rgba(21,96,189,0.12);
  --shadow-xl:  0 24px 64px rgba(13,31,60,0.18);

  --transition: 0.2s ease;
  --transition-slow: 0.3s ease;

  --container: 80rem;   /* 1280px */
  --px: 1.5rem;         /* horizontal page padding */
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a   { color: inherit; }
button { font-family: var(--font-body); }


/* ── 2. Tipografía base ───────────────────────────────────── */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  color: var(--navy);
}

.display-xl  { font-size: clamp(2.8rem, 7vw, 4.5rem); }
.display-lg  { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.display-md  { font-size: clamp(1.8rem, 4vw, 3rem); }
.display-sm  { font-size: clamp(1.4rem, 3vw, 2rem); }

.text-xs   { font-size: 0.75rem; }
.text-sm   { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg   { font-size: 1.125rem; }
.text-xl   { font-size: 1.25rem; }

.font-light   { font-weight: 300; }
.font-normal  { font-weight: 400; }
.font-medium  { font-weight: 500; }
.font-semi    { font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-black   { font-weight: 800; }

.font-display { font-family: var(--font-display); }

.text-center { text-align: center; }
.text-left   { text-align: left; }

.text-white    { color: var(--white); }
.text-navy     { color: var(--navy); }
.text-orange   { color: var(--orange); }
.text-blue     { color: var(--blue); }
.text-muted    { color: var(--gray-500); }
.text-light    { color: var(--blue-100); }

.section-tag {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  display: block;
}


/* ── 3. Layout utilities ──────────────────────────────────── */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--px);
}

/* Flexbox */
.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.items-start   { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.gap-1  { gap: 0.25rem; }
.gap-2  { gap: 0.5rem; }
.gap-3  { gap: 0.75rem; }
.gap-4  { gap: 1rem; }
.gap-5  { gap: 1.25rem; }
.gap-6  { gap: 1.5rem; }
.gap-8  { gap: 2rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }
.flex-1       { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.ms-auto { margin-left: auto; }

/* Grid */
.grid      { display: grid; }
.grid-1    { grid-template-columns: 1fr; }
.grid-2    { grid-template-columns: repeat(2, 1fr); }
.grid-3    { grid-template-columns: repeat(3, 1fr); }
.grid-4    { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Spacing — padding */
.p-4   { padding: 1rem; }
.p-6   { padding: 1.5rem; }
.p-7   { padding: 1.75rem; }
.p-8   { padding: 2rem; }
.px-4  { padding-inline: 1rem; }
.px-6  { padding-inline: 1.5rem; }
.py-2  { padding-block: 0.5rem; }
.py-4  { padding-block: 1rem; }
.py-16 { padding-block: 4rem; }
.py-20 { padding-block: 5rem; }
.py-24 { padding-block: 6rem; }
.py-32 { padding-block: 8rem; }
.pt-0  { padding-top: 0; }
.pb-0  { padding-bottom: 0; }

/* Spacing — margin */
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 0.25rem; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4  { margin-top: 1rem; }
.mt-8  { margin-top: 2rem; }
.mx-auto { margin-inline: auto; }

/* Width / height */
.w-full   { width: 100%; }
.h-full   { height: 100%; }
.min-h-screen { min-height: 100vh; }
.w-4   { width:  1rem;  } .h-4  { height: 1rem;  }
.w-5   { width:  1.25rem; } .h-5 { height: 1.25rem; }
.w-9   { width:  2.25rem; } .h-9 { height: 2.25rem; }
.w-10  { width:  2.5rem;  } .h-10 { height: 2.5rem; }
.w-12  { width:  3rem;    } .h-12 { height: 3rem; }

/* Visibility */
.hidden  { display: none !important; }
.visible { display: block; }

/* Misc */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }
.sticky   { position: sticky; }
.inset-0  { inset: 0; }
.z-10  { z-index: 10; }
.z-40  { z-index: 40; }
.z-50  { z-index: 50; }
.overflow-hidden { overflow: hidden; }
.rounded-full { border-radius: var(--radius-full); }
.rounded-xl   { border-radius: var(--radius-xl); }
.rounded-2xl  { border-radius: var(--radius-2xl); }
.object-cover { object-fit: cover; }
.border       { border: 1px solid var(--gray-200); }
.top-0   { top: 0; }
.right-6 { right: 1.5rem; }
.bottom-6 { bottom: 1.5rem; }
.bottom-10 { bottom: 2.5rem; }
.left-half { left: 50%; transform: translateX(-50%); }
.leading-tight   { line-height: 1.1; }
.leading-relaxed { line-height: 1.75; }
.tracking-wide   { letter-spacing: 0.04em; }
.no-underline    { text-decoration: none; }
.cursor-pointer  { cursor: pointer; }
.pointer-none    { pointer-events: none; }


/* ── 4. Botones ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), color var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  padding: 0.75rem 2rem;
  border-radius: var(--radius-sm);
}
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--white);
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--navy); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
  padding: 0.7rem 1.8rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--navy);
}
.btn-navy:hover { background: var(--navy-light); }

.btn-sm {
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
}

.btn-full {
  width: 100%;
  justify-content: center;
  height: 50px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

/* Icon button (search, close) */
.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-md);
  color: var(--gray-500);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.btn-icon:hover { background: var(--gray-100); color: var(--navy); }

.btn-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  flex-shrink: 0;
  transition: background var(--transition);
}
.btn-close:hover { background: var(--gray-200); }

/* Pill toggle (contact pref) */
.pref-btn {
  flex: 1;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--gray-500);
  font-weight: 500;
  transition: all var(--transition);
}
.pref-btn.active {
  border: 1.5px solid var(--orange);
  background: var(--orange-pale);
  color: #0e7490;
}


/* ── 5. Header & nav ──────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid #f1f5f9;
  box-shadow: var(--shadow-sm);
}

/* Top bar */
.topbar {
  background: var(--navy);
}
.topbar-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 0.5rem var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-link {
  color: var(--blue-100);
  text-decoration: none;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.topbar-link:hover { color: var(--white); }
.topbar-links { display: flex; align-items: center; gap: 1.5rem; }

/* Language dropdown */
.lang-group { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--blue-100);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}
.lang-btn:hover { color: var(--white); }
.lang-drop {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid #f1f5f9;
  min-width: 120px;
  overflow: hidden;
  z-index: 100;
}
.lang-group:hover .lang-drop { display: block; }
.lang-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.625rem 1rem;
  font-size: 0.85rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: background var(--transition);
}
.lang-item:hover { background: var(--gray-50); }

/* Main nav */
.main-nav {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.site-logo span { color: var(--orange); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--gray-700);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition-slow);
}
.nav-link:hover::after  { width: 100%; }
.nav-link.active {
  color: var(--navy);
  border-bottom: 2px solid var(--orange);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile menu */
.mobile-menu { display: none; }
.mobile-menu.open {
  display: block;
  border-top: 1px solid #f1f5f9;
  background: var(--white);
}
.mobile-menu-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1rem var(--px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mobile-menu-inner a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray-700);
  text-decoration: none;
}


/* ── 6. Hero ──────────────────────────────────────────────── */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #071e3d 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 40%, rgba(21,96,189,0.35) 0%, transparent 70%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 8rem;
}
.hero-content { max-width: 48rem; }
.hero-tag    { color: var(--blue-200); margin-bottom: 1.25rem; }
.hero-title  {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-title span { color: var(--orange); }
.hero-body {
  color: var(--blue-100);
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  max-width: 40rem;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5));
}

/* Breadcrumb hero (about page) */
.page-hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 5rem var(--px) 4rem;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(21,96,189,0.25) 0%, transparent 70%);
}
.page-hero-inner {
  max-width: var(--container);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  list-style: none;
}
.breadcrumb a {
  color: var(--blue-200);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: #e2e8f0; font-size: 0.85rem; }
.breadcrumb-sep { color: #4b6a9b; }
.page-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.page-hero-sub {
  color: var(--blue-100);
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 480px;
}


/* ── 7. Secciones & tarjetas ─────────────────────────────── */

/* Generic section wrapper */
.section       { padding-block: 6rem; }
.section-sm    { padding-block: 4rem; }
.section-lg    { padding-block: 8rem; }
.bg-white      { background: var(--white); }
.bg-gray       { background: var(--gray-50); }
.bg-navy       { background: var(--navy); }

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header .section-tag { margin-bottom: 1rem; }
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
}
.section-title-white { color: var(--white); }

/* About split */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-pale), #a5f3fc);
  aspect-ratio: 1;
  max-width: 28rem;
  width: 100%;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.tab-btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--gray-200);
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tab-content { color: var(--gray-600); line-height: 1.75; font-weight: 300; }
.tab-content p + p { margin-top: 0.75rem; }

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  border: 1px solid var(--gray-100);
  transition: border-color var(--transition-slow), box-shadow var(--transition-slow);
}
.feature-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.feature-icon-blue   { background: var(--navy-pale); }
.feature-icon-orange { background: rgba(6,182,212,0.1); }
.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}
.feature-card p { color: var(--gray-500); font-size: 0.9rem; line-height: 1.65; font-weight: 300; }

/* Stats */
.stats-bg {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.stats-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 80% 50%, rgba(21,96,189,0.2) 0%, transparent 70%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.stat-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-2xl);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
.stat-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(13,31,60,0.12); }
.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: rgba(6,182,212,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.stat-icon svg { color: var(--orange); }
.counter-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}
.stat-label { color: var(--blue-200); font-size: 0.875rem; font-weight: 300; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--gray-50);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  transition: transform var(--transition-slow);
}
.testimonial-card:hover { transform: translateY(-4px); }
.stars { display: flex; gap: 3px; margin-bottom: 1rem; }
.stars svg { color: #facc15; }
.testimonial-text {
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-weight: 300;
  font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.author-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.author-name { font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; color: var(--navy); }
.author-role { font-size: 0.75rem; color: var(--gray-400); }

/* Contact cards grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  border: 1px solid var(--gray-100);
  transition: background var(--transition-slow), transform var(--transition-slow);
}
.contact-card:hover { background: var(--navy); transform: translateY(-2px); }
.contact-card:hover h4,
.contact-card:hover a,
.contact-card:hover span { color: var(--blue-200) !important; }
.contact-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 1rem;
}
.contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.625rem;
}
.contact-row:last-child { margin-bottom: 0; }
.contact-row svg { color: var(--gray-400); flex-shrink: 0; }
.contact-row a {
  font-size: 0.875rem;
  color: var(--blue);
  text-decoration: none;
  transition: color var(--transition);
}

/* CTA banner */
.cta-banner {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding-block: 5rem;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 80% at 20% 50%, rgba(6,182,212,0.12) 0%, transparent 70%);
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  max-width: 320px;
}
.cta-body {
  color: var(--blue-100);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 300;
  max-width: 440px;
}

/* Strength cards (about page) */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.strength-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid #e9ecef;
  transition: border-color var(--transition-slow), box-shadow var(--transition-slow), transform var(--transition-slow);
}
.strength-card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 32px rgba(21,96,189,0.1);
  transform: translateY(-3px);
}
.strength-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.strength-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 0.75rem; }
.strength-card p  { color: var(--gray-500); font-size: 0.95rem; line-height: 1.7; font-weight: 300; }

/* Why us split */
.why-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}
.why-img {
  background: linear-gradient(135deg, var(--navy-pale), #a5f3fc);
  overflow: hidden;
  min-height: 400px;
}
.why-img img { width: 100%; height: 100%; object-fit: cover; }
.why-content {
  background: var(--navy);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.why-content::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 80% 30%, rgba(21,96,189,0.2) 0%, transparent 70%);
}
.why-inner { position: relative; z-index: 1; }
.why-tag   { color: var(--blue-200); margin-bottom: 1rem; }
.why-title { font-size: clamp(2rem, 3.5vw, 2.8rem); color: var(--white); margin-bottom: 2.5rem; }
.check-list { display: flex; flex-direction: column; gap: 0.5rem; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
}
.check-icon {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: rgba(6,182,212,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.check-icon svg { color: var(--orange); }
.check-text { color: var(--blue-100); font-size: 0.95rem; font-weight: 300; }
.check-text-dark { color: var(--gray-700); font-size: 0.95rem; }

/* FAQ */
.faq-list { max-width: 52rem; margin-inline: auto; }
.faq-item { border-bottom: 1px solid #f1f5f9; }
.faq-question {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  gap: 1rem;
}
.faq-question span {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
}
.faq-chevron {
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform 0.3s ease;
}
.faq-chevron.open { transform: rotate(180deg); }
.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-answer.open { max-height: 300px; padding-bottom: 1.25rem; }
.faq-answer p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.7; font-weight: 300; }


/* ── 8. Formularios & modales ─────────────────────────────── */

.field-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 5px;
}

.field-wrap { position: relative; }
.field-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gray-300);
}
.field-icon-top {
  position: absolute;
  left: 11px;
  top: 14px;
  pointer-events: none;
  color: var(--gray-300);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  outline: none;
  background: var(--white);
  color: var(--navy);
}
.form-input:focus  { border-color: var(--blue); }
.form-input.padded { padding-left: 2.2rem; }
select.form-input  { appearance: none; cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 90px; }

.select-wrap { position: relative; }
.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--gray-400);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0.25rem 0;
}
.form-divider-line { flex: 1; height: 1px; background: #f1f5f9; }
.form-divider-text {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.pref-row { display: flex; gap: 8px; }

/* Modal overlay */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,31,60,0.65);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

/* Modal boxes */
.modal-box {
  background: var(--white);
  border-radius: var(--radius-2xl);
  width: 92%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
}
.modal-box-contact { max-width: 680px; }
.modal-box-login   { max-width: 420px; padding: 2.5rem; }
.modal-box-search  { max-width: 560px; border-radius: var(--radius-xl); padding: 1.5rem 2rem; }

.modal-header {
  padding: 1.75rem 1.75rem 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.modal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--orange);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}
.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(6,182,212,0.1);
  border-radius: var(--radius-full);
  padding: 3px 10px 3px 7px;
  font-size: 0.78rem;
  color: #0e7490;
  font-weight: 500;
}
.modal-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-full);
  background: var(--orange);
  display: inline-block;
}
.modal-form {
  padding: 1.25rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.modal-login-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.9rem;
  color: var(--orange);
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
}

/* Search overlay */
.search-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.search-input {
  border: none;
  padding: 0;
  font-size: 1.1rem;
  flex: 1;
  outline: none;
  font-family: var(--font-body);
  color: var(--navy);
}

/* Error box */
.alert-danger {
  background: var(--red-50);
  border: 1px solid var(--red-100);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--red-600);
}


/* ── 9. Footer ────────────────────────────────────────────── */

.site-footer {
  background: var(--gray-50);
  border-top: 1px solid #e9ecef;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  padding-block: 4rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.25rem;
}
.footer-logo span { color: var(--orange); }
.footer-body {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.5rem;
}
.footer-heading {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.75rem;
}

/* Social icons */
.social-row { display: flex; gap: 0.625rem; }
.social-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.social-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Footer news */
.news-list { display: flex; flex-direction: column; gap: 1.25rem; }
.news-item { display: flex; gap: 1rem; }
.news-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--navy-pale);
  flex-shrink: 0;
  overflow: hidden;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-title {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--gray-800);
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
  transition: color var(--transition);
}
.news-title:hover { color: var(--blue); }
.news-desc { font-size: 0.8rem; color: var(--gray-400); font-weight: 300; margin-bottom: 0.25rem; }
.news-date { font-size: 0.78rem; color: var(--orange); }

/* Footer offices */
.office-list { display: flex; flex-direction: column; gap: 0.75rem; }
.office-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-600);
}
.office-item svg { color: var(--orange); flex-shrink: 0; }
.office-item a { color: var(--blue); text-decoration: none; }
.office-item a:hover { color: #1040a0; }

/* Copyright bar */
.copyright {
  background: var(--navy);
}
.copyright-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1rem var(--px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.copyright-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--blue-200);
}
.copyright-links button,
.copyright-links a {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--blue-200);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color var(--transition);
}
.copyright-links button:hover,
.copyright-links a:hover { color: var(--white); }
.copyright-links .sep { opacity: 0.3; }
.copyright-text {
  font-size: 0.85rem;
  color: #475569;
}
.copyright-text a { color: var(--blue-200); text-decoration: none; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--navy);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 40;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.3s, transform 0.3s;
}


/* ── 10. Animaciones & helpers ────────────────────────────── */

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Delay helpers */
.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.10s; }
.delay-3 { transition-delay: 0.15s; }
.delay-4 { transition-delay: 0.20s; }
.delay-5 { transition-delay: 0.25s; }
.delay-6 { transition-delay: 0.30s; }

/* Divider */
.divider { height: 1px; background: #f1f5f9; margin: 0.5rem 0; }


/* ── 11. Responsive ───────────────────────────────────────── */

/* Tablet — ≤ 1024px */
@media (max-width: 1024px) {
  .features-grid    { grid-template-columns: repeat(2, 1fr); }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-split      { grid-template-columns: 1fr; }
  .about-img        { display: none; }
  .why-split        { grid-template-columns: 1fr; }
  .why-img          { min-height: 300px; }
  .strengths-grid   { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: repeat(2, 1fr); }
  .contact-grid     { grid-template-columns: repeat(2, 1fr); }
  .cta-inner        { flex-direction: column; text-align: center; }
  .cta-title, .cta-body { max-width: 100%; }
}

/* Mobile — ≤ 640px */
@media (max-width: 640px) {
  :root { --px: 1rem; }

  .nav-links        { display: none; }
  .nav-actions .btn-navy { display: none; }
  .hamburger        { display: flex !important; }

  .hero-inner       { padding-block: 5rem 4rem; }
  .section          { padding-block: 4rem; }
  .section-lg       { padding-block: 5rem; }

  .features-grid    { grid-template-columns: 1fr; }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); }
  .strengths-grid   { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .form-row-2       { grid-template-columns: 1fr; }

  .why-content      { padding: 3rem 1.5rem; }
  .counter-num      { font-size: 1.9rem; }

  .copyright-inner  { flex-direction: column; text-align: center; }

  .topbar-links .topbar-link:first-child { display: none; } /* hide email on very small screens */
}

/* Hide hamburger on desktop by default */
.hamburger { display: none; }


/* ── Language switcher ───────────────────────────────────────── */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  padding: 3px 10px;
}
.lang-opt {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color var(--transition);
  padding: 2px 0;
}
.lang-opt:hover { color: rgba(255,255,255,0.85); }
.lang-opt-active {
  color: var(--white);
}
.lang-sep {
  color: rgba(255,255,255,0.2);
  font-size: 0.75rem;
  line-height: 1;
  user-select: none;
}
