/* ==========================================================================
   SISTEMA DE DISEÑO DE "AB. SANCHEZ LEGAL"
   Estilo: Premium, Corporativo, Moderno, Minimalista (Dark Mode Suavizado)
   ========================================================================== */

/* Importación de fuentes premium desde Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* Variables globales y tokens de diseño */
:root {
  /* Paleta de Colores Principal */
  --primary-base: #312C85;
  --bg-dark: #121033;         /* Azul muy oscuro suavizado (no negro absoluto) */
  --bg-dark-alt: #171542;     /* Azul oscuro alterno para tarjetas y bloques */
  --bg-dark-glow: #1a174c;    /* Azul intermedio para degradados y brillos */
  --primary-gold: #cfab4d;    /* Dorado suave de acento */
  --primary-gold-hover: #bda043;
  --gold-glow: rgba(207, 171, 77, 0.15);
  --gold-border: rgba(207, 171, 77, 0.25);
  
  /* Colores de Texto */
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --text-muted-light: #cbd5e1;
  --text-dark: #0f172a;

  /* Tipografías */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  /* Efectos y Transiciones */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --border-light: rgba(255, 255, 255, 0.06);
  --card-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  --gold-shadow: 0 10px 25px -8px rgba(207, 171, 77, 0.3);
}

/* ==========================================================================
   RESET Y ESTILOS BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-light);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p {
  color: var(--text-muted-light);
  font-weight: 400;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Contenedores */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
}

/* ==========================================================================
   COMPONENTES: BOTONES PREMIUM
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 2.25rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--primary-gold);
  color: var(--text-dark);
  box-shadow: var(--gold-shadow);
}

.btn-primary:hover {
  background-color: var(--primary-gold-hover);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -5px rgba(207, 171, 77, 0.45);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--gold-border);
}

.btn-secondary:hover {
  background-color: var(--gold-glow);
  border-color: var(--primary-gold);
  transform: translateY(-3px);
}

.btn-nav {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  background-color: transparent;
  color: var(--primary-gold);
  border: 1px solid var(--gold-border);
  border-radius: 4px;
}

.btn-nav:hover {
  background-color: var(--primary-gold);
  color: var(--text-dark);
  box-shadow: var(--gold-shadow);
  transform: translateY(-2px);
}

/* Etiquetas de Sección */
.section-tag-gold {
  display: inline-block;
  color: var(--primary-gold);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 1.25rem;
}

/* ==========================================================================
   NAVBAR (STICKY & GLASSMORPHISM)
   ========================================================================== */
.header-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(18, 16, 51, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-smooth);
}

.header-nav.scrolled {
  padding: 0.5rem 0;
  background-color: rgba(18, 16, 51, 0.96);
  border-bottom: 1px solid var(--gold-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition-smooth);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon {
  width: 28px;
  height: 28px;
  color: var(--primary-gold);
}

.logo span {
  color: var(--primary-gold);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted-light);
  position: relative;
  padding: 0.4rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary-gold);
  transition: var(--transition-smooth);
}

.nav-links a:hover {
  color: var(--primary-gold);
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  margin: 6px 0;
  transition: var(--transition-smooth);
}

/* ==========================================================================
   SECCIÓN HERO Y CONTADORES
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 130px;
  padding-bottom: 4rem;
  overflow: hidden;
  background-color: var(--bg-dark);
}

/* Contenedor del video de fondo */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0d0d26;
  opacity: 0.55; /* Opacidad del 55% para garantizar contraste */
  z-index: 2;
}

.hero-grid {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.hero-content {
  max-width: 850px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.hero-content h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.hero-description {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--text-muted-light);
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

/* Barra de Métricas Inferior */
.metrics-bar {
  position: relative;
  z-index: 3;
  margin-top: 6rem;
  border-top: 1px solid var(--border-light);
  padding-top: 3rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background-color: var(--bg-dark-alt);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.metric-card:hover {
  border-color: var(--gold-border);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.metric-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 4px;
  background-color: var(--gold-glow);
  color: var(--primary-gold);
  flex-shrink: 0;
}

.metric-icon svg {
  width: 20px;
  height: 20px;
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-gold);
  line-height: 1.2;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted-light);
  font-weight: 500;
}

/* ==========================================================================
   SECCIÓN ÁREAS DE PRÁCTICA (ESPECIALIDADES)
   ========================================================================== */
.specialties-section {
  background-color: var(--bg-dark-alt);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-title-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 5rem;
}

.section-title-center h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle-text {
  font-size: 1.05rem;
  color: var(--text-muted-light);
}

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.specialty-card {
  background-color: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 3rem 2.25rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
}

.specialty-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-gold);
  box-shadow: var(--card-shadow);
}

.specialty-card-icon {
  width: 54px;
  height: 54px;
  background-color: var(--gold-glow);
  color: var(--primary-gold);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
}

.specialty-card:hover .specialty-card-icon {
  background-color: var(--primary-gold);
  color: var(--text-dark);
}

.specialty-card h3 {
  font-size: 1.45rem;
  margin-bottom: 1.25rem;
}

.specialty-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted-light);
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.card-footer-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary-gold);
  letter-spacing: 0.1em;
  border-top: 1px solid var(--border-light);
  padding-top: 1.25rem;
  margin-top: auto;
}

/* ==========================================================================
   SECCIÓN PROPUESTA DE VALOR
   ========================================================================== */
.value-section {
  background-color: var(--bg-dark);
}

.value-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 6rem;
  align-items: center;
}

.value-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.value-intro {
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text-muted-light);
  margin-bottom: 3rem;
}

.value-items {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.value-item {
  display: flex;
  gap: 1.5rem;
}

.value-item-icon {
  width: 46px;
  height: 46px;
  background-color: var(--gold-glow);
  color: var(--primary-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-item-icon svg {
  width: 20px;
  height: 20px;
}

.value-item-text h3 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.value-item-text p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted-light);
}

/* Mockup Fotografía del Abogado a la derecha */
.value-image-wrapper {
  justify-self: center;
  position: relative;
}

.lawyer-frame {
  position: relative;
  width: 320px;
  aspect-ratio: 3/4;
  border-radius: 4px;
  box-shadow: var(--card-shadow);
  z-index: 2;
}

.lawyer-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--gold-border);
}

.frame-accent {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 1px solid var(--gold-border);
  border-radius: 4px;
  z-index: -1;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.value-image-wrapper:hover .frame-accent {
  transform: translate(-10px, -10px);
  border-color: var(--primary-gold);
}

/* ==========================================================================
   SECCIÓN DE PREGUNTAS FRECUENTES (FAQ)
   ========================================================================== */
.faq-section {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-glow) 100%);
  border-top: 1px solid var(--border-light);
}

.faq-accordion-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background-color: var(--bg-dark-alt);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item:hover {
  border-color: var(--gold-border);
}

.faq-question-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
  color: var(--text-light);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-question-btn span {
  padding-right: 2rem;
}

.faq-toggle-icon {
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
  content: '';
  position: absolute;
  background-color: var(--primary-gold);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Línea horizontal */
.faq-toggle-icon::before {
  top: 8px;
  left: 0;
  width: 18px;
  height: 2px;
}

/* Línea vertical */
.faq-toggle-icon::after {
  top: 0;
  left: 8px;
  width: 2px;
  height: 18px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: rgba(18, 16, 51, 0.3);
}

.faq-answer-inner {
  padding: 0 2rem 2.25rem 2rem;
  font-size: 0.98rem;
  color: var(--text-muted-light);
  line-height: 1.7;
}

/* Estado activo regulado por JS */
.faq-item.active {
  border-color: var(--primary-gold);
  background-color: var(--bg-dark-alt);
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-item.active .faq-toggle-icon::after {
  transform: scaleY(0);
}

/* ==========================================================================
   SECCIÓN CONTACTO Y FORMULARIO
   ========================================================================== */
.contact-section {
  background-color: var(--bg-dark);
  border-top: 1px solid var(--border-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 5.5rem;
}

.contact-info-col h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted-light);
  margin-bottom: 3.5rem;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.detail-item {
  display: flex;
  gap: 1.5rem;
}

.detail-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-dark-alt);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-gold);
  flex-shrink: 0;
}

.detail-icon svg {
  width: 20px;
  height: 20px;
}

.detail-content h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}



.detail-content p, 
.detail-content a {
  font-size: 1.05rem;
  color: var(--text-light);
  font-weight: 500;
}

.detail-content a:hover {
  color: var(--primary-gold);
}

/* Formulario a la Derecha */
.contact-form-col {
  display: flex;
  align-items: center;
}

.form-container-card {
  width: 100%;
  background-color: var(--bg-dark-alt);
  border: 1px solid var(--border-light);
  padding: 3.5rem;
  border-radius: 4px;
  box-shadow: var(--card-shadow);
}

.form-container-card h3 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 0.9rem 1.1rem;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: var(--text-light);
  transition: var(--transition-smooth);
  width: 100%;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-gold);
  box-shadow: 0 0 12px rgba(207, 171, 77, 0.15);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfab4d' 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 1.2rem center;
  background-size: 1.1em;
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

.btn-submit {
  width: 100%;
  margin-top: 1rem;
}

/* Respuestas de Validación del Formulario */
.form-response-alert {
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 1rem;
  display: none;
}

.form-response-alert.success {
  background-color: rgba(46, 213, 115, 0.1);
  border: 1px solid rgba(46, 213, 115, 0.3);
  color: #2ed573;
  display: block;
}

.form-response-alert.error {
  background-color: rgba(255, 71, 87, 0.1);
  border: 1px solid rgba(255, 71, 87, 0.3);
  color: #ff4757;
  display: block;
}

/* ==========================================================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 35px;
  right: 35px;
  width: 58px;
  height: 58px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  z-index: 999;
  transition: var(--transition-smooth);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
  background-color: #20ba5a;
}

/* ==========================================================================
   FOOTER (PIE DE PÁGINA)
   ========================================================================== */
footer {
  background-color: #0b0a21; /* Tono aún más oscuro para el pie de página */
  border-top: 1px solid var(--border-light);
  padding: 6rem 0 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 5rem;
  margin-bottom: 5rem;
}

.footer-about h3 {
  font-size: 1.45rem;
  margin-bottom: 1.5rem;
}

.footer-about h3 span {
  color: var(--primary-gold);
  font-weight: 400;
}

.footer-about p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 380px;
}

.footer-tagline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--primary-gold);
}

.footer-links-col h4, 
.footer-compliance h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.75rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--primary-gold);
  padding-left: 5px;
}

.footer-compliance p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1rem;
  background-color: var(--bg-dark-alt);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-gold);
}

.footer-badge-icon {
  width: 14px;
  height: 14px;
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

.footer-bottom-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links a:hover {
  color: var(--primary-gold);
}

/* ==========================================================================
   DISEÑO RESPONSIVO (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
  section {
    padding: 6rem 0;
  }
  
  .hero {
    padding-top: 120px;
    padding-bottom: 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.6rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual-wrapper {
    margin-top: 1.5rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .value-image-wrapper {
    order: -1; /* Muestra la imagen arriba en tablets */
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 4.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }

  .footer-compliance {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  section {
    padding: 5rem 0;
  }

  .nav-links, 
  .nav-cta {
    display: none; /* Desplegado dinámicamente con JS */
  }

  .mobile-menu-toggle {
    display: block;
  }

  /* Estilos del menú móvil cuando está activo */
  .header-nav.mobile-active .nav-container {
    flex-wrap: wrap;
    height: auto;
    padding: 1.25rem 0;
  }

  .header-nav.mobile-active .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
    padding: 2rem 0 1rem 0;
    border-top: 1px solid var(--border-light);
  }

  .header-nav.mobile-active .nav-cta {
    display: block;
    width: 100%;
    padding-top: 0.5rem;
  }

  .header-nav.mobile-active .nav-cta .btn-nav {
    width: 100%;
    text-align: center;
  }

  /* Animación del ícono de menú móvil */
  .header-nav.mobile-active .mobile-menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .header-nav.mobile-active .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .header-nav.mobile-active .mobile-menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero {
    padding-top: 110px;
    padding-bottom: 3rem;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.25;
  }

  .specialties-grid {
    grid-template-columns: 1fr;
  }

  .form-container-card {
    padding: 2.5rem 1.75rem;
  }

  .form-group-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-compliance {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.95rem;
    line-height: 1.3;
  }

  .hero-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }
}
