@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Poppins:wght@700&display=swap');

/* Universal Box-sizing para evitar desbordamientos */
* {
  box-sizing: border-box;
}

/* Prevenir scroll horizontal en el cuerpo */
body {
  overflow-x: hidden;
}
:root {
  --azul-principal: #0d1a4a;
  --azul-secundario: #2867b2;
  --rojo-principal: #e53935;
  --rojo-hover: #ff5a36;
  --blanco: #fff;
}

html, body {
  margin: 0; padding: 0;
  background: linear-gradient(135deg, var(--azul-secundario) 0%, var(--blanco) 100%);
  color: var(--azul-principal);
  font-family: 'Open Sans', Arial, sans-serif;
  min-height: 100vh;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2em;
}
.header-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1em 0;
}
.glass-header {
  background: rgba(255,255,255,0.85);
  box-shadow: 0 2px 24px #b3b6d120;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.35em;
  font-weight: 700;
  color: var(--rojo-principal);
  letter-spacing: 2px;
}
.logo img {
  margin-right: 0;
  width: 270px !important;   /* Ajuste: logo más grande */
  height: auto;
}
header nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; gap: 1.3em;
}
header nav ul li a {
  color: var(--azul-principal);
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 2px;
  position: relative;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: color .17s;
}
header nav ul li a.active,
header nav ul li a:hover {
  color: var(--rojo-principal);
  border-bottom: 2.5px solid var(--rojo-principal);
}

/* HERO */
.hero-alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.7em 2em 2.7em 2em;
  background: linear-gradient(120deg, var(--rojo-principal) 0%, var(--azul-principal) 85%);
  border-radius: 0 0 45px 45px;
  box-shadow: 0 4px 42px #e5393555;
  margin-bottom: 2.5em;
  overflow: hidden;
}
.hero-content-alt {
  flex: 1 1 55%;
  color: var(--blanco);
}
.hero-content-alt h1 {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 2.2em;
  margin-bottom: .33em;
  font-weight: 700;
  line-height: 1.1;
}
.gradient-text {
  background: linear-gradient(90deg, var(--rojo-principal), var(--blanco), var(--azul-secundario));
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content-alt p {
  font-size: 1.15em;
  margin-bottom: 1.3em;
}
.cta-glass {
  background: var(--azul-principal);
  color: var(--blanco);
  border: 2px solid var(--rojo-principal);
  border-radius: 26px;
  font-size: 1.09em;
  font-weight: 700;
  padding: 0.8em 2.2em;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 2px 16px #e5393540;
  display: inline-block;
  cursor: pointer;
}
.cta-glass:hover {
  background: var(--rojo-principal);
  color: var(--blanco);
}
.hero-img {
  flex: 1 1 43%;
  border-radius: 22px;
  max-width: 500px;
  min-width: 360px; 
  margin-left: 2.2em;
  box-shadow: 0 2px 24px #0d1a4a22;
  display: block;
}

/* ABOUT CARDS */
.about-cards {
  margin: 2.5em auto 2em auto;
  max-width: 1000px;
}
.cards-row {
  display: flex;
  gap: 2.2em;
  flex-wrap: wrap;
  justify-content: center;
}
.about-card {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 2px 12px #e5393533;
  padding: 2em 1.4em;
  min-width: 230px;
  max-width: 350px;
  text-align: center;
  margin-bottom: 1em;
}
.about-icon {
  font-size: 2.2em;
  display: block;
  margin-bottom: .4em;
}
.about-card h2 {
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--rojo-principal);
  font-size: 1.23em;
}
.about-card ul {
  list-style: disc inside;
  margin: 1em 0 0 0;
  padding: 0;
  text-align: left;
  color: var(--azul-principal);
  font-size: 1.06em;
}
.about-card p {
  font-size: 1.09em;
  color: var(--azul-principal);
}

.section-title {
 display: block;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2em;
  margin-bottom: 0.9em;
  text-align: center;
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--azul-principal);
  font-size: 2em;
  letter-spacing: 1px;
  box-sizing: border-box;
}

/* SERVICES */
.services-showcase {
  margin-bottom: 2.5em;
}
.services-grid-alt {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: center;
}
.service-block {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 1px 8px #0d1a4a11;
  padding: 1.4em 1.1em 1.1em 1.1em;
  max-width: 235px;
  min-width: 170px;
  text-align: center;
  position: relative;
}
.service-block img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  display: block;
  margin: 0 auto 0.6em auto;
}
.service-block h3 {
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--rojo-principal);
  font-size: 1.09em;
  margin: .4em 0 .5em 0;
}
.service-block p {
  font-size: 1em;
  color: #333;
}
.cta-outline {
  background: none;
  color: var(--rojo-principal);
  border: 2px solid var(--rojo-principal);
  padding: 0.7em 2em;
  border-radius: 22px;
  font-size: 1.07em;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s, color .18s;
  margin-top: 1.2em;
  display: inline-block;
  cursor: pointer;
}
.cta-outline:hover {
  background: var(--rojo-principal);
  color: var(--blanco);
}

/* TEAM */
.team-modern {
  background: #f8fafb;
  border-radius: 18px;
  margin: 2.4em 0 2em 0;
  padding: 2em 1em;
  text-align: center;
}
.team-modern h2 {
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--azul-principal);
  font-size: 1.45em;
  margin-bottom: 1em;
}
.team-flex {
  display: flex;
  gap: 2.3em;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.2em;
}
.team-profile {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 9px #e5393533;
  padding: 1.2em 1.1em 1em 1.1em;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
}
.team-profile img {
  width: 75px;
  border-radius: 50%;
  border: 2.5px solid #e5393540;
  margin-bottom: 0.6em;
}
.team-profile h4 {
  font-size: 1.09em;
  color: var(--rojo-principal);
  margin-bottom: .2em;
  font-family: 'Poppins', Arial, sans-serif;
}
.team-profile p {
  font-size: 0.98em;
  color: #333;
}

/* TESTIMONIOS */
.testimonials-modern {
  background: #fff;
  border-radius: 14px;
  text-align: center;
  margin: 2.5em 0 2em 0;
  padding: 2em 1.2em 2em 1.2em;
}
.testimonials-modern h2 {
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--azul-principal);
  font-size: 1.2em;
  margin-bottom: 1.2em;
}
.testi-cards {
  display: flex;
  gap: 2em;
  justify-content: center;
  flex-wrap: wrap;
}
.testi-card {
  background: #f8fafb;
  border-radius: 14px;
  box-shadow: 0 1px 8px #0d1a4a13;
  padding: 1.2em 1.3em 1em 1.3em;
  max-width: 340px;
  font-size: 1em;
  color: #333;
  position: relative;
}
.testi-quote {
  font-size: 2.5em;
  color: var(--rojo-principal);
  position: absolute;
  top: -0.7em;
  left: 17px;
}
.testi-author {
  display: block;
  margin-top: 1.1em;
  color: var(--rojo-principal);
  font-weight: 700;
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 0.97em;
}

/* CONTACTO BANNER */
.contact-banner {
  background: linear-gradient(90deg, var(--azul-principal) 60%, var(--rojo-principal) 100%);
  color: var(--blanco);
  border-radius: 16px;
  box-shadow: 0 2px 12px #0d1a4a33;
  margin: 2.5em auto 2em auto;
  max-width: 900px;
  text-align: center;
  padding: 2em 1em 1.7em 1em;
}
.contact-banner-content h2 {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 1.45em;
  margin-bottom: .7em;
}
.contact-banner-content a.cta-glass {
  margin-top: 1em;
}

/* GALERÍA INFERIOR */
.galeria-inferior {
  max-width: 1100px;
  margin: 2.5em auto 0 auto;
  padding: 2em 1em 1.2em 1em;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 18px #0d1a4a15;
  text-align: center;
}

.galeria-inferior h2 {
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--rojo-principal);
  font-size: 1.3em;
  margin-bottom: 1.2em;
  letter-spacing: 1px;
}

.galeria-grid {
  display: flex;
  gap: 1.2em;
  justify-content: center;
  flex-wrap: wrap;
}

.galeria-grid img {
  width: 390px;
  height: 190px;
  object-fit: cover;
  border-radius: 11px;
  box-shadow: 0 2px 8px #bfc8e644;
  transition: transform 0.18s, box-shadow 0.18s;
  background: #e8eaf6;
  display: block;
}

.galeria-grid img:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 16px #e5393555;
}

@media (max-width: 700px) {
  .galeria-grid {
    flex-direction: column;
    align-items: center;
    gap: 0.8em;
  }
  .galeria-grid img {
    width: 90vw;
    max-width: 400px;
    height: 160px;
  }
}

/* FOOTER */
.footer-glass {
  background: rgba(13,26,74,0.92);
  color: #fff;
  text-align: center;
  padding: 1.5em 1em 1em 1em;
  margin-top: 2.5em;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -2px 24px #23235b50;
}
.footer-flex {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1em;
  flex-direction: column;
}
.footer-flex ul {
  list-style: none;
  padding: 0; margin: 1em 0 0 0;
  display: flex; gap: 1.3em;
}
.footer-flex ul li a {
  color: var(--rojo-principal);
  text-decoration: none;
  font-weight: 700;
  font-size: 1em;
  font-family: 'Open Sans', Arial, sans-serif;
  transition: text-decoration 0.1s;
}
.footer-flex ul li a:hover {
  text-decoration: underline;
}

/* FORMULARIO */
form#contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.3em;
  max-width: 420px;
  margin: 2em auto 0 auto;
  background: #fff;
  padding: 2em 2em 2em 2em;
  border-radius: 22px;
  box-shadow: 0 2px 12px #e5393544;
}
form#contact-form input,
form#contact-form textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.13em;
  padding: 1.2em 1.2em;
  border-radius: 14px;
  border: 1.5px solid #e5393540;
  background: #f5f6fa;
  color: #222;
  margin-bottom: 0.2em;
  box-sizing: border-box;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
form#contact-form input:focus,
form#contact-form textarea:focus {
  border: 1.7px solid var(--rojo-principal);
  box-shadow: 0 0 0 2px #e5393533;
}
form#contact-form textarea {
  min-height: 100px;
}
form#contact-form input::placeholder,
form#contact-form textarea::placeholder {
  color: #666 !important;
  opacity: 1;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1em;
}
form#contact-form button[type="submit"] {
  margin-top: 0.6em;
}
.form-message {
  text-align: center;
  color: var(--rojo-principal);
  font-weight: 700;
  margin-top: 1.5em;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1.08em;
}

/* Responsive */
@media (max-width: 990px) {
  .header-flex, .footer-flex, .cards-row, .services-grid-alt, .team-flex, .testi-cards {
    flex-direction: column;
    text-align: center;
    gap: 1em;
  }
  .hero-alt {
    flex-direction: column;
    text-align: center;
    padding: 2em 1em;
  }
  .hero-img {
    margin: 2em auto 0 auto;
    max-width: 80vw;
  }
  .about-card, .service-block, .team-profile, .testi-card {
    margin: 0 auto 1em auto;
    width: 100%;
    max-width: 350px;
  }
  form#contact-form {
    max-width: 98vw;
    padding: 1.1em 0.7em;
  }

  /* Centrar el botón en móvil para la sección Sobre Nosotros */
  .about-card .cta-glass,
  .about-card .cta-outline {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5em;
    margin-bottom: 0;
    text-align: center;
    width: fit-content;
  }
}

@media (max-width: 600px) {
  .header-flex, .footer-flex, .about-cards, .cards-row, .services-grid-alt, .team-flex, .testi-cards {
    padding: 0.7em 0.3em;
  }
  .hero-content-alt h1 {
    font-size: 1.3em;
  }
  .section-title, .team-modern h2, .services-brief h2, .testimonials-modern h2, .contact-banner-content h2 {
    font-size: 1.1em;
    margin-top: 1em !important;
    margin-bottom: 0.7em !important;
    padding-left: 0.3em;
    padding-right: 0.3em;
    width: 100%;
    max-width: 100vw;
  }
}
/* Optimización específica para móviles */
@media (max-width: 600px) {
  .about-cards {
    margin: 1.2em 0.2em 1.2em 0.2em !important;
    padding: 0.5em 0.2em !important;
  }
  .about-card {
    padding: 1em 0.7em !important;
  }
  .section-title {
    margin-top: 1em !important;
    margin-bottom: 0.7em !important;
    font-size: 1.12em !important;
  }
}
@media (max-width: 600px) {
  .team-modern {
    margin-left: 0 !important;
    margin-right: 2 !important;
    padding-left: 0.5em !important;
    padding-right: 0.5em !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .team-flex {
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
    margin-left: 0 !important;
    margin-right: 2 !important;
    width: 100% !important;
  }
  .team-profile {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
    max-width: 280px;
    box-sizing: border-box;
  }
}
/* --- CENTRADO UNIVERSAL DE BOTONES Y MEJORAS DE SECCIONES EN MOVIL Y PC --- */

/* 1. Centrado global para todos los botones principales */
.cta-glass,
.cta-outline {
  display: block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  width: fit-content;
}

/* 2. Centrado para botones en formularios */
form button,
form .cta-glass,
form .cta-outline {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* 3. Centrado para cualquier contenedor de botones específicos (si existen) */
.button-container,
.servicios-boton,
.solicita-asesoria,
.ver-todos-servicios {
  text-align: center !important;
}

/* 4. Mejoras y centrado para la sección de "Nuestro Equipo" en móviles */
@media (max-width: 600px) {
  .team-modern {
    margin: 1em 0 !important;
    padding: 1.2em 1em !important;
    width: 100vw;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .team-flex {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box;
  }
  .team-profile {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 280px;
    box-sizing: border-box;
  }
  .cta-glass,
  .cta-outline {
    width: 90%;
    max-width: 340px;
  }
}

/* 5. Márgenes y padding consistentes en la sección Sobre Nosotros para móviles */
@media (max-width: 600px) {
  .about-cards {
    margin: 1.2em 0.2em 1.2em 0.2em !important;
    padding: 0.5em 0.2em !important;
  }
  .about-card {
    padding: 1em 0.7em !important;
  }
}

/* 6. Centrado y márgenes consistentes para todos los títulos de sección */
.section-title {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 2em;
  margin-bottom: 0.9em;
  text-align: center;
  font-family: 'Poppins', Arial, sans-serif;
  color: var(--azul-principal);
  font-size: 2em;
  letter-spacing: 1px;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .section-title {
    font-size: 1.12em !important;
    margin-top: 1em !important;
    margin-bottom: 0.7em !important;
    padding-left: 0.3em;
    padding-right: 0.3em;
    width: 100%;
    max-width: 100vw;
  }
}
@media (max-width: 600px) {
  /* Centra los botones dentro de cualquier contenedor */
  .cta-glass,
  .cta-outline {
    display: inline-block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    min-width: 120px !important;
    max-width: 320px !important;
    padding-left: 1.5em !important;
    padding-right: 1.5em !important;
    box-sizing: border-box !important;
  }
  /* Fuerza el centrado de los botones en sus contenedores */
  .servicios-boton,
  .solicita-asesoria,
  .ver-todos-servicios,
  .button-container {
    text-align: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
@media (max-width: 600px) {
  .testimonials-modern {
    padding-left: 1em !important;
    padding-right: 1em !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .testimonials-modern h2 {
    text-align: center !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }
  .testi-cards {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
  .testi-card {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
    max-width: 400px !important;
    box-sizing: border-box !important;
  }
}
.hero-slide .hero-slide-text {
    display: none; /* Asegura que no se muestre ningún texto si por error lo dejaste */
}
.hero-slide-img {
    width: 100%;
    height: 100%;
    overflow: hidden; /* Importante para que la imagen no se desborde */
}

.hero-slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Esto es crucial para que las imágenes cubran el área sin distorsionarse */
    display: block; /* Elimina espacios extra debajo de la imagen */
}
.hero-slider {
    position: relative; /* Necesario para posicionar los puntos */
    width: 100%;
    height: 600px; /* Ajusta esta altura según lo que necesites para tus imágenes */
    max-height: 80vh; /* Puedes usar unidades relativas al viewport también */
    overflow: hidden;
}

.hero-slider-row {
    display: flex;
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out; /* Transición suave entre slides */
    display: flex; /* Para centrar la imagen si es necesario */
    justify-content: center;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1; /* Asegura que el slide activo esté al frente */
}
.hero-slider-dots {
    position: absolute;
    bottom: 20px; /* Ajusta la posición de los puntos */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.hero-dot.active {
    background-color: #ffffff; /* Color del punto activo */
}
/* NUEVO CONTENEDOR BLANCO PARA EL CONTENIDO PRINCIPAL */
.main-content-wrapper {
    background-color: var(--blanco); /* Fondo blanco */
    max-width: 1200px; /* Ancho máximo para el contenido */
    margin: 40px auto; /* Centra el wrapper y le da margen arriba/abajo */
    padding: 20px; /* Padding blanco alrededor de todo el contenido de main */
    border-radius: 15px; /* Bordes redondeados */
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1); /* Sombra sutil */
    position: relative; /* Para posibles posicionamientos internos */
}
/* HERO */
/* La clase hero-alt original se modifica a hero-split para el layout de dos columnas */
.hero-split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px; /* Espacio entre el texto y el slider */
  padding: 2.7em 0; /* Padding vertical, el horizontal lo da .main-content-wrapper */
  /* El fondo y la sombra se moverán al .main-content-wrapper */
  /* background: linear-gradient(120deg, var(--rojo-principal) 0%, var(--azul-principal) 85%); */
  /* border-radius: 0 0 45px 45px; */
  /* box-shadow: 0 4px 42px #e5393555; */
  margin-bottom: 2.5em; /* Margen debajo de la sección hero */
  overflow: hidden; /* Importante para contener el slider */
}

/* Reajuste del hero-content-alt para el nuevo layout */
.hero-content-alt {
  flex: 1;
 min-width: 300px;
 max-width: 50%;
 color: var(--azul-principal);
 text-align: left;
 display: flex;
 flex-direction: column;
 justify-content: center;
 padding: 2em;
 border-radius: 10px;
 background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%);
}
.hero-content-alt h1 {
  font-family: 'Poppins', Arial, sans-serif;
  font-size: 2.2em;
  margin-bottom: .33em;
  font-weight: 700;
  line-height: 1.1;
  color: var(--azul-principal); /* Asegura que el título sea visible en blanco */
}
.gradient-text {
  /* Mantén tu degradado original si funciona bien, o ajusta si necesitas más contraste */
  background: linear-gradient(90deg, var(--rojo-principal), var(--azul-principal), var(--azul-secundario));
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-content-alt p {
  font-size: 1.15em;
  margin-bottom: 1.3em;
  color: #555; /* Color neutro para el texto del párrafo */
}
.cta-glass {
  /* Mantén el estilo de tu botón, ajustando la sombra para el fondo blanco */
  background: var(--azul-principal);
  color: var(--blanco);
  border: 2px solid var(--rojo-principal);
  border-radius: 26px;
  font-size: 1.09em;
  font-weight: 700;
  padding: 0.8em 2.2em;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.2); /* Ajusta la sombra para el fondo blanco */
  display: inline-block;
  cursor: pointer;
}
.cta-glass:hover {
  background: var(--rojo-principal);
  color: var(--blanco);
}

/* --- ESTILOS PARA EL CONTENEDOR DEL SLIDER (el reemplazo de .hero-img) --- */
.hero-slider-container {
  flex: 1; /* Permite que ocupe el espacio restante */
  min-width: 300px; /* Ancho mínimo para el slider */
  max-width: 50%; /* Limita su ancho máximo a la mitad */
  position: relative;
  height: 450px; /* Altura fija para el slider - AJUSTA ESTO SEGÚN TUS NECESIDADES */
  overflow: hidden;
  border-radius: 15px; /* Coincide con el border-radius del wrapper o ajusta */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  background-color: #f0f0f0; /* Fondo de respaldo para el área del slider */
}

/* Estilos de los slides individuales */
.hero-slider-row {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Crucial para que las imágenes cubran el área sin distorsionarse */
  display: block;
}

/* Estilos de los puntos de navegación del slider */
.hero-slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  background-color: rgba(0, 0, 0, 0.4); /* Puntos más oscuros para fondo blanco */
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero-dot.active {
  background-color: var(--rojo-principal); /* Punto activo en rojo */
}
@media (max-width: 990px) {
  /* Ajustes para el wrapper en pantallas medianas */
  .main-content-wrapper {
      padding: 15px; /* Reduce padding del wrapper */
      margin: 20px auto;
      border-radius: 10px;
  }
  /* La sección hero dividida se apila en columnas */
  .hero-split {
    flex-direction: column; /* Apila texto y slider */
    padding: 2em 0; /* Ajusta padding vertical */
    gap: 20px; /* Espacio entre elementos apilados */
    margin-bottom: 2em;
  }
  .hero-content-alt { /* Esta es la regla del texto, ya la tenías */
    max-width: 100%; /* Asegura que ocupe todo el ancho disponible */
    width: 100%; /* Fuerza que ocupe el 100% */
    min-width: unset; /* Permite que el ancho sea flexible */
    text-align: center; /* Centra el texto cuando está apilado */
    padding: 1.5em; /* Reduce el padding para móvil si es necesario */
    /* Para el degradado en móvil, si se apilan, podemos cambiarlo a un fondo sólido blanco */
    background: rgba(255, 255, 255, 0.95); /* Blanco semi-transparente sólido para el fondo del texto */
    /* O si prefieres un degradado de arriba a abajo en móvil: */
    /* background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%); */
  }

  .hero-slider-container { /* Esta es la regla del CONTENEDOR del slider */
    height: 350px; /* Ajusta la altura del slider para móvil */
    /* --- AÑADIR/AJUSTAR ESTAS LÍNEAS AQUÍ PARA EL SLIDER CONTAINER --- */
    max-width: 100%; /* Asegura que ocupe el 100% del ancho del main-content-wrapper */
    width: 100%; /* Fuerza que ocupe el 100% */
    min-width: unset; /* Elimina cualquier restricción de ancho mínimo */
    box-sizing: border-box; /* Asegura que padding y border no aumenten el tamaño final */
    margin: 0 auto; /* Centra el contenedor si hay espacio sobrante */
    /* --- FIN DE LAS LÍNEAS A AÑADIR/AJUSTAR --- */
  }
  .hero-slider-container {
    height: 350px; /* Ajusta la altura del slider para móvil */
  }
  .hero-content-alt h1 {
    font-size: 2em; /* Ajusta el tamaño de fuente */
  }
  /* ... (Mantén tus otras reglas de 990px que no sean del hero) ... */
}

@media (max-width: 600px) {
  /* Ajustes para el wrapper en pantallas pequeñas */
  .main-content-wrapper {
      padding: 10px; /* Reduce aún más el padding */
      margin: 15px auto;
  }
  .hero-content-alt h1 {
    font-size: 1.5em; /* Fuente más pequeña */
  }
  .hero-content-alt p {
    font-size: 1em;
  }
  .hero-slider-container {
      height: 280px; /* Slider más pequeño */
  }
  /* ... (Mantén tus otras reglas de 600px que no sean del hero) ... */
}
@media (max-width: 600px) {
  /* ... tus otras reglas para 600px ... */

  /* Para asegurar el centrado en pantallas aún más pequeñas */
  .center {
    text-align: center;
    width: 100%;
  }

  .cta-outline {
    display: block !important; /* Usa !important si otras reglas lo están anuldando */
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 95% !important; /* Ajusta el ancho para pantallas muy pequeñas */
    padding-left: 1em !important; /* Puede que necesites menos padding */
    padding-right: 1em !important;
  }

  /* ... el resto de tus reglas para 600px ... */
}
