@media (max-width: 768px) {

  .heror-section {
    min-height: auto;
    padding: 40px 20px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .heror-text {
    text-align: center;
    max-width: 100%;
    margin-bottom: 50px;
    margin-right: 70%;
  }

.heror-circle {
  position: relative;
  transform: none;
  left: auto;
  top: auto;
  margin: 0 auto 24px;
  width: 220px;
  height: 220px;
   z-index: 3;
  opacity: 0.85;
  border-radius: 50%;


}
.decor-circle {
  position: absolute;
  border-radius: 50%;
  z-index: 1; /* detrás del círculo principal */
}

/* Azul */
.decor-circle.blue {
  width: 150px;
  height: 150px;
  background-color: #003b8e; /* azul */
  top: -30px;
  left: 10%;
}

/* Amarillo */
.decor-circle.yellow {
  width: 100px;
  height: 100px;
  background-color: #ff9800; /* amarillo */
  bottom: 10px;
  right: 15%;
}



  .heror-dot {
    display: none;
  }
}
@media (max-width: 768px) {

  .fiduciarios .col-md-3 {
    margin-bottom: 32px;
  }

}
@media (max-width: 768px) {

  .servicion .row {
    row-gap: 24px;   /* espacio uniforme vertical */
  }

  .servicion .col-md-4 {
    padding-top: 0;
    padding-bottom: 0;
  }

@media (min-width: 769px) {
  .servicion-card {
    min-height: 180px;
  }
}


}

@media (max-width: 768px) {

  .servicios .col-md-4 {
    margin-bottom: 32px;
  }

}


    @media (max-width: 768px) {
    .home-3-consultationes {
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      height: auto !important;
      overflow: visible !important;
    }
  }

  /* MINI CARD AL HACER CLICK */
/* MINI MODAL CARD */
.fid-modal {
  position: absolute;
  inset: 0;
  background: #ffffff;
  border-radius: 10px;
  z-index: 15;
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  opacity: 0;
  transform: scale(0.96);
  transition: all 0.35s ease;
}

.fid-card.mini-open .fid-modal {
  opacity: 1;
  transform: scale(1);
}

/* Texto */
.fid-modal-text {
  flex: 1;
  font-size: 22px;
  line-height: 1.25;
  color: #0a3d91;
}

.fid-modal-text strong {
  font-weight: 700;
}

/* Círculo naranja */
.fid-modal-icon {
  width: 180px;
  height: 180px;
  background: #ff9800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Ícono */
.fid-modal-icon img {
  width: 90px;
  height: auto;
}

/* Evitar hover azul cuando está abierto */
.fid-card.mini-open::before {
  opacity: 0;
}


.newsletter-section {
  background-color: #00439c;
  padding: 80px 20px;
  color: #fff;
}

.newsletter-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* Texto izquierdo */
.newsletter-title {
  font-size: 42px;
  font-weight: 700;
  color: #ff9900;
  line-height: 1.2;
}

/* Formulario derecho */
.newsletter-form {
  max-width: 520px;
  width: 100%;
}

.newsletter-input-group {
  display: flex;
  width: 100%;
}

.newsletter-input {
  flex: 1;
  padding: 16px 18px;
  border: none;
  font-size: 16px;
  outline: none;
}

.newsletter-button {
  background-color: #ff9900;
  color: #003366;
  border: none;
  padding: 0 24px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-button:hover {
  background-color: #e68a00;
}

.newsletter-note {
  margin-top: 10px;
  font-size: 15px;
  font-style: italic;
  color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
  .newsletter-container {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-title {
    font-size: 32px;
  }

  .newsletter-input-group {
    flex-direction: column;
  }

  .newsletter-button {
    width: 100%;
    padding: 14px;
  }
}

/* OVERLAY QUE CUBRE TODA LA PANTALLA */
.fid-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CARD MODAL (NO fullscreen) */
.fid-modal-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 40px;
  max-width: 900px;
  width: 90%;
  display: flex;
  align-items: center;
  gap: 40px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  animation: modalIn 0.35s ease;
}

/* Animación */
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Texto */
.fid-modal-text {
  flex: 1;
  font-size: 28px;
  line-height: 1.25;
  color: #0a3d91;
}

.fid-modal-text strong {
  font-weight: 700;
}

/* Círculo naranja */
/* Ícono Font Awesome dentro del círculo */
.fid-modal-icon i {
  font-size: 90px;
  color: #ffffff;
}


/* Ícono */
.fid-modal-icon img {
  width: 100px;
}

/* Responsive */
@media (max-width: 768px) {
  .fid-modal-card {
    flex-direction: column;
    text-align: center;
  }

  .fid-modal-text {
    font-size: 22px;
  }
}
/* Texto grande dentro del modal */
.fid-modal-text .big-text {
  font-size: 34px;
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

/* Texto destacado */
.fid-modal-text .highlight {
  font-size: 30px;
  font-weight: 600;
  color: #003366;
}
@media (max-width: 768px) {
  .fid-modal-text .big-text {
    font-size: 26px;
  }

  .fid-modal-text .highlight {
    font-size: 22px;
  }
}


/* ===== FIX IMÁGENES EN MOBILE ===== */
@media (max-width: 768px) {

  /* La imagen SIEMPRE visible */
  .fid-card img {
    opacity: 1 !important;
    filter: none !important;
  }

  /* Overlay azul más ligero */
  .fid-card::before {
    opacity: 0.35;
  }

  /* Altura correcta de la card */
  .fid-card {
    height: 360px;
  }

  /* El contenido se muestra sin hover */
  .fid-hover {
    opacity: 1;
    transform: translateY(0);
  }
}
