/* ══ ESTRUCTURA ORGANIZATIVA Y LEGAL ══════════════════════ */
:root {
  --deep: #080e18;
  --mid: #0a1525;
  --panel: #0d1b2e;
  --accent-orange: #e87b20;
  --accent-blue: #5aadcf;
  --white: #f0f4f8;
  --muted: rgba(240,244,248,0.42);
}

.legal-hero {
  position: relative;
  height: 50vh;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.legal-hero .hero-photo {
  position: absolute; inset: -30px;
  background-image: url('/img/cover-legal.jpg');
  background-size: cover;
  background-position: center 30%;
  filter: saturate(0.5) brightness(0.35);
  transform: scale(1.04);
  animation: heroZoom 14s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.10); }
}

.legal-hero .hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 80% at 50% 50%, transparent 20%, rgba(8,14,24,0.75) 100%),
    linear-gradient(180deg, rgba(8,14,24,0.5) 0%, rgba(8,14,24,0.15) 40%, rgba(8,14,24,0.95) 100%);
  pointer-events: none;
}

.legal-hero .hero-shimmer {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), var(--accent-orange), var(--accent-blue), transparent);
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%,100% { opacity: 0.35; transform: scaleX(0.8); }
  50%      { opacity: 1;    transform: scaleX(1);   }
}

.legal-hero .hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  animation: fadeUp 1s ease both;
  padding: 0 24px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.legal-hero .hero-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 8px;
}

.legal-hero .hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 4px 20px rgba(0,0,0,0.85);
}

.legal-hero .hero-rule {
  display: flex; align-items: center; justify-content: center;
  width: 120px; height: 16px; margin: 16px 0;
  position: relative;
}
.legal-hero .hero-rule::before,
.legal-hero .hero-rule::after {
  content: ''; width: 45px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90,173,207,0.4));
}
.legal-hero .hero-rule::after {
  background: linear-gradient(270deg, transparent, rgba(90,173,207,0.4));
}
.legal-hero .hero-rule-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-orange); margin: 0 8px;
  box-shadow: 0 0 10px var(--accent-orange);
}

.legal-container {
  max-width: 1000px;
  margin: -60px auto 80px;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}

.legal-card {
  background: rgba(10, 21, 37, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 52px 48px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
  animation: fadeUp 1.2s ease both;
}

.legal-intro-text {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(240, 244, 248, 0.9);
  text-align: center;
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Sections */
.legal-section {
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 36px;
}
.legal-section:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title svg {
  width: 24px;
  height: 24px;
  color: var(--accent-orange);
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.team-member {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.team-member:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 173, 207, 0.2);
  background: rgba(90, 173, 207, 0.03);
}

.member-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(90, 173, 207, 0.1);
  border: 1px solid rgba(90, 173, 207, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.member-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: var(--white);
  text-transform: uppercase;
}

.important-note {
  background: rgba(232, 123, 32, 0.05);
  border-left: 3px solid var(--accent-orange);
  border-radius: 4px;
  padding: 16px 20px;
  font-size: 0.98rem;
  line-height: 1.5;
  color: rgba(240, 244, 248, 0.85);
  margin-top: 16px;
}
.important-note strong {
  color: var(--accent-orange);
  text-transform: uppercase;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.05em;
}

/* Process block */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.process-item {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 24px;
}

.process-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.process-badge {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: rgba(90, 173, 207, 0.1);
  border: 1px solid rgba(90, 173, 207, 0.2);
  color: var(--accent-blue);
  padding: 4px 12px;
  border-radius: 4px;
}

.process-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
}

.process-body {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(240, 244, 248, 0.8);
}

/* Info list for finance/docs */
.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-list li {
  position: relative;
  padding-left: 24px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(240, 244, 248, 0.8);
}

.info-list li::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-blue);
}

/* Contact Cards */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.3s, background 0.3s;
}
.contact-card:hover {
  border-color: rgba(90, 173, 207, 0.2);
  background: rgba(90, 173, 207, 0.02);
}

.contact-role {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 12px;
}

.contact-val {
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(240, 244, 248, 0.9);
  margin-bottom: 8px;
}

.contact-val strong {
  color: var(--white);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  text-decoration: none;
  margin-top: 8px;
  transition: color 0.2s;
}

.contact-link:hover {
  color: var(--accent-orange);
}

.contact-link svg {
  width: 18px;
  height: 18px;
}

/* Guarantee alert block */
.guarantee-box {
  background: rgba(232, 123, 32, 0.04);
  border: 1px dashed rgba(232, 123, 32, 0.3);
  border-radius: 16px;
  padding: 32px;
  margin-top: 16px;
}

.guarantee-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.guarantee-title svg {
  width: 22px;
  height: 22px;
}

.guarantee-body {
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(240, 244, 248, 0.85);
  margin-bottom: 16px;
}

.guarantee-body strong {
  color: var(--white);
}

.guarantee-badge {
  display: inline-block;
  background: rgba(232, 123, 32, 0.1);
  border: 1px solid rgba(232, 123, 32, 0.25);
  color: var(--accent-orange);
  font-family: 'Barlow', sans-serif;
  font-weight: 500;
  font-size: clamp(0.7rem, 3.8vw, 1.05rem);
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border-radius: 6px;
  max-width: 100%;
  word-break: break-all;
  text-align: center;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .legal-hero {
    height: 40vh;
    min-height: 300px;
  }
  .legal-container {
    margin-top: -30px;
  }
  .legal-card {
    padding: 32px 20px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
}
