/* ============================================= */
/* DEFINICIÓN DE VARIABLES GLOBALES */
/* ============================================= */
:root {
  --color-primario: #003366;
  --color-acento: #c72c63;
  --color-texto-principal: #212529;
  --color-texto-secundario: #6c757d;
  --color-fondo-claro: #f8f9fa;
  --fuente-principal: "Open Sans", sans-serif;
}

/* ============================================= */
/* ESTILOS GENERALES DEL BODY */
/* ============================================= */
body {
  font-family: var(--fuente-principal);
  color: var(--color-texto-principal);
  background-color: var(--color-fondo-claro);
}

/* ============================================= */
/* ESTILOS DE LA CABECERA Y NAVEGACIÓN */
/* ============================================= */
.top-bar {
  background-color: var(--color-primario);
  color: #ffffff;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}

.top-bar .whatsapp-link {
  color: #ffffff;
  text-decoration: none;
  background-color: #25d366;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.top-bar .whatsapp-link:hover {
  background-color: #128c7e;
  transform: scale(1.05);
}

.navbar {
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.nav-link {
  font-weight: bold;
  color: var(--color-primario) !important;
  margin: 0 0.5rem;
  transition: color 0.3s ease-in-out;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-acento) !important;
}

/* ============================================= */
/* ESTILOS DEL PIE DE PÁGINA */
/* ============================================= */
.footer {
  background-color: var(--color-primario);
  color: #ffffff;
}

.footer a {
  color: #ffffff;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer h5 {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1rem;
  color: #ffffff;
}

.footer .text-white-50 {
  transition: color 0.3s ease;
}

.footer .text-white-50:hover {
  color: #ffffff !important;
}

/* ============================================= */
/* HERO SECTION (PÁGINA INICIO) */
/* ============================================= */
.hero-section {
  background: linear-gradient(135deg, var(--color-primario) 0%, #004080 100%);
  padding: 8rem 0;
}

.hero-section .display-4 {
  font-weight: 700;
}

.hero-section .lead {
  font-size: 1.25rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================= */
/* ESTILOS DE BOTONES PERSONALIZADOS */
/* ============================================= */
.btn-custom-accent {
  background-color: var(--color-acento);
  border-color: var(--color-acento);
  color: #ffffff;
  padding: 0.8rem 2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-custom-accent:hover {
  background-color: #a62453;
  border-color: #a62453;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ============================================= */
/* SECCIÓN DE SERVICIOS RESUMIDOS (PÁGINA INICIO) */
/* ============================================= */
.services-overview-section {
  background-color: #ffffff;
}

.title-divider {
  width: 100px;
  height: 3px;
  background-color: var(--color-acento);
  border: none;
  opacity: 1;
}

.services-overview-section .card {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-overview-section .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.card-icon {
  color: var(--color-acento);
}

.card-title {
  color: var(--color-primario);
  font-weight: bold;
}

.btn-outline-primary {
  color: var(--color-primario);
  border-color: var(--color-primario);
  font-weight: bold;
}

.btn-outline-primary:hover {
  background-color: var(--color-primario);
  border-color: var(--color-primario);
  color: #ffffff;
}

/* ============================================= */
/* SECCIÓN DE TESTIMONIOS (PÁGINA INICIO) */
/* ============================================= */
.testimonial-section {
  background-color: var(--color-fondo-claro);
}

.testimonial-content {
  max-width: 800px;
}

.testimonial-content .fa-quote-left {
  color: var(--color-acento);
}

.testimonial-content .lead {
  color: var(--color-texto-secundario);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(25%) sepia(35%) saturate(2500%) hue-rotate(180deg)
    brightness(85%) contrast(100%);
}

/* ============================================= */
/* SECCIÓN DE MAPA Y CTA FINAL (PÁGINA INICIO) */
/* ============================================= */
.map-cta-section .col-lg-6:last-child {
  background-color: var(--color-primario);
}

.map-responsive {
  overflow: hidden;
  position: relative;
  height: 100%;
  min-height: 400px;
}

.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
}

.map-cta-section .btn-light {
  font-weight: bold;
  color: var(--color-primario);
}

/* ============================================= */
/* ICONO DE MÚSICA AMBIENTAL */
/* ============================================= */
.music-player-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: var(--color-acento);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.music-player-icon:hover {
  transform: scale(1.1);
}

.music-player-icon.playing {
  background-color: var(--color-primario);
}

/* ============================================= */
/* PÁGINA: QUIÉNES SOMOS */
/* ============================================= */
.about-intro-section {
  background-color: #ffffff;
}

.team-section {
  background-color: var(--color-fondo-claro);
}

.team-card {
  background-color: #ffffff;
  padding: 2rem 1.5rem;
  border-radius: 10px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.team-img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border: 5px solid var(--color-fondo-claro);
}

.team-name {
  color: var(--color-primario);
  font-weight: bold;
}

.team-title {
  font-weight: bold;
  color: var(--color-acento) !important;
  font-size: 0.9rem;
}

.team-social .btn {
  border-radius: 50%;
  width: 38px;
  height: 38px;
}

.history-values-section {
  background-color: #ffffff;
}

.timeline {
  list-style: none;
  padding: 0;
  position: relative;
}

.timeline:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background-color: var(--color-fondo-claro);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 50px;
}

.timeline-icon {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background-color: var(--color-acento);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-title {
  font-weight: bold;
  color: var(--color-primario);
}

.values-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.values-icon {
  font-size: 1.5rem;
  color: var(--color-acento);
  margin-right: 1.5rem;
  min-width: 30px;
  text-align: center;
}

.values-title {
  font-weight: bold;
  color: var(--color-primario);
  margin-bottom: 0.25rem;
}

/* ============================================= */
/* SECCIÓN DE VÍDEO */
/* ============================================= */
.video-section {
  position: relative;
  height: 60vh; /* Altura del 60% de la ventana del navegador */
  min-height: 400px;
  overflow: hidden;
}

.video-section video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 0;
  transform: translateX(-50%) translateY(-50%);
}

.video-section .container {
  z-index: 2; /* Pone el contenido por encima del overlay y el vídeo */
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--color-primario);
  opacity: 0.8; /* Opacidad del 80% para oscurecer el vídeo */
  z-index: 1;
}

/* ============================================= */
/* PÁGINA: SERVICIOS */
/* ============================================= */
.page-header {
  background-color: var(--color-fondo-claro);
  border-bottom: 1px solid #dee2e6;
}

.services-list-section {
  background-color: #ffffff;
}

.accordion-button {
  font-weight: bold;
  color: var(--color-primario);
  font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
  background-color: var(--color-fondo-claro);
  color: var(--color-acento);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(199, 44, 99, 0.25); /* Sombra de foco con el color de acento */
}

.accordion-button .fas {
  width: 25px; /* Alinea los títulos aunque el icono varíe */
}

.accordion-body ul {
  padding-left: 1.2rem;
}

.accordion-body ul li {
  margin-bottom: 0.5rem;
}

/* ============================================= */
/* CALCULADORA DE HONORARIOS Y TABLA */
/* ============================================= */
.calculator-table-section {
  background-color: var(--color-fondo-claro);
}

.fee-calculator-box {
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #dee2e6;
}

.fee-calculator-box h3,
.benefits-table-box h3 {
  color: var(--color-primario);
}

.table-primary-header {
  background-color: var(--color-primario);
  color: #ffffff;
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(
    0,
    51,
    102,
    0.05
  ); /* Un azul muy, muy claro para las filas alternas */
}

/* ============================================= */
/* SECCIÓN CTA FINAL */
/* ============================================= */
.cta-section {
  background-color: var(--color-primario);
}

.cta-section .btn-light {
  font-weight: bold;
  color: var(--color-primario);
  padding: 0.8rem 2.5rem;
  transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
  background-color: #f8f9fa;
  transform: scale(1.05);
}

/* ============================================= */
/* PÁGINA: ACTUALIDAD */
/* ============================================= */
.news-section {
  background-color: #ffffff;
}

.blog-post-card {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
}

.blog-post-card .card-img-top {
  height: 200px;
  object-fit: cover; /* Asegura que la imagen no se deforme */
}

.blog-post-card .card-title {
  color: var(--color-primario);
  font-weight: bold;
}

.sidebar-widget {
  background-color: var(--color-fondo-claro);
  border-radius: 10px;
  border: 1px solid #dee2e6;
}

.sidebar-widget h5 {
  color: var(--color-primario);
}

.icpm-news-list li {
  margin-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
  padding-bottom: 1rem;
}

.icpm-news-list li:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.icpm-news-list a {
  text-decoration: none;
  color: var(--color-texto-principal);
  font-weight: bold;
  transition: color 0.3s ease;
}

.icpm-news-list a:hover {
  color: var(--color-acento);
}

/* ============================================= */
/* PÁGINA: RECURSOS */
/* ============================================= */
.resources-section {
  background-color: #ffffff;
}

.resources-section h3 {
  color: var(--color-primario);
}

.list-group-item-action:hover {
  background-color: var(--color-fondo-claro);
  color: var(--color-acento);
}

.list-group-item .badge {
  background-color: var(--color-primario) !important;
}

.list-group-item:hover .badge {
  background-color: var(--color-acento) !important;
}

.glossary-list dt {
  font-weight: bold;
  color: var(--color-primario);
  margin-top: 1rem;
}

.glossary-list dd {
  color: var(--color-texto-secundario);
  border-left: 3px solid var(--color-fondo-claro);
  padding-left: 1rem;
  margin-left: 0;
  margin-top: 0.5rem;
}

/* ============================================= */
/* PÁGINA: VENTANILLA ÚNICA */
/* ============================================= */
.online-services-form-section {
  background-color: var(--color-fondo-claro);
}

.form-box {
  background-color: #ffffff;
  border-radius: 10px;
  border: 1px solid #dee2e6;
}

.form-box h3 {
  color: var(--color-primario);
}

.faq-section {
  background-color: #ffffff;
}

/* ============================================= */
/* PÁGINA: CONTACTO */
/* ============================================= */
.contact-section {
  background-color: #ffffff;
}

.contact-info-box h3 {
  color: var(--color-primario);
}

.contact-info-box i {
  color: var(--color-acento);
  width: 30px; /* Alinea los iconos */
}

.contact-info-box a {
  text-decoration: none;
  color: var(--color-primario);
  font-weight: bold;
}

.contact-info-box a:hover {
  color: var(--color-acento);
  text-decoration: underline;
}

.map-responsive-contact {
  overflow: hidden;
  padding-bottom: 75%; /* Proporción 4:3 */
  position: relative;
  height: 0;
}

.map-responsive-contact iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  border-radius: 10px;
}

/* ============================================= */
/* PÁGINAS LEGALES */
/* ============================================= */
.legal-content h4 {
  color: var(--color-primario);
  font-weight: bold;
}

.legal-content ul {
  padding-left: 1.5rem;
}

.legal-content ul li {
  margin-bottom: 0.75rem;
}
