/* 3. HERO SECTION */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
  padding-top: 50px;
  padding-bottom: 110px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(
      circle at 85% 15%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 10% 85%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(rgba(255, 255, 255, 0.06) 2px, transparent 2px);
  background-size:
    100% 100%,
    100% 100%,
    30px 30px;
  z-index: 0;
}

.hero .flex-between {
  position: relative;
  z-index: 1;
  gap: 50px;
}

h1 {
  font-size: 4.2rem;
  margin-bottom: 20px;
  line-height: 1.1;
  font-weight: 800;
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 500px;
  font-weight: 300;
}

.features-mini {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.features-mini span {
  background: rgba(255, 255, 255, 0.12);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.85rem;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-image img {
  width: 100%;
  max-width: 580px;
  height: auto;
  border-radius: 15px;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.4));
}

/* 4. SECCIÓN NOSOTROS */
.seccion-nosotros {
  position: relative;
  padding-bottom: 80px;
  padding-top: 20px;
  background: #f8f9fa;
}

.caja-flotante {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  padding: 50px 70px;
  display: flex;
  align-items: center;
  gap: 60px;
  margin-top: -90px;
  position: relative;
  z-index: 10;
}

.nosotros-imagen-box {
  flex: 1;
  background: #f4f7fb;
  padding: 25px;
  border-radius: 20px;
}

.nosotros-imagen-box img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nosotros-texto {
  flex: 1.2;
}

.subtitle-minimal {
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-weight: 600;
  margin-bottom: 25px;
  display: block;
}

.nosotros-texto p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 20px;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 30px;
}

.feature-item {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f4f8;
}

.feature-item.wide {
  grid-column: 1 / span 2;
}

.feature-item i {
  color: #1e88e5;
  font-size: 1.3rem;
}

.feature-item span {
  font-weight: 600;
  color: #1a2b48;
  font-size: 0.9rem;
}

/* 5. SECCIÓN QUÉ HACEMOS */
.seccion-que-hacemos {
  padding: 80px 0 100px 0;
  position: relative;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.02);
  z-index: 10;
}

.header-centrado {
  text-align: center;
  margin-bottom: 60px;
}

.cards-integradas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 50px;
}

.card-dual {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
  border: 1px solid #f0f4f8;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  background: #fff;
}

.card-dual:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(13, 71, 161, 0.08);
}

.card-top {
  padding: 40px 25px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icono-servicio {
  width: 70px;
  height: 70px;
  background: #f4f7fb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #1e88e5;
  font-size: 2rem;
  transition: 0.3s;
}

.card-dual:hover .icono-servicio {
  background: #1e88e5;
  color: #fff;
}

.card-top h3 {
  font-size: 1.2rem;
  color: #0d47a1;
  margin-bottom: 15px;
  font-weight: 700;
}

.card-top p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
  flex-grow: 1;
}

.divisor-instagram {
  display: flex;
  align-items: center;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 10px 20px;
  border-radius: 30px;
  width: fit-content;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.divisor-instagram a {
  color: #e1306c;
  text-decoration: none;
  font-weight: 700;
  margin-left: 5px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* CAJA FLOTANTE DE MÉTRICAS */
.caja-flotante-metricas {
  background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
  border-radius: 24px;
  box-shadow: 0 15px 40px rgba(13, 71, 161, 0.15);
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.caja-flotante-metricas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(
      circle at 85% 15%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 40%
    ),
    radial-gradient(rgba(255, 255, 255, 0.04) 2px, transparent 2px);
  background-size:
    100% 100%,
    30px 30px;
  z-index: 0;
}

.metrica-item {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 20px;
  border-radius: 16px;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
  flex: 1;
}

.metrica-item:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.05);
}

.metrica-icono {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metrica-texto h4 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 5px;
}

.metrica-texto p {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.9;
  margin: 0;
}

.nowrap-desktop {
  white-space: nowrap;
}

.metrica-texto .context-text {
  font-size: 0.75rem;
  text-transform: none;
  opacity: 0.7;
  margin-top: 6px;
  line-height: 1.3;
}

.metrica-item.especial-covid {
  background-color: #660000;
  background-image:
    linear-gradient(
      135deg,
      rgba(102, 0, 0, 0.97) 0%,
      rgba(183, 28, 28, 0.95) 100%
    ),
    url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAgMTAwIj48ZyBmaWxsPSIjRkZGRkZGIiBmaWxsLW9wYWNpdHk9IjAuMDQiPjxjaXJjbGUgY3g9IjUwIiBjeT0iNTAiIHI9IjIwIi8+PGcgcm90YXRlPSI0NSAwIDAiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDUwLDUwKSI+PHBhdGggZD0iTTM1LTM1IEwzNSwzNSBMLTM1LDM1IEwtMzUsLTM1IFoiIGZpbGw9Im5vbmUiLz48Zy8+PGcvPjwvZz48Y2lyY2xlIGN4PSIzNSIgY3k9IjM1IiByPSI0Ii8+PGNpcmNsZSBjeD0iNjUiIGN5PSI2NSIgcj0iNCIvPjxjaXJjbGUgY3g9IjY1IiBjeT0iMzUiIHIPSI0Ii8+PGNpcmNsZSBjeD0iMzUiIGN5PSI2NSIgcj0iNCIvPjwvZz48L3N2Zz4=');
  background-blend-mode: overlay;
  background-size:
    cover,
    120px 120px;
  background-repeat: no-repeat, repeat;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.metrica-item.especial-covid:hover {
  background-color: #770000;
}

.metrica-item.especial-covid .metrica-icono {
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.8);
}

/* 6. SECCIÓN CASCO SANDOVAL */
.seccion-casco {
  position: relative;
  background: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
  border-top: 1px solid #eaeef3;
  z-index: 10;
}

.seccion-casco::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(
      circle at 85% 15%,
      rgba(255, 255, 255, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 10% 85%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(rgba(255, 255, 255, 0.06) 2px, transparent 2px);
  background-size:
    100% 100%,
    100% 100%,
    30px 30px;
  z-index: 0;
}

.casco-container {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.casco-texto {
  flex: 1.5;
  padding: 60px 0;
}

.seccion-casco .badge {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.casco-texto .brand-title {
  color: #ffffff;
  font-size: 2.6rem;
  margin-bottom: 12px;
  line-height: 1.1;
}

.casco-texto p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.6;
  margin-bottom: 25px;
}

.casco-metricas-mini {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.casco-box {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 22px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: default;
}

.casco-box:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.15);
}

.casco-box h4 {
  font-size: 2.2rem;
  color: #fff;
  margin: 0;
  line-height: 1;
  font-weight: 800;
}

.casco-box span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.3;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}

.casco-imagen {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.casco-imagen img {
  width: 100%;
  max-width: 380px;
  height: auto;
  display: block;
  position: relative;
  z-index: 20;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
  transform: scale(1.25);
}

/* 7. SECCIÓN PREGUNTAS */
.seccion-preguntas {
  padding: 80px 0 100px 0;
  background: #f8f9fa;
  text-align: center;
  position: relative;
  border-top: 1px solid #eaeef3;
  z-index: 2;
}

/* MEDIA QUERIES PARA LAS SECCIONES */
@media (max-width: 1024px) {
  .cards-integradas {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero {
    padding: 40px 0 80px 0;
  }

  .hero .flex-between {
    flex-direction: column;
    text-align: center;
  }

  h1 {
    font-size: 2.8rem;
  }

  .hero-content p {
    font-size: 1.1rem;
    margin: 0 auto 30px;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .btn-main,
  .btn-sec {
    width: 100%;
    justify-content: center;
    padding: 14px;
  }

  .hero-image {
    display: none;
  }

  .features-mini {
    justify-content: center;
    gap: 10px;
  }

  .features-mini span {
    width: 100%;
    justify-content: center;
  }

  .seccion-nosotros {
    padding-bottom: 40px;
  }

  .caja-flotante {
    flex-direction: column;
    margin-top: -60px;
    padding: 30px 25px;
    gap: 30px;
    text-align: center;
  }

  .nosotros-imagen-box {
    display: none;
  }

  .brand-title {
    font-size: 2.4rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feature-item.wide {
    grid-column: auto;
  }

  .caja-flotante-metricas {
    flex-direction: column;
    gap: 20px;
    padding: 30px;
  }

  .metrica-item {
    width: 100%;
  }

  .nowrap-desktop {
    white-space: normal;
  }

  .casco-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .casco-texto {
    padding: 40px 0 20px 0;
  }

  .casco-metricas-mini {
    justify-content: center;
    margin-bottom: 20px;
  }

  .casco-imagen img {
    transform: scale(1.1) translateY(20px);
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .cards-integradas {
    grid-template-columns: 1fr;
  }

  .divisor-instagram {
    font-size: 0.8rem;
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }
}
