/* ===== RESET Y VARIABLES ===== */
:root {
  --primary: #000000;
  --primary-dark: #1a1a1a;
  --secondary: #ffb300;
  --secondary-dark: #e69a00;
  --text-dark: #1a1a1a;
  --text-light: #555;
  --bg-light: #f8f9fa;
  --border: #e0e0e0;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  color: var(--text-dark);
  line-height: 1.7;
  font-size: 16px;
  padding-top: 0 !important;
}

/* ===== HEADER - SOLUCIÓN DEFINITIVA ===== */
header {
  background: white;
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow);
  height: 90px;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  height: 100%;
}

.header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
}

.brand-logo {
  height: 1.7rem; /* Reducido un 30% adicional */
  width: auto;
  display: block;
  margin-right: 18px;
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  text-decoration: none;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.2;
}

.brand-title:hover {
  color: var(--primary);
}

/* NAVEGACIÓN PRINCIPAL */
.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
  gap: 15px;
  height: 100%;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0;
  padding: 0;
  height: 100%;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-menu > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 12px 16px;
  transition: all 0.3s ease;
  white-space: nowrap;
  line-height: 1.4;
  display: flex;
  align-items: center;
  height: 60%;
  border-radius: 6px;
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
  border: 1px solid #eaeaea;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.nav-menu a:hover {
  color: var(--primary);
  background: linear-gradient(to bottom, #ffffff, #f8f9fa);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* DROPDOWN */
.dropdown {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  background: white;
  min-width: 220px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  border: 1px solid var(--border);
  overflow: hidden;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.3s;
  height: auto;
  font-size: 0.95rem;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  margin: 0;
  border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
  background: linear-gradient(to right, rgba(0, 0, 0, 0.03), transparent);
  color: var(--primary);
  padding-left: 24px;
  border-left-color: var(--primary);
  transform: none;
  box-shadow: none;
}

/* BOTONES DE IDIOMA - SOLO DESKTOP */
.language-switcher {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
  align-items: center;
  height: 100%;
}

.lang-btn {
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  height: 36px;
  display: flex;
  align-items: center;
  cursor: pointer;
  border: 1px solid #ddd;
  min-width: 65px;
  justify-content: center;
  flex-shrink: 0;
}

.lang-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.lang-btn:not(.active) {
  background: white;
  color: var(--text-dark);
}

.lang-btn:not(.active):hover {
  background: #f8f9fa;
  color: var(--primary);
  border-color: #ccc;
}

/* BOTÓN DE TELÉFONO - SOLO DESKTOP */
.header-phone {
  flex-shrink: 0;
  height: 100%;
  display: flex;
  align-items: center;
}

.phone-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: white;
  padding: 12px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  white-space: nowrap;
  height: 46px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.25);
  flex-shrink: 0;
}

.phone-btn:hover {
  background: linear-gradient(135deg, var(--secondary-dark), #ff9900);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 179, 0, 0.35);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: white;
  padding: 150px 20px 40px;
  position: relative;
  overflow: hidden;
}

.hero-content {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
  padding: 0 40px 40px;
}

.hero-media-wrapper {
  width: 100%;
  margin: 0 auto 40px;
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}

.hero-image {
  width: 100%;
  max-width: 960px;
  height: auto;
  aspect-ratio: 696/527;
  object-fit: contain;
  display: block;
}

/* Estilos para la nueva sección de texto introductorio */
.intro-text-section {
  padding: 40px 20px 60px;
  text-align: center;
  background: white;
}

.intro-text-section h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
  font-weight: 700;
}

.intro-text-section p {
  font-size: 1.3rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

/* ===== SECCIÓN DE VIDEO ===== */
.video-section {
  width: 100%;
  padding: 40px 0 60px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.video-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.video-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: var(--primary);
  font-weight: 700;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.video-frame {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  border: 15px solid white;
  background: white;
  transform: translateZ(0);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-player {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
}

.hero-video-full {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: auto !important;
}

/* ELIMINAR COMPLETAMENTE EL BADGE DE IDIOMA */
.video-badge {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  pointer-events: none !important;
}

/* ELIMINAR COMPLETAMENTE LOS CONTROLES DEL VIDEO */
.video-controls {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  pointer-events: none !important;
}

.video-description {
  max-width: 800px;
  margin: 30px auto 0;
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.7;
  padding: 0 20px;
}

/* ===== CONTENIDO GENERAL ===== */
.hero h2 {
  font-size: 2.8rem;
  margin: 40px 0 20px;
  text-align: center;
  line-height: 1.2;
  color: var(--primary);
  font-weight: 700;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  display: inline-block;
}

.hero h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 5px;
  background: var(--secondary);
  border-radius: 3px;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  color: var(--text-light);
  font-weight: 400;
}

/* ===== SECTIONS ===== */
.section {
  padding: 90px 0;
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
  text-align: center;
  position: relative;
  box-shadow: 0 15px 30px -15px rgba(0, 0, 0, 0.2);
}

.section.show {
  opacity: 1;
  transform: translateY(0);
}

.alt {
  background: var(--bg-light);
  padding: 90px 0;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: var(--primary);
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 5px;
  background: var(--secondary);
  border-radius: 3px;
}

/* ===== SERVICIOS ===== */
.service-icon {
  font-size: 3.2rem;
  margin-bottom: 25px;
  display: block;
  line-height: 1;
  transition: transform 0.3s ease;
}

.cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.card {
  background: white;
  padding: 40px 35px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  flex: 0 1 400px;
  text-align: center;
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-height: 380px;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

.card:hover .service-icon {
  transform: scale(1.1);
}

.card h3 {
  font-size: 1.6rem;
  margin-bottom: 20px;
  color: var(--primary);
  text-align: center;
  font-weight: 600;
  line-height: 1.3;
}

.card p {
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: center;
  color: var(--text-light);
  margin-bottom: 15px;
  flex-grow: 0;
}

/* ===== PUBLIC AUTO INSURANCE CON CORRECCIONES ===== */
.public-auto-description {
  max-width: 850px;
  margin: 0 auto 40px;
  text-align: center;
}

.public-auto-description p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 20px;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.public-auto-content {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: center;
  width: 100%;
}

.public-auto-content h4 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 30px;
  text-align: center;
  font-weight: 600;
  line-height: 1.4;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--secondary);
  display: inline-block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.limits-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin: 30px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
}

.limit-item {
  background: white;
  padding: 25px 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  border-left: 5px solid var(--primary);
  transition: all 0.3s ease;
  text-align: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.limit-item h5 {
  font-size: 1.2rem;
  color: var(--text-dark);
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  padding: 0 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.limit-value {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  text-align: center;
  padding: 12px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  display: inline-block;
  min-width: 300px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
  width: auto;
}

.public-note {
  font-style: italic;
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-top: 35px;
  padding-top: 25px;
  border-top: 1px solid #ddd;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ===== EQUIPO ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 25px;
  margin-top: 40px;
  justify-content: center;
}

.team-card {
  background: white;
  padding: 30px 20px 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  border-top: 4px solid var(--secondary);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 320px;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

.team-img-container {
  width: 165px;
  height: 165px;
  overflow: hidden;
  margin: 0 auto 20px;
  border-radius: 8px;
  background-color: var(--bg-light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: none;
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== OFICINAS ===== */
.office-cards {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}

.office-card {
  background: white;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
  flex: 1;
  min-width: 320px;
  max-width: 400px;
  text-align: center;
  transition: all 0.2s ease;
  border-top: 2px solid var(--primary);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 260px;
}

.office-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
}

.office-icon {
  width: 140px;
  height: 140px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
}

.flag-icon {
  width: 140px;
  height: 140px;
  object-fit: contain;
  display: block;
  background-color: transparent;
}

/* ===== CONTACTO ===== */
.contact {
  text-align: center;
}

.contact form {
  max-width: 600px;
  margin: 40px auto 0;
  text-align: center;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 18px 22px;
  margin-bottom: 25px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 1.05rem;
  transition: all 0.3s;
}

.contact button {
  background: var(--primary);
  color: white;
  padding: 18px 45px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  margin: 10px auto 0;
  display: block;
  min-width: 220px;
}

.contact button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* ===== BOTONES GENERALES ===== */
.btn-group {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  padding: 15px 35px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1.1rem;
  display: inline-block;
  min-width: 200px;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* ===== COMMERCIAL TRUCK INSURANCE ===== */
.insurance-content {
  max-width: 1200px;
  margin: 0 auto;
}

.coverages-section {
  margin: 50px 0;
  text-align: center;
}

.coverages-section h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  display: inline-block;
}

.coverages-section h3::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: var(--secondary);
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.coverage-item {
  background: white;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  text-align: center;
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  min-height: 220px;
}

.coverage-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.coverage-icon {
  font-size: 2.8rem;
  margin-bottom: 20px;
  display: block;
  line-height: 1;
}

.coverage-item h4 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 15px;
  text-align: center;
  font-weight: 600;
  line-height: 1.3;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coverage-item p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
  text-align: center;
  margin: 0;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.public-auto-section {
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  margin-top: 50px;
  text-align: center;
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 30px 35px 30px;
  background: #111;
  color: white;
  line-height: 1.5;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.social-icon.facebook {
  background: #3b5998;
  color: white;
}

.social-icon.instagram {
  background: linear-gradient(45deg, #405de6, #5851db, #833ab4, #c13584, #e1306c, #fd1d1d);
  color: white;
}

.social-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.footer-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 20px;
}

footer span {
  display: inline-block;
  margin: 2px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

.aitm-signature {
  margin-top: 20px;
  padding-top: 15px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.signature-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.3px;
  margin-bottom: 3px;
}

.aitm-brand {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding: 0 12px;
  transition: color 0.3s ease;
}

.aitm-brand::before,
.aitm-brand::after {
  content: '•';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--secondary);
  font-size: 0.7rem;
  opacity: 0.5;
}

.aitm-brand::before {
  left: 0;
}

.aitm-brand::after {
  right: 0;
}

.aitm-brand:hover {
  color: var(--secondary);
}

/* ===== SOLUCIÓN DEFINITIVA PARA MÓVIL ===== */

/* TABLET Y DESKTOP (más de 870px) */
@media (min-width: 871px) {
  .desktop-only {
    display: flex !important;
  }
  
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .header-nav {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .nav-menu {
    display: flex;
    flex-direction: row;
  }
}

/* MÓVIL (870px o menos) - BOTONERA COMPLETA OCULTA */
@media (max-width: 870px) {
  /* HEADER COMPACTADO */
  header {
    height: 80px !important;
    padding: 10px 0 !important;
  }
  
  .header-container {
    padding: 0 20px !important;
    justify-content: center !important;
    height: 100% !important;
  }
  
  /* LOGO CENTRADO */
  .header-brand {
    width: 100% !important;
    justify-content: center !important;
    margin-bottom: 0 !important;
  }
  
  .brand-logo {
    height: 1.4rem !important; /* Reducido un 30% adicional */
    margin-right: 12px !important;
  }
  
  .brand-title {
    font-size: 1.3rem !important;
    text-align: center !important;
  }
  
  /* MODIFICACIÓN PRINCIPAL: OCULTAR COMPLETAMENTE LA BOTONERA */
  .header-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    pointer-events: none !important;
  }
  
  /* OCULTAR BOTONES DE IDIOMA Y TELÉFONO ESPECÍFICAMENTE */
  .language-switcher,
  .header-phone,
  .desktop-only {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    pointer-events: none !important;
  }
  
  /* AJUSTAR EL HERO PARA QUE COMIENCE MÁS ARRIBA */
  .hero {
    padding-top: 100px !important;
    padding-bottom: 40px !important;
  }
  
  .hero h2 {
    font-size: 1.8rem !important;
  }
  
  .hero p {
    font-size: 1rem !important;
  }
  
  /* Ajuste visual para que el nuevo texto de introducción no se vea gigante en móvil */
  .intro-text-section h2 {
    font-size: 1.8rem !important;
    line-height: 1.3;
  }
  .intro-text-section p {
    font-size: 1.1rem !important;
  }

  .btn-group {
    flex-direction: column !important;
    gap: 15px !important;
  }
  
  /* ===== CORRECCIÓN DEFINITIVA PARA TEXTO QUE SE SALE ===== */
  .limit-item h5 {
    font-size: 1rem !important;
    line-height: 1.4 !important;
    padding: 0 10px !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
    hyphens: auto !important;
  }
  
  .limit-value {
    font-size: 1.1rem !important;
    min-width: auto !important;
    width: 100% !important;
    padding: 10px 15px !important;
    display: block !important;
    margin: 0 auto !important;
  }
  
  .limits-container {
    gap: 15px !important;
    padding: 0 15px !important;
  }
  
  .limit-item {
    padding: 20px 15px !important;
    margin: 0 !important;
    width: 100% !important;
  }
  
  /* AJUSTES GENERALES */
  .container, .hero-content {
    padding: 0 20px !important;
  }
  
  .team-grid {
    grid-template-columns: 1fr !important;
    max-width: 300px !important;
    margin: 30px auto 0 !important;
  }
  
  .coverage-grid {
    grid-template-columns: 1fr !important;
    max-width: 400px !important;
    margin: 30px auto 0 !important;
  }
  
  .cards, .office-cards {
    flex-direction: column !important;
    gap: 25px !important;
  }
  
  .card {
    width: 100% !important;
    max-width: 400px !important;
  }
  
  .section {
    padding: 70px 0 60px !important;
  }
  
  .section h2 {
    font-size: 1.8rem !important;
  }
  
  /* ===== CORRECCIÓN TEXTO DESBORDANTE EN MÓVIL ===== */
  .card {
    overflow: hidden !important;
    min-height: auto !important;
    height: auto !important;
    padding: 25px 20px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Contenedor específico para el texto de consultoría */
  .card:nth-child(2) .service-detail {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  
  /* Ajuste para todos los textos en cards */
  .card p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
    text-align: center !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
    overflow: visible !important;
    max-height: none !important;
  }
  
  .service-detail {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    color: var(--text-light) !important;
    margin-top: 8px !important;
    padding-top: 8px !important;
    border-top: 1px solid #eee !important;
  }
  
  /* Ajuste específico para el texto problemático */
  .service-consulting_desc,
  .service-consulting_detail {
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 5px !important;
  }
}

/* MÓVIL PEQUEÑO (480px o menos) */
@media (max-width: 480px) {
  .hero {
    padding-top: 90px !important;
  }
  
  .brand-title {
    font-size: 1.1rem !important;
  }
  
  .brand-logo {
    height: 1.25rem !important; /* Reducido un 30% adicional */
  }
  
  .limit-item h5 {
    font-size: 0.9rem !important;
  }
  
  .limit-value {
    font-size: 1rem !important;
  }
}

/* ===== SLIDER SECTION ===== */
/* Fondo sutil para diferenciar la sección */
#more-services {
  background: linear-gradient(135deg, #f9f9f9 0%, #f0f2f5 100%);
}

.slider-container {
  position: relative;
  max-width: 1200px; /* Aumentado para dar más espacio a la tarjeta */
  margin: 0 auto;
  overflow: hidden;
  padding: 10px 60px 50px; /* Espacio para flechas */
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  box-sizing: border-box;
  padding: 20px;
  display: flex;
  justify-content: center;
}

/* Nueva tarjeta para el contenido del slide */
.slide-card {
  display: flex;
  align-items: center;
  gap: 50px; /* Aumentado para más separación */
  background: white;
  border-radius: 20px;
  padding: 50px 60px; /* Aumentado para más aire interior */
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  max-width: 1050px; /* Aumentado para acomodar contenido más grande */
  width: 100%;
  position: relative;
  border-bottom: 5px solid var(--secondary);
  transition: transform 0.3s ease;
}

.slide-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.slide-icon-wrapper {
  flex-shrink: 0;
}

/* ESTILO PARA LAS NUEVAS IMÁGENES DEL SLIDER */
.slide-image {
  width: 300px;        /* AUMENTADO: Ancho de imagen más grande */
  height: 300px;       /* AUMENTADO: Alto de imagen más grande */
  object-fit: cover;   /* Recorta la imagen para llenar el espacio sin estirarse */
  border-radius: 20px; /* AUMENTADO: Bordes más redondeados */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  display: block;
}

.slide-content {
  text-align: left;
  flex-grow: 1;
}

.slide h3 {
  font-size: 2.6rem; /* AUMENTADO: Título más grande y llamativo */
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.slide p {
  font-size: 1.2rem; /* AUMENTADO: Texto de párrafo más legible */
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 15px;
}

.slide-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: inline-block;
  text-align: left;
  display: block;
}

.slide-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: var(--text-dark);
  font-size: 1.2rem; /* AUMENTADO: Texto de lista más legible */
  font-weight: 500;
}

.slide-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
}

.slide-cta {
  background-color: #f0f2f5;
  border-left: 4px solid var(--secondary);
  padding: 15px 20px;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-dark);
  font-weight: 500;
}
/* Controles del Slider */
.slider-btn {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  background: white;
  border: none;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  color: var(--primary);
  transition: all 0.3s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.prev-btn { left: 0; }
.next-btn { right: 0; }

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  background: #e0e0e0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.dot.active {
  background: var(--secondary);
  transform: scale(1.2);
}

@media (max-width: 900px) {
  .slide-card {
    flex-direction: column;
    text-align: center;
    gap: 25px;
    padding: 35px 25px; /* Ajustado para móvil */
  }
  /* Ajuste de imagen para móvil */
  .slide-image {
    width: 100%; /* Ocupa todo el ancho disponible */
    max-width: 350px; /* Un máximo para no ser gigante en tablets */
    height: 250px; /* AUMENTADO: Imagen más alta en móvil */
  }
  .slide-content {
    text-align: center;
  }
  .slide-list {
    display: inline-block;
    text-align: left;
  }
}

@media (max-width: 768px) {
  .slider-container {
    padding: 0 0 40px;
  }

  /* Ocultar flechas en móvil para evitar superposición y deformación */
  .slider-btn {
    display: none;
  }

  .slide {
    padding: 0 10px;
  }

  .slide-card {
    padding: 30px 20px;
    border-radius: 15px;
  }

  .slide h3 {
    font-size: 1.8rem;
  }
}