/* ---------------------------------
   Paleta institucional OPRASA
---------------------------------- */
:root {
  --color-oprasa: #2A4D8D;
  --color-oprasa-secundario: #4F75C2;
  --fondo-claro: #f1f5fa;
  --texto-oscuro: #1e2d50;
}

/* Reset & estilo general */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--fondo-claro);
  color: var(--texto-oscuro);
}
a {
  color: var(--color-oprasa);
  text-decoration: none;
}
a:hover {
  color: var(--color-oprasa-secundario);
  text-decoration: underline;
}
h1, h2, h3, h4, h5, h6 {
  color: var(--color-oprasa);
  font-weight: 700;
}

/* Utilidades de color y botones */
.text-oprasa { color: var(--color-oprasa) !important; }
.bg-oprasa { background-color: var(--color-oprasa) !important; }
.btn-oprasa {
  background-color: var(--color-oprasa);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  padding: 10px 25px;
  transition: background-color .3s;
}
.btn-oprasa:hover {
  background-color: var(--color-oprasa-secundario);
}

/* Secciones */
section {
  padding: 60px 0;
}
section.bg-light {
  background-color: #f8f9fa !important;
}

/* Shadow utility */
.shadow-sm {
  box-shadow: 0 2px 6px rgba(0,0,0,0.05) !important;
}

/* Cartas (Cards) */
.card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.card-title {
  font-size: 1rem;
  font-weight: bold;
}

/* Box de servicios */
.box-servicio {
  background-color: #fff;
  border-radius: 14px;
  padding: 30px 15px;
  transition: transform .3s, box-shadow .3s;
  color: var(--color-oprasa);
  font-weight: 600;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.box-servicio:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.1);
}
.box-servicio i {
  font-size: 2rem;
  margin-bottom: 10px;
  display: block;
}
.box-servicio p {
  margin: 0;
}
.box-familiar { background-color: #e7f3ee; color: #1a7f64; }
.box-civil    { background-color: #edf0fb; color: var(--color-oprasa); }
.box-estado   { background-color: #f9f3e7; color: #c08200; }
.box-divorcio { background-color: #f3e7f9; color: #7e2aa8; }

/* Beneficios (barra inferior) */
.beneficios-oprasa {
  background-color: var(--color-oprasa);
  padding: 10px 0;
  color: #fff;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.beneficio-icono {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 20px;
  transition: transform .3s;
}
.beneficio-icono:hover { transform: scale(1.05); }
.icono-circulo {
  background-color: rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
  font-size: 1.3rem;
}
.beneficio-icono span {
  font-size: .95rem;
  font-weight: 500;
}

/* Carousel / Banner principal */
.banner-oprasa {
  position: relative;
  overflow: hidden;
}
.banner-image {
  width: 100%;
  min-height: 500px;
  background-size: cover;
  background-position: center;
}
.carousel-inner .carousel-item {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.carousel-inner .carousel-item.active {
  opacity: 1;
}
.carousel-caption {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  padding-left: 5%;
  z-index: 2;
}
.banner-overlay {
  background: rgba(0,0,0,0.5);
  padding: 1.5rem;
  border-radius: 8px;
  text-align: left;
}

/* Footer */
footer {
  font-size: .9rem;
  background-color: var(--color-oprasa);
  color: #e0e0e0;
}
footer h6 {
  color: #fff;
  margin-bottom: 15px;
}
footer p, footer a {
  color: #e0e0e0;
}
footer a:hover {
  color: #fff;
}

/* --------------------------------------------
   Quitar bullets/flechitas en listas del footer
--------------------------------------------- */
footer .list-unstyled li {
  list-style: none !important;
  padding-left: 0 !important;
}
footer .list-unstyled li::before {
  content: none !important;
}
/* Center y espaciado en la tabla de “Casos comunes” */
#casos-comunes .table th,
#casos-comunes .table td {
  text-align: center;
}
#casos-comunes .table-responsive {
  margin-top: 1rem;
}
#casos-comunes .card:hover {
  transform: scale(1.02);
  transition: transform 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}
/* ==== Estilo para Casos Comunes ==== */
#casos-comunes .servicio-img {
  width: 100%;
  height: 200px; /* Puedes ajustar a 180px o 240px si deseas */
  object-fit: cover;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

#casos-comunes .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#casos-comunes .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

#casos-comunes .card-title {
  font-size: 1.1rem;
}
/* ==== Estilo uniforme para Casos Comunes ==== */
#casos-comunes .servicio-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
}

#casos-comunes .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#casos-comunes .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#casos-comunes .card-title {
  font-size: 1.1rem;
  min-height: 48px;
}
/* Fuerza que TODAS las tarjetas sean del mismo alto y que todo se alinee bien */
#casos-comunes .card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

#casos-comunes .card-img-top.servicio-img {
  height: 200px;
  object-fit: cover;
}

#casos-comunes .card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

#casos-comunes .card-title {
  min-height: 48px; /* para que los títulos alineen */
}

#casos-comunes .btn {
  margin-top: auto;
}
.topbar-social .social-icon {
  color: #fff;        /* Color base blanco */
  font-size: 1.25rem;
  margin-left: 16px;
  transition: color 0.2s;
  text-decoration: none;
}

.topbar-social .social-icon.facebook:hover   { color: #25b89a; }   /* Verde turquesa */
.topbar-social .social-icon.linkedin:hover   { color: #00a0dc; }   /* Azul LinkedIn */
.topbar-social .social-icon.twitter:hover    { color: #f9b51e; }   /* Amarillo Twitter */
.dropdown-menu .dropdown-item {
  color: #222 !important;
  font-weight: 500;
  transition: color 0.18s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dropdown-menu .dropdown-item i {
  color: #222;
  transition: color 0.18s;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
  color: #25b89a !important;  /* Color institucional */
  background-color: #f6fdfa;  /* Fondo suave opcional */
}
.dropdown-menu .dropdown-item:hover i,
.dropdown-menu .dropdown-item:focus i {
  color: #25b89a;
}
.box-servicio {
  padding: 25px;
  border-radius: 15px;
  background-color: #f5f9fc;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}
.box-servicio:hover {
  background-color: #e2f6f2;
  transform: translateY(-5px);
}
.box-servicio i {
  font-size: 2rem;
  color: #2a4d8d;
  margin-bottom: 10px;
}
.box-servicio p {
  font-weight: 600;
  color: #2a4d8d;
  margin-bottom: 0;
}

.box-familiar i { color: #f39c12; }
.box-civil i { color: #3498db; }
.box-estado i { color: #2ecc71; }
.box-divorcio i { color: #e74c3c; }
.box-presencial i { color: #8e44ad; }
.box-virtual i { color: #1abc9c; }
.navbar {
  background: linear-gradient(135deg, #002f5f, #005c99);
}

.navbar-brand-text div {
  line-height: 1.1;
}
