/* Estilos personalizados para CCC Abogadas */
/* Alternancia de fondos por sección */
#inicio,
#areas-especializacion,
#equipo {
  background-color: var(--default_color);
  padding-top: 80px;
  padding-bottom: 80px;
}

#quienes-somos,
#nuestro-enfoque,
#contacto {
  background-color: var(--primary_bg);
  padding-top: 80px;
  padding-bottom: 80px;
}

.whatsapp-float {
  position: fixed;
  width: 65px;
  height: 65px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  color: white;
  transform: scale(1.1);
}

/* Sombras para imágenes */
.d2c_img_wrapper img {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Ajustes para imagenes del equipo */
.d2c_team_img {
  overflow: hidden;
  border-radius: 50%;
  max-width: 260px;
  width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 auto 20px;
  position: relative;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.d2c_team_img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Ajustes para áreas de especialización */
.d2c_icon_box {
  width: 80px;
  height: 80px;
  background-color: var(--color_one);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
}

.d2c_icon_box i {
  font-size: 30px;
  color: var(--secondary_color);
}

.d2c_footer_wrapper p {
  font-size: 18px;
  margin-top: 15px;
}

.d2c_footer_wrapper h6 {
  margin-bottom: 20px;
}

/* Ajustes para el copyright */
.d2c_copy_right_wrapper p {
  font-size: 17px;
}

/* Estilos MEJORADOS para los íconos en la sección "Nuestro Enfoque" */
.d2c_steps_wrappper {
  text-align: justify;
  background-color: var(--primary_bg);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.d2c_steps_number {
  width: 130px;
  height: 130px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: var(--color_one);
  margin: 0 auto 25px;
  transition: all 0.4s ease;
  border: 2px solid transparent;
}

.d2c_title {
  color: var(--secondary_color);
}

.d2c_steps_number:before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: var(--accent_gradient_transparent);
  border-radius: 20px;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.d2c_steps_number i {
  font-size: 55px;
  z-index: 1;
  color: var(--secondary_color);
  transition: all 0.4s ease;
}

.d2c_steps_wrapp .col-md-8 h4 {
  font-size: 25px;
  margin-bottom: 15px;
  font-weight: 600;
  color: var(--primary_color);
  transition: color 0.3s ease;
}

.d2c_steps_wrapp .col-md-8 p {
  font-size: 18px;
  color: var(--text_color);
  line-height: 1.6;
}

.d2c_steps_wrapp .row:hover h4 {
  color: var(--secondary_color);
}

/* Estilo para la sección "Nuestro Equipo" */
#equipo {
  padding: 100px 0 80px;
  position: relative;
}

#contacto h4 {
  margin-bottom: 30px;
}

@media (max-width: 767px) {
  .whatsapp-float {
    width: 55px;
    height: 55px;
    bottom: 20px;
    right: 20px;
    font-size: 29px;
  }

  .d2c_steps_number {
    width: 110px;
    height: 100px;
  }

  .d2c_steps_number i {
    font-size: 45px;
  }

  /* Centrar el texto en la sección "Nuestro Enfoque" en móvil */
  #nuestro-enfoque .col-md-8 {
    text-align: center;
    padding-top: 15px;
  }

  #nuestro-enfoque .row.align-items-center {
    text-align: center;
  }
}

/* Estilos para el texto diferenciado en mobile/desktop */
.hero-text-mobile {
  display: block;
}

.hero-text-desktop {
  display: none;
}

/* En pantallas medianas y grandes, invertimos la visibilidad */
@media (min-width: 768px) {
  .hero-text-mobile {
    display: none;
  }

  .hero-text-desktop {
    display: block;
  }
  
  .subtitle-text {
    display: block;
    line-height: 1.3;
    text-align: justify;
    font-weight: 400;
    max-width: 100%;
    margin: 0 auto;
  }
}
