/*
  ========================================
  DESARROLLO
  ========================================
  Desarrollado por: Carlos Ariel Mergen
  Email: carlosarielmergen@gmail.com
  Fecha: Septiembre 2025
  Versión: 1.0.0
  ========================================
*/

/* =====================
   SISTEMA DE DISEÑO UNIFICADO - ARQUITECTURA PROFESIONAL
   ===================== */

/* =====================
   SISTEMA DE ESPACIADO (8pt Grid System)
   ===================== */
:root {
  /* Base Unit: 8px */
  --base-unit: 8px;

  /* Spacing Scale (8pt Grid) */
  --spacing-2xs: calc(var(--base-unit) * 0.25); /* 2px */
  --spacing-xs: calc(var(--base-unit) * 0.5); /* 4px */
  --spacing-sm: calc(var(--base-unit) * 1); /* 8px */
  --spacing-md: calc(var(--base-unit) * 2); /* 16px */
  --spacing-lg: calc(var(--base-unit) * 3); /* 24px */
  --spacing-xl: calc(var(--base-unit) * 4); /* 32px */
  --spacing-2xl: calc(var(--base-unit) * 5); /* 40px */
  --spacing-3xl: calc(var(--base-unit) * 6); /* 48px */
  --spacing-4xl: calc(var(--base-unit) * 8); /* 64px */
  --spacing-5xl: calc(var(--base-unit) * 10); /* 80px */

  /* Container Spacing */
  --container-padding-desktop: var(--spacing-lg);
  --container-padding-tablet: var(--spacing-md);
  --container-padding-mobile: var(--spacing-sm);
  --container-padding-mobile-small: var(--spacing-xs);

  /* Section Spacing */
  --section-padding-vertical: var(--spacing-4xl);
  --section-padding-vertical-mobile: var(--spacing-3xl);

  /* Component Spacing */
  --component-gap-large: var(--spacing-lg);
  --component-gap-medium: var(--spacing-md);
  --component-gap-small: var(--spacing-sm);

  /* =====================
      PALETA DE COLORES
      ===================== */
  --primary: #f8f9fa;
  --secondary: #e9ecef;
  --accent: #dee2e6;
  --primary-color: #8a0908;
  --secondary-color: #bfa23d;
  --secondary-dark: color-mix(in srgb, #bfa23d 70%, #000 30%);
  --secondary-light: color-mix(in srgb, #bfa23d 30%, #fff 70%);
  --tertiary-color: #34495e;
  --text: var(--tertiary-color);
  --text-color: var(--tertiary-color);
  --text-light: #6c757d;
  --text-muted: #6c757d;
  --border: #bdc3c7;
  --border-light: #dee2e6;
  --border-dark: #6c757d;
  --shadow: rgba(0, 0, 0, 0.15);
  --shadow-light: rgba(0, 0, 0, 0.08);
  --shadow-heavy: rgba(0, 0, 0, 0.25);
  --hover: #f1f3f4;
  --hover-dark: #e9ecef;
  --active: #dee2e6;
  --button: var(--primary-color);
  --button-hover: color-mix(in srgb, var(--primary-color) 70%, #000 30%);
  --button-outline: var(--primary-color);
  --button-dark: color-mix(in srgb, var(--primary-color) 70%, #000 30%);
  --button-light: color-mix(in srgb, var(--primary-color) 30%, #fff 70%);
  --primary-dark: color-mix(in srgb, var(--primary-color) 70%, #000 30%);
  --primary-darker: color-mix(in srgb, var(--primary-color) 50%, #000 50%);
  --secondary-dark: color-mix(in srgb, var(--secondary-color) 70%, #000 30%);
  --white: #ffffff;
  --text-on-primary: var(--white);
  --text-on-secondary: var(--text);
  --success: #28a745;
  --warning: #ffc107;
  --error: #dc3545;
  --info: #17a2b8;
  --bg-light: #ffffff;
  --bg-medium: #f8f9fa;
  --bg-dark: #e9ecef;

  /* =====================
      TIPOGRAFÍA
      ===================== */
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem; /* 36px */
  --font-size-5xl: 3rem; /* 48px */

  /* =====================
      BREAKPOINTS
      ===================== */
  --breakpoint-xs: 480px;
  --breakpoint-sm: 768px;
  --breakpoint-md: 1024px;
  --breakpoint-lg: 1200px;
  --breakpoint-xl: 1440px;
}

/* =====================
     TEMA PRINCIPAL
     ===================== */
.theme .hero {
  background: rgba(138, 9, 8, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8rem;
  box-sizing: border-box;
  position: relative;
  /* Fijar dimensiones para prevenir CLS */
  min-height: 500px;
  max-height: 80vh;
  aspect-ratio: 16/9;
  width: 100%;
  overflow: hidden;
  /* Optimización de renderizado */
  contain: layout style paint;
  will-change: auto;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Imagen de fondo optimizada para LCP */
.theme .hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  aspect-ratio: 16/9;
  will-change: auto;
  transform: translateZ(0);
}

.theme .hero-content {
  text-align: center;
  max-width: 800px;
  width: 90%;
  margin: 0 auto;
  padding: var(--spacing-xxl);
  position: relative;
  z-index: 2;
  /* Estabilizar contenido para prevenir CLS */
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.theme .hero h1 {
  color: var(--white);
  text-shadow: -1px 2px black;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  /* Estabilizar para prevenir CLS */
  min-height: 3.5rem;
  line-height: 1.2;
  width: 100%;
  text-rendering: optimizeSpeed;
}
.theme .hero h2 {
  color: var(--white);
  text-shadow: -1px 2px black;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
}
.theme .hero p {
  text-shadow: -1px 2px black;
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-xl);
  font-weight: 500;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  /* Estabilizar para prevenir CLS */
  min-height: 4rem;
  width: 100%;
  text-rendering: optimizeSpeed;
}
.theme .hero-icon {
  color: var(--primary-color);
  font-size: 4rem;
  margin-bottom: var(--spacing-lg);
  display: block;
}
.theme .hero-buttons {
  display: flex;
  gap: var(--spacing-lg);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-xl);
  /* Estabilizar para prevenir CLS */
  min-height: 3rem;
  width: 100%;
  align-items: center;
}
/* Sistema de grillas ya implementado arriba - no se necesita código adicional */
.theme .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  box-sizing: border-box;
  width: 100%;
}
.theme .container p {
  color: var(--text);
}
.theme .section-title {
  text-align: left;
  margin-bottom: var(--spacing-xl);
  max-width: 800px;
  margin-left: 0;
  margin-right: auto;
}
.theme .section-title h2 {
  color: var(--text);
  margin-bottom: var(--spacing-sm);
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  font-family: serif;
}
.theme .section-title p {
  color: var(--primary-color);
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
}

.theme .section-title i{
  color: var(--text);
  font-size: 3rem;
}
/* =====================
   PADDING BASE DE SECCIONES
   ===================== */

/* Asegurar que todas las secciones tengan ancho completo */
.theme .services,
.theme .timeline-section,
.theme .testimonials,
.theme .faq,
.theme .team,
.theme .honorarios,
.theme .contact,
.theme .about,
.theme .why-choose,
.theme .noseligen {
  width: 100%;
  overflow: hidden;
}
.theme .services {
  padding: var(--spacing-xxl) 0;
}

.theme .timeline-section {
  padding: var(--spacing-xxl) 0;
}

.theme .testimonials {
  padding: var(--spacing-xxl) 0;
}

.theme .faq {
  padding: var(--spacing-xxl) 0;
}

.theme .team {
  padding: var(--spacing-xxl) 0;
}

.theme .honorarios {
  padding: var(--spacing-xxl) 0;
}

.theme .contact {
  padding: var(--spacing-xxl) 0;
}

.theme .about {
  padding: var(--spacing-xxl) 0;
}

.theme .why-choose {
  padding: var(--spacing-xxl) 0;
}



.theme .stat-number {
  font-size: 2.5rem;
}

.theme .stat p {
  font-size: 0.9rem;
}

/* =====================
   MARGIN TOP DE GRIDS
   ===================== */
.theme .services-grid {
  margin-top: var(--spacing-xl);
}

.theme .testimonials-grid {
  margin-top: var(--spacing-xl);
}

.theme .team-grid {
  margin-top: var(--spacing-xl);
}

.theme .honorarios-grid {
  margin-top: var(--spacing-xl);
}
/* =====================
   MARGIN Y PADDING BASE DE CARDS
   ===================== */
.theme .service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.theme .testimonial-card {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  margin: 0;
}

.theme .team-member {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  margin: 0;
}

.theme .honorario-card {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  margin: 0;
}
/* =====================
   TIPOGRAFÍA BASE DEL TEMA
   ===================== */
.theme .section-title h2 {
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.theme .service-card h3 {
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.theme .testimonial-card h3 {
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.theme .team-member h3 {
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.theme .honorario-card h3 {
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.theme .contact-info h3 {
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.theme .contact-form h3 {
  color: var(--text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
/* =====================
   TEXTO BASE DEL TEMA
   ===================== */

.theme .service-card p {
  color: var(--text);
}

.theme .testimonial-content p {
  color: var(--text);
}

.theme .team-info p {
  color: var(--text);
}

.theme .form-group label {
  color: var(--text);
}

.theme .testimonial-author span,
.theme .team-role,
.theme .honorario-card .description {
  color: var(--tertiary-color);
}
.theme .cta-button1 {
  background: var(--button);
  color: var(--primary);
  border: 2px solid var(--button);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: var(--spacing-sm) var(--spacing-xl);
}
.theme .cta-button1:hover {
  background: var(--button-hover);
  border-color: var(--button-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-heavy);
}

.theme .cta-button-outline {
  color: var(--button-outline);
  border: 2px solid var(--button-outline);
  background: transparent;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: var(--spacing-sm) var(--spacing-xl);
}
.theme .cta-button-outline:hover {
  background: var(--button);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}
/* =====================
   ESTILOS BASE DE CARDS
   ===================== */

.theme .testimonial-card {
  border: 2px solid var(--border);
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
}

.theme .team-member {
  border: 2px solid var(--border);
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
}

.theme .honorario-card {
  border: 2px solid var(--border);
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
}

/* =====================
     HOVERS PRINCIPALES - CARDS
     ===================== */
/* =====================
   HOVERS PRINCIPALES - CARDS
   ===================== */
.theme .service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  background: var(--white);
}

.theme .service-card:hover i {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1);
}

.theme .testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--shadow-heavy);
  border-color: var(--border-dark);
  background: var(--hover);
}

.theme .team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--shadow-heavy);
  border-color: var(--border-dark);
  background: var(--hover);
}

.theme .honorario-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--shadow-heavy);
  border-color: var(--border-dark);
  background: var(--hover);
}


/* =====================
     HOVERS ESPECIALES - ELEMENTOS ÚNICOS
     ===================== */
/* Hover para team-photo */
.theme .team-member:hover .team-photo {
  background: var(--secondary-color);
  border-color: var(--primary-color);
  transform: scale(1.1);
}

/* Hover para honorario-header */
.theme .honorario-card:hover .honorario-header {
  background: var(--primary-dark);
  transition: all 0.3s ease;
}
/* =====================
   ESTILOS BASE DE FORMULARIOS
   ===================== */
.theme .form-group input {
  border: 2px solid var(--border);
  background: var(--bg-light);
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
}

.theme .form-group textarea {
  border: 2px solid var(--border);
  background: var(--bg-light);
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
}

.theme .form-group select {
  border: 2px solid var(--border);
  background: var(--bg-light);
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
}
/* =====================
   ESTADOS FOCUS DE FORMULARIOS
   ===================== */
.theme .form-group input:focus {
  border-color: var(--border-dark);
  background: var(--bg-light);
  box-shadow: 0 0 0 3px var(--shadow-light);
  transform: translateY(-1px);
}

.theme .form-group textarea:focus {
  border-color: var(--border-dark);
  background: var(--bg-light);
  box-shadow: 0 0 0 3px var(--shadow-light);
  transform: translateY(-1px);
}

.theme .form-group select:focus {
  border-color: var(--border-dark);
  background: var(--bg-light);
  box-shadow: 0 0 0 3px var(--shadow-light);
  transform: translateY(-1px);
}
.theme header {
  background: #ffffffa3;
  backdrop-filter: none;
  box-shadow: none;
  /* Estabilizar para prevenir CLS */
  min-height: 80px;
  width: 100%;
  position: relative;
  z-index: 1000;
}

.theme .header-container {
  /* Estabilizar para prevenir CLS */
  min-height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-lg);
  box-sizing: border-box;
}
.theme .logo-img {
  filter: brightness(0) saturate(100%) invert(40%) sepia(0%) saturate(0%)
    hue-rotate(0deg) brightness(0.6);
  /* Estabilizar para prevenir CLS */
  width: 200px;
  height: 60px;
  min-width: 200px;
  min-height: 60px;
  max-width: 200px;
  max-height: 60px;
  object-fit: contain;
  display: block;
}

.theme .logo {
  /* Estabilizar contenedor del logo para prevenir CLS */
  min-width: 200px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.theme nav a {
  color: var(--primary-color);
  font-weight: 600;
}
.theme nav a:hover {
  color: var(--text-light);
  transform: translateY(-2px);
}
.theme nav a::after {
  background: var(--border);
}
.theme .hamburger span {
  background: var(--text);
}
.hamburger.open::before {
  color: var(--text);
}
.theme header.scrolled {
  background: rgba(248, 249, 250, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px var(--shadow);
}
.theme header.scrolled nav a {
  color: var(--primary-color);
}
.theme header.scrolled nav a:hover {
  color: var(--secondary-color);
}
.theme header.scrolled .hamburger span {
  background: var(--primary-color);
}
/* Header responsive - Se consolida al final del archivo */
.theme .services {
  background: var(--secondary);
}

.theme .service-card .cta-button1 {
  align-self: center;
  margin-top: var(--spacing-md);
}

/* Ícono y título fijos arriba */
.theme .service-card i {
  flex-shrink: 0; /* No se encoge */
  margin-bottom: var(--spacing-md);
}

.theme .service-card h3 {
  flex-shrink: 0; /* No se encoge */
  margin: var(--spacing-md) 0;
  text-align: center;
  width: 100%;
  font-size: 1.3rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--text);
}

/* Contenido del medio que se expande libremente */
.theme .service-card p,
.theme .service-card ul {
  flex-grow: 1; /* Ocupa todo el espacio disponible */
  margin-bottom: var(--spacing-lg);
}

/* Botón fijo abajo */
.theme .service-card .cta-button1 {
  flex-shrink: 0; /* No se encoge */
  margin-top: auto; /* Se empuja hacia abajo */
  align-self: center;
}

/* =====================
   SISTEMA DE GRID SIMPLE Y FLEXIBLE
   ===================== */

/* Grid base para todas las secciones */
.layout-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  width: 100%;
  margin: 0;
}

.layout-3x1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  width: 100%;
  margin: 0;
}

.layout-4x1 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  width: 100%;
  margin: 0;
}

.layout-2x3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  width: 100%;
  margin: 0;
}

/* Grid responsive - Se consolida al final del archivo */

/* =====================
   TIMELINE SECTION - ESTILOS ORIGINALES
   ===================== */

.theme .timeline-section {
  background: var(--secondary);
}
.theme .timeline-section i {
  font-size: 3rem;
  color: var(--text);
}
.theme .timeline-section .section-title h2 {
  background: var(--text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.theme .timeline::before {
  background: var(--border);
}

.theme .timeline-number {
  background: var(--accent);
  color: var(--text);
  border: 3px solid var(--bg-light);
  box-shadow: 0 2px 8px var(--shadow);
}

.theme .timeline-content {
  background: var(--primary);
  box-shadow: 0 4px 12px var(--shadow);
  border: 1px solid var(--border);
}

.theme .timeline-item.scrolled .timeline-number {
  background: var(--primary-color); /* Fondo rojo */
  color: var(--white); /* Texto blanco */
  border-color: var(--primary-color); /* Borde rojo */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.theme .timeline-item:nth-child(odd) .timeline-content::after {
  border-left-color: var(--primary);
}

.theme .timeline-item:nth-child(even) .timeline-content::after {
  border-right-color: var(--primary);
}

.theme .timeline-item.scrolled .timeline-content::after {
  border-left-color: var(--primary-color);
  border-right-color: var(--primary-color);
}

/* Títulos del timeline */
.timeline-content h3 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

/* Párrafos del timeline */
.timeline-content p {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: var(--spacing-md);
}

/* CTAs del timeline */
.timeline-cta {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--spacing-xs);
  text-decoration: none;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.timeline-cta:hover {
  color: var(--white);
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 9, 8, 0.3);
}

/* Timeline responsive - Se consolida al final del archivo */

/* =====================
   SISTEMA DE COMPONENTES - ATOMIC DESIGN
   ===================== */

/* =====================
   ATOMS (Elementos básicos)
   ===================== */

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--primary-color);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-heavy);
}

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

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Cards */
.card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: var(--spacing-lg);
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
  box-sizing: border-box;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px var(--shadow-heavy);
  border-color: var(--border-dark);
}

/* =====================
   MOLECULES (Combinaciones de átomos)
   ===================== */

/* Service Card */
.service-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: var(--spacing-lg);
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
  box-sizing: border-box;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card .card-icon {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  align-self: center;
}

.service-card .card-title {
  color: var(--text);
  margin: var(--spacing-md) 0;
  text-align: left;
  width: 100%;
  font-size: 1.2rem;
  line-height: 1.2;
  word-wrap: break-word;
  hyphens: auto;
  overflow-wrap: break-word;
}

.service-card .card-content {
  color: var(--text);
  text-align: left;
  line-height: 1.6;
  width: 100%;
}

.service-card .card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  background: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--primary-color);
  align-self: center;
  margin-top: var(--spacing-md);
}

/* Feature Card */
.feature-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: var(--spacing-lg);
  box-shadow: 0 4px 12px var(--shadow);
  transition: all 0.3s ease;
  box-sizing: border-box;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.feature-card .feature-icon {
  background: var(--primary-color);
  color: var(--white);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  transition: all 0.3s ease;
}

.feature-card .feature-icon i {
  color: var(--white);
  font-size: 2.5rem;
  margin: 0;
}

.feature-card:hover .feature-icon {
  background: var(--primary-dark);
  transform: scale(1.1);
}

/* =====================
   ORGANISMS (Secciones completas)
   ===================== */

/* Section Base */
.section {
  width: 100%;
  overflow: hidden;
  padding: var(--section-padding-vertical) 0;
}

.section-white {
  background: var(--white);
}
.section-light {
  background: var(--secondary);
}
.section-primary {
  background: var(--primary-color);
}

/* Section responsive - Se consolida al final del archivo */

/* Section Header */
.section-header {
  margin-bottom: var(--spacing-xl);
}

.section-subtitle {
  color: var(--primary-color);
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

.section-title {
  text-align: left;
  margin-bottom: var(--spacing-sm);
  max-width: 800px;
  margin-left: 0;
  margin-right: auto;
}

.section-title h2 {
  color: var(--text);
  margin-bottom: var(--spacing-sm);
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title p {
  color: var(--primary-color);
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 100%;
  margin-left: 0;
  margin-right: auto;
}

/* =====================
   SISTEMA DE UTILIDADES DE COLORES
   ===================== */

/* Texto primario */
.text-primary,
.theme .text-primary,
.theme p.text-primary,
.theme h1.text-primary,
.theme h2.text-primary,
.theme h3.text-primary,
.theme h4.text-primary,
.theme h5.text-primary,
.theme h6.text-primary,
.theme span.text-primary,
.theme div.text-primary {
  color: var(--primary-color);
}

/* Texto secundario */
.text-secondary,
.theme .text-secondary,
.theme p.text-secondary,
.theme h1.text-secondary,
.theme h2.text-secondary,
.theme h3.text-secondary,
.theme h4.text-secondary,
.theme h5.text-secondary,
.theme h6.text-secondary,
.theme span.text-secondary,
.theme div.text-secondary {
  color: var(--secondary-color);
}

/* Texto terciario */
.text-tertiary,
.theme .text-tertiary,
.theme p.text-tertiary,
.theme h1.text-tertiary,
.theme h2.text-tertiary,
.theme h3.text-tertiary,
.theme h4.text-tertiary,
.theme h5.text-tertiary,
.theme h6.text-tertiary,
.theme span.text-tertiary,
.theme div.text-tertiary {
  color: var(--tertiary-color);
}

/* Texto muted */
.text-muted,
.theme .text-muted,
.theme p.text-muted,
.theme h1.text-muted,
.theme h2.text-muted,
.theme h3.text-muted,
.theme h4.text-muted,
.theme h5.text-muted,
.theme h6.text-muted,
.theme span.text-muted,
.theme div.text-muted {
  color: var(--text-muted);
}

/* Texto de éxito */
.text-success,
.theme .text-success,
.theme p.text-success,
.theme h1.text-success,
.theme h2.text-success,
.theme h3.text-success,
.theme h4.text-success,
.theme h5.text-success,
.theme h6.text-success,
.theme span.text-success,
.theme div.text-success {
  color: var(--success);
}

/* Texto de advertencia */
.text-warning,
.theme .text-warning,
.theme p.text-warning,
.theme h1.text-warning,
.theme h2.text-warning,
.theme h3.text-warning,
.theme h4.text-warning,
.theme h5.text-warning,
.theme h6.text-warning,
.theme span.text-warning,
.theme div.text-warning {
  color: var(--warning);
}

/* Texto de error */
.text-error,
.theme .text-error,
.theme p.text-error,
.theme h1.text-error,
.theme h2.text-error,
.theme h3.text-error,
.theme h4.text-error,
.theme h5.text-error,
.theme h6.text-error,
.theme span.text-error,
.theme div.text-error {
  color: var(--error);
}

/* Texto de información */
.text-info,
.theme .text-info,
.theme p.text-info,
.theme h1.text-info,
.theme h2.text-info,
.theme h3.text-info,
.theme h4.text-info,
.theme h5.text-info,
.theme h6.text-info,
.theme span.text-info,
.theme div.text-info {
  color: var(--info);
}

/* Texto blanco */
.text-white,
.theme .text-white,
.theme p.text-white,
.theme h1.text-white,
.theme h2.text-white,
.theme h3.text-white,
.theme h4.text-white,
.theme h5.text-white,
.theme h6.text-white,
.theme span.text-white,
.theme div.text-white {
  color: var(--white);
}
.theme .service-card i {
  color: var(--primary-color);
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  align-self: center;
  background: var(--white);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-color);
  transition: all 0.3s ease;
}
.theme .service-card .class-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  margin: var(--spacing-md) 0;
  object-fit: cover;
  align-self: center;
}

/* Service card responsive - Se consolida al final del archivo */
.theme .service-card p {
  text-align: center;
  line-height: 1.6;
  width: 100%;
  color: var(--text-muted);
  margin-bottom: var(--spacing-lg);
  text-align: left;
}
.theme .calculadora-indemnizaciones {
  background: var(--primary);
}
.theme .cta-indemnizaciones {
  background: var(--accent);
  color: var(--text);
}
.theme .cta-indemnizaciones i {
  color: var(--text);
}
.theme .about {
  background: var(--primary);
  padding: var(--spacing-xxl) 0;
}

/* Estilos específicos para #quienes-somos */
#quienes-somos {
  min-height: 400px;
  width: 100%;
  overflow: hidden;
  contain: layout style paint;
}

#quienes-somos .section {
  min-height: 400px;
  width: 100%;
}

#quienes-somos .container {
  min-height: 400px;
  width: 100%;
}

#quienes-somos .about-content {
  min-height: 350px;
  width: 100%;
}

#quienes-somos .about-text {
  min-height: 250px;
  width: 100%;
}

#quienes-somos .stats {
  min-height: 200px;
  width: 100%;
}

/* Elementos específicos de #quienes-somos */
#quienes-somos h2 {
  min-height: 3rem;
  width: 100%;
  line-height: 1.2;
}

#quienes-somos .section-title {
  min-height: 120px;
  width: 100%;
}

#quienes-somos .section-title h2 {
  min-height: 3rem;
  width: 100%;
}

#quienes-somos .section-title span {
  min-height: 1.5rem;
  width: 100%;
}

#quienes-somos p {
  min-height: 1.5rem;
  width: 100%;
  line-height: 1.6;
}

#quienes-somos .stat {
  min-height: 120px;
  width: 100%;
}

#quienes-somos .stat-number {
  min-height: 3rem;
  width: 100%;
  font-size: 2.5rem;
  font-weight: 700;
}

#quienes-somos .stat p {
  min-height: 1.5rem;
  width: 100%;
}

/* Mobile First - Estilos base para móvil */
.theme .about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Desktop - Media query para pantallas grandes */
@media (min-width: 769px) {
  .theme .about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xxl);
    align-items: start;
    text-align: left;
  }
}

.theme .about-text h2 {
  color: var(--text);
  margin-bottom: var(--spacing-lg);
}

.theme .about-text p {
  color: var(--text);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  font-size: 1.1rem;
  text-align: left;
}
.theme .about-text .section-subtitle {
  color: var(--primary-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
}

/* Mobile First - Estilos base para móvil */
.theme .stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  padding: 0px;
  width: 100%;
}

/* Desktop - Media query para pantallas grandes */
@media (min-width: 769px) {
  .theme .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
  }
}

.theme .stat {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--primary);
  border-radius: 10px;
  box-shadow: 0 4px 15px var(--shadow-light);
  transition: all 0.3s ease;
}

.theme .stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow);
  background: var(--hover);
}

.theme .stat:hover .stat-number {
  color: var(--secondary-color);
  transform: scale(1.1);
}

.theme .stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.theme .stat p {
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}
.theme .why-choose {
  background: var(--secondary);
}

.theme .noseligen {
  text-align: left;
  padding: var(--spacing-xxl) 0;
  width: 100%;
  overflow: hidden;
}
.theme .noseligen p {
  text-align: left;
}

.theme .noseligen h3 {
  text-align: left;
}

.theme .noseligen .section-title {
  text-align: left;
}

.theme .noseligen .section-title h2 {
  color: var(--white);
  text-align: left;
}

.theme .noseligen h3 {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Noseligen responsive - Se consolida al final del archivo */
.theme .feature {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.theme .feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.theme .feature h3 {
  color: var(--text);
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  text-align: left;
}

.theme .feature p {
  color: var(--text-muted);
  font-size: var(--font-size-base);
  line-height: 1.6;
  text-align: left;
}

.theme .feature-icon {
  background: var(--white);
  color: var(--primary-color);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
}

.theme .feature-icon i {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin: 0;
}

.theme .feature:hover .feature-icon {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.theme .feature:hover .feature-icon i {
  color: var(--white);
}

/* Sistema de grillas ya implementado arriba - no se necesita código adicional */
.theme .timeline-section {
  background: var(--secondary);
}
.theme .timeline-section .section-title h2 {
  background: var(--text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.theme .timeline::before {
  background: var(--border);
}
.theme .timeline-number {
  background: var(--accent);
  color: var(--text);
  border: 3px solid var(--bg-light);
  box-shadow: 0 2px 8px var(--shadow);
}
.theme .timeline-content {
  background: var(--white);
  box-shadow: 0 4px 12px var(--shadow);
  border: 1px solid var(--border);
}
.theme .timeline-item.scrolled .timeline-content {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.theme .timeline-item.scrolled .timeline-content p {
  color: var(--text);
}
.theme .timeline-item.scrolled .timeline-content h3 {
  color: var(--primary-color);
}
.theme .timeline-item.scrolled .timeline-number {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.theme .timeline-item:nth-child(odd) .timeline-content::after {
  border-left-color: var(--white);
}
.theme .timeline-item:nth-child(even) .timeline-content::after {
  border-right-color: var(--white);
}
.theme .timeline-item.scrolled .timeline-content::after {
  border-left-color: var(--white);
  border-right-color: var(--white);
}
.theme .testimonials {
  background: var(--primary);
}
.theme .testimonials i {
  font-size: 3rem;
  color: var(--text);
}
.theme .testimonial-card {
  background: var(--primary);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-lg);
}
.theme .testimonial-card::before {
  color: var(--primary-color);
}

.theme .testimonial-content {
  margin-bottom: var(--spacing-md);
}
.theme .testimonial-content p {
  font-style: italic;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}
.theme .testimonial-author {
  text-align: center;
}
.theme .testimonial-author h4 {
  color: var(--text);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}
.theme .testimonial-author span {
  color: var(--primary-color);
  font-size: 0.9rem;
}
.theme .faq {
  color: var(--primary-color);
  padding: var(--spacing-lg);
  border-radius: 10px;
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.theme .faq-question i {
  color: var(--primary-color);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.theme .faq-question {
  color: var(--primary-color);
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  cursor: pointer;
  border-radius: 10px 10px 0 0;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.theme .faq-question:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}
.theme .faq-question:hover h3 {
  color: var(--white);
}
.theme .faq-question:hover i {
  color: var(--white);
}

.theme .faq-question:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.theme .faq-question:focus h3 {
  color: var(--white);
}

.theme .faq-question:focus i {
  color: var(--white);
}

.theme .faq-question h3 {
  margin: 0;
  font-size: var(--font-size-lg);
  text-align: left;
  font-weight: 600;
  color: var(--primary-color);
  transition: color 0.3s ease;
}
/* Aumentar especificidad para hover */
.theme .faq-question:hover h3,
.theme .faq-item.active .faq-question h3 {
  color: var(--white);
}
.theme .faq-question:hover i,
.theme .faq-item.active .faq-question i {
  color: var(--white);
}
.theme .faq-item {
  border-radius: 10px;
  margin-bottom: var(--spacing-md);
  overflow: hidden;
}

/* Hover del faq-item eliminado para evitar conflictos con faq-question:hover */

.theme .faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.theme .faq-item.active .faq-question {
  background: var(--primary-color);
  color: var(--white);
  border-radius: 10px 10px 0 0;
}
.theme .faq-item.active .faq-question h3 {
  color: var(--white);
}

.theme .faq-item.active .faq-question:focus {
  outline: 2px solid var(--white);
  outline-offset: 2px;
  background: var(--primary-color);
  color: var(--white);
}

.theme .faq-item.active .faq-question:focus h3 {
  color: var(--white);
}

.theme .faq-item.active .faq-question:focus i {
  color: var(--white);
}

.theme .faq-item.active .faq-question:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.theme .faq-item.active .faq-question:hover h3 {
  color: var(--white);
}
.theme .faq-item.active .faq-question:hover i {
  color: var(--white);
}
.theme .faq-item.active .faq-question i {
  color: var(--white);
  transform: rotate(180deg);
}

.theme .faq-answer {
  background: var(--bg-medium);
  padding: 0 var(--spacing-lg);
  border-radius: 0 0 10px 10px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
  border-top: none;
}
.theme .faq-item.active .faq-answer {
  max-height: 600px;
  opacity: 1;
  padding: var(--spacing-lg);
}
.theme .faq-item.active .faq-question h3 {
  color: var(--white);
}
/* Eliminado display: none/block para permitir transiciones suaves */
.theme .faq-answer p {
  color: var(--text);
  line-height: 1.6;
  font-size: var(--font-size-base);
  margin-bottom: 16px;
}
.faq-answer-list {
  list-style-type: auto;
  margin-left: var(--spacing-lg);
}
.faq-answer-list li {
  margin-bottom: var(--spacing-sm);
}

.faq-answer-list-ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: var(--spacing-sm);
  color: var(--text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

.faq-answer-list-ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-size: 1.2em;
  font-weight: bold;
}

.faq-answer-list-ul li strong {
  color: var(--primary-color);
}

.faq-answer-list li .sub-title {
  display: inline-block;
  color: var(--text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

/* =====================
   SECCIÓN GUÍAS LEGALES ÚTILES
   ===================== */

.theme .guias-content {
  display: flex;
  gap: var(--spacing-5xl);
  justify-content: space-between;
  margin-top: var(--spacing-4xl);
}

.theme .guias-title {
  justify-content: center;
  align-self: center;
  position: relative;
  overflow: hidden;
  align-items: stretch;
}
.theme .guias-title i {
  font-size: 3rem;
}

.theme .guias-title h2 {
  color: var(--text);
  font-size: var(--font-size-4xl);
  font-weight: 700;
}

.theme .guias-title h3 {
  color: var(--primary-color);
  font-size: var(--font-size-2xl);
  font-weight: 400;
  text-align: left;
}

.theme .guia-item {
  margin-bottom: var(--spacing-3xl);
}

.theme .guia-column {
  width: 120px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-medium);
}

.theme .guia-number {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--primary-color);
}

.theme .guia-box {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  position: relative;
  display: flex;
  align-items: stretch;
  gap: var(--spacing-lg);
  min-height: 200px;
}

.theme .guia-content {
  flex: 1;
  padding: var(--spacing-lg);
}

.theme .guia-box h4 {
  color: #2c2c2c;
  font-size: var(--font-size-xl);
  margin-bottom: var(--spacing-lg);
  font-weight: 700;
  line-height: 1.3;
  font-family: serif;
}

.theme .guia-box ol {
  margin: 0;
  padding-left: var(--spacing-lg);
  color: #2c2c2c;
  line-height: 1.6;
  /* Estilo limpio como en la imagen */
  list-style-type: decimal;
  font-family: sans-serif;
}

.theme .guia-box li {
  margin-bottom: var(--spacing-sm);
  font-size: var(--font-size-base);
}

.theme .guia-box li:last-child {
  margin-bottom: 0;
}
.theme .team {
  background: var(--secondary);
}
.theme .team-member {
  background: var(--primary);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-lg);
}
.theme .team-photo {
  margin-bottom: var(--spacing-md);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--border);
  transition: all 0.3s ease;
}

.theme .team-photo i {
  font-size: 3rem;
  color: var(--text);
}

.theme .team-member:hover .team-photo {
  background: var(--tertiary-color);
  border-color: var(--secondary-color);
  transform: scale(1.1);
}
.theme .team-member:hover .team-photo i {
  color: var(--secondary-color);
}
.theme .team-role {
  color: var(--primary-color);
}
.theme .team-info {
  text-align: center;
}
.theme .team-info h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.theme .team-info p {
  color: var(--text);
  line-height: 1.6;
  margin: 0;
}
.theme .honorarios {
  background: var(--secondary);
}
.theme .honorario-card {
  background: var(--primary);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  overflow: hidden;
}
.theme .honorario-header {
  background: var(--primary-color);
  color: var(--white);
  width: 100%;
  padding: var(--spacing-lg);
  text-align: center;
  transition: all 0.3s ease;
}

.theme .honorario-header:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-heavy);
}
.theme .honorario-header i {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
  display: block;
}
.theme .honorario-header h3 {
  color: var(--white);
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}
.theme .honorario-content {
  padding: var(--spacing-lg);
  text-align: center;
}

.theme .honorario-content p {
  color: var(--text);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}
.theme p.honorario-precio {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: var(--spacing-sm);
}
.theme .honorario-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.theme .honorario-content li {
  padding: var(--spacing-xs) 0;
  border-bottom: 1px solid var(--border);
}
.theme .honorario-content li:last-child {
  border-bottom: none;
}

.theme .contact {
  background: var(--primary);
}

.theme .contact-info h3 {
  color: var(--text);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.theme .contact-info {
  width: 100%;
  box-sizing: border-box;
}

.theme .contact-form {
  width: 100%;
  box-sizing: border-box;
}
.theme .contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.theme .contact-form h3 {
  color: var(--text);
  margin-bottom: var(--spacing-lg);
  text-align: left;
}
.theme .contact-form .form-group {
  margin-bottom: var(--spacing-md);
}
.theme .contact-form label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--text);
}
.theme .contact-form input,
.theme .contact-form textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid var(--border);
  border-radius: 5px;
  font-size: 1rem;
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}
.theme .contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.theme .contact-form button[type="submit"] {
  background: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--primary-color);
  font-weight: 600;
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, border-color 0.3s ease,
    transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}
.theme .contact-form button[type="submit"]:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-heavy);
}
.theme footer {
  background: var(--secondary);
  color: var(--text);
}
.theme footer .container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}
.theme footer .footer-socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin-right: 50px;
  font-size: 1.2rem;
}

.theme footer .footer-socials a {
  color: var(--text);
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  /* Hacer el contenedor circular */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  line-height: 1;
}
.theme footer .footer-socials a:hover {
  color: var(--primary-color);
  text-decoration: none;
  background: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.theme #whatsapp-bubble {
  background: var(--whatsapp-green);
}
.theme #whatsapp-bubble i {
  color: var(--primary);
}
/* Hover del service-card ya está incluido en el grupo principal arriba */
.theme .feature:hover {
  box-shadow: 0 10px 25px var(--shadow);
}

.scroll-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-normal);
  z-index: 99;
}
.scroll-to-top:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
}
.popup-body {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}
#whatsapp-popup {
  position: fixed;
  right: 20px;
  bottom: 83px;
  max-width: 100vw;
  background: var(--white);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 99;
  pointer-events: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

#whatsapp-popup a.body-card {
  text-decoration: none;
}

#whatsapp-popup a.body-card:hover {
  text-decoration: none;
  background: var(--medium-gray);
  color: var(--white);
}

#whatsapp-popup.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.body-card {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--light-gray);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all var(--transition-normal);
}
.whatsapp-title {
  color: var(--text);
}

.whatsapp-subtitle {
  color: var(--text);
}

.whatsapp-card:hover {
  background: var(--primary-color);
  color: var(--white);
}
.whatsapp-card:hover .whatsapp-icon-circle {
  background: var(--white);
  color: var(--primary-color);
}
.whatsapp-card:hover .email-icon-circle {
  background: var(--white);
  color: var(--tertiary-color);
}

.email-icon-circle {
  width: 50px;
  height: 50px;
  background: var(--tertiary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
}

.theme .about-text p.text-quote {
  font-style: italic;
  font-weight: 500;
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
  /* Simplificado para LCP */
  text-rendering: optimizeSpeed;
  will-change: auto;
}
.theme .about-text p.text-quote-primary {
  border-left: 3px solid var(--primary-color);
  /* Simplificado para LCP */
  text-rendering: optimizeSpeed;
  will-change: auto;
}

.theme .about-text p.text-quote-secondary {
  border-left: 3px solid var(--tertiary-color);
}

p.text {
  color: var(--text);
}

/* Todas las media queries duplicadas se consolidan al final del archivo */
.theme .contact-item {
  background: var(--secondary);
  padding: var(--spacing-lg);
  border-radius: 10px;
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  transition: all 0.3s ease;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-light);
}

.theme .contact-item-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
  min-width: 30px;
  transition: color 0.3s ease;
}

.theme .contact-item-content {
  flex: 1;
}

.theme .contact-item-title {
  color: var(--text);
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  transition: color 0.3s ease;
}

.theme .contact-item-description {
  color: var(--text);
  transition: color 0.3s ease;
}

.theme .contact-item:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow);
  border-color: var(--primary-color);
}

.theme .contact-item:hover .contact-item-description,
.theme .contact-item:hover .contact-item-icon,
.theme .contact-item:hover .contact-item-title,
.theme .contact-item:hover .contact-item-content .contact-item-title,
.theme .contact-item:hover .contact-item-content .contact-item-description {
  color: var(--white);
}


/* Contacto responsive - Se consolida al final del archivo */

/* =====================
   LISTA DE CARACTERÍSTICAS DEL SERVICIO
   ===================== */

.service-features-list {
  list-style: none;
  padding: 0;
  margin: var(--spacing-md) 0;
  text-align: left;
  margin-left: 0;
  align-self: flex-start;
}

.service-features-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: var(--spacing-sm);
  color: var(--text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

.service-features-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-size: 1.2em;
  font-weight: bold;
}

/* Service features list responsive - Se consolida al final del archivo */

/* =====================
   DR. HENRIQUES SECTION - Presentación del Director
   ===================== */

.theme .dr-presentation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xxl);
  align-items: start;
  margin-top: var(--spacing-xl);
}

/* Foto a la izquierda */
.theme .dr-photo {
  text-align: center;
  order: 1;
}

.theme .dr-photo-container {
  position: relative;
  display: inline-block;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  transition: all var(--transition-normal);
}

.theme .dr-photo-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.theme .dr-photo-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  border-radius: 15px;
}

.theme .dr-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: var(--white);
  padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
  text-align: center;
}

.theme .dr-photo-info h4 {
  color: var(--white);
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  font-family: var(--font-primary);
}

.theme .dr-photo-info p {
  color: var(--white);
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin: 0;
}

/* Biografía a la derecha */
.theme .dr-bio {
  order: 2;
}

.theme .dr-bio-content {
  padding: var(--spacing-md);
}

.theme .dr-bio h3 {
  color: var(--primary-color);
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  font-family: var(--font-primary);
}

.theme .dr-specialty {
  color: var(--secondary-color);
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  font-style: italic;
}

.theme .dr-biography p {
  color: var(--text-dark);
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-base);
}

.theme .dr-intro {
  font-size: var(--font-size-lg);
  font-weight: 500;
  color: var(--text-dark);
}

.theme .dr-experience {
  background: var(--bg-light);
  padding: var(--spacing-md);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.theme .dr-mission {
  font-weight: 600;
  color: var(--primary-color);
}

/* Estadísticas del Dr. */
.theme .dr-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-lg);
  background: var(--bg-light);
  border-radius: 10px;
  border: 2px solid var(--border-light);
}

.theme .dr-stat-item {
  text-align: center;
  padding: var(--spacing-md);
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-normal);
}

.theme .dr-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.theme .dr-stat-number {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
  font-family: var(--font-primary);
}

.theme .dr-stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Valores del Dr. */
.theme .dr-values {
  margin-top: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: 10px;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-light);
}

.theme .dr-values h4 {
  color: var(--primary-color);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  font-family: var(--font-primary);
}

.theme .dr-values-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.theme .dr-values-list li {
  display: flex;
  align-items: center;
  padding: var(--spacing-sm) 0;
  color: var(--text-dark);
  font-size: var(--font-size-base);
  line-height: 1.6;
}

.theme .dr-values-list li i {
  color: var(--primary-color);
  margin-right: var(--spacing-sm);
  font-size: var(--font-size-lg);
}

/* Dr. Henriques responsive - Se consolida al final del archivo */

.theme p.text-left {
  text-align: left;
  align-self: self-start;
}
.theme span.text-left {
  text-align: left;
  align-self: self-start;
}
.theme p.text-right {
  text-align: right;
  align-self: self-end;
}
.theme span.text-right {
  text-align: right;
  align-self: self-end;
}
.theme p.text-center {
  text-align: center;
  align-self: self-center;
}
.theme span.text-center {
  text-align: center;
  align-self: self-center;
}

/* =====================
   ELEMENTOS DE CONTACTO CLICKEABLES
   ===================== */

.theme .contact-item-email,
.theme .contact-item-phone {
  cursor: pointer;
}

.theme .contact-item-email:hover,
.theme .contact-item-phone:hover {
  text-decoration: none;
  color: inherit;
}

/* =====================
   ENLACES DE DIRECCIONES
   ===================== */

.theme .address-link {
  color: var(--text);
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
}

.theme .address-link:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.theme .contact-item:hover .address-link,
.theme .contact-item:hover .address-link:hover {
  color: var(--white);
  text-decoration: none;
}

/* =====================
   MEJORAS DE CONTRASTE PARA ACCESIBILIDAD
   ===================== */

/* Mejorar contraste de texto en fondos claros */
.theme .text-primary {
  color: var(--primary-color);
  font-weight: 600;
}


/* Mejorar contraste de botones */

/* Estilos específicos para timeline-cta */
.theme .timeline-cta {
  background: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--primary-color);
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.theme .timeline-cta:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(138, 9, 8, 0.3);
}

/* Mejorar contraste de elementos de formulario */
.theme input:focus,
.theme textarea:focus,
.theme select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(138, 9, 8, 0.1);
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Mejorar contraste de elementos de navegación */

/* Mejorar contraste de elementos de contacto */


/* Mejorar contraste de elementos de WhatsApp */
.theme .whatsapp-card {
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.theme .whatsapp-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(138, 9, 8, 0.15);
}


.theme .hero-buttons-socials {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--spacing-lg);
}

.theme .hero-buttons-socials a {
  color: var(--white);
  font-size: 1.5rem;
  text-decoration: none;
  transition: all 0.3s ease;
  /* Hacer el contenedor circular */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  line-height: 1;

}


.theme .hero-buttons-socials a:hover {
  color: var(--primary-color);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* =====================================================
   MEDIA QUERIES CONSOLIDADAS - RESPONSIVE DESIGN
   ===================================================== */

/* =====================
   DESKTOP GRANDE (min-width: 1440px)
   ===================== */
/* Estilos específicos para pantallas muy grandes si se necesitan */

/* =====================
   TABLET GRANDE Y DESKTOP PEQUEÑO (max-width: 1024px)
   ===================== */
@media (max-width: 1024px) {
  /* Grid System */
  .layout-3x1 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .layout-4x1 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .layout-2x3 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  /* Timeline */
  .timeline {
    max-width: 800px;
    padding: var(--spacing-xl) 0;
  }

  .timeline-content {
    max-width: 350px;
    padding: var(--spacing-md);
  }

  .timeline-number {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-lg);
  }

  /* Service Cards */
  .theme .service-card h3 {
    font-size: 1.1rem;
  }

  /* Dr. Henriques Section */
  .theme .dr-presentation {
    gap: var(--spacing-xl);
  }

  .theme .dr-photo-img {
    max-width: 350px;
  }

  .theme .dr-stats {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
}

/* =====================
   TABLET (max-width: 1023px)
   ===================== */
@media (max-width: 1023px) {
  .theme .hero-content {
    margin: 0 var(--spacing-md);
    padding: var(--spacing-lg);
    max-width: 90%;
  }
  
  .theme .hero h2 {
    font-size: 3rem;
  }
  
  .theme .hero p {
    font-size: 1.2rem;
  }
  
  .theme .container {
    padding: 0 var(--spacing-md);
    max-width: 100%;
  }
  
  .theme .section-title h2 {
    font-size: 2.2rem;
  }
  
  .theme .section-title p {
    font-size: 1.1rem;
  }
  
  .theme .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .theme .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .theme .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .theme .honorarios-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }

  .theme .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
}

/* =====================
   HEADER MOBILE (max-width: 900px)
   ===================== */
@media (max-width: 900px) {
  .theme header {
    background: var(--primary);
    color: var(--primary-color);
    box-shadow: 0 2px 10px var(--shadow);
    padding: var(--spacing-xs) 0;
  }
  
  .theme .header-container {
    padding: 0 var(--spacing-sm);
    min-height: 60px;
  }
  
  .theme .logo-img {
    width: 180px;
    height: 50px;
    min-width: 180px;
    min-height: 50px;
    max-width: 180px;
    max-height: 50px;
  }
  
  .theme nav a {
    color: var(--text);
  }
  
  .theme nav a:hover {
    color: var(--secondary-color);
  }
  
  .theme .hamburger span {
    background: var(--text);
  }
  
  .theme .mobile-menu {
    background: var(--primary);
    box-shadow: 0 4px 20px var(--shadow);
    top: 120px;
    padding: var(--spacing-lg);
  }
  
  .theme .mobile-menu a {
    color: var(--text);
    font-size: 1.3rem;
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-light);
  }
  
  .theme .mobile-menu a:last-child {
    border-bottom: none;
  }
  
  .theme .mobile-menu a:hover {
    color: var(--secondary-color);
    background: var(--hover);
    padding-left: var(--spacing-sm);
  }
}

/* =====================
   MOBILE Y TABLET (max-width: 768px)
   ===================== */
@media (max-width: 768px) {
  /* Grid System */
  .layout-2x2,
  .layout-3x1,
  .layout-4x1,
  .layout-2x3 {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  /* Section */
  .section {
    padding: var(--section-padding-vertical-mobile) 0;
  }

  /* Timeline */
  .timeline {
    max-width: 100%;
    padding: var(--spacing-lg) 0;
  }

  .timeline::before {
    left: 30px;
    top: 0;
    bottom: auto;
    width: 4px;
    height: 100%;
    transform: none;
  }

  .timeline-number {
    left: 0;
    top: 0;
    transform: none;
    width: 60px;
    height: 60px;
    font-size: var(--font-size-xl);
  }

  .timeline-item {
    margin-bottom: var(--spacing-xl);
  }

  .timeline-left .timeline-content,
  .timeline-right .timeline-content {
    margin: 0;
    text-align: left;
    max-width: 100%;
  }

  .timeline-left .timeline-content::after,
  .timeline-right .timeline-content::after {
    left: -20px;
    right: auto;
    border-right: 20px solid white;
    border-left: none;
  }

  /* Service Cards */
  .theme .service-card h3 {
    font-size: 1rem;
  }

  /* Service Features List */
  .service-features-list {
    text-align: left;
  }

  .service-features-list li {
    padding-right: 0;
    padding-left: 25px;
  }

  .service-features-list li::before {
    right: auto;
    left: 0;
  }

  /* Contact */
  .theme .contact-item {
    padding: var(--spacing-md);
    gap: var(--spacing-sm);
    flex-direction: column;
    text-align: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
  }

  .theme .contact-item-icon {
    margin-bottom: var(--spacing-xs);
  }

  .theme .contact-item-content {
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .theme .contact-content {
    gap: var(--spacing-md);
    padding: 0 var(--spacing-sm);
  }

  .theme .contact-info,
  .theme .contact-form {
    width: 100%;
    box-sizing: border-box;
  }

  .theme .contact-form button[type="submit"] {
    width: 100%;
    box-sizing: border-box;
    padding: var(--spacing-md);
  }

  /* Dr. Henriques Section */
  .theme .dr-presentation {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }

  .theme .dr-photo {
    order: 1;
  }

  .theme .dr-bio {
    order: 2;
  }

  .theme .dr-photo-img {
    max-width: 300px;
  }

  .theme .dr-bio h3 {
    font-size: var(--font-size-2xl);
  }

  .theme .dr-stats {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
  }

  .theme .dr-stat-item {
    padding: var(--spacing-sm);
  }

  .theme .dr-stat-number {
    font-size: var(--font-size-2xl);
  }
}

/* =====================
   MOBILE (max-width: 767px)
   ===================== */
@media (max-width: 767px) {
  /* Hero Section */
  .theme .hero {
    padding: 2rem;
    height: auto;
  }
  
  .theme .hero-content {
    margin: 0 var(--spacing-sm);
    padding: var(--spacing-sm);
    max-width: 95%;
    min-height: 200px;
  }
  
  .theme .hero h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
  }
  
  .theme .hero h2 {
    font-size: 1.8rem;
    line-height: 1.2;
  }
  
  .theme .hero p {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: var(--spacing-md);
  }
  
  .theme .hero-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
  }
  
  .theme .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
  }
  
  .theme .hero-buttons a {
    min-width: 250px;
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 0.9rem;
  }
  
  .theme .container {
    padding: 0 var(--spacing-sm);
    max-width: 100%;
  }
  
  .theme .section-title {
    margin-bottom: var(--spacing-lg);
  }
  
  .theme .services,
  .theme .timeline-section,
  .theme .testimonials,
  .theme .faq,
  .theme .team,
  .theme .honorarios,
  .theme .contact {
    padding: var(--spacing-xl) 0;
  }
  
  .theme .section-title h2 {
    font-size: 1.8rem;
    line-height: 1.3;
  }
  
  .theme .section-title p {
    font-size: 1rem;
    line-height: 1.5;
  }
  
  .theme .faq-question {
    padding: var(--spacing-md);
  }
  
  .theme .faq-question h3 {
    font-size: 1rem;
    line-height: 1.4;
  }
  
  .theme .faq-answer {
    padding: 0 var(--spacing-md);
  }
  
  .theme .faq-item.active .faq-answer {
    padding: var(--spacing-md);
  }
  
  .theme .faq {
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }
  
  .theme .guias-content {
    flex-direction: column;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
  }
  
  .theme .guia-box {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .theme .guia-column {
    width: 100%;
    height: 60px;
  }
  
  .theme .guia-number {
    font-size: var(--font-size-2xl);
  }
  
  .theme .guia-box {
    padding: var(--spacing-md);
  }
  
  .theme .guias-text h3 {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-lg);
  }
  
  .theme .form-group {
    margin-bottom: var(--spacing-md);
  }
  
  .theme .form-group input,
  .theme .form-group textarea,
  .theme .form-group select {
    padding: var(--spacing-md);
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .theme .service-card,
  .theme .testimonial-card,
  .theme .team-member,
  .theme .honorario-card {
    padding: var(--spacing-md);
    margin: 0 var(--spacing-xs);
  }
  
  .theme .team-photo {
    width: 100px;
    height: 100px;
  }
  
  .theme .team-photo i {
    font-size: 2.5rem;
  }
  
  .theme .honorario-header {
    padding: var(--spacing-md);
  }
  
  .theme .honorario-content {
    padding: var(--spacing-md);
  }
  
  .theme .honorario-precio {
    font-size: 1.5rem;
  }

  .theme .contact-item-text p {
    color: var(--text);
  }
  
  .theme .contact-form {
    padding: var(--spacing-md);
  }
  
  .theme #whatsapp-bubble {
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
  }
  
  .theme #whatsapp-bubble i {
    font-size: 1.8rem;
  }

  /* WhatsApp Popup */
  #whatsapp-popup {
    width: 100vw;
    right: 0;
    left: 0;
    bottom: 0px;
    border-radius: 16px 16px 0 0;
  }
}

/* =====================
   MOBILE PEQUEÑO (max-width: 480px)
   ===================== */
@media (max-width: 480px) {
  /* Grid System */
  .layout-2x2,
  .layout-3x1,
  .layout-4x1,
  .layout-2x3 {
    gap: var(--spacing-sm);
  }

  /* Header */
  .theme .logo-img {
    width: 160px;
    height: 45px;
    min-width: 160px;
    min-height: 45px;
    max-width: 160px;
    max-height: 45px;
  }
  
  .theme .mobile-menu {
    top: 99px;
    padding: var(--spacing-md);
  }
  
  .theme .mobile-menu a {
    font-size: 1.2rem;
    padding: var(--spacing-sm) 0;
  }

  /* Hero Section */
  .theme .hero {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
  }
  
  .theme .hero-content {
    margin: 0 var(--spacing-xs);
    padding: var(--spacing-xs);
    min-height: 150px;
  }
  
  .theme .hero h1 {
    font-size: 1.6rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .theme .hero h2 {
    font-size: 1.4rem;
  }
  
  .theme .hero p {
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .theme .hero-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .theme .hero-buttons a {
    min-width: 200px;
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.85rem;
  }

  /* Sections */
  .theme .section-title h2 {
    font-size: 1.6rem;
  }
  
  .theme .section-title p {
    font-size: 0.9rem;
  }
  
  .theme .container {
    padding: 0 var(--spacing-xs);
    max-width: 100%;
  }

  /* Cards */
  .theme .service-card,
  .theme .testimonial-card,
  .theme .team-member,
  .theme .honorario-card {
    margin: 0;
    padding: var(--spacing-sm);
  }

  /* Service Cards */
  .theme .service-card h3 {
    font-size: 0.9rem;
    line-height: 1.1;
  }

  /* Timeline */
  .timeline-number {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-lg);
  }

  .timeline-content {
    padding: var(--spacing-sm);
  }

  .timeline-content h3 {
    font-size: var(--font-size-base);
  }

  .timeline-content p {
    font-size: var(--font-size-sm);
  }

  .timeline-cta {
    font-size: var(--font-size-xs);
    padding: var(--spacing-xs) var(--spacing-sm);
  }

  /* Noseligen */
  .theme .noseligen h3 {
    white-space: normal;
    line-height: 1.3;
    max-height: 4.5em;
    overflow: hidden;
  }

  /* Contact */
  .theme .contact-item {
    padding: var(--spacing-sm);
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    width: 100%;
    box-sizing: border-box;
  }

  .theme .contact-item-icon {
    font-size: 1.2rem;
    min-width: 25px;
  }

  .theme .contact-item-title {
    font-size: 0.9rem;
  }

  .theme .contact-item-description {
    font-size: 0.85rem;
  }

  .theme .contact-content {
    gap: var(--spacing-sm);
    padding: 0 var(--spacing-xs);
  }

  .theme .contact-info,
  .theme .contact-form {
    padding: var(--spacing-sm);
  }

  /* Dr. Henriques Section */
  .theme .dr-photo-img {
    max-width: 250px;
  }

  .theme .dr-bio-content {
    padding: var(--spacing-sm);
  }

  .theme .dr-bio h3 {
    font-size: var(--font-size-xl);
  }

  .theme .dr-specialty {
    font-size: var(--font-size-base);
  }

  .theme .dr-stats {
    grid-template-columns: 1fr;
    padding: var(--spacing-md);
  }

  .theme .dr-values {
    padding: var(--spacing-md);
  }

  /* WhatsApp Popup */
  #whatsapp-popup {
    width: 100vw;
    right: 0;
    left: 0;
    bottom: 0px;
    border-radius: 16px 16px 0 0;
  }
}

/* =====================
   DESKTOP Y TABLET (min-width: 768px)
   ===================== */
@media (min-width: 768px) {
  .theme .hero-buttons {
    flex-direction: row;
  }
}

/* ===================================================== 
   FIN DE MEDIA QUERIES CONSOLIDADAS
   ===================================================== */