/* =============================================
   HOJA DE ESTILOS - ESTUDIO JURÍDICO ANTÚNEZ Y ASOCIADOS
   Versión: 1.8 (Depurada)
   Metodología: Mobile-First
   ============================================= */

/* --- 1. VARIABLES Y RESET --- */
:root {
  /* Paleta de colores profesional y sobria */
  --color-primary: #1a3a5a; /* Azul oscuro */
  --color-secondary: #4a6a8a; /* Azul claro */
  --color-accent: #d4a017; /* Dorado/Mostaza */
  --color-background-light: #f5f7fa; /* Gris muy claro */
  --color-text: #343a40; /* Gris oscuro texto */
  --color-text-light: #ffffff;
  --color-border: #dee2e6; /* Gris claro bordes */

  /* Tipografía */
  --font-heading: "Merriweather", serif;
  --font-body: "Lato", sans-serif;

  /* Espaciado y Layout */
  --container-width: 1140px;
  --spacing-md: 1.5rem;
  --spacing-lg: 3rem;
  --header-height: 70px;
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.7;
  background-color: var(--color-text-light);
}




a {
  color: var(--color-accent);
  text-decoration: none;
  transition: opacity 0.3s ease;
}
a:hover {
  opacity: 0.8;
}

ul { list-style: none; }

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- 2. UTILIDADES GLOBALES --- */
.container {
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section {
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

/* --- OPTIMIZACIÓN DE RENDERIZADO (NUEVO) --- */
/* Aplica esto a las secciones que NO son el Hero (la primera pantalla) */
.about-modern, 
.stats-wrapper, 
.testimonial, 
.faq-section, 
#ubicacion {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px; /* Estima una altura aproximada para evitar saltos de scroll */
}

/* Mejora para la GPU en animaciones */
.btn, .card, .contact-card {
  will-change: transform; /* Avisa al navegador que esto se moverá */
}

.bg-light {
  background-color: var(--color-background-light);
}

.section-title {
    font-size: 2rem;
  text-align: center;
    font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.3;
}
.section-title-left {
  text-align: left;
}
.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  font-size: 1.1rem;
}

/* Botones (CTAs) */
.btns-hero {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 5px;
  font-weight: 700;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-primary);
}
.btn-secondary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
}

/* Botón WhatsApp en Hero */
.btn-whatsapp-hero {
  background-color: transparent;
  color: var(--color-text-light);
  border: 2px solid var(--color-text-light);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.5rem;
  justify-content: center;
}
.btn-whatsapp-hero svg {
  width: 24px;
  height: 24px;
  fill: #25d366;
}
.btn-whatsapp-hero:hover {
  background-color: var(--color-text-light);
  color: var(--color-primary);
  opacity: 1;
}

/* Botón Estilo Píldora Oscura (Para sección Sobre Nosotros) */
.btn-dark-pill {
  display: inline-block;
  background-color: var(--color-accent);
  color: var(--color-primary);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border: 2px solid var(--color-accent);
  transition: all 0.3s ease;
}
.btn-dark-pill:hover {
  background-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Evita el scroll del fondo cuando el menú móvil está abierto */
.no-scroll {
  overflow: hidden;
}

/* --- 3. HEADER Y NAVEGACIÓN --- */
.header {
  background-color: var(--color-text-light);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 900;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--color-primary);
  text-decoration: none;
}
.logo-img {
  height: 60px;
  width: auto;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

/* Menú Móvil */
.nav {
  position: fixed;
  bottom: 95px;
  right: 1.5rem;
  width: 280px;
  background-color: var(--color-primary);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity 0.3s ease, visibility 0s 0.3s linear, transform 0.3s ease;
}
.nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease, visibility 0s 0s linear, transform 0.3s ease;
}
.nav a {
  color: var(--color-text-light);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  width: 100%;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.nav a.active,
.nav a:hover {
  color: var(--color-primary);
  background-color: var(--color-accent);
  opacity: 1;
}

/* Menú Desplegable (Dropdown) - Móvil */
.nav-item.dropdown {
  width: 100%;
}
.dropdown-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.dropdown-arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--color-accent);
  border-bottom: 3px solid var(--color-accent);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  margin-right: 10px;
}
.nav-item.is-open .dropdown-arrow {
  transform: rotate(225deg);
  margin-top: -6px;
}
.dropdown-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease-out, opacity 0.3s ease-out, padding 0.3s ease;
  padding: 0 1rem;
  background-color: rgba(0, 0, 0, 0.15);
  border-radius: 0 0 4px 4px;
}
.nav-item.is-open .dropdown-menu {
  max-height: 300px;
  opacity: 1;
  padding: 0.5rem 1rem;
}
.dropdown-menu a {
  font-size: 1rem;
  font-weight: 400;
  padding: 0.5rem 1rem 0.5rem 1.5rem;
}

/* Botón Hamburguesa */
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1001;
  width: 60px;
  height: 60px;
  background-color: var(--color-accent);
  color: var(--color-primary);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.menu-icon-container {
  width: 24px;
  height: 18px;
  position: relative;
}
.menu-icon-container span {
  display: block;
  position: absolute;
  height: 3px;
  width: 100%;
  background: var(--color-primary);
  border-radius: 3px;
  left: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}
.menu-icon-container span:nth-child(1) { top: 0px; }
.menu-icon-container span:nth-child(2) { top: 7px; }
.menu-icon-container span:nth-child(3) { top: 14px; }
.menu-btn.is-open .menu-icon-container span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.is-open .menu-icon-container span:nth-child(2) { opacity: 0; }
.menu-btn.is-open .menu-icon-container span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- 4. HERO SECTION (GLASSMORPHISM) --- */
.hero {
  position: relative;
  background-image: url("/assets/estudio-juridico.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 6rem 1rem;
  color: var(--color-text-light);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(10, 25, 41, 0.95) 0%, rgba(26, 58, 90, 0.8) 100%);
  z-index: 1;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  align-items: center;
}
.hero-content {
  text-align: center;
  max-width: 100%;
}
.hero-badge {
  display: inline-block;
  background-color: rgba(212, 160, 23, 0.2);
  color: var(--color-accent);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(212, 160, 23, 0.3);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.hero-title {
  color: var(--color-text-light);
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.hero-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}
.hero .btn {
  width: 100%;
  max-width: 300px;
}
.hero-visuals {
  width: 100%;
  display: flex;
  justify-content: center;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  max-width: 500px;
}

/* Tarjetas Glassmorphism (Hero) */
.feature-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  transition: transform 0.3s ease, background 0.3s ease;
  min-height: 140px;
}
.feature-card:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
  border-color: var(--color-accent);
}
.feature-card svg {
  width: 36px;
  height: 36px;
  color: var(--color-accent);
  stroke-width: 1.5;
}
.feature-card span {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

/* --- 5. TARJETAS DE SERVICIOS (General) --- */
.card-grid {
  display: grid;
  gap: var(--spacing-md);
}
.card {
  border: 1px solid var(--color-border);
  padding: var(--spacing-md);
  border-radius: 5px;
  background-color: var(--color-text-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}
.card-title {
  font-size: 1.3rem;
  margin-top: 0;
}
.card-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-accent);
  text-decoration-thickness: 2px;
}

/* Iconos en Tarjetas de Servicio */
.card-icon {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--color-primary);
  transition: transform 0.3s ease;
}
.card-icon svg {
  width: 48px;
  height: 48px;
  stroke-width: 1.5px;
}
.card:hover .card-icon {
  transform: scale(1.1);
}

/* --- 6. SECCIÓN "SOBRE NOSOTROS" (Moderno) --- */
.about-grid {
  display: flex;
  flex-direction: column-reverse;
  gap: 3rem;
  align-items: center;
}
.about-image {
  width: 100%;
  position: relative;
}
.about-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 18/10;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.about-image:hover img {
  transform: translateY(-5px);
}
.about-content {
  text-align: left;
}
.about-title {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}
.about-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #555;
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.about-content p {
  margin-bottom: 1rem;
  color: var(--color-text);
}
.about-cta {
  margin-top: 2rem;
}

/* --- 7. ESTADÍSTICAS (Counter) --- */
.stats-wrapper {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.stats-box {
  background-color: var(--color-primary);
  border-radius: 20px;
  padding: 3rem 2rem;
  color: var(--color-text-light);
  box-shadow: 0 15px 30px rgba(26, 58, 90, 0.15);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  justify-items: center;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.5rem;
  color: #fff;
}
.stat-label {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

/* --- 8. TESTIMONIOS --- */
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.testimonial-grid {
  display: grid;
  gap: var(--spacing-md);
}
.testimonial-card {
  background-color: var(--color-background-light);
  padding: var(--spacing-md);
  border-left: 5px solid var(--color-accent);
  border-radius: 5px;
}
.testimonial p {
  font-style: italic;
  margin-bottom: 1rem;
}
.testimonial cite {
  font-weight: 700;
  font-style: normal;
}

/* --- 9. FAQ (PREGUNTAS FRECUENTES) --- */
.faq-container {
  max-width: 800px;
  margin: 2rem auto 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease;
}
.faq-item:first-of-type {
  border-top: 1px solid var(--color-border);
}
.faq-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}
.faq-question {
  font-size: 1.2rem;
  font-weight: 700;
  padding: 1.5rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-primary);
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+";
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--color-accent);
  transition: transform 0.3s ease;
  margin-left: 1rem;
}
.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}
.faq-question h2 {
  font-size: inherit;
  font-weight: inherit;
  margin: 0;
  line-height: inherit;
}
.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--color-text);
}
.faq-answer p:first-child { margin-top: 0; }
.faq-answer p:last-child { margin-bottom: 0; }

/* --- 10. UBICACIÓN Y CONTACTO --- */
.location-grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}
.location-info {
  text-align: center;
}
.location-info-title {
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}
.location-info > p {
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: var(--spacing-md);
}
.map-container {
  position: relative;
  overflow: hidden;
  padding-top: 75%;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
}
.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Tarjetas de Contacto (Grilla) */
.contact-cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}
.contact-card {
  background-color: #fff;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  height: 100%;
  min-height: 90px;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  will-change: transform, box-shadow;
}
.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  border-color: rgba(0,0,0,0.1);
}
.icon-box {
  background-color: #f3f4f6;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-box svg {
  color: var(--color-primary);
  width: 20px;
  height: 20px;
}
.contact-text {
  flex-grow: 1;
}
.contact-text h4 {
  margin: 0 0 0.2rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}
.contact-text p,
.contact-text a {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
  line-height: 1.3;
  word-wrap: break-word;
}
.contact-text a {
  color: #555;
  text-decoration: none;
}
.contact-text a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}
.location-info .btn {
  width: 100%;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 8px;
  padding: 10px 0;
}

/* --- 11. BREADCRUMBS --- */
.breadcrumb-nav {
  background-color: var(--color-background-light);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.breadcrumb-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}
.breadcrumb-item {
  display: flex;
  align-items: center;
}
.breadcrumb-item a {
  color: var(--color-secondary);
  text-decoration: none;
}
.breadcrumb-item a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  margin: 0 0.5rem;
  color: var(--color-border);
}
.breadcrumb-item.active {
  color: var(--color-text);
  font-weight: 700;
}

/* --- 12. OTROS ELEMENTOS --- */
/* Botón Flotante WhatsApp */
#whatsapp-flotante {
  position: fixed;
  width: 75px;
  height: 75px;
  bottom: 90px;
  right: 26px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  transition: all 0.3s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}
#whatsapp-flotante:hover {
  transform: scale(1.1);
  box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.5);
}
#whatsapp-flotante svg {
  width: 50px;
  height: 50px;
  fill: white;
}

/* Footer */
.footer {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  padding-top: var(--spacing-lg);
}
.footer-grid {
  display: grid;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}
.footer a {
  color: var(--color-text-light);
  opacity: 0.8;
}
.footer a:hover {
  opacity: 1;
  text-decoration: underline;
}
.footer-heading,
footer h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 1rem;
}
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 1rem 0;
  text-align: center;
  font-size: 0.9rem;
}
.footer-bottom p { margin: 0; }

/* Páginas de Servicios Internas */
.service-page .service-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 2rem;
}
.service-content {
  display: grid;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}
.service-sidebar {
  background-color: var(--color-background-light);
  padding: var(--spacing-md);
  border-radius: 5px;
  text-align: center;
}
.service-sidebar h3 { margin-top: 0; }


/* --- 13. MEDIA QUERIES (TABLET & DESKTOP) --- */

/* Tablet (768px y superior) */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  .hero-title { font-size: 3rem; }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonial-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-areas: "about about" "links contact";
  }
  .footer-about { grid-area: about; }
  .footer-links { grid-area: links; }
  .footer-contact { grid-area: contact; }

  .service-content {
    grid-template-columns: 2fr 1fr;
  }

  


  /* Stats Grid */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  /* Contact Cards Grid */
  .contact-cards-container {
    grid-template-columns: 1fr 1fr;
  }
  .location-info .btn {
    width: auto;
    padding: 10px 30px;
  }
}

/* Desktop (992px y superior) */
@media (min-width: 992px) {
  .hero {
    padding: 5rem 1rem;
    text-align: left;
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
  }
  .hero-content {
    text-align: left;
    padding-right: 2rem;
  }
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
    font-size: 1.25rem;
  }
  .hero-actions {
    flex-direction: row;
    justify-content: flex-start;
  }
  .hero .btn { width: auto; }
  
  .features-grid { gap: 1.5rem; }
  .feature-card {
    padding: 2rem;
    min-height: 160px;
  }
  .feature-card svg {
    width: 42px;
    height: 42px;
  }

  /* About Modern */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  /* Ubicación Grid Ajustado */
  .location-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr; /* Más espacio a las tarjetas */
    gap: 2rem;
    align-items: start;
  }
  .location-info {
    text-align: left;
  }
  .location-info > p {
    margin-left: 0;
    margin-right: 0;
  }

  /* Stats Grid Desktop */
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    position: relative;
  }
  .stat-item:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }
}

/* Desktop Large (1024px y superior - Navegación) */
@media (min-width: 1024px) {
  .menu-btn { display: none; }
  .nav {
    position: static;
    flex-direction: row;
    width: auto;
    height: auto;
    background-color: transparent;
    z-index: auto;
    gap: 0;
    padding: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav a {
    color: var(--color-primary);
    font-size: 1rem;
    padding: 0 1rem;
    background-color: transparent;
  }
  .nav a.active,
  .nav a:hover {
    color: var(--color-accent);
    background-color: transparent;
  }
  .dropdown-toggle {
    display: flex;
    gap: 0.5rem;
  }
  .dropdown-arrow {
    width: 10px;
    height: 10px;
  }
  .nav-item.dropdown {
    position: relative;
    width: auto;
  }
  .dropdown-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    min-width: 240px;
    background-color: var(--color-text-light);
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    z-index: 1000;
    max-height: none;
    overflow: visible;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
  }
  .nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .dropdown-menu a {
    color: var(--color-primary);
    padding: 0.75rem 1.5rem;
    display: block;
    width: 100%;
    font-weight: 700;
    background-color: transparent;
  }
  .dropdown-menu a:hover {
    background-color: var(--color-background-light);
    color: var(--color-accent);
  }
  
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-areas: "about links contact";
  }
}