/* Diseño profesional corporativo - Grupo Marino Industrial */
:root {
  /* Paleta de colores profesional */
  --primary: #1e3a8a; /* Azul corporativo profundo */
  --primary-light: #3b82f6; /* Azul claro */
  --primary-dark: #1e40af; /* Azul oscuro */
  --secondary: #475569; /* Gris profesional */
  --accent: #059669; /* Verde corporativo */
  --accent-light: #10b981; /* Verde claro */
  --warning: #f59e0b; /* Amarillo/naranja */
  
  /* Fondos y superficies */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  
  /* Texto */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-inverse: #ffffff;
  
  /* Tipografía */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  
  /* Layout */
  --max-width: 1360px;
  --container-padding: 1.5rem;
  --section-spacing: 5rem;
  
  /* Sombras profesionales */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Transiciones */
  --transition-fast: 150ms ease-out;
  --transition-base: 300ms ease-out;
  --transition-slow: 500ms ease-out;
  
  /* Bordes */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* Reset y base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Evitar scroll horizontal inesperado */
html, body { 
  max-width: 100%; 
  overflow-x: hidden; 
}

/* Permitir overflow específicamente en el header cuando hay dropdown */
.header {
  overflow: visible !important;
}

.header .container {
  overflow: visible !important;
}

/* Prevent horizontal overflow only but allow vertical animations */
.services-preview {
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: visible;
}

.container {
  max-width: 100%;
  overflow-x: hidden;
}

/* Excepción específica para el container del header */
.header .container {
  overflow: visible !important;
}
* {
  box-sizing: border-box;
}

/* Force width constraints on main containers only */
.container, 
.services-preview, 
.service-sections, 
.service-section, 
.service-content {
  max-width: 100%;
  overflow-x: hidden;
}

/* Global text overflow prevention */
p, h1, h2, h3, h4, h5, h6, li, span {
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* Container width enforcement */
.service-subsections, .subsection {
  max-width: 100%;
  overflow-x: hidden;
}

/* Text breaking for technical terms */
.subsection__text, .list-check li, .service-detail__lead {
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Accesibilidad */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  background: var(--primary);
  color: white;
  padding: .5rem 1rem;
  border-radius: .5rem;
  z-index: 2000;
}

/* Layout containers */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; font-weight: 700; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
}

.muted { color: var(--text-muted); }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-light);
}

/* Header profesional */
.header {
  background: #fff;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand__logo {
  height: 50px;
  width: auto;
  border-radius: var(--radius-sm);
}

.brand__text {
  color: var(--text-primary);
}

.brand__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
}

.brand__subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Botón de hamburguesa */
.nav-toggle {
  display: none; /* Oculto en desktop */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger {
  display: block;
  position: relative;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease-in-out;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease-in-out;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

/* Animación del botón a 'X' */
.nav-toggle[aria-expanded="true"] .hamburger {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* Navegación */
.nav__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav__link {
  color: var(--text-secondary);
  font-weight: 500;
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition-fast);
}

.nav__link:hover {
  color: var(--primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Dropdown */
.nav__item--dropdown {
  position: relative;
}

.nav__link--dropdown {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.dropdown-arrow {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--text-secondary);
  transition: transform var(--transition-fast);
}

.nav__item--dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-base);
}

.nav__item--dropdown:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.nav__dropdown-link:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

/* Estilos responsivos */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
    z-index: 1001; /* Asegura que esté sobre el menú */
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: #fff;
    box-shadow: var(--shadow-xl);
    transition: right 0.35s ease-in-out;
    padding-top: 6rem;
  }

  .nav.is-active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 0 2rem;
  }

  .nav__item {
    width: 100%;
  }

  .nav__link {
    display: block;
    width: 100%;
    padding: 1rem 0;
    font-size: 1.125rem;
  }

  .nav__link::after {
    display: none;
  }

  .nav__item--dropdown:hover .nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: none;
    position: static;
    box-shadow: none;
    padding-left: 1rem;
    display: none; /* Oculto por defecto en móvil */
  }
  
  .nav__item--dropdown.is-open .nav__dropdown {
      display: block; /* Se muestra con JS */
  }

  .nav__dropdown {
    display: none;
  }
}

/* Hero section impactante */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #059669 100%) !important;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
  opacity: 0.3;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.2), transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(5, 150, 105, 0.2), transparent 50%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.hero__badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__lead {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat {
  text-align: center;
}

.stat__number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botones modernos */
.cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}
.cta-group--left { justify-content: flex-start; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.0625rem;
  text-transform: none;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn__icon {
  transition: transform var(--transition-base);
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(5, 150, 105, 0.4);
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn--alt {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn--alt:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Hero section impactante */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #059669 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,165.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
  opacity: 0.3;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(59, 130, 246, 0.2), transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(5, 150, 105, 0.2), transparent 50%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.hero__badge {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero__lead {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat {
  text-align: center;
}

.stat__number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  font-weight: 500;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botones modernos */
.cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}
.cta-group--left { justify-content: flex-start; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.0625rem;
  text-transform: none;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn__icon {
  transition: transform var(--transition-base);
}

.btn:hover .btn__icon {
  transform: translateX(4px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(5, 150, 105, 0.4);
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn--alt {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn--alt:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Services Section */
.services-preview {
  padding: 6rem 0 8rem;
  background: var(--bg-primary);
  overflow: visible;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}
.section-header--compact { margin-bottom: 2rem; }

.section-tag {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(5, 150, 105, 0.1));
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin: 4rem auto;
  padding: 1rem;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.service-card {
  position: relative;
  display: block;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  margin: 1rem 0.5rem;
  transition: all var(--transition-base);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.service-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Removed featured card styling - all cards are now equal
.service-card--featured {
  background: linear-gradient(135deg, #1e3a8a 0%, #059669 100%);
  color: white;
  border-color: transparent;
  transform: scale(1.05);
}

.service-card--featured .service-card__title,
.service-card--featured .service-card__description,
.service-card--featured .service-card__features li,
.service-card--featured .service-card__link {
  color: white;
}
*/

/* Removed badge styles since all cards are now equal
.service-card__badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.375rem 0.875rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
*/

.service-card__icon-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(5, 150, 105, 0.1));
  border-radius: 20px;
  transition: all var(--transition-base);
}

.service-card:hover .service-card__icon-wrapper {
  transform: rotateY(180deg);
}

.service-card__icon {
  color: var(--primary);
  transition: color var(--transition-base);
}

/* Removed featured card icon styles
.service-card--featured .service-card__icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
}

.service-card--featured .service-card__icon {
  color: white;
}
*/

.service-card__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card:hover .service-card__title {
  color: var(--text-primary);
}

.service-card__description {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-size: 1rem;
}

.service-card__features {
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
}

.service-card__features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 700;
  font-size: 1rem;
  transition: all var(--transition-fast);
  margin-top: 1rem;
  pointer-events: none;
}

.service-card:hover .service-card__link {
  gap: 0.5rem;
  color: var(--accent);
}

/* Removed featured card link hover style
.service-card--featured .service-card__link:hover {
  color: rgba(255, 255, 255, 0.9);
}
*/

/* Why Us Section */
.why-us {
  padding: 6rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

/* Back to Services Button */
.back-to-services {
  margin-bottom: 2rem;
  text-align: left;
}

.btn--back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  padding: 0.75rem 1.25rem;
  transition: all var(--transition-fast);
}

.btn--back:hover {
  transform: translateX(-4px);
}

.btn--back .btn__icon {
  transition: transform var(--transition-fast);
}

.btn--back:hover .btn__icon {
  transform: translateX(-2px);
}

.why-us__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.why-us__content {
  padding-right: 2rem;
}

.features-list {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.feature-item:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.feature-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
  border-radius: 0.75rem;
  flex-shrink: 0;
  margin-right: 1rem;
}

.feature-item__icon svg {
  color: white;
  width: auto;
  height: auto;
}

.feature-item__content h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.feature-item__content p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0;
}

.quote {
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.05), rgba(5, 150, 105, 0.05));
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-lg);
}

.quote p {
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 600;
  color: var(--primary);
  margin: 0;
}

.why-us__image {
  position: relative;
}

.image-placeholder {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: rotate(3deg);
  transition: transform var(--transition-slow);
}

.image-placeholder:hover {
  transform: rotate(0deg) scale(1.02);
}

/* About Section */
.about-section {
  padding: 6rem 0;
  background: white;
}

.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
}

.about-content {
  max-width: 700px;
}

.lead-text {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.mission-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 3rem 2rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mission-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mission-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.mission-box h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
  z-index: 1;
}

.mission-box p {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Sections */
section {
  padding: var(--section-spacing) 0;
}

section:nth-child(even) {
  background: var(--bg-secondary);
}

/* Secciones genéricas y detalles de servicio */
.section { padding: var(--section-spacing) 0; }

.service-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-detail__title { 
  margin-bottom: 1rem; 
  color: var(--primary);
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.2;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.service-detail__lead { 
  margin-bottom: 1.5rem; 
  font-size: 1.25rem;
  color: var(--text-secondary);
  font-weight: 500;
  line-height: 1.6;
  max-width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.service-detail__text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.list-check {
  list-style: none;
  padding-left: 0;
}
.list-check li {
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  margin: 1rem 0;
  line-height: 1.7;
  transition: all var(--transition-fast);
  border-radius: var(--radius-md);
  font-size: 1.0625rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(30, 58, 138, 0.06);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  overflow-x: hidden;
  white-space: normal;
}

.list-check li::before {
  content: '';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3csvg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' fill='%23059669'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  flex-shrink: 0;
}
.list-check li:hover {
  background: rgba(30, 58, 138, 0.04);
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: rgba(30, 58, 138, 0.12);
}

/* Chips para sectores */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  list-style: none;
  padding: 0;
}
.chip {
  padding: .5rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  color: var(--text-primary);
  font-weight: 600;
}

/* Lista de clientes */
.client-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
}
.client-item {
  background: var(--surface);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* Galería (Swiper + Fancybox) */
.gallery { margin: 2rem auto 0; max-width: 800px; overflow: hidden; }
.gallery .swiper { --swiper-navigation-color: var(--primary); --swiper-pagination-color: var(--accent); overflow: hidden; padding-bottom: 32px; width: 100%; height: 350px; }
.gallery__img {
  display: block;
  width: 100%;
  height: 310px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.swiper-slide { display: flex; }
.gallery .swiper-slide { width: auto; max-width: 100%; flex-shrink: 0; box-sizing: border-box; }
.gallery .swiper-wrapper { width: 100%; box-sizing: border-box; }
.swiper-button-prev, .swiper-button-next { color: var(--primary); }
/* Asegurar flechas dentro del contenedor para no provocar overflow */
.gallery .swiper-button-prev { left: 8px; }
.gallery .swiper-button-next { right: 8px; }
.swiper-pagination-bullet { background: var(--accent); opacity: .5; }
.swiper-pagination-bullet-active { opacity: 1; }

/* Nuevo layout de Servicios */
.service-sections { display: grid; gap: 5rem; }
.service-section { 
  padding: 4rem 0; 
  position: relative;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.03) 0%, rgba(5, 150, 105, 0.03) 100%);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(30, 58, 138, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}
.service-section + .service-section { border-top: 1px solid #e2e8f0; padding-top: 5rem; margin-top: 5rem; }
.gallery .swiper { width: 100%; }
.service-content { max-width: 100%; padding: 0 3rem; }
.service-content .list-check { margin-top: 2rem; }
.service-content .gallery { margin-top: 3rem; }

/* Variantes por tipo de servicio */
.service-section--mecanico {
  border-left: 4px solid #8b5cf6;
}
.service-section--mecanico .service-detail__title::before {
  background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}
.service-section--electrico {
  border-left: 4px solid #eab308;
}
.service-section--electrico .service-detail__title::before {
  background: linear-gradient(135deg, #eab308 0%, #fbbf24 100%);
}
.service-section--civil {
  border-left: 4px solid #dc2626;
}
.service-section--civil .service-detail__title::before {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}
.list-check--columns { columns: 2; column-gap: 2rem; }
.list-check--columns li { break-inside: avoid; }

/* Subsecciones de servicios */
.service-subsections {
  margin-top: 2rem;
}

.subsection {
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 58, 138, 0.05);
}

.service-detail__title {
  font-size: 1.6rem;
  padding: 0 0.75rem;
  text-align: center;
  margin: 1.5rem 0 1rem 0;
}
  
  .service-detail__lead {
    padding: 0 0.75rem;
    margin: 0 0 1.5rem 0;
  }
  
  .subsection__title {
    font-size: 1rem;
  }
  
  .service-subsections {
    padding: 0 0.25rem;
    margin: 0;
  }
  
  .subsection {
    padding: 0.75rem;
    margin: 0 0 1rem 0;
  }
  
  .advantages {
    padding: 0.75rem;
    margin: 0 0.25rem;
  }
  
  .advantages__list li {
    font-size: 0.9rem;
    padding: 0.625rem 0.625rem 0.625rem 2.25rem;
  }
  
  .advantages__list li::before {
    left: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    background-size: 0.75rem;
  }
  
  .list-check li {
    font-size: 0.9rem;
    padding: 0.5rem 0.5rem 0.5rem 2rem;
    margin: 0.5rem 0;
  }
  
  .list-check li::before {
    left: 0.375rem;
    width: 0.875rem;
    height: 0.875rem;
  }
  
  .gallery {
    margin: 2rem 0;
    padding: 0;
    max-width: 100%;
  }
  
  .gallery .swiper {
    height: 280px;
    padding-bottom: 40px;
  }
  
  .gallery__img {
    height: 240px;
    object-fit: cover;
    border-radius: var(--radius-md);
  }

  .gallery .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    margin: 0 auto;
  }

  .gallery .swiper-wrapper {
    align-items: center;
  }
  
  .hero__content {
    padding: 0 0.75rem;
  }
  
  .services-grid {
    padding: 0 0.75rem;
    gap: 1.5rem;
    margin: 2rem auto;
  }
  
  .service-card {
    padding: 2rem 1.5rem;
    margin: 0.5rem 0;
  }
  
  .why-us__grid {
    padding: 0 0.75rem;
  }
  
  .cta-group {
    padding: 0 0.75rem;
  }
  
  .back-to-services {
    margin-bottom: 1rem;
    padding: 0 0.75rem;
  }
  
  .btn--back {
    font-size: 0.8125rem;
    padding: 0.5rem 0.875rem;
  }
  
  .feature-item__icon {
    width: 2.25rem;
    height: 2.25rem;
    margin-right: 0.5rem;
  }
  
  .feature-item__icon svg {
  width: 100%;
  height: 100%;
  }

/* Footer moderno y profesional */
.site-footer {
  background: linear-gradient(to bottom, var(--bg-tertiary) 0%, rgba(241, 245, 249, 0.8) 100%);
  padding: 5rem 0 2rem;
  margin-top: 7rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right, var(--primary) 0%, var(--accent) 100%);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-top: 1.5rem;
  margin-bottom: 3rem;
  width: 100%;
  overflow: visible !important;
  padding: 0 1rem;
}

.footer__info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__title {
  font-size: 1.5rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.footer__info strong {
  font-size: 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.footer__text-sm {
  font-size: 0.875rem;
  line-height: 1.6;
}

.footer__heading {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  position: relative;
}

.footer__heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__icon {
  width: 16px;
  height: 16px;
  stroke: var(--primary);
  stroke-width: 2;
  flex-shrink: 0;
}

.footer__nav {
  display: flex;
  flex-direction: column;
}

.footer__nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.footer__services {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.footer__services-label {
  font-weight: 600;
  color: var(--text-primary);
}

.footer__services-submenu {
  list-style: none;
  padding: 0 0 0 1rem;
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer__nav a, .footer__contact a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-block;
  position: relative;
}

.footer__nav a:hover, .footer__contact a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer__nav a::after, .footer__contact a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width var(--transition-fast);
}

.footer__nav a:hover::after, .footer__contact a:hover::after {
  width: 100%;
}

.footer__cta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer__cta-btn {
  margin-top: 0.5rem;
  width: fit-content;
}

.btn--accent {
  background-color: var(--accent);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  display: inline-block;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(5, 150, 105, 0.15);
}

.btn--accent:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(5, 150, 105, 0.2);
  color: white;
}

.footer__cta-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer__social-container {
  margin-top: 1.5rem;
}

.footer__subheading {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(30, 58, 138, 0.1);
  color: var(--primary);
  transition: all var(--transition-base);
  font-size: 0;
}

.footer__social-link:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(30, 58, 138, 0.2);
}

.footer__social-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

.footer__links {
  text-align: left;
}

.footer__links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.footer__legal {
  text-align: right;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Footer responsivo */
@media (max-width: 1200px) {
  .footer__top {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 992px) {
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  
  .footer__info {
    grid-column: 1;
  }
  
  .footer__nav {
    grid-column: 2;
  }
  
  .footer__cta {
    grid-column: span 2;
    grid-row: 2;
    margin-top: 2rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
  
  .footer__cta-content {
    max-width: 60%;
  }
  
  .footer__social {
    margin-top: 0;
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 4rem 0 1.5rem;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer__info, .footer__nav, .footer__cta {
    grid-column: 1;
  }
  
  .footer__cta {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .footer__cta-content {
    max-width: 100%;
  }
  
  .footer__social {
    margin-top: 1.5rem;
    margin-left: 0;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer__links, .footer__legal {
  .footer__links, .footer__legal {
    text-align: center;
  }
}

/* ==========================================================================
   Mejoras responsive para subsecciones de servicios
   ========================================================================== */

/* Responsive para subsecciones */
@media (max-width: 768px) {
  .subsection {
    padding: 1.5rem 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(30, 58, 138, 0.08);
  }

  .subsection__title {
    font-size: 1.125rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    text-align: left;
  }

  .subsection__text {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
  }

  .subsection__note {
    font-size: 0.875rem;
    line-height: 1.5;
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(30, 58, 138, 0.04);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--primary);
  }

  /* Lista con columnas - convertir a columna única en móvil */
  .list-check--columns {
    columns: 1;
    column-gap: 0;
  }

  .list-check li {
    font-size: 0.875rem;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    margin: 0.75rem 0;
    line-height: 1.6;
    break-inside: avoid;
  }

  .list-check li::before {
    left: 0.5rem;
    width: 1rem;
    height: 1rem;
    top: 1rem;
    transform: none;
  }

  /* Ventajas específicas */
  .advantages {
    padding: 1.5rem 1rem;
    margin: 2rem 0 1rem 0;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(5, 150, 105, 0.1);
  }

  .advantages__title {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }
/* Contact styles moved to assets/css/contacto.css */



  .advantages__list {
    list-style: none;
    padding: 0;
  }

  .advantages__list li {
    font-size: 0.875rem;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    margin: 0.75rem 0;
    background: rgba(5, 150, 105, 0.03);
    border: 1px solid rgba(5, 150, 105, 0.08);
    border-radius: var(--radius-md);
    position: relative;
  }

  .advantages__list li::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    background-image: url("data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' fill='%23059669'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
  }

  /* Mejoras para el contenido del servicio */
  .service-content {
    padding: 0 1rem;
  }

  .service-detail__lead {
    font-size: 1.125rem;
    padding: 0;
    margin-bottom: 2rem;
  }

  .service-subsections {
    margin-top: 1.5rem;
    padding: 0;
  }

  /* Mejoras para la galería en móvil */
  .gallery {
    margin: 2.5rem 0 2rem 0;
    padding: 0;
    max-width: 100%;
  }
  
  .gallery .swiper {
    height: 320px;
    padding-bottom: 50px;
  }
  
  .gallery__img {
    height: 270px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
  }

  .gallery .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 85%;
    margin: 0 auto;
  }

  .gallery .swiper-wrapper {
    align-items: center;
  }

  .gallery .swiper-button-prev,
  .gallery .swiper-button-next {
    width: 35px;
    height: 35px;
    margin-top: -17px;
  }

  .gallery .swiper-button-prev {
    left: 10px;
  }
  
  .gallery .swiper-button-next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .subsection {
    padding: 1rem 0.75rem;
    margin-bottom: 1.5rem;
  }

  .subsection__title {
    font-size: 1rem;
    line-height: 1.3;
  }

  .subsection__text {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }

  .subsection__note {
    font-size: 0.8125rem;
    padding: 0.75rem;
    margin-top: 1rem;
  }

  .list-check li {
    font-size: 0.8125rem;
    padding: 0.625rem 0.625rem 0.625rem 2.25rem;
    margin: 0.5rem 0;
  }

  .list-check li::before {
    left: 0.375rem;
    width: 0.875rem;
    height: 0.875rem;
    top: 0.875rem;
  }

  .advantages {
    padding: 1rem 0.75rem;
  }

  .advantages__title {
    font-size: 1rem;
  }

  .advantages__list li {
    font-size: 0.8125rem;
    padding: 0.625rem 0.625rem 0.625rem 2.25rem;
  }

  .advantages__list li::before {
    left: 0.375rem;
    width: 0.875rem;
    height: 0.875rem;
  }

  .service-content {
    padding: 0 0.75rem;
  }

  .service-detail__lead {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  /* Galería optimizada para pantallas pequeñas */
  .gallery {
    margin: 2rem 0 1.5rem 0;
  }
  
  .gallery .swiper {
    height: 280px;
    padding-bottom: 45px;
  }
  
  .gallery__img {
    height: 235px;
    border-radius: var(--radius-md);
  }

  .gallery .swiper-slide {
    width: 90%;
  }

  .gallery .swiper-button-prev,
  .gallery .swiper-button-next {
    width: 30px;
    height: 30px;
    margin-top: -15px;
  }

  .gallery .swiper-button-prev {
    left: 5px;
  }
  
  .gallery .swiper-button-next {
    right: 5px;
  }
}
