:root {
  --color-gold: #c18f3d;
  --color-dark-burgundy: #AB0A3D; /* Botones ahora usan este color directamente */
  --color-hero-bg: #F1ECE3;
}

/* =======================================================
   1. MENU Y CABECERA (CONSERVANDO LÓGICA DE MEDILAB)
======================================================== */

/* Fondo dorado para la cabecera fija arriba sin topbar */
#header {
  background: var(--color-gold);
  top: 0 !important;
}

/* Espacio superior para compensar header fijo sin topbar */
.hero-new {
  padding-top: 100px !important;
}


/* Color blanco para los enlaces del menú principal (modo escritorio) y quitar su línea base */
#navbar a,
#navbar a:focus {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  border-bottom: 2px solid transparent !important;
}

#navbar a:hover,
#navbar .active,
#navbar .active:focus,
#navbar li:hover>a {
  color: var(--color-dark-burgundy);
  border-bottom: 2px solid var(--color-dark-burgundy) !important;
}

/* Color oscuro para los enlaces en los submenús (dropdown) en escritorio */
#navbar .dropdown ul a {
  font-size: 15px;
  color: #333333;
  border-bottom: none !important;
}

#navbar .dropdown ul a:hover,
#navbar .dropdown ul .active,
#navbar .dropdown ul li:hover>a {
  color: var(--color-gold);
}

/* Botón "Registrarse" del encabezado */
.appointment-btn {
  background: var(--color-dark-burgundy);
  color: #ffffff;
}

.appointment-btn:hover {
  background: #2a0d11;
  color: #ffffff;
}

/* =======================================================
   2. MENU MOVIL (RESPONSIVE)
======================================================== */

/* Icono de hamburguesa en color blanco (para resaltar sobre el dorado) */
.mobile-nav-toggle {
  color: #ffffff;
}

/* Textos oscuros cuando el menú móvil está ABIERTO sobre el fondo blanco */
.navbar-mobile a,
.navbar-mobile a:focus {
  color: #333333 !important;
}

/* Color dorado al hacer hover en el menú móvil */
.navbar-mobile a:hover,
.navbar-mobile .active,
.navbar-mobile li:hover>a {
  color: var(--color-gold) !important;
}

/* Color oscuro para los submenús en la vista móvil */
.navbar-mobile .dropdown ul a {
  color: #333333 !important;
}

.navbar-mobile .dropdown ul a:hover {
  color: var(--color-gold) !important;
}

/* Ocultar sección original anticuada del template */
#why-us {
  display: none !important;
}



body {
  background-image: url('../img/fondo.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-color: #f4f5f6;
  /* Color de respaldo sutil si la imagen tarda en cargar */
}

/* =======================================================
   3. SECCIÓN HERO (NUEVO DISEÑO)
======================================================== */
.hero-new {
  padding: 130px 0 20px 0;
  background: transparent;
}

.hero-card {
  background: var(--color-hero-bg);
  border-radius: 40px;
  padding: 35px 50px 40px 50px;
  color: #2C2E30;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero-card h1 {
  font-size: 38px;
  font-weight: 800;
  text-transform: uppercase;
  color: #2C2E30;
  margin-bottom: 20px;
}

.hero-card h2 {
  font-size: 18px;
  color: #2C2E30;
  line-height: 1.5;
}

.hero-card p {
  color: #2C2E30;
}

.hero-logo-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 15px;
  display: inline-block;
  margin-bottom: 25px;
}

.hero-logo-box img {
  height: 50px;
}

.hero-arrow {
  border: solid var(--color-gold);
  border-width: 0 4px 4px 0;
  display: inline-block;
  padding: 5px;
  transform: rotate(-45deg);
  margin-right: 15px;
  margin-top: 5px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
}

.hero-logo-img {
  height: 70px;
  width: auto;
  vertical-align: middle;
  transition: height 0.3s ease;
}

@media (max-width: 991px) {
  .hero-card {
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
  }

  .hero-card h1,
  .hero-title {
    font-size: 32px;
    justify-content: center;
  }

  .hero-logo-img {
    height: 48px;
  }
}

@media (max-width: 576px) {
  .hero-card h1,
  .hero-title {
    font-size: 26px;
  }

  .hero-logo-img {
    height: 38px;
  }
}

/* =======================================================
   4. TARJETAS INFORMATIVAS
======================================================== */
.info-cards-section {
  padding: 0 0 60px 0;
  margin-top: -60px;
  /* Solapamiento sobre el Hero en escritorio */
  position: relative;
  z-index: 10;
}

@media (max-width: 991px) {
  .info-cards-section {
    margin-top: 20px;
    padding-top: 20px;
  }
}

.info-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 30px;
  height: 100%;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
}

.info-card h4 {
  font-size: 18px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 15px;
  padding-right: 40px;
}

.info-card p {
  font-size: 14px;
  color: #666666;
  flex-grow: 1;
  margin-bottom: 20px;
}

.info-card .icon-circle {
  width: 40px;
  height: 40px;
  border: 1px solid #cccccc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 25px;
  right: 25px;
}

.info-card .icon-circle i {
  color: #666666;
  font-size: 20px;
}

.info-card .btn-card {
  background: var(--color-dark-burgundy);
  color: #ffffff;
  border-radius: 50px;
  padding: 8px 30px;
  font-size: 14px;
  text-align: center;
  display: inline-block;
  align-self: center;
  text-decoration: none;
  transition: 0.3s;
}

.info-card .btn-card:hover {
  background: #2a0d11;
  color: #ffffff;
}

/* =======================================================
   4. TARJETAS DE SERVICIOS (NUEVO DISEÑO PREMIUM)
======================================================== */
.service-card-dark {
  background: rgba(61, 57, 53, 0.7) !important; /* #3D3935 con 70% opacidad */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.service-card-dark h4 {
  color: #ffffff !important;
}

.service-card-dark p {
  color: #e2e8f0 !important;
  /* Gris muy claro para lectura perfecta */
}

/* Ícono destacado libre en la esquina superior */
.service-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  height: 48px; /* Acota el crecimiento hacia abajo del área estructural */
  width: 48px;
}

.service-icon-box i {
  color: #ffffff !important;
  font-size: 68px; /* Logos bastante mas grandes */
  font-weight: 300; /* Lineas finas */
  text-shadow: 0px 4px 15px rgba(0,0,0,0.1); /* Efecto delicado elaborado */
  line-height: 0; /* Cierra el espaciado fantasma natural de los íconos */
}

/* =======================================================
   5. SECCIÓN MANUALES Y SERVICIOS (.icon-box)
======================================================== */
.services .icon-box {
  background-color: #ffffff !important;
  border-radius: 12px;
  box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.08); /* Sombra elegante añadida */
  transition: all 0.3s ease-in-out;
}

/* Mantenemos el comportamiento hover de la plantilla y nos aseguramos
   de que las cajas sigan destacando al interactuar */
.services .icon-box:hover {
  background-color: var(--color-dark-burgundy) !important;
}

.services .icon-box:hover h4 a,
.services .icon-box:hover p {
  color: #ffffff !important;
}

/* El cuadro del icono se vuelve blanco en hover (por defecto de la plantilla),
   por lo que el ícono dentro debe pintarse de color burgundy para ser visible */
.services .icon-box:hover .icon i {
  color: var(--color-dark-burgundy) !important;
}

/* =======================================================
   6. BOTONES DE ACCIÓN TRÁMITES DIGITALES
======================================================== */
.btn-digital-container {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.08);
  padding-top: 1rem;
}

.btn-digital {
  background-color: #2C2E30 !important;
  color: #ffffff !important;
  border: none !important;
  padding: 8px 20px !important;
  font-size: 13px !important;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  border-radius: 50px !important;
  text-decoration: none !important;
}

.btn-digital i {
  color: #ffffff !important;
  font-size: 16px;
  margin-right: 8px;
}

.btn-digital:hover {
  background-color: #000000 !important;
  color: #ffffff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* =======================================================
   7. RESPONSIVE: BADGES DE TRÁMITES EN VISTA MÓVIL
======================================================== */
@media (max-width: 767.98px) {
  #faq-list-co a,
  #faq-list-cv a {
    flex-wrap: wrap !important;
    gap: 8px 0;
    padding-right: 30px !important; /* Espacio para el icono chevron */
  }

  /* El título del trámite ocupa todo el ancho de la primera línea */
  #faq-list-co a > span:first-child,
  #faq-list-cv a > span:first-child {
    flex: 1 1 100% !important;
    width: 100% !important;
    line-height: 1.4;
  }

  /* El contenedor de los badges salta a la siguiente línea */
  #faq-list-co a > span.d-flex,
  #faq-list-cv a > span.d-flex {
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    margin-top: 4px;
  }

  /* Ajuste de margen izquierdo en los badges para móvil */
  #faq-list-co a .badge,
  #faq-list-cv a .badge {
    margin-left: 0 !important;
    font-size: 11px;
    padding: 5px 8px;
  }

  /* Mantener el chevron alineado a la derecha en la fila superior */
  #faq-list-co a .icon-show,
  #faq-list-co a .icon-close,
  #faq-list-cv a .icon-show,
  #faq-list-cv a .icon-close {
    position: absolute;
    right: 0;
    top: 0;
  }

  /* =======================================================
     8. IMAGEN ABOUT EN VISTA MÓVIL (COMPLETA Y SIN DISTORSIÓN)
  ======================================================== */
  .about .video-box {
    min-height: auto !important;
    width: 100%;
    aspect-ratio: 1024 / 692;
    background-size: contain !important;
    background-position: center center !important;
    margin-bottom: 20px;
  }
}

/* =======================================================
   9. SECCIÓN: PASOS PARA TRÁMITES EN EL REC DIGITAL
======================================================== */
.pasos-section {
  padding: 65px 0 50px 0;
  /* Fondo elegante con suave degradado institucional */
  background: linear-gradient(180deg, #f8f6f4 0%, #f1ebe5 50%, #fbf9f7 100%);
  position: relative;
  border-top: 1px solid rgba(193, 143, 61, 0.15);
  border-bottom: 1px solid rgba(193, 143, 61, 0.2);
}

/* Estilo destacado para el título de la sección de pasos */
.pasos-section .section-title h2 {
  font-size: 35px;
  font-weight: 800;
  color: #2b1f24;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 24px;
  margin-bottom: 12px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

/* Subrayado doble/moderno con los colores institucionales */
.pasos-section .section-title h2::before {
  content: "";
  position: absolute;
  display: block;
  width: 100px;
  height: 2px;
  background: var(--color-gold);
  bottom: 0px;
  left: calc(50% - 50px);
  opacity: 0.6;
}

.pasos-section .section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 4px;
  background: var(--color-dark-burgundy);
  bottom: -1px;
  left: calc(50% - 25px);
  border-radius: 2px;
}

.pasos-section .section-title p {
  font-size: 16.5px;
  color: #5d5658 !important;
  font-weight: 500;
  max-width: 680px;
  margin: 0 auto;
}

.paso-card {
  background: #ffffff;
  border: 1px solid rgba(193, 143, 61, 0.22);
  border-radius: 16px;
  padding: 26px 22px;
  height: 100%;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 15px rgba(61, 57, 53, 0.05);
}

.paso-card:hover {
  transform: translateY(-5px);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(171, 10, 61, 0.12);
  border-color: var(--color-gold);
}

.paso-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.paso-badge-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-dark-burgundy);
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(171, 10, 61, 0.25);
}

.paso-icon {
  font-size: 26px;
  color: var(--color-gold);
}

.paso-card p {
  font-size: 14.5px;
  color: #212529;
  line-height: 1.55;
  margin: 0;
  font-weight: 500;
}