body {
  background-color: #f7f6f2;
}

@media (min-width: 1025px) {
  body {
    padding-top: 100px;
  }

  .header-productos-desktop {
    background: linear-gradient(to bottom, rgba(26, 26, 26, 0.9), transparent);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 100px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease-in-out;
  }

  .header-productos-desktop.hidden {
    transform: translateY(-100%);
  }

  .header-container-productos-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 10px;
  }

  .logo-link-productos {
    margin-left: -60px;
  }

  .logo-link-productos {
    text-decoration: none;
    display: flex;
    align-items: center;
  }

  .logo-img-productos {
    height: 40px;
  }

  .logo-text-productos {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 10px;
    color: #fff;
  }

  .nav-link-productos {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
  }

  .nav-link-productos:hover {
    color: #f9751c;
  }

  header.simple-header {
    display: none;
  }
}

.clientes-hero {
  position: relative;
  padding: 80px var(--site-padding) 60px;
  background: #1a1a1a;
  color: #ffffff;
  overflow: hidden;
  text-align: center;
}

.clientes-hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #f9751c;
}

.clientes-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.clientes-intro {
  position: relative;
  padding: 160px 0;
  background: #1a1a1a;
  overflow: hidden;
  min-height: 900px;
  display: flex;
  align-items: center;
}

/* Estilos para el botón de retroceso */
.back-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 26, 0.6);
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(26, 26, 26, 0.6);
  width: auto;
  white-space: nowrap;
}

.back-button:hover {
  background: rgba(26, 26, 26, 0.9);
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(26, 26, 26, 0.3);
  border-color: rgba(26, 26, 26, 0.9);
}

.back-button:hover .flecha-retorno {
  filter: brightness(0) saturate(100%) invert(52%) sepia(86%) saturate(1769%) hue-rotate(359deg) brightness(98%) contrast(92%);
  transform: rotate(0deg);
}

.back-button .flecha-retorno {
  height: 20px;
  vertical-align: middle;
}

/* Ocultar búsqueda específicamente en clientes.html */
.simple-header.no-search .search-box-header {
  display: none !important;
}

/* Margen lateral global para la página de clientes */
.clientes-intro .container,
.clientes-mapa .container,
footer .container {
  margin-left: 60px;
  margin-right: 60px;
}

/* Asegurar que elementos internos no rompan el margen */
.clientes-intro-grid,
.mapa-wrapper {
  width: 100%;
}

@media (max-width: 767px) {

  .clientes-intro .container,
  .clientes-mapa .container,
  footer .container {
    margin-left: 20px;
    margin-right: 20px;
  }
}

.back-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  /* fondo más chico */
  height: 28px;
  /* fondo más chico */
  background: #1a1a1a;
  /* negro corporativo */
  color: #f9751c;
  /* flecha naranja */
  border-radius: 4px;
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 0;
  /* ocultar cualquier texto del enlace */
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.1s ease;
}

.back-home::before {
  content: "⟵";
  /* flecha más larga */
  font-size: 22px;
  /* flecha un poco más grande */
  line-height: 1;
}

.back-home:hover {
  background: #000000;
  color: #ff7a2b;
  transform: translateX(-1px);
}

.back-home:focus {
  outline: 2px solid #f9751c;
  outline-offset: 2px;
}

.logo-section {
  margin-bottom: 40px;
}

.logo-section .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
}

.logo-section .logo-img {
  height: 40px;
  width: auto;
}

.clientes-intro-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.clientes-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.clientes-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
  display: block;
  filter: brightness(0.7);
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: flex-end;
  position: relative;
  z-index: 2;
}

/* Línea conectora naranja eliminada según requerimiento */
.right-column::before,
.right-column::after {
  display: none !important;
}

.left-column .text-box {
  width: 90%;
  margin: 0;
  background: rgba(26, 26, 26, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: #ffffff;
  position: relative;
  z-index: 2;
  animation: slideInLeft 1s ease-out forwards;
}

.text-box.small {
  width: auto;
  max-width: 280px;
  padding: 10px 20px;
  align-self: flex-end;
  text-align: center;
  background: rgba(26, 26, 26, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-height: auto;
  margin-top: 50px;
  position: relative;
  z-index: 2;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.text-box.small h3 {
  margin: 5px 0;
  font-size: 1rem;
  color: #ffffff;
}

.text-box.small .acciones {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.text-box.vertical {
  width: 280px;
  min-height: 250px;
  height: auto;
  padding: 25px;
  text-align: center;
  background: rgba(26, 26, 26, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 1s ease-out forwards;
  animation-delay: 0.5s;
  position: relative;
  z-index: 2;
}

.text-box p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ffffff;
  margin: 0;
}

.clientes-mapa {
  padding: 60px 0;
  background: #ffffff;
}

.puntos-venta-title {
  font-size: 3.5rem;
  color: #333;
  text-align: left;
  margin-bottom: 20px;
  font-weight: 700;
}

.mapa-branding-box {
  background: linear-gradient(135deg,
      rgba(200, 204, 211, 0.8),
      rgba(240, 242, 245, 0.8));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 15px 25px;
  border-radius: 8px;
  margin-bottom: 40px;
  display: block;
  width: fit-content;
  margin-left: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.mapa-branding-box p {
  color: #1a1a1a;
  font-size: 1.15rem;
  line-height: 1.4;
  margin: 0;
  font-weight: 500;
}

.filtros-mapa {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
  padding-bottom: 20px;
}

.filter-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.5px;
}

.filter-group select {
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: #333;
  cursor: pointer;
  font-weight: 500;
  padding-right: 20px;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23666666%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 10px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.mapa-wrapper-new {
  display: grid;
  grid-template-columns: 350px 1fr;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  height: 850px;
}

.mapa-info-box {
  background: #f4f4f4;
  padding: 100px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.mapa-info-box h3 {
  font-size: 2.2rem;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.mapa-info-box p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
}

/* FORZADO AGRESIVO PARA QUE EL MAPA OCUPE TODO EL ALTO */
.mapa-container-new {
  width: 100% !important;
  height: 850px !important;
  min-height: 850px !important;
  max-height: 850px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  position: relative !important;
}

.mapa-container-new iframe,
#mapa .mapa-container-new iframe,
.clientes-mapa .mapa-container-new iframe {
  display: block !important;
  width: 100% !important;
  height: 850px !important;
  min-height: 850px !important;
  max-height: 850px !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Neutralizar cualquier regla de universal-responsive o merged-styles que use .mapa-container */
.mapa-container iframe {
  height: inherit;
}

@media (max-width: 1024px) {
  .mapa-wrapper-new {
    grid-template-columns: 1fr;
  }

  .filtros-mapa {
    flex-wrap: wrap;
    gap: 20px;
  }

  .puntos-venta-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 767px) {
  .puntos-venta-title {
    font-size: 2rem;
  }

  .mapa-info-box {
    padding: 40px 20px;
  }

  .mapa-info-box h3 {
    font-size: 1.8rem;
  }
}

.clientes-contacto {
  padding: 80px var(--site-padding);
  background: #f7f6f2;
}

.clientes-contacto h2 {
  font-size: 2.5rem;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 50px;
}

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.contacto-card {
  background: #f5f5f5;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.contacto-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.15);
}

.contacto-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.contacto-card h3 {
  font-size: 1.8rem;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.contacto-card p {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.btn-contacto {
  display: inline-block;
  background: #f9751c;
  color: white;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-contacto:hover {
  background: #e66610;
}

/* Contenedor de los paneles de información */
.info-panels-container {
  position: absolute;
  top: 0;
  /* posición en el tope */
  left: 25%;
  /* más hacia la izquierda */
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
  /* permite hacer clic en elementos detrás */
}

/* Paneles de información para los botones */
.info-panel-clientes {
  background: rgba(26, 26, 26, 0.8);
  /* negro transparente como antes */
  border: none;
  /* sin borde como los text-box */
  border-radius: 8px;
  /* mismo radio que los text-box */
  padding: 60px;
  /* aumentado padding para mayor altura */
  box-shadow: 0 4px 12px rgba(26, 26, 26, 0.1);
  /* misma sombra que los text-box */
  color: white;
  width: 320px;
  /* ancho fijo */
  height: 550px;
  /* altura ajustada */
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-panel-clientes.active {
  opacity: 1;
  visibility: visible;
}

.info-panel-clientes.hidden {
  opacity: 0;
  visibility: hidden;
}

.info-panel-content h3 {
  margin: 0 0 15px 0;
  color: white;
  /* color blanco en lugar de naranja */
  font-size: 1.3rem;
  text-transform: uppercase;
}

.info-panel-content p {
  margin: 0;
  line-height: 1.6;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Estilos para la lista de países */
.paises-list {
  line-height: 2.2;
}

.pais-item {
  cursor: pointer;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  padding: 2px 4px;
  border-radius: 3px;
  display: inline-block;
}

.pais-item:hover {
  color: #f9751c;
  background: rgba(26, 26, 26, 0.3);
  /* negro transparente */
  transform: translateX(3px);
}

/* Tablet Specific Fixes */
@media (min-width: 768px) and (max-width: 1024px) {
  .clientes-intro {
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    /* Force row layout */
    align-items: center !important;
    min-height: 900px !important;
    padding: 160px 0 !important;
    background: #1a1a1a !important;
    /* Ensure dark bg */
  }

  .clientes-image {
    position: absolute !important;
    /* Force absolute */
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }

  .clientes-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 0 !important;
  }

  .clientes-intro-grid {
    position: relative !important;
    z-index: 5 !important;
    width: 100% !important;
    margin-top: 0 !important;
    display: grid !important;
    grid-template-columns: 1.5fr 1fr !important;
    /* Maintain grid */
    gap: 40px !important;
  }

  /* Restore text box styles for tablet overlay */
  .left-column .text-box {
    background: rgba(26, 26, 26, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    width: 90% !important;
    margin: 0 !important;
  }
}

/* RESPONSIVE OVERRIDES - MUST BE AT THE BOTTOM */
@media (max-width: 1024px) {

  .clientes-intro .container,
  .clientes-mapa .container {
    margin-left: 20px !important;
    margin-right: 20px !important;
    width: calc(100% - 40px) !important;
  }

  .mapa-wrapper {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .mapa-y-botones {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 20px !important;
  }

  .mapa-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    order: 1 !important;
  }

  .mapa-container iframe {
    height: 450px !important;
    width: 100% !important;
  }

  .botones-filtrado {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    order: 2 !important;
    margin-top: 20px !important;
    width: 100% !important;
    margin-right: 0 !important;
    gap: 10px !important;
  }

  .btn-filtro {
    width: calc(50% - 5px) !important;
    min-width: 120px !important;
    margin: 0 !important;
    padding: 10px 15px !important;
    font-size: 14px !important;
  }

  .mapa-text-box {
    max-width: 100% !important;
    min-height: auto !important;
    padding: 30px 20px !important;
    margin-bottom: 20px !important;
    grid-column: 1 !important;
    grid-row: auto !important;
    order: 0 !important;
    position: relative !important;
    left: 0 !important;
    transform: none !important;
  }

  .info-panels-container {
    position: relative !important;
    left: 0 !important;
    transform: none !important;
    width: 100% !important;
    margin-top: 20px !important;
    order: 3 !important;
    display: block !important;
    height: auto !important;
    z-index: 10 !important;
  }

  .info-panel-clientes {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 150px !important;
    padding: 25px !important;
    display: none !important;
    top: auto !important;
    left: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-bottom: 20px !important;
    transform: none !important;
  }

  .info-panel-clientes.active {
    display: flex !important;
  }
}

@media (max-width: 767px) {
  .simple-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    background: #1a1a1a !important;
    z-index: 1000 !important;
    padding: 10px 0 !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
  }

  .clientes-hero {
    padding: 100px 20px 60px !important;
  }

  .clientes-hero h1 {
    font-size: 1.8rem !important;
  }

  .clientes-intro {
    position: relative !important;
    min-height: auto !important;
    height: auto !important;
    padding: 90px 20px 40px !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    background: #f5f5f5 !important;
    /* Blanco humo */
  }

  .clientes-image {
    position: relative !important;
    /* Ya no es fixed/absolute */
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    height: 250px !important;
    /* Altura contenida */
    min-height: auto !important;
    z-index: 1 !important;
    border-radius: 15px !important;
    overflow: hidden !important;
    margin-bottom: 30px !important;
    /* Separación del texto */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
  }

  .clientes-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 15px !important;
  }

  .clientes-intro-grid {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 30px !important;
    width: 100% !important;
    margin-top: 20px !important;
  }

  .left-column,
  .right-column {
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
  }

  .text-box,
  .text-box.small,
  .text-box.vertical {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    margin-bottom: 20px !important;
    /* Separación */
    position: relative !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    background: rgba(26, 26, 26, 0.9) !important;
    /* Fondo oscuro sólido para leer texto blanco */
    backdrop-filter: none !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    border-radius: 12px !important;
    padding: 25px !important;
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    min-height: auto !important;
  }

  .text-box.vertical,
  .text-box.vertical p {
    text-align: center !important;
  }

  .mapa-wrapper-new {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    /* Altura automática en móvil */
  }

  .mapa-info-box {
    padding: 40px 20px !important;
    order: 1 !important;
    /* Texto primero */
    min-height: auto !important;
  }

  .mapa-container-new {
    height: 60vh !important;
    /* Altura fija pero menor que en desktop */
    min-height: 400px !important;
    max-height: 500px !important;
    order: 2 !important;
    /* Mapa después */
  }

  .mapa-container-new iframe {
    height: 100% !important;
    min-height: 100% !important;
  }

  /* Filtros Mapa Responsive */
  .filtros-mapa {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
    align-items: stretch !important;
  }

  .filter-group {
    width: 100% !important;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #eee;
  }

  .filter-group select {
    width: 100% !important;
  }

  .info-panel-content h3 {
    font-size: 0.95rem !important;
  }

  .paises-list {
    line-height: 1.5 !important;
    font-size: 0.85rem !important;
  }

  .left-column .text-box {
    top: 0 !important;
    margin-top: 15px !important;
    padding: 15px !important;
    width: 100% !important;
  }

  .text-box.small {
    margin-top: 15px !important;
    width: 100% !important;
    padding: 12px !important;
  }

  .mapa-container-new {
    height: 250px !important;
  }

  .mapa-container-new iframe {
    height: 100% !important;
  }

  .back-button {
    padding: 6px 10px !important;
    font-size: 13px !important;
  }

  .info-panel-clientes {
    padding: 45px 15px 25px !important;
    width: 95% !important;
  }

  .pais-item {
    padding: 8px 0 !important;
  }

  .panel-close {
    display: block !important;
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 35px !important;
    height: 35px !important;
    background: #f9751c !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 18px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
  }
}

/* Estilos de botones antiguos eliminados */

/* Contenedores antiguos eliminados */

/* Make the text box clickable */
.text-box.small[data-modal] {
  cursor: pointer;
  transition: all 0.3s ease;
}

.text-box.small[data-modal]:hover {
  background: rgba(26, 26, 26, 0.95);
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(26, 26, 26, 0.2);
}

/* Section Modal Styles - Improved Overlay System */
.section-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  /* Full background overlay */
  color: white;
  z-index: 9999;
  /* Over everything */
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
  box-sizing: border-box;
}

.section-modal.active {
  display: flex !important;
  /* Forces centered flex layout */
}

.section-modal .modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #333;
  border: none;
  color: #f5f5f5;
  /* Blanco humo */
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-modal .modal-close:hover {
  background: #f9751c;
  color: white;
  transform: rotate(90deg);
}

.section-modal h3 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.section-modal p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Modal de PDF - Centered Content Box */
.pdf-modal {
  background: #1a1a1a;
  max-width: 95vw;
  width: 1200px;
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  border-radius: 12px;
  max-height: 98vh !important;
  overflow: hidden !important;
  padding: 20px !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.pdf-modal h3 {
  margin: 0 0 15px 0 !important;
  text-align: center;
  font-size: 1.4rem;
  color: #fff;
}

.pdf-container {
  width: 100% !important;
  height: calc(98vh - 180px) !important;
  /* Forzar altura real calculada */
  min-height: 600px !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  margin-bottom: 15px !important;
}

.pdf-container iframe {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  border: none !important;
  display: block !important;
}

@media (max-width: 1024px) {
  .pdf-modal {
    width: 98vw !important;
    padding: 10px !important;
    max-height: 100vh !important;
    top: 0 !important;
    transform: none !important;
    border-radius: 8px !important;
  }

  .pdf-container {
    height: calc(100vh - 120px) !important;
    min-height: auto !important;
    margin-bottom: 5px !important;
  }

  .section-modal h3 {
    font-size: 1rem !important;
    margin: 5px 0 !important;
  }
}

@media (max-width: 767px) {
  .pdf-modal {
    padding: 5px !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
  }

  .pdf-container {
    height: calc(100vh - 100px) !important;
  }

  .section-modal h3 {
    font-size: 0.9rem !important;
    text-align: center;
    margin: 5px 0 !important;
  }
}

.pdf-actions {
  text-align: center;
  margin-top: 20px;
}

.download-btn {
  display: inline-block;
  background: #f9751c;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.download-btn:hover {
  background: #e66610;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInGrow {
  from {
    opacity: 0;
    transform: scaleX(0) scaleY(0);
  }

  to {
    opacity: 0.95;
    transform: scaleX(1) scaleY(1);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* FORZAR ANCHO COMPLETO EN MÓVIL (Override final corregido simplificado) */
@media (max-width: 768px) {
  .clientes-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    transform: none !important;
    max-width: none !important;
    opacity: 1 !important;
    z-index: 0 !important;
  }

  .clientes-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
    display: block !important;
    margin: 0 !important;
  }

  /* Asegurar que el contenido esté legible encima */
  /* Asegurar que el contenido esté legible encima y bajarlo */
  .clientes-intro-grid {
    position: relative !important;
    z-index: 2 !important;
    padding-top: 350px !important;
    /* Bajamos los recuadros significativamente */
  }

  .left-column .text-box {
    margin-top: 0 !important;
    /* Reset de margenes individuales si los hay */
    width: 100% !important;
    max-width: 100% !important;
  }

  .text-box.small {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 20px !important;
  }
}