@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --blue: #0080c3;
  --pink: #e84a90;
  --light-gray: #e6f0fa;
  --white: #fff;
  --dark-gray: #444;
}

* {
  box-sizing: border-box;
  cursor: default;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #222;
  min-height: 100vh;
  background: linear-gradient(130deg, #e6f0fa 0%, var(--white) 65%, #e84a90 100%);
  background-attachment: fixed;
  transition: background 1s;
  overflow-x: hidden;
}

.section-top-padding {
  background-image: url(img/img-05.jpg);
}

.container {
  width: 1200px;
  margin: auto;
  padding: 0 20px;
  overflow-x: hidden;
  padding: 28rem 0 0 0;
}

.position-absolute {
  padding: 0rem 2rem;
  background-image: url(../img/mio/fondos/serviciosbackground.jpg);
  background-size: cover;
  background-position: center center; 
  background-repeat: no-repeat;
  height: 100vh; /* Hace que el elemento tenga la altura completa del viewport */
  width: 100%; /* Para que ocupe el ancho completo */

}

/* ---------- Animación FADE+ZOOM de fotos ---------- */
.fade-zoom {
  opacity: 0;
  transform: scale(0.95) translateY(40px);
  transition: opacity 0.8s ease, transform 0.9s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}

.fade-zoom.visible {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.hero {
  background: linear-gradient(130deg, var(--blue) 0% #e6f0fa 60%, #e84a90 100%);
  /* min-height: 100vh; */
  background-attachment: fixed;
  overflow-x: visible;
  text-align: center;
  padding: 2rem 0 5rem 0;
  width: 100%;
  box-sizing: border-box;
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  color: var(--light-gray);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.hero h2 {
  font-size: 1.35rem;
  color: var(--dark-gray);
  margin: 5rem 0;
  font-weight: 500;
  letter-spacing: .2px;
}

.hero .btn {
  background: linear-gradient(115deg, #0080c3 10%, #e84a90 90%);
  color: white;
  border: none;
  border-radius: 14px;
  padding: 18px 50px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 26px rgb(232 74 144 / 0.10), 0 2px 8px rgb(0 128 195 / 0.05);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  outline: none;
  letter-spacing: 1px;
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 999999
}

.hero .btn:hover,
.hero .btn:focus {
  background: linear-gradient(90deg, #e84a90 30%, #0080c3 90%);
  box-shadow: 0 16px 45px rgb(0, 128, 195, 0.12), 0 8px 30px rgb(232, 74, 144, 0.10);
  transform: translateY(-3px) scale(1.04);
  outline: none;
}

.btn-sticky-container {
  position: fixed;
  top: 26REM;
  right: 3REM;
  z-index: 1100;
  max-width: 300px;
  width: auto;
}

.btn-sticky-container .btn.sticky-btn {
  border-radius: 14px;
  padding: 18px 50px;
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(115deg, #0080c3 10%, #e84a90 90%);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 26px rgb(232 74 144 / 0.10), 0 2px 8px rgb(0 128 195 / 0.05);
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  outline: none;
  letter-spacing: 1px;
}

.btn-sticky-container .btn.sticky-btn:hover,
.btn-sticky-container .btn.sticky-btn:focus {
  background: linear-gradient(90deg, #e84a90 30%, #0080c3 90%);
  box-shadow: 0 16px 45px rgb(0 128 195 / 0.12), 0 8px 30px rgb(232 74 144 / 0.10);
  transform: translateY(-3px) scale(1.04);
  outline: none;
}

.hero .btn {
  display: none;
}

/* ---------- Historia zig-zag ---------- */
.history {
  max-width: 1100px;
  margin: 0 auto 60px;
  padding: 3rem;
}

.history>h3 {
  margin-bottom: 26px;
  color: var(--blue);
  text-align: left;
  font-weight: 750;
  padding-left: 15rem;
  font-size: 2rem;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 50px;
}

.history-item:nth-child(even) {
  flex-direction: row-reverse;
}

.history-img {
  width: 40%;
  height: 180px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.13);
  filter: grayscale(20%);
  transition: filter 0.4s, box-shadow 0.5s;
}

.history-img:hover {
  filter: grayscale(0%);
  box-shadow: 0 12px 34px rgba(0, 128, 195, 0.12), 0 4px 12px rgba(232, 74, 144, 0.09);
}

.history-content p {
  width: 32rem;
  color: var(--blue);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: .15px;
}

.history-content time {
  color: #e84a90;
  font-weight: 600;

}

/* ---------- Bloque grupal y cultura con cambio de lado ---------- */
.group-culture-block {
  display: flex;
  flex-direction: row;
  column-gap: 2rem;
  width: 100%;
  margin: 0 auto 75px;
  justify-content: center;
  /* background: linear-gradient(180deg, #f4f9ff 70%, #dbeafe 140%); */
}

.group-photo>h3 {
  margin-bottom: 12px;
  color: var(--blue);
  text-align: left;
  font-weight: 750;
  padding-left: 4rem;
  font-size: 2rem;
}

.group-photo {
  width: 45%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 128, 195, 0.13);
}

.group-photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 20px;
  transition: filter 0.4s;
}

.group-photo img:hover {
  filter: brightness(0.92) grayscale(0.10);
}

.culture-text {
  flex: 1 1 340px;
  min-width: 260px;
  max-width: 440px;
  background: var(--light-gray);
  border-radius: 14px;
  padding: 38px 34px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  order: 2;
}

.culture-text p {
  color: var(--blue);
  font-size: 1.15rem;
  font-weight: 400;
  text-align: left;
  line-height: 1.7;
  position: relative;
  text-align: justify;
}

.culture-text h4 {
  font-size: 1.14rem;
  color: var(--blue);
  font-style: italic;
  margin-top: 2rem;
  font-weight: 650;
}

/* Solo en desktop: dar el efecto moderno de alternancia (cultura derecha) */
@media(min-width:990px) {
  .group-photo {
    order: 1;
  }

  .culture-text {
    order: 2;
    text-align: left;
    margin-left: 0 !important;
  }
}

/* ---------- Bloque Misión, Visión, Valores ---------- */
#mvv-title {
  margin-bottom: 12px;
  color: var(--blue);
  text-align: center;
  font-weight: 750;
  font-size: 2rem;
  padding: 0 2rem 5rem 1rem;
}

.mvv-blocks {
  display: flex;
  flex-direction: row;
  gap: 38px;
  justify-content: center;
  margin-bottom: 55px;
}

.mvv-blocks>h3 {
  margin-bottom: 12px;
  color: var(--blue);
  text-align: left;
  font-weight: 750;
  padding-left: 15rem;
  font-size: 2rem;
}

.mvv-card {
  background: var(--white);
  border-radius: 13px;
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.08);
  padding: 32px 28px;
  flex: 1 1 250px;
  min-width: 220px;
  max-width: 360px;
  text-align: center;
  border-top: 4px solid var(--pink);
  transition: box-shadow 0.3s;
}

.mvv-card:hover {
  box-shadow: 0 18px 18px 18px rgba(232, 74, 145, 0.349);
}

.mvv-card h3 {
  margin: 0 0 17px;
  color: var(--blue);
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.mvv-card .icon {
  font-size: 2.3rem;
  margin-bottom: 13px;
  color: var(--pink);
}

.mvv-card p {
  margin: 0;
  color: var(--dark-gray);
  font-size: 1.09rem;
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- BLOQUE CLIENTES y RESEÑAS MODERNO INTERACTIVO ---------- */
.clients-reviews {
  max-width: 1200px;
  margin: 0 auto 50px auto;
  background: linear-gradient(95deg, #fff 50%, #e6f0fa 100%);
  border-radius: 18px;
  box-shadow: 0 2px 22px rgba(0, 128, 195, 0.08);
  padding: 4rem 5rem;
}

.clientes-title {
  text-align: center;
  font-size: 2rem;
  color: var(--blue, #003366);
  padding: 2rem 1rem 3rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.clientes-main {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 3vw;
}

.nivel-confianza {
  flex: 0 1 42%;
  min-width: 270px;
  max-width: 450px;
  background: #f0f7ff;
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 8px 26px rgba(0, 75, 183, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.padrino-estrellas {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin: 20px 0 8px 0;
}

.padre-span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #0059c1;
}

.padre-estrellas {
  display: flex;
  gap: 4px;
}

.star {
  transition: transform 0.3s, filter 0.3s;
}

.star:hover {
  filter: drop-shadow(0 0 10px #ffd700);
  transform: scale(1.13);
}

.estrellas-expli {
  color: #4763a7;
  font-weight: 500;
  font-size: 1rem;
  margin: 6px 0 18px 0;
  text-align: center;
}

.ver-opiniones {
  background: #0059c1;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 24px;
  padding: 12px 36px;
  text-decoration: none;
  box-shadow: 0 8px 26px rgba(0, 89, 193, 0.13);
  transition: background 0.3s, box-shadow 0.3s;
}

.ver-opiniones:hover,
.ver-opiniones:focus {
  background: #003d80;
  color: #fff;
  box-shadow: 0 15px 44px rgba(0, 55, 120, 0.21);
}

.review-faces {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.review-face {
  width: 68px;
  height: 68px;
  object-fit: cover;
  border-radius: 50%;
  border: 2.5px solid #e6e6f5;
  box-shadow: 0 4px 18px rgba(0, 64, 130, 0.08);
  background: #fff;
}

.reviews-carousel {
  flex: 1 1 60%;
  min-width: 320px;
  min-height: 285px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.review {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-style: italic;
  font-size: 1.13rem;
  color: var(--dark-gray, #23262f);
  line-height: 1.7;
  min-height: 160px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s, transform 0.6s cubic-bezier(.22, 1, .36, 1);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  transform: translate(-50%, -50%) scale(0.98);
  z-index: 2;
}

.reviews-carousel .review {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-style: italic;
  font-size: 1.13rem;
  color: var(--dark-gray);
  line-height: 1.7;
  min-height: 280px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s, transform 0.6s cubic-bezier(.22, 1, .36, 1);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  transform: translate(-50%, -50%) scale(0.98);
  z-index: 2;
}

.reviews-carousel .review.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  position: absolute;
}

.review-photo {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 18px rgba(0, 64, 130, 0.15);
  margin-bottom: 22px;
}

.reviewer {
  font-weight: 700;
  color: var(--pink);
  font-size: 1rem;
  /* margin-top: 12px; */
  font-style: normal;
  font-family: inherit;
}

.reviews-dots {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 23rem;
  position: relative;
  z-index: 10;
}

.reviews-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #dcdce6;
  cursor: pointer;
  transition: background-color 0.3s;
  border: none;
}

.reviews-dot.active {
  background: var(--pink, #e84a90);
}

.cta-banner {
  background-color: var(--blue);
  padding: 36px 3vw;
  text-align: center;
  border-radius: 18px;
  margin-bottom: 70px;
  margin-top: 35px;
}

.cta-banner .btn {
  background: var(--white);
  color: var(--blue);
  font-weight: 700;
  padding: 18px 50px;
  border-radius: 14px;
  font-size: 1.23rem;
  cursor: pointer;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 128, 195, 0.10);
  transition: all 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  outline: none;
}

.cta-banner .btn:hover,
.cta-banner .btn:focus {
  background-color: var(--pink);
  color: var(--white);
  box-shadow: 0 16px 50px rgba(232, 74, 144, 0.13);
  transform: translateY(-5px) scale(1.07);
  outline: none;
}

/* ----------- RESPONSIVE ----------- */
/* Version Movil */
@media (max-width: 767px) {
  .logo {
    position: relative;
  }

  img.logo-dark {
    display: block;
    position: absolute;
    top: 2rem;
    left: 20rem;
  }

  .btn-sticky-container {
    top: 70px;
    right: 10px;
    max-width: 90vw;
  }

  .btn-sticky-container .btn.sticky-btn {
    padding: 12px 30px;
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 2rem;
    color: #0080c3;
    font-weight: 650;
  }

  .historia-title {
    text-align: right !important;
    margin: 0 auto;
  }

  .container {
    padding: 0 4vw;
  }

  .history>h3 {
    text-align: center !important;
    font-weight: 750;
    font-size: 2rem;
  }

  .history-item {
    flex-direction: column !important;
    gap: 30px;
  }

  .history-img {
    width: 100%;
    height: 180px;
  }

  .history-content {
    width: 100%;
  }

  .group-culture-block {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .group-photo {
    width: 100%;
  }

  .culture-text {
    font-size: 1.03rem;
    padding: 18px 5px;

  }

  .culture-text p {
    padding: 0.5rem 3rem;
    font-size: 1rem;
  }

  .culture-text h4 {
    padding: 0.5rem 3rem;
    text-align: center;
  }

  .mvv-blocks {
    flex-direction: column;
    gap: 18px;
    align-items: center;
  }

  .mvv-card {
    max-width: 98vw;
  }

  .clientes-main {
    flex-direction: column;
    /* columna en móvil */
    gap: 24px;
    /* más espacio vertical */
  }

  .nivel-confianza,
  .reviews-carousel {
    flex: 1 1 100%;
    max-width: 100%;
    min-width: auto;
    padding: 16px 12px;
  }

  /* Ajustar padding y max-width del título */
  .clientes-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  /* Adaptar textos y contenedores internos */
  .nivel-confianza {
    padding: 16px 10px;
  }

  .nivel-confianza h3 {
    font-size: 1.65rem;
    text-align: center;
  }

  /* Fotos de CEO en carrusel disminuyen */
  .review-photo {
    width: 150px;
    height: 150px;
    margin-bottom: 16px;
  }

  /* Texto de las reseñas más pequeño y anchos ajustados */
  .reviews-carousel .review {
    min-height: auto;
    font-size: 1rem;
    width: 100%;
    left: 50%;
    transform: translateX(-50%) scale(1);
    position: relative;
  }

  /* Puntos debajo centrados */
  .reviews-dots {
    margin-top: 2rem;
  }
}

.clients-reviews {
  flex-direction: column;
}

.clients-logos,
.reviews-slider {
  width: 100%;
  padding: 22px 5vw;
}

.cta-banner {
  padding: 18px 1vw;
}

.cta-banner .btn {
  width: 100%;
  font-size: 1.08rem;
  padding: 16px 5px;
}

/* ==== CENTRADO PERFECTO BOTÓN CTA ==== */
.nivel-confianza {
  width: 45%;
  background: #f0f7ff;
  border-radius: 24px;
  padding: 28px 24px;
  box-shadow: 0 16px 34px rgba(0, 75, 183, 0.15);
  font-family: 'Poppins', sans-serif;
  color: #003366;
  text-align: center;
  user-select: none;
  cursor: default;
  position: relative;
  display: inline-block;
}

.nivel-confianza h3 {
  font-weight: 700;
  font-size: 1.85rem;
  margin: 0 0 20px 0;
  line-height: 1.1;
  text-align: center;
}

.nivel-confianza svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.padrino-estrellas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.padre-span {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0059c1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.padre-estrellas {
  display: flex;
  gap: 6px;
}

.padre-estrellas:first-child,
:last-child {
  transition: transform 0.3s, filter 0.3s;
  cursor: pointer;
}

.padre-estrellas:nth-child(2),
:nth-child(3),
:nth-child(4) {
  transition: transform 0.3s, filter 0.3s;
  cursor: pointer;
}

.estrellas-expli {
  font-size: 1rem;
  font-weight: 500;
  color: #5c7cbb;
  margin-top: 0;
  margin-bottom: 8px;
}

.ver-opiniones {
  display: inline-block;
  background-color: #0059c1;
  color: white !important;
  padding: 14px 40px;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 12px 36px rgba(0, 89, 193, 0.42);
  user-select: none;
  transition: background-color 0.3s, box-shadow 0.3s;
  margin-top:2rem;
}

.ver-opiniones:hover,
.ver-opiniones:focus {
  background-color: #003d80;
  box-shadow: 0 16px 48px rgba(0, 55, 120, 0.55);
  color: white;
}

/* Hover animation para estrellas */
.star:hover {
  filter: drop-shadow(0 0 6px #ffd700);
  transform: scale(1.2);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.cta-banner .btn {
  display: flex;
  justify-content: center;
  /* Centrar horizontal */
  align-items: center;
  /* Centrar vertical */
  text-align: center;
  /* Centrar texto multilínea */

  padding: 12px 20px;
  margin: 0 auto;
  border-radius: 6px;
  max-width: 380px;
  width: 100%;
}

/* En móvil, reducimos un poco el ancho */
@media (max-width: 768px) {
  .cta-banner .btn {
    max-width: 220px;
    font-size: 1rem;
    padding: 10px 15px;
  }
}


/* Version Tablet */
@media(max-width: 1024px) and (min-width: 768px) {
  .history-item {
    flex-direction: column !important;
    gap: 25px;
  }

  .history-img {
    width: 100%;
    height: 220px;
  }

  .history-content {
    width: 100%;
  }

  .group-culture-block {
    flex-direction: column;
    gap: 25px;
  }

  .mvv-blocks {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .clients-reviews {
    flex-direction: column;
  }

  .clients-logos,
  .reviews-slider {
    width: 100%;
  }
}

/* Clase para ocultar visualmente (usada para accesibilidad en cta-banner) */
.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: 0;
}

@media(max-width: 1200px) {
  .container {
    max-width: 96vw;
  }
}

@media (max-width: 768px) {
  .reviews-slider {
    min-height: 320px;
  }

  .movil-hidden {
    display: none;
  }

  footer section.background-dark .line>.margin2x {
    display: flex;
    flex-direction: row;
    gap: 1.8rem;
    width: 100%;
    max-width: 100%;
    padding: 1rem 2rem;
    margin: 0 auto;
  }

  footer section.background-dark .line>.margin2x>div {
    width: 100% !important;
    /* Anulamos las clases s-12 m-6 l-3 xl-... para que no limiten */
    max-width: 100% !important;
    padding: 0;
  }

  .s-12:first-child {
    /* margin-top: 1.9rem; */
    margin-bottom: auto;
  }
}
