/* ============================================
   LEX ANDINA — Stylesheet
   Paleta: #000000 | #babcbb | #68afe5
   ============================================ */

:root {
  --black:       #000000;
  --off-black:   #0a0a0a;
  --dark:        #111111;
  --dark-2:      #1a1a1a;
  --dark-3:      #222222;
  --silver:      #babcbb;
  --silver-dim:  #888a89;
  --blue:        #68afe5;
  --blue-dim:    #4a8bbf;
  --blue-light:  #c4def5;
  --white:       #f9f8f5;
  --white-2:     #eeecea;
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', sans-serif;
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-weight: 400;
  background: var(--white);
  color: var(--off-black);
  overflow-x: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%2368afe5' stroke='white' stroke-width='1.5' d='M4.5 2.5l14 10-6.5 2 2.5 6-3 1.5-2.5-6-5.5 4.5z'/%3E%3C/svg%3E"), auto;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
a, button, input, textarea, select, .nav-logo {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%2368afe5' stroke='white' stroke-width='1.5' d='M14 11V3c0-1.1-.9-2-2-2s-2 .9-2 2v8l-2-2c-.8-.8-2-.8-2.8 0s-.8 2 0 2.8l6 6c1.2 1.2 3.1 1.2 4.3 0l4.7-4.7c.8-.8.8-2 0-2.8s-2-.8-2.8 0l-1.4 1.4V11z'/%3E%3C/svg%3E"), pointer;
}



/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--blue-dim); border-radius: 2px; }

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 40px;
  height: 70px;
  display: flex;
  align-items: center;
  transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s;
}
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 3px;
  color: #fff;
  text-transform: uppercase;
}
.logo-amp { color: var(--blue); font-style: italic; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--blue);
  transition: width 0.3s var(--ease-out);
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--blue);
  padding: 10px 20px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--blue-light); transform: translateY(-1px); }

/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--silver);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
  padding: 120px 40px 80px;
}
.hero-bg { position: absolute; inset: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(104,175,229,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104,175,229,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-glow {
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(104,175,229,0.10) 0%, transparent 65%);
  pointer-events: none;
}
.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  gap: 40px;
  position: relative;
  z-index: 2;
}
.hero-content {
  max-width: 600px;
  flex: 1;
}
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  max-width: 450px;
}
.hero-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5));
  transition: transform 0.1s ease-out;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(6.5px, 2.2vw, 10px);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 32px;
  white-space: nowrap;
}
.eyebrow-line {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--blue);
  flex-shrink: 0;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 9vw, 88px);
  font-weight: 300;
  line-height: 1.04;
  color: #fff;
  margin-bottom: 28px;
  letter-spacing: -0.5px;
}
.hero-title em {
  font-style: italic;
  color: var(--blue);
}
.hero-sub {
  font-size: 15px;
  line-height: 1.75;
  color: var(--silver);
  max-width: 480px;
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 300;
  color: #fff;
  line-height: 1;
  display: inline;
}
.stat-suffix {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--blue);
}
.stat-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--silver-dim);
  margin-top: 6px;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}
.hero-scroll {
  position: absolute;
  bottom: 40px; right: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--blue), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.7); }
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: var(--black);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 14px 28px;
  transition: background 0.25s, transform 0.25s var(--ease-out), box-shadow 0.25s;
  border: none;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-101%);
  transition: transform 0.35s var(--ease-out);
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(104,175,229,0.3); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--silver);
  border: 1px solid rgba(186,188,187,0.3);
  padding: 14px 28px;
  transition: color 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(186,188,187,0.6);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ─── SECTIONS ─── */
.section { padding: 100px 0; }
.section-dark { background: var(--dark); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.section-header { margin-bottom: 60px; }
.section-tag {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
  display: block;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}
.section-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  max-width: 520px;
  font-weight: 300;
}
.section-rule {
  width: 40px;
  height: 2px;
  background: var(--blue);
  margin: 16px 0 24px;
}

/* ─── SOCIOS ─── */
.socios-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
  background: transparent;
}
.socio-card {
  width: calc(33.333% - 0.667px);
  max-width: calc(33.333% - 0.667px);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--white-2);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.socio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--blue);
  transition: width 0.4s var(--ease-out);
}
.socio-card:hover { transform: translateY(-4px); box-shadow: 0 24px 64px rgba(0,0,0,0.08), 0 0 0 1px var(--white-2); }
.socio-card:hover::before { width: 100%; }
.socio-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  margin-bottom: 24px;
}
.socio-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--white-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 400;
  color: var(--blue);
  flex-shrink: 0;
  border: 1px solid #d4d2cf;
  overflow: hidden;
}
.socio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.socio-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 4px;
}
.socio-role {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
}
.socio-bio {
  font-size: 13px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 20px;
  font-weight: 300;
}
.socio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.tag {
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--white-2);
  color: var(--silver-dim);
  padding: 5px 10px;
  border-radius: 2px;
}
.socio-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--white-2);
}
.socio-link {
  font-size: 12px;
  color: var(--blue);
  transition: color 0.2s;
}
.socio-link:hover { color: var(--blue-dim); }

/* ─── ÁREAS ─── */
.areas-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
  background: transparent;
}
.area-card {
  width: calc(33.333% - 0.667px);
  max-width: calc(33.333% - 0.667px);
  background: var(--dark);
  box-shadow: 0 0 0 1px var(--dark-3);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: background 0.35s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.area-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width 0.4s var(--ease-out);
}
.area-card:hover { background: var(--dark-2); }
.area-card:hover::after { width: 100%; }
.area-num {
  font-family: var(--font-serif);
  font-size: 11px;
  color: var(--dark-3);
  letter-spacing: 1px;
  position: absolute;
  top: 20px; right: 24px;
  transition: color 0.3s;
}
.area-card:hover .area-num { color: rgba(104,175,229,0.3); }
.area-icon {
  color: var(--blue);
  margin-bottom: 4px;
}
.area-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  line-height: 1.2;
}
.area-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #777;
  font-weight: 300;
  flex: 1;
}
.area-arrow {
  font-size: 18px;
  color: var(--blue);
  transform: translateX(-6px);
  opacity: 0;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
  align-self: flex-end;
}
.area-card:hover .area-arrow { transform: translateX(0); opacity: 1; }

/* ─── CONTACTO ─── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.contact-desc {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  font-weight: 300;
  margin-bottom: 40px;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.ci-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.ci-icon {
  width: 36px; height: 36px;
  background: var(--white-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--blue);
}
.ci-label {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 4px;
}
.ci-val {
  display: block;
  font-size: 14px;
  color: var(--off-black);
  line-height: 1.5;
  font-weight: 400;
}
.ci-sub {
  display: block;
  font-size: 12px;
  color: var(--silver-dim);
  margin-top: 2px;
}

/* ─── FORM ─── */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; position: relative; }
.form-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--silver-dim);
}
.form-input {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 300;
  color: var(--off-black);
  background: var(--white-2);
  border: 1px solid transparent;
  border-bottom: 1px solid #d4d2cf;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-input:focus {
  border-color: var(--blue);
  background: #fff;
}
.form-input.error { border-color: #c0392b; }
.form-select {
  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='%23888a89' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
.form-error {
  font-size: 11px;
  color: #c0392b;
  min-height: 14px;
  display: block;
}
.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #27ae60;
  padding: 12px 16px;
  background: rgba(39,174,96,0.08);
  border: 1px solid rgba(39,174,96,0.2);
  border-radius: 2px;
}
.form-success.visible { display: flex; }
.btn-loader {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid rgba(0,0,0,0.2);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.btn-loader.visible { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── UBICACIÓN ─── */
.ubicacion-grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 64px;
  align-items: start;
}
.ubic-block { margin-bottom: 32px; }
.ubic-label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.ubic-val {
  font-size: 15px;
  color: var(--silver);
  line-height: 1.7;
  font-weight: 300;
}
.map-container { position: relative; }
.map-frame {
  position: relative;
  height: 400px;
  overflow: hidden;
  border: 1px solid var(--dark-3);
}
.map-frame iframe { display: block; }
.map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(104,175,229,0.2);
}

/* ─── FOOTER ─── */
.footer {
  background: var(--black);
  padding: 60px 0 32px;
  border-top: 1px solid var(--dark-3);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}
.footer-logo .logo-main {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 3px;
  color: #fff;
  text-transform: uppercase;
}
.footer-logo .logo-amp {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--blue);
  font-style: italic;
  margin: 0 4px;
}
.footer-tagline {
  font-size: 12px;
  color: var(--silver-dim);
  margin-top: 8px;
  font-weight: 300;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--silver-dim);
  text-transform: uppercase;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--blue); }
.footer-legal {
  text-align: right;
}
.footer-legal p {
  font-size: 12px;
  color: #444;
  line-height: 1.7;
}
.footer-rule {
  height: 1px;
  background: var(--dark-3);
  margin-bottom: 24px;
}
.footer-copy {
  font-size: 11px;
  color: #333;
  line-height: 1.7;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-eyebrow {
    letter-spacing: 1px;
    gap: 8px;
  }
  .eyebrow-line {
    width: 20px;
  }
  .nav-links { display: none; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: rgba(0,0,0,0.97); padding: 24px 20px; gap: 20px; z-index: 999; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .socio-card { width: 100%; max-width: 100%; }
  .area-card { width: calc(50% - 0.5px); max-width: calc(50% - 0.5px); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .ubicacion-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-legal { text-align: left; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 24px; padding-top: 32px; }
  .stat-divider { display: none; }
  .hero-container { flex-direction: column; gap: 40px; }
  .hero-image { display: none; }
}
@media (max-width: 600px) {
  .hero-eyebrow {
    letter-spacing: 0.5px;
    gap: 6px;
    white-space: normal;
    line-height: 1.4;
  }
  .eyebrow-line {
    width: 12px;
  }
  .hero-title {
    margin-bottom: 20px;
  }
  .hero-sub {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 32px;
  }
  .navbar { padding: 0 20px; }
  .hero { padding: 110px 20px 60px; }
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .section-title { margin-bottom: 12px; }
  .section-desc { font-size: 14px; line-height: 1.6; margin-bottom: 40px; }
  .socio-card { padding: 28px 20px; }
  .area-card { width: 100%; max-width: 100%; padding: 28px 20px; }
  .contact-grid { gap: 32px; }
  .ubicacion-grid { gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; gap: 12px; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; justify-content: center; }
  .footer-inner { gap: 24px; margin-bottom: 32px; }
}
