/* =========================================
   VARIABLES GLOBALES (Mantenidas del sitio original)
   ========================================= */
:root {
  --blue: #0d6efd;
  --dark-blue: #071f4d;
  --light-blue: #eaf5ff;
  --orange: #ff7900;
  --light-orange: #fff1e6;
  --white: #ffffff;
  --gray: #f8f9fa;
  --text: #14213d;
  --muted: #5b6475;
  --shadow: 0 18px 40px rgba(9, 31, 77, 0.12);
  --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.05);
  --radius: 24px;
}

/* =========================================
   RESETEO Y ESTILOS BASE
   ========================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background-color: var(--white);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  width: min(1180px, 92%);
  margin: auto;
}

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

.mt-4 {
  margin-top: 2rem;
}

.bg-gray {
  background-color: var(--gray);
}

/* =========================================
   NAVBAR (Idéntica al original)
   ========================================= */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.navbar {
  width: min(1180px, 92%);
  margin: auto;
  height: 74px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--orange);
  font-weight: 900;
  font-size: 1.6rem;
  font-family: 'Orbitron', sans-serif;
}

.nav-links {
  display: flex;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  color: #17213c;
  padding: 5px 10px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 3px;
  border-radius: 10px;
  background: var(--blue);
  transform: translateX(-50%);
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

/* =========================================
   BOTONES
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  transition: 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-orange {
  color: white;
  background: linear-gradient(135deg, #ff8b20, var(--orange));
  box-shadow: 0 12px 24px rgba(255, 121, 0, 0.28);
}

.btn-blue {
  color: white;
  background: linear-gradient(135deg, #1984ff, var(--blue));
  box-shadow: 0 12px 24px rgba(13, 110, 253, 0.25);
}

.btn-outline {
  color: var(--blue);
  background: transparent;
  border: 2px solid var(--blue);
}

.btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

/* =========================================
   SECCIÓN HERO LEGAL
   ========================================= */
.legal-hero {
  padding-top: 180px;
  padding-bottom: 80px;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(13, 110, 253, 0.08), transparent 70%);
}

.section-label {
  display: inline-block;
  background: var(--light-blue);
  color: var(--blue);
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--dark-blue);
  margin-bottom: 1rem;
  animation: fadeInDown 0.8s ease forwards;
}

.hero-text h1 span {
  color: var(--orange);
}

.hero-text p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.2s;
  opacity: 0;
}

/* Animaciones sutiles */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

/* =========================================
   BLOQUES DE INFORMACIÓN Y TARJETAS
   ========================================= */
.legal-block, .about-section, .faq-section, .final-contact {
  padding: 80px 0;
}

.legal-content {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.03);
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2, .section-heading h2 {
  font-size: 2.2rem;
  color: var(--dark-blue);
  margin-bottom: 1rem;
}

.legal-content p, .section-heading p {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.small-notice {
  font-size: 0.85rem !important;
  color: #888 !important;
}

.justice-documents {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.document-link-card {
  min-height: 128px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  color: var(--text);
  background: linear-gradient(145deg, #ffffff, #f7fbff);
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(9, 31, 77, 0.08);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.document-link-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 121, 0, 0.55);
  box-shadow: 0 16px 32px rgba(9, 31, 77, 0.12);
}

.document-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: var(--light-orange);
  border-radius: 14px;
  font-size: 1.5rem;
}

.blue-document {
  background: var(--light-blue);
}

.document-copy {
  min-width: 0;
}

.document-copy strong,
.document-copy small {
  display: block;
}

.document-copy strong {
  margin-bottom: 7px;
  color: var(--dark-blue);
  font-size: 1rem;
}

.document-copy small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.document-arrow {
  color: var(--blue);
  font-size: 1.3rem;
  font-weight: 900;
}

/* Tarjetas Quiénes Somos */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: 0.3s ease;
  border: 1px solid rgba(0,0,0,0.03);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.service-card h3 {
  color: var(--dark-blue);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* =========================================
   ACORDEÓN - PREGUNTAS FRECUENTES
   ========================================= */
.accordion-container {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  background: var(--white);
  margin-bottom: 15px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(13, 110, 253, 0.1);
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 20px 25px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dark-blue);
  transition: background 0.3s ease;
}

.accordion-header:hover, .accordion-header:focus {
  background: var(--light-blue);
  outline: none;
}

.accordion-icon {
  font-size: 1.5rem;
  color: var(--orange);
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: var(--white);
}

.accordion-body {
  padding: 0 25px 25px 25px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================================
   CONTACTO FINAL
   ========================================= */
.final-contact {
  background: linear-gradient(to bottom, var(--white), var(--light-blue));
}

.contact-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.back-to-top {
  display: inline-block;
  color: var(--blue);
  font-weight: 600;
  margin-top: 20px;
  transition: 0.3s;
}

.back-to-top:hover {
  color: var(--orange);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.2rem;
  }
  
  .legal-content {
    padding: 25px;
  }

  .justice-documents {
    grid-template-columns: 1fr;
  }
  
  .accordion-header {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
  
  .accordion-body {
    padding: 0 20px 20px 20px;
  }
  
  .d-mobile-none {
    display: none;
  }
}
