/* articulo */
.articulo {
  display: flex;
  gap: 60px;
  padding: 100px 12%;
  align-items: center;
}

.articulo div {
  width: 50%;
  padding-left: 20px;

  display: flex;
  flex-direction: column;
  gap: 12px;
}

.articulo div h2 {
  height: fit-content;
}

.articulo div h2:last-of-type {
  font-size: 1.3rem;
  font-weight: 400;
  opacity: 0.85;
}

.articulo div p {
  width: 100%;
  margin-top: 15px;
  margin-left: 13px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.articulo img {
  width: 50%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.articulo:hover img {
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}


/*--------------------------------------------------------------------*/



/* ------- Split Hero C ------- */
.hero-c {
  min-height: 85vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 1000px) {
  .hero-c { 
      grid-template-columns: 1fr;
      min-height: 50vh;
  }
}

.hero-c .hero-text {
  background: #030f27;
  color: #ffffff;
  display: flex;
  align-items: center;
  padding: 5rem 2rem;
}

@media (min-width: 1000px) {
  .hero-c .hero-text { padding: 5rem 4rem; }
}

.hero-c .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(213,33,52,0.1);
  border: 1px solid rgba(213,33,52,0.2);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  margin-bottom: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: hsl(354, 73%, 48%);
}

.hero-c h1 {
  font-size: 2.5rem;
  font-weight: bold;
  line-height: 1.2;
  color: #ffffff;
}
@media (min-width: 1000px) {
  .hero-c h1 { font-size: 3rem; }
}

.hero-c h1 .highlight {
  color: #d52134;
}

.hero-c .hero-subtitle {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  color: rgba(255,255,255,0.8);
  max-width: 28rem;
}

.hero-c .hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 1000px) {
  .hero-c .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 2.75rem;
    align-items: center;
    margin-top: 2rem;
  }
}

.hero-c .hero-image {
  position: relative;
  overflow: hidden;
}

.hero-c .hero-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-link {
  padding: 10px 18px;
  background-color: #ab5563;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.3s;
}

.hero-link:hover {
  background-color: #8f3f4c;
}



/*--------------------------------------------------------------------*/




/* Slider */

.slider {
  position: relative;
  width: 100%;
  height: min(70vh, 480px);
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide.active .texto-slide {
  animation: fadeUp 0.6s ease-out;
}


.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.15)
  );
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.texto-slide {
  position: absolute;
  z-index: 2;
  bottom: 40px;
  left: 50px;
  align-self: flex-start;
  color: white;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 10px;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.2)
  );
  animation: fadeUp 0.8s ease-out;
}

.texto-slide a {
  text-decoration: none;
  align-self: flex-start;
}

.texto-slide a:hover {
  background-color: #030f27;
}

.controles-slider {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 5;
}

.controles-slider button {
  padding: 10px 14px;
  font-size: 20px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  color: white;
  transition: 0.3s;
}

.controles-slider button:hover {
  background: rgba(0,0,0,0.8);
}


@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*--------------------------------------------------------------------*/




/* Estadisticas */

#estadisticas {
  display: flex;
  justify-content: space-around;
  padding: 70px 0;
  background-color: #ffffff;
  color: #030f27;
  text-align: center;
}

.estadisticas-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 150px;
}

.contador {
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.contador:hover {
  transform: translateY(-6px);
  opacity: 1;
}


.contador h2 {
  font-size: 52px;
  margin: 0;
  font-weight: 700;
}

.contador p {
  margin-top: 10px;
  font-size: 16px;
  opacity: 0.85;
}

.contador:nth-child(1) h2,
.contador:nth-child(2) h2 {
  color: #d42233;
}

.contador h2::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin: 12px auto 0;
  background-color: #d42233;
  border-radius: 2px;
}


/*--------------------------------------------------------------------*/


/* Despliegue de Logos */


/* Contenedor general */
.logo-slider {
  width: 100%;
  padding: 40px 0;
  overflow: hidden;
  background: #fafafa;
}

.logo-slider h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 2rem;
  color: #030F27;
}

/* Cada fila */
.logo-row {
  overflow: visible;
  white-space: nowrap;
  margin: 25px 0;
  position: relative;
  cursor: pointer;
}

.logo-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation-name: scrollLeft;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  overflow: visible;
  will-change: transform;
}

.row-right .logo-track {
  animation-name: scrollRight;
}

.logo-row:hover .logo-track {
  animation-play-state: paused;
}

.logo-row:hover img {
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

/* Animaciones */
@keyframes scrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}


@keyframes scrollRight {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

/* Tamaño logos */
.logo-track img {
  height: 65px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter 0.4s ease, transform 0.4s ease;
}

/* Hover: color + escala */
.logo-track img:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.15);
}


/*--------------------------------------------------------------------*/


/* Despliegue */

body {
    background-color: #ffffff;
    padding-bottom: 0;
}

.despliegue-a {
  padding: 4rem 0;
  background: hsl(0, 0%, 100%);
}

.despliegue-a .section-label {
  font-size: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: hsl(354, 73%, 48%); 
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-align: center;
}

.despliegue-a .section-title {
  margin-top: 0.75rem;
  font-size: 1.875rem;
  font-weight: 900;
  color: hsl(220, 50%, 8%);
  text-align: center;
}
@media (min-width: 768px) {
  .despliegue-a .section-title { font-size: 2.25rem; }
}

.despliegue-a .section-desc {
  margin-top: 1.5rem;
  color: hsl(220, 16%, 31%);
  line-height: 1.7;
  text-align: center;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

.despliegue-a .cards-grid {
  display: grid;
  gap: 1.5rem;       /* 🔥 espacio uniforme entre cards */
  padding: 1.5rem;   /* 🔥 espacio contra los bordes */
  margin-top: 4rem;
}
@media (min-width: 768px) {
  .despliegue-a .cards-grid { grid-template-columns: repeat(3, 1fr); }
}

.despliegue-a .feature-card {
  background: hsl(0, 0%, 100%);
  border-radius: 0.75rem;
  padding: 0.5rem;
  margin: 0;
  border: 1px solid hsl(220, 13%, 90%);
  border-left: 4px solid hsl(354, 73%, 48%); 
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}
.despliegue-a .feature-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.despliegue-a .feature-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(213,33,52,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.despliegue-a .feature-icon i,
.despliegue-a .feature-icon svg {
  font-size: 1.75rem;
  color: hsl(354, 73%, 48%);
}

.despliegue-a .feature-card h3 {
  font-weight: 700;
  font-size: 1.125rem;
  color: hsl(220, 50%, 8%);
}

.despliegue-a .feature-card p {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: hsl(220, 16%, 31%);
  line-height: 1.7;
}


/*--------------------------------------------------------------------*/



/* Seccion baja */

.testimonials-a {
  padding: 6rem 0;
  background: hsl(220, 10%, 95%);
  text-align: center;
}

.testimonials-a h2 {
  font-size: 1.875rem;
  font-weight: 900;
  color: hsl(220, 50%, 8%);
}

.testimonials-a .quote-icon {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
}

.testimonials-a .quote-icon::before {
  content: "“";
  font-size: 80px;
  font-weight: bold;

  color: white; /* relleno */

  -webkit-text-stroke: 2px #d52134; /* borde rojo */
  
  position: absolute;
  top: -20px;
  left: 0;
}

.testimonials-a blockquote {
  font-size: 1.25rem;
  font-style: italic;
  color: hsl(220, 16%, 31%);
  line-height: 1.7;
  max-width: 42rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .testimonials-a blockquote { font-size: 1.5rem; }
}

.testimonials-a .quote-author {
  margin-top: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: hsl(354, 73%, 48%);
}

.testimonial-slider {
  position: relative;
  overflow: hidden;
}

.testimonial {
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateX(40px);
  transition: all 0.5s ease;
}

.testimonial.active {
  opacity: 1;
  transform: translateX(0);
  position: relative;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: white;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 40px;
  height: 40px;

  cursor: pointer;
  font-size: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: 0.3s;
}

.slider-btn:hover {
  background: #d52134;
  color: white;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.comentario {
  max-width: 700px;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  margin: 20px auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comentario:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}

.comentario p {
  font-size: 1.05rem;
  line-height: 1;
  color: #ab5563;
}

.comentario span {
  display: block;
  font-weight: bold;
  color: #ab5563;
}


.mapa {
  padding: 60px 10%;
  margin: 80px auto;
  text-align: center;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.mapa h2 {
  margin-bottom: 30px;
  font-size: 28px;
}

.contenedor-mapa {
  border: 3px solid #ab5563;
  border-radius: 10px;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contenedor-mapa:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.mapa::before {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  background-color: #d42233;
  border-radius: 2px;
  margin: 0 auto 25px;
}

.mapa::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  background-color: #d42233;
  border-radius: 2px;
  margin: 25px auto 0;
}



/*-----------------------------------------------------------------*/



/* Volver arriba */

#btnVolverArriba {
  position: fixed;
  bottom: 75px;
  right: 15px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  color: #b40000;
  border: 2px solid #b40000;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 9999;
  visibility: hidden;
  transition: all 0.3s ease;
}

#btnVolverArriba:hover {
  background: #b40000;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(180, 0, 0, 0.4);
}

#btnVolverArriba.visible {
  opacity: 1;
  visibility: visible;
  animation: pulseIn 0.5s ease;
}

#btnVolverArriba i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
  margin-left: 5px;
  margin-top: 1px;
  transition: transform 0.3s ease;
}

#btnVolverArriba:hover i {
  transform: translateY(-2px);
}

@keyframes pulseIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}


/*--------------------------------------------------------------------*/


@media (max-width: 1000px) {
  .video-intro {
    height: 50vh;
  }
  
  .slider {
    height: 50vh;
  }
  
  .controles-slider {
      left: 85%;
  }

  .texto-slide {
    max-width: 380px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    padding: 12px;
  }
  
  .texto-slide h2 {
    font-size: 1.4rem;
  }

  .texto-slide p {
    font-size: 1rem;
  }
  
  .articulo {
    flex-direction: column;
    padding: 60px 5%;
  }

  .articulo img,
  .articulo div {
    width: 100%;
  }
  
  .articulo div {
    padding-left: 0;
  }
  
  .articulo div h2 {
    text-align: center;
  }

  .articulo div p {
    width: 100%;
    margin: 20px 0 0;
    text-align: center;
  }
  
  .estadisticas-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }

  .contador h2 {
    font-size: 56px;
    font-weight: 800;
  }
  
  .contador p {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
  }
  
  .despliegue1 {
    flex-direction: column;
    padding: 20px;
    gap: 0;
  }

  .despliegue1 div {
    width: 100%;
  }
  
  .despliegue1 h1 {
    font-size: 1.6rem;
  }

  .despliegue2 {
    flex-direction: column;
    gap: 20px;
  }

  .despliegue2 > div {
    width: 100%;
    padding: 15px;
  }
  
  .despliegue2 > div > div > i {
    font-size: 32px;
  }
  
  .logo-track {
    gap: 40px;
  }

  .logo-track img {
    height: 50px;
  }
  
  .testimonios {
    padding: 60px 5%;
  }

  .comentario {
    padding: 25px;
  }
  
  .mapa {
    padding: 40px 5%;
    margin: 50px auto;
  }
}

@media (max-width: 480px) {
  .texto-slide h2 {
    font-size: 16px;
  }

  .texto-slide p {
    font-size: 13px;
  }

  .contador h2 {
    font-size: 30px;
  }
}

@media (min-width: 1400px) {
  .slider {
    height: 520px;
  }

  .articulo {
    padding: 80px 15%;
  }

  .mapa {
    padding: 80px 15%;
  }
}