/* ═══════════════════════════════════════════════════════════════════════════
   CONSERFIC S.A. — Landing Page Profesional
   Microfinanciera Nicaragüense · Supervisados por CONAMI
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Fonts ────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Custom Properties ────────────────────────────────────────────────── */
:root {
  /* ── Brand Colors ────────────────────────────────────────────────────── */
  --brand-blue: #0A4E9B;
  --brand-blue-dark: #083D7A;
  --brand-blue-deep: #062A54;
  --brand-blue-light: #1168C9;
  --brand-blue-bright: #1575DF;

  /* ── Accent (Dorado / Ochre — saco de dinero del logo) ───────────────── */
  --brand-gold: #D99B26;
  --brand-gold-light: #E5B03A;
  --brand-gold-pale: #F0D08A;
  --gold-metallic: linear-gradient(135deg, #C58A1E 0%, #D99B26 20%, #E5B03A 45%, #F0D08A 60%, #E5B03A 80%, #C58A1E 100%);
  --gold-text: linear-gradient(135deg, #B87A14 0%, #D99B26 30%, #F0D08A 50%, #D99B26 70%, #B87A14 100%);
  --gold-shimmer: linear-gradient(135deg, #D99B26 0%, #F0D08A 25%, #E5B03A 50%, #F0D08A 75%, #D99B26 100%);

  /* ── Grays (basados en la placa metálica del logo) ───────────────────── */
  --brand-gray-mid: #A8A9AD;
  --brand-gray-light: #E5E5E5;

  /* ── Semantic aliases (mantienen compatibilidad con el código existente) */
  --navy-deep: var(--brand-blue-deep);
  --navy: var(--brand-blue);
  --navy-light: var(--brand-blue-dark);
  --blue-dark: var(--brand-blue-dark);
  --teal: var(--brand-blue);
  --teal-bright: var(--brand-blue-light);
  --gold: var(--brand-gold);
  --gold-light: var(--brand-gold-light);
  --gold-pale: var(--brand-gold-pale);

  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-75: #f3f4f6;
  --gray-100: var(--brand-gray-light);
  --gray-200: var(--brand-gray-mid);
  --gray-300: #8b8d92;
  --gray-400: #6b6d72;
  --gray-500: #4a4c51;
  --gray-600: #2d2f33;
  --gray-700: #1a1b1e;
  --gray-800: #0d0e10;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 3px rgba(10, 78, 155, 0.06);
  --shadow-md: 0 8px 32px rgba(10, 78, 155, 0.08);
  --shadow-lg: 0 20px 60px rgba(10, 78, 155, 0.12);
  --shadow-gold: 0 8px 32px rgba(217, 155, 38, 0.25);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', serif;
  line-height: 1.15;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(1240px, calc(100% - 3rem));
  margin-inline: auto;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-metallic);
  background-size: 200% 200%;
  animation: gold-shimmer 4s ease-in-out infinite;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  background: var(--gold-shimmer);
  background-size: 200% 200%;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(217, 155, 38, 0.4), 0 0 0 4px rgba(217, 155, 38, 0.1);
}

@keyframes gold-shimmer {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.45);
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(10, 31, 51, 0.05);
  transition: box-shadow var(--transition);
}
.nav.scrolled {
  box-shadow: 0 1px 6px rgba(10, 31, 51, 0.07);
}

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

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-shrink: 0;
}
.nav-logo .accent { color: var(--teal); }
.nav-logo-img { height: 56px; width: auto; flex-shrink: 0; }
@media (min-width: 768px) {
  .nav-logo-img { height: 66px; }
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}
.nav-links > li {
  position: relative;
}
.nav-links > li > a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--gray-400);
  cursor: pointer;
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}
.nav-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links > li > a:hover { color: var(--teal); }
.nav-links > li > a:hover::after { width: 100%; }

/* ── Dropdown ─────────────────────────────────────────────────────────── */
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-dropdown-toggle .nav-caret {
  display: inline-block;
  width: 10px;
  height: 10px;
  transition: transform 0.25s ease;
  color: var(--gray-300);
  flex-shrink: 0;
}
.nav-dropdown:hover .nav-dropdown-toggle .nav-caret,
.nav-dropdown:focus-within .nav-dropdown-toggle .nav-caret {
  color: var(--teal);
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 300px;
  background: var(--white);
  border: 1px solid rgba(10, 31, 51, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 24px 48px rgba(10, 31, 51, 0.12), 0 0 0 1px rgba(10, 31, 51, 0.04);
  padding: 0.6rem;
  list-style: none;
  z-index: 120;
  animation: dropdown-in 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
}
@keyframes dropdown-in {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* tiny arrow at top of dropdown */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--white);
  border: 1px solid rgba(10, 31, 51, 0.08);
  border-right: none;
  border-bottom: none;
  z-index: -1;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu li { list-style: none; }

.nav-dropdown-menu li a {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  color: var(--gray-500);
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.35;
  transition: all 0.18s ease;
  border-left: 3px solid transparent;
}
.nav-dropdown-menu li a::after { display: none; }

.nav-dropdown-menu li a:hover {
  background: linear-gradient(135deg, rgba(10, 78, 155, 0.04), rgba(217, 155, 38, 0.06));
  border-left-color: var(--gold);
  color: var(--navy);
}

.nav-dropdown-menu .dd-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  color: var(--gray-300);
  transition: color 0.18s ease;
}
.nav-dropdown-menu li a:hover .dd-icon {
  color: var(--gold);
}

.nav-dropdown-menu .dd-text { flex: 1; }
.nav-dropdown-menu .dd-title {
  display: block;
  font-weight: 600;
  color: var(--gray-600);
  font-size: 0.84rem;
}
.nav-dropdown-menu li a:hover .dd-title { color: var(--navy); }

.nav-dropdown-menu .dd-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--gray-300);
  font-weight: 400;
  margin-top: 0.12rem;
}
.nav-dropdown-menu li a:hover .dd-sub { color: var(--gray-400); }

.nav-dropdown-menu .dd-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 0.35rem 0.6rem;
}

.nav-cta { display: none; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: absolute;
  top: 72px;
  left: 0; right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-100);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: background var(--transition);
}
.mobile-menu a:hover { background: var(--gray-75); }

.mobile-submenu {
  border-top: 1px solid var(--gray-100);
  margin-top: 0.35rem;
  padding-top: 0.45rem;
}
.mobile-submenu-title {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
}
.mobile-submenu a {
  padding-left: 1.55rem;
  font-size: 0.9rem;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 35%, var(--blue-dark) 65%, var(--teal) 100%);
  background-size: 200% 200%;
  animation: hero-gradient 12s ease-in-out infinite;
  overflow: hidden;
}

@keyframes hero-gradient {
  0%   { background-position: 0% 0%; }
  25%  { background-position: 100% 0%; }
  50%  { background-position: 100% 100%; }
  75%  { background-position: 0% 100%; }
  100% { background-position: 0% 0%; }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(10, 78, 155, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 25%, rgba(217, 155, 38, 0.14) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(8, 61, 122, 0.3) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    linear-gradient(rgba(255,255,255,0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.15) 1px, transparent 1px);
  background-size: 52px 52px;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 8rem 0 5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 0.5rem 1.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  backdrop-filter: blur(6px);
}

.hero-badge-dot {
  width: 9px; height: 9px;
  background: radial-gradient(circle at 40% 40%, #F0D08A, #D99B26 60%, #B87A14);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(217, 155, 38, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px rgba(217, 155, 38, 0.5); }
  50% { opacity: 0.9; transform: scale(1.4); box-shadow: 0 0 16px rgba(240, 208, 138, 0.7); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 780px;
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: normal;
  background: var(--gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 1px 2px rgba(184, 122, 20, 0.3));
}

/* ── Rotating words ───────────────────────────────────────────────────── */
.hero-word-rotate {
  display: inline-flex;
  vertical-align: bottom;
  position: relative;
  height: 1.15em;
  overflow: hidden;
  min-width: 1em;
}
.hero-word {
  display: block;
  position: absolute;
  top: 0; left: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-word.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

/* ── Floating icons ────────────────────────────────────────────────────── */
.hero-float-icons {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}
.hero-float-icon {
  position: absolute;
  width: clamp(2.2rem, 4vw, 3.6rem);
  height: clamp(2.2rem, 4vw, 3.6rem);
  opacity: 0.09;
  animation: hero-float 7s ease-in-out infinite;
  user-select: none;
  color: var(--white);
}
.hero-float-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%  { transform: translateY(-14px) rotate(2deg); }
  50%  { transform: translateY(-6px) rotate(0deg); }
  75%  { transform: translateY(-18px) rotate(-2deg); }
}

/* ── Fade-up entrance animation ────────────────────────────────────────── */
.animate-fade-up {
  opacity: 0;
  transform: translateY(32px);
  animation: fade-up-in 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes fade-up-in {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 2rem;
  margin-top: 5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-stat-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.hero-stat-lbl {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

/* ── Section Common ───────────────────────────────────────────────────────── */
.section {
  padding: 6rem 0;
}

.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.08rem;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 600px;
}

/* ── About ────────────────────────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.about-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(217, 155, 38, 0.15), transparent 60%);
}

.about-visual-inner {
  text-align: center;
  color: var(--white);
  position: relative;
  z-index: 1;
  padding: 2rem;
}
.about-year {
  font-size: 5rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0.85;
  letter-spacing: -0.03em;
}
.about-visual-label {
  font-size: 1rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}
.about-visual-badge {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.78rem;
  background: rgba(255,255,255,0.1);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.15);
}

.about-text p {
  color: var(--gray-500);
  line-height: 1.8;
  font-size: 1.02rem;
  margin-bottom: 1.25rem;
}

/* ── MVV Cards ────────────────────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 3rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-gold));
  opacity: 0;
  transition: opacity var(--transition);
}
.card:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
}
.card-icon.mission { background: rgba(10, 78, 155, 0.08); color: var(--brand-blue); }
.card-icon.vision  { background: linear-gradient(135deg, rgba(217,155,38,0.15), rgba(240,208,138,0.15)); color: var(--brand-gold); }
.card-icon.objective { background: rgba(10, 78, 155, 0.05); color: var(--brand-blue-dark); }

.card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.card p {
  color: var(--gray-400);
  line-height: 1.7;
  font-size: 0.92rem;
}

/* ── Services ─────────────────────────────────────────────────────────────── */
.services-bg { background: var(--gray-50); }

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card-icon {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 0.75rem;
  color: var(--teal);
}
.service-card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.service-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.service-card > p {
  color: var(--gray-400);
  line-height: 1.7;
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  padding: 0;
}
.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: var(--gray-500);
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 0.38rem 0;
}
.service-features li::before {
  content: '✓';
  color: var(--teal);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Regulatory ───────────────────────────────────────────────────────────── */
.regulatory { text-align: center; }

.regulatory-strip {
  margin-top: 3rem;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.regulatory-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: regScroll 24s linear infinite;
}

.regulatory-track:hover {
  animation-play-state: paused;
}

@keyframes regScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.reg-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  min-width: 150px;
  flex-shrink: 0;
  transition: all var(--transition);
}
.reg-item:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}
.reg-item img { height: 42px; width: auto; object-fit: contain; margin: 0 auto 0.6rem; }
.reg-item span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  letter-spacing: 0.02em;
}

/* ── Valores ──────────────────────────────────────────────────────────────── */
.values-grid {
  margin-top: 2.7rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.value-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding: 1.2rem 1rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(10, 78, 155, 0.08);
  background:
    radial-gradient(circle at 50% -35%, rgba(240, 208, 138, 0.35), transparent 70%),
    linear-gradient(180deg, var(--white), #fffefb);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.value-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(217, 155, 38, 0.35);
}

.value-icon {
  width: clamp(68px, 14vw, 92px);
  height: clamp(68px, 14vw, 92px);
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, #e5ab4f, var(--brand-gold));
  box-shadow:
    0 12px 26px rgba(217, 155, 38, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.value-icon svg {
  width: clamp(34px, 6.5vw, 45px);
  height: clamp(34px, 6.5vw, 45px);
}

.value-item h3 {
  margin: 0;
  color: var(--gray-700);
  font-size: clamp(1.08rem, 2vw, 1.22rem);
  line-height: 1.15;
  max-width: 17ch;
  text-wrap: balance;
}

@media (min-width: 520px) {
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

@media (min-width: 860px) {
  .values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.35rem;
  }
}

@media (min-width: 1120px) {
  .values-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.35rem;
  }

  .value-item {
    grid-column: span 4;
    min-height: 212px;
    justify-content: center;
  }

  .value-item:nth-child(n + 4) {
    grid-column: span 3;
  }
}

/* ── Tarifario ────────────────────────────────────────────────────────────── */
.tarifario-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 640px) {
  .tarifario-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tarifario-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: all var(--transition);
  cursor: pointer;
}
.tarifario-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--teal);
}
.tarifario-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Footer logo ──────────────────────────────────────────────────────────── */
.footer-logo-img {
  height: 2.5rem;
  width: auto;
}


/* ── Contact CTA ──────────────────────────────────────────────────────────── */
.contact-bg {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy), var(--blue-dark));
  color: var(--white);
}
.contact-bg .section-label { color: var(--gold-light); }
.contact-bg .section-title { color: var(--white); }
.contact-bg .section-subtitle { color: rgba(255, 255, 255, 0.65); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-item-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg {
  flex-shrink: 0;
}
.contact-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.15rem;
}
.contact-item p, .contact-item a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
}
.contact-item a:hover { color: var(--gold-light); }

/* Override for contact items on light backgrounds */
.contact-info--light .contact-item-icon {
  background: rgba(10, 78, 155, 0.06);
  color: var(--teal);
}
.contact-info--light .contact-item h4 {
  color: var(--gray-400);
}
.contact-info--light .contact-item p,
.contact-info--light .contact-item a {
  color: var(--gray-600);
}
.contact-info--light .contact-item a:hover {
  color: var(--teal);
}

.contact-highlight {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.contact-highlight h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.contact-highlight p {
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

/* ── Map ──────────────────────────────────────────────────────────────────── */
.contact-map-wrap {
  margin-top: 3rem;
}
.contact-map {
  width: 100%;
  height: 360px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.contact-map .leaflet-container {
  background: var(--brand-blue-deep);
  font-family: 'Inter', sans-serif;
}
/* Grayscale tiles with slight blue tint */
.contact-map .leaflet-tile {
  filter: grayscale(100%) brightness(0.55) sepia(20%) hue-rotate(170deg) saturate(0.8);
}
/* Custom marker popup */
.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm) !important;
  font-family: 'Inter', sans-serif !important;
}
.leaflet-popup-content {
  margin: 12px 16px !important;
  font-size: 0.88rem !important;
  color: var(--gray-700) !important;
}
.leaflet-popup-content strong {
  color: var(--brand-blue);
  font-size: 0.95rem;
}
.leaflet-popup-tip {
  display: none;
}

@media (max-width: 640px) {
  .contact-map {
    height: 280px;
  }
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.75rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
}
.footer-text {
  font-size: 0.85rem;
  color: white;
  font-weight: 500;
}
.footer-text strong {
  color: var(--gold);
  font-weight: 600;
}
.footer-copy {
  font-size: 0.8rem;
  color: white;
}

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

/* ── Responsive: Tablet ───────────────────────────────────────────────────── */
@media (min-width: 640px) {
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Responsive: Desktop ──────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .menu-toggle { display: none; }
}

@media (min-width: 1024px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ── WhatsApp Floating Button ─────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: whatsapp-pulse 2.5s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
  animation: none;
}

.whatsapp-float:active {
  transform: scale(0.95);
}

.whatsapp-float-icon {
  width: 34px;
  height: 34px;
  color: #ffffff;
}

@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  }
  50% {
    box-shadow: 0 4px 28px rgba(37, 211, 102, 0.55), 0 0 0 12px rgba(37, 211, 102, 0.08);
  }
  100% {
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  }
}

@media (max-width: 640px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }
  .whatsapp-float-icon {
    width: 30px;
    height: 30px;
  }
}

/* ── Reclamos Modal ────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 31, 33, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 80px rgba(10, 31, 51, 0.25);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2rem 2rem 0;
}

.modal-header-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(26, 107, 138, 0.08);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.modal-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.modal-header p {
  font-size: 0.85rem;
  color: var(--gray-400);
  line-height: 1.5;
}

.modal-close {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--gray-100);
  background: var(--white);
  color: var(--gray-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
  flex-shrink: 0;
}
.modal-close:hover {
  background: var(--gray-50);
  color: var(--gray-700);
  border-color: var(--gray-200);
}

.modal-body {
  padding: 1.5rem 2rem 2rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 0.4rem;
}

.modal-field input,
.modal-field textarea,
.modal-field select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  color: var(--gray-700);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}
.modal-field input:focus,
.modal-field textarea:focus,
.modal-field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 107, 138, 0.07);
}
.modal-field input::placeholder,
.modal-field textarea::placeholder {
  color: var(--gray-200);
}

.modal-field textarea {
  resize: vertical;
  min-height: 90px;
}

.modal-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.modal-submit {
  width: 100%;
  justify-content: center;
  padding: 0.95rem;
  font-size: 0.98rem;
  margin-top: 0.5rem;
}

.modal-disclaimer {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  background: rgba(200, 150, 62, 0.05);
  border: 1px solid rgba(200, 150, 62, 0.12);
  border-radius: var(--radius-sm);
}
.modal-disclaimer p {
  font-size: 0.75rem;
  color: var(--gray-400);
  line-height: 1.65;
  margin: 0;
}

.modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem 1rem;
}
.modal-success.visible { display: flex; }
.modal-success-icon {
  width: 3.2rem;
  height: 3.2rem;
  margin: 0 auto 1rem;
  color: var(--teal);
}
.modal-success-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.modal-success h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}
.modal-success p {
  font-size: 0.9rem;
  color: var(--gray-400);
  line-height: 1.6;
  max-width: 360px;
}

/* ── Reclamos trigger button (footer & floating) ──────────────────────────── */
.footer-reclamos {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}
.footer-reclamos button {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: color var(--transition);
}
.footer-reclamos button:hover {
  color: var(--gold-light);
}

.footer-xcredit {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}
.footer-xcredit a {
  color: white;
  font-weight: 500;
  transition: color var(--transition);
}
.footer-xcredit a:hover {
  color: var(--gold-light);
}

.reclamos-float {
  position: fixed;
  bottom: 102px;
  right: 28px;
  z-index: 998;
  width: 48px;
  height: 48px;
  background: var(--brand-blue);
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(10, 78, 155, 0.3);
  transition: all var(--transition);
}
.reclamos-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 22px rgba(10, 78, 155, 0.45);
  background: #1168C9;
}
@media (max-width: 640px) {
  .reclamos-float {
    bottom: 86px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
}

/* ── Lightbox ─────────────────────────────────────────────────────────────── */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 31, 33, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-inner {
  position: relative;
  max-width: min(90vw, 960px);
  max-height: 90vh;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0.4rem;
  box-shadow: 0 25px 80px rgba(10, 31, 51, 0.35);
  transform: translateY(20px) scale(0.94);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.lightbox-overlay.open .lightbox-inner {
  transform: translateY(0) scale(1);
}

.lightbox-inner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(90vh - 4rem);
  object-fit: contain;
  border-radius: calc(var(--radius-lg) - 4px);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(10, 31, 51, 0.7);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 2;
  backdrop-filter: blur(6px);
}
.lightbox-close:hover {
  background: rgba(10, 31, 51, 0.9);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.08);
}

@media (max-width: 640px) {
  .lightbox-overlay { padding: 1rem; }
  .lightbox-inner { padding: 0.2rem; }
  .lightbox-close {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }
}

/* ── Social Media ─────────────────────────────────────────────────────────── */
.social-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}
.social-icon:hover {
  transform: translateY(-3px);
  color: var(--white);
}
.social-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-icon.fb:hover  { background: #1877F2; border-color: #1877F2; }
.social-icon.ig:hover  { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; }
.social-icon.x:hover   { background: #000000; border-color: #333; }
.social-icon.yt:hover  { background: #FF0000; border-color: #FF0000; }
.social-icon.tt:hover  { background: #000000; border-color: #333; }
.social-icon.in:hover  { background: #0A66C2; border-color: #0A66C2; }

/* Social bar in contact section (light bg) */
.social-bar-light .social-icon {
  background: var(--gray-50);
  border-color: var(--gray-100);
  color: var(--gray-400);
}
.social-bar-light .social-icon:hover {
  color: var(--white);
}

.social-bar-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  margin-right: 0.25rem;
}

/* Footer social row */
.footer-social {
  margin-top: 0.75rem;
}

/* ── Print ────────────────────────────────────────────────────────────────── */
@media print {
  .nav, .footer { position: static; }
  .hero { min-height: auto; padding: 2rem 0; }
}
