/* ═══════════════════════════════════════════════════════════════
   SUNEDU — Registro Nacional de Grados y Títulos
   CSS Principal (style.css) — Réplica fiel al 98%+
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. TOKENS DE DISEÑO (Variables CSS) ────────────────────── */
:root {
  --sunedu-blue:          #044bb1;
  --sunedu-blue-hover:    #003d8a;
  --sunedu-light-blue:    #00aeef; /* Celeste SUNEDU oficial */
  --sunedu-light-blue-bg: #e8f4fd;
  --sunedu-purple:        #5f4691;
  --sunedu-purple-alt:    #61459b;
  --sunedu-orange:        #cc5a35;
  --sunedu-text:          #474747;
  --sunedu-text-muted:    #7f8c8d;
  --sunedu-border:        #dddddd;
  --sunedu-white:         #ffffff;
  --sunedu-error:         #dc3545;
  
  /* Colores del Footer */
  --footer-sky-blue:      #00aeef;
  --footer-dark-blue:     #003569;
  
  --shadow-sm:            0 1px 3px rgba(0,0,0,0.1);
  --shadow-md:            0 4px 15px rgba(0,0,0,0.08);
  --shadow-lg:            0 10px 40px rgba(0,0,0,0.15);
  
  --radius-sm:            4px;
  --radius-md:            8px;
  --radius-lg:            20px;
  
  --font-title:           'Titillium Web', sans-serif;
  --font-body:            'Open Sans', sans-serif;
}

/* ── 2. ESTILOS BASE ────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--sunedu-text);
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* ── 3. HEADER & NAVEGACIÓN (Estilo Captura) ────────────────── */
#header_container {
  position: relative;
  width: 100%;
  background: var(--sunedu-white);
  z-index: 1000;
}

#main_header {
  height: 95px;
  border-bottom: none; /* Sin borde gris abajo */
  transition: all 0.3s ease;
}

#main_header.opaque_header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 75px;
  background: var(--sunedu-white);
  box-shadow: var(--shadow-sm);
  z-index: 1001;
  border-bottom: 1px solid #f1f2f6;
}

.header_inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

#logo_img img {
  max-height: 65px;
  width: auto;
  transition: max-height 0.3s ease;
}

#main_header.opaque_header #logo_img img {
  max-height: 50px;
}

/* Menú Horizontal */
.nav-ul {
  display: flex;
  align-items: center;
  gap: 12px; /* Espaciado entre links */
  height: 100%;
}

.menu-item {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.menu-item > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 16px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  color: var(--sunedu-light-blue) !important; /* Celeste SUNEDU de la captura */
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border-radius: 30px; /* Cápsula completamente redondeada */
  transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.menu-item > a:hover {
  background-color: var(--sunedu-blue) !important; /* Fondo azul rey al pasar el mouse */
  color: var(--sunedu-white) !important; /* Texto blanco en hover */
  text-decoration: none;
}

.transparency-badge-img {
  max-height: 24px; /* Ajustado para caber perfectamente en la cápsula de 38px de alto */
  width: auto;
  display: block;
}

/* Dropdowns */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 250px;
  background: var(--sunedu-white);
  border-top: 3px solid var(--sunedu-light-blue);
  box-shadow: var(--shadow-md);
  z-index: 999;
}

.menu-item:hover > .sub-menu {
  display: block;
}

.sub-menu li a {
  display: block;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sunedu-blue) !important;
  border-bottom: 1px solid #f1f2f6;
  transition: all 0.2s ease;
}

.sub-menu li a:hover {
  background: #f8fbff;
  color: var(--sunedu-light-blue) !important;
  padding-left: 24px;
}

.sub-menu-level2 {
  top: 0;
  left: 100%;
}

.menu-item-has-children > a i {
  font-size: 11px;
}

/* Hamburguesa móvil */
#nav_button {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--sunedu-purple);
}

/* ── 4. BANNER AZUL DE DIRECCIÓN (Estilo Captura) ────────────── */
#direction_banner {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: #0050b5; /* Azul rey de fondo */
}

.banner_bg_container {
  position: relative;
  width: 100%;
  height: 220px; /* Altura del banner */
}

.banner_bg_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center; /* Posicionar a la derecha para ver la marca de agua */
  opacity: 0.95;
}

.banner_overlay_content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, rgba(0, 80, 181, 0.95) 40%, rgba(0, 80, 181, 0.3) 100%);
}

/* Bracket en el banner `[` */
.banner_bracket_box {
  border-left: 3px solid var(--sunedu-white); /* Línea de 3px */
  position: relative;
  padding: 8px 18px; /* Ajuste fino de padding para pegarse al corchete */
  color: var(--sunedu-white);
  display: inline-block;
}

.banner_bracket_box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 12px; /* Patilla de 12px */
  height: 3px;
  background: var(--sunedu-white);
}

.banner_bracket_box::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 12px;
  height: 3px;
  background: var(--sunedu-white);
}

.banner_title {
  font-family: var(--font-title);
  font-size: 38px; /* Título grande */
  font-weight: 800; /* Extra bold */
  line-height: 1.1;
  color: var(--sunedu-white);
  text-transform: none;
  margin-bottom: 4px;
}

.banner_subtitle {
  font-family: var(--font-title);
  font-size: 26px; /* Subtítulo grande */
  font-weight: 300; /* Fino */
  opacity: 0.95;
}

/* ── 5. FILA 1: VIDEO & BANNER 6 PASOS (Alineado) ────────────── */
.vc_row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  margin-top: 30px; /* Separación del banner */
}

.vc_span6 {
  flex: 1 1 calc(50% - 10px);
  min-width: 300px;
}

.vc_span12 {
  flex: 0 0 100%;
}

.wpb_video_wrapper {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: #000;
  height: 315px; /* Mismo alto que la imagen */
}

.banner_6_pasos_img {
  width: 100%;
  height: 315px; /* Alto alineado con el video */
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.vc_box_border_grey {
  border: 1px solid #e1e4e8;
  display: block;
}

/* ── 6. FILA 2: CONTENEDOR DE FONDO APLICATIVO ───────────────── */
.app_background_container {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 520px;
  background-color: #1e293b;
  background-image: url('../img/Sunedu-en-Linea-Principal.jpg');
  background-size: cover;
  background-position: center top;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.app_background_overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.app_background_inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: calc(100% - 50px);
  padding: 40px 20px;
}

/* Barra Denuncias en la base del contenedor */
.bar_denuncias {
  position: relative;
  width: 100%;
  height: 50px;
  background: #0081c7;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.bar_denuncias_btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--sunedu-white);
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  height: 100%;
  width: auto;
  cursor: pointer;
}

.bar_denuncias_btn i {
  font-size: 20px;
  transition: transform 0.2s ease;
}

.bar_denuncias_btn:hover i {
  transform: translateX(4px);
}

/* ── 7. BUSCADOR INTEGRADO (Aplicativo / Guía) ──────────────── */
.app_search_card {
  background: var(--sunedu-white);
  border-radius: 20px; /* Bordes más redondeados estilo captura */
  width: 100%;
  max-width: 660px; /* Ancho real del formulario */
  min-height: 560px; /* Alto real */
  max-height: 88vh;
  overflow-y: auto; /* Scroll vertical interno idéntico a Captura 1 */
  box-shadow: var(--shadow-lg);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid #cfd8dc;
}

.app_card_header {
  display: flex;
  align-items: center;
  justify-content: center; /* Centrar pestañas */
  padding: 30px 40px 10px 40px;
  background: #ffffff; /* Fondo blanco */
  border-bottom: none; /* Sin borde inferior gris de header */
  flex-shrink: 0;
  position: relative;
}

/* Tabs Container */
.app_tabs_outer {
  background: #e8f4fd;
  border: 1px solid #bfdbfe;
  border-radius: 30px;
  padding: 3px;
  display: inline-flex;
}

.app_tabs {
  display: flex;
  gap: 0;
}

.app_tab {
  padding: 8px 32px;
  border-radius: 30px;
  font-family: var(--font-title);
  font-size: 14px;
  font-weight: 700;
  text-transform: capitalize;
  border: none;
  color: var(--sunedu-blue);
  background: transparent;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.app_tab.active {
  background: var(--sunedu-blue);
  color: var(--sunedu-white);
}

.app_tab:hover:not(.active) {
  background: rgba(4, 75, 177, 0.08);
}

/* Botón cerrar/limpiar en el card */
.app_card_close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sunedu-blue);
  color: var(--sunedu-white);
  font-size: 14px;
  border: none;
  transition: background 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.15);
  position: absolute;
  right: 40px;
  top: 30px;
}

.app_card_close:hover {
  background: #00aeef;
}

.app_card_close:hover i,
.app_card_close:hover .fa {
  display: inline-block;
  animation: spinClose 0.6s linear infinite;
}

/* Línea divisora horizontal de la cabecera (Estilo Captura) */
.card_header_divider {
  border: 0;
  height: 1px;
  background: #cfd8dc;
  margin: 0 40px;
  display: block;
}

/* Contenido de Tabs */
.card_tab_content {
  width: 100%;
}

.card_body {
  padding: 35px 45px;
}

.search_main_title {
  text-align: center;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #37474f;
  line-height: 1.4;
  text-transform: uppercase;
  margin-top: 10px;
}

.search_main_title strong {
  font-size: 18px;
  color: var(--sunedu-blue);
  font-weight: 800;
  display: block;
  margin-top: 6px;
  letter-spacing: 0.3px;
}

/* Campos de Formulario */
.search_field_group {
  margin-bottom: 24px;
  text-align: center;
}

.pill_label_container {
  margin-bottom: 8px;
}

.pill_label {
  background: #f0faff; /* Fondo celeste muy claro */
  color: #00aeef; /* Texto celeste de la captura */
  border: 1.5px solid #00aeef; /* Borde celeste */
  border-radius: 30px;
  padding: 8px 36px;
  font-size: 14px;
  font-weight: 700;
  display: inline-block;
  letter-spacing: 0.3px;
}

.field_input_container {
  max-width: 420px; /* Ancho de cápsula para el campo de entrada */
  margin: 0 auto;
  position: relative;
}

.clean_line_input {
  width: 100%;
  background: #f0faff; /* Fondo celeste muy claro */
  border: 1.5px solid #00aeef; /* Borde celeste */
  border-radius: 30px; /* Cápsula */
  padding: 10px 24px;
  font-size: 15px;
  font-family: var(--font-body);
  color: #00b0ff; /* Texto escrito en celeste captura */
  outline: none;
  text-align: center;
  font-weight: 700;
  margin: 0 auto 4px auto;
  display: block;
  transition: all 0.2s ease;
}

.clean_line_input::placeholder {
  color: #00b0ff;
  opacity: 0.85;
  font-weight: 700;
}

.clean_line_input:focus {
  border-color: var(--sunedu-blue);
  background: #ffffff;
}

.clean_line_input.has_error {
  border-bottom-color: var(--sunedu-error);
}

.field_help_text {
  display: block;
  font-size: 10px;
  color: #37474f;
  font-weight: 700;
  margin-top: 4px;
}

.field_error {
  display: none;
  font-size: 12px;
  color: var(--sunedu-error);
  margin-top: 4px;
  text-align: center;
  font-weight: 600;
}

.field_error.visible {
  display: block;
}

/* CAPTCHA Turnstile Simulado */
.captcha_widget_container {
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.captcha_widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px 18px;
  width: 320px;
  height: 62px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.captcha_checkbox_label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.captcha_checkbox_hidden {
  display: none;
}

.captcha_box_visual {
  width: 24px;
  height: 24px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.captcha_spinner_ring {
  width: 14px;
  height: 14px;
  border: 2px solid #e2e8f0;
  border-top-color: var(--sunedu-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.captcha_checkmark_icon {
  color: #10b981;
  font-size: 18px;
}

.captcha_text {
  font-size: 13px;
  color: #334155;
  font-weight: 500;
  transition: all 0.2s ease;
}

.captcha_cloudflare_brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.2;
}

.captcha_brand_title {
  font-size: 8px;
  font-weight: 800;
  color: #000000;
  letter-spacing: 0.5px;
}

.captcha_brand_links {
  font-size: 8px;
  color: #64748b;
  margin-top: 2px;
}

.captcha_brand_links a {
  color: #64748b;
  text-decoration: underline;
}

.captcha_brand_links a:hover {
  color: #f58220;
}

/* Modificaciones de estado para captcha */
.captcha_widget.success {
  border-color: #cbd5e1;
  background: #ffffff;
}

.captcha_widget.success .captcha_box_visual {
  border-color: #10b981;
  background: #10b981; /* Círculo verde sólido */
  border-radius: 50%; /* Redondo */
}

.captcha_widget.success .captcha_checkmark_icon {
  color: #ffffff; /* Checkmark blanco */
}

/* Botones del Formulario */
.search_buttons_container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 25px;
}

.pill_btn {
  padding: 10px 26px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pill_btn i {
  font-size: 14px;
}

.pill_btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.btn_blue {
  background: var(--sunedu-blue);
  color: var(--sunedu-white);
}

.btn_blue:hover {
  background: var(--sunedu-blue-hover);
}

.btn_light_blue {
  background: #82b1ff;
  color: var(--sunedu-white);
}

.btn_light_blue:hover {
  background: #548eff;
}

.btn_dark_blue {
  background: #0043a4;
  color: var(--sunedu-white);
}

.btn_dark_blue:hover {
  background: #002d74;
}

/* Estilos de las Columnas de la Guía */
.guide_columns_container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  text-align: left;
}

.guide_column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.guide_col_title_bar {
  background: var(--sunedu-blue);
  color: var(--sunedu-white);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 30px;
  text-align: center;
  margin-bottom: 12px;
  text-transform: none;
}

.guide_col_card_box {
  border: 1.5px solid #cce3fd;
  background: #fbfdff;
  border-radius: 16px;
  padding: 20px;
  font-size: 12px;
  color: #0b3a7a;
  line-height: 1.6;
  flex: 1;
}

.guide_list_a {
  list-style-type: none;
  margin: 0;
  padding: 0;
  font-weight: 600;
}

.guide_list_bullet {
  list-style-type: disc;
  margin: 8px 0 8px 20px;
  padding: 0;
  font-weight: 500;
}

.guide_cyan_callout {
  background: #00b0ff;
  color: var(--sunedu-white);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  margin: 15px 0;
}

.guide_text_b {
  font-weight: 600;
}

.guide_text_p {
  font-weight: 500;
}

.guide_bold_link {
  font-weight: 700;
  text-decoration: underline;
  color: var(--sunedu-blue);
}


/* ── 8. ZONA DE RESULTADOS INTEGRADA (Debajo del buscador) ────── */
.results_section_integrated {
  margin-top: 30px;
  border: 1px solid #dee2e6;
  border-radius: var(--radius-sm);
  background: #f8f9fa;
  padding: 24px 30px;
  width: 100%;
}

.results_state {
  padding: 20px 0;
}

.spinner_wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.spinner_circle {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(4, 75, 177, 0.1);
  border-top-color: var(--sunedu-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner_wrapper p {
  font-size: 13px;
  color: var(--sunedu-text-muted);
}

/* Sin resultados */
.no_results_box {
  text-align: center;
  padding: 20px 0;
}

.no_results_box i {
  font-size: 48px;
  color: #ccc;
  margin-bottom: 10px;
}

.no_results_box h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.no_results_box p {
  font-size: 13px;
  color: var(--sunedu-text-muted);
  margin-bottom: 16px;
}

.warning_box {
  background: var(--sunedu-warning-bg);
  border-left: 4px solid var(--sunedu-warning-border);
  padding: 12px 16px;
  text-align: left;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin: 0 auto;
}

.warning_box i {
  font-size: 20px;
  color: var(--sunedu-warning-text);
}

.warning_box p {
  font-size: 12px;
  color: var(--sunedu-warning-text);
  margin-bottom: 0;
  line-height: 1.4;
}

/* Con resultados */
.results_metadata {
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.results_counter_lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--sunedu-blue);
}

/* ═══════════════════════════════════════════════════════════════
   DISEÑO OFICIAL RESULTADOS (RÉPLICA EXACTA CAPTURA 2)
   ═══════════════════════════════════════════════════════════════ */
.sunedu_resultado_card {
  background-color: #e2f6fd; /* Fondo celeste pastel institucional */
  border-radius: 16px;
  padding: 24px 28px;
  margin-top: 20px;
  box-sizing: border-box;
  animation: modalFadeIn 0.3s ease;
}

.sunedu_resultado_title {
  color: #005ea6; /* Azul institucional exacto */
  font-family: var(--font-title);
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 16px 0;
  text-align: left;
  letter-spacing: 0.2px;
}

.sunedu_table_wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sunedu_results_table_v2 {
  width: 100%;
  border-collapse: collapse;
  border: 1.5px solid #00b0f4;
  background: #ffffff;
}

.sunedu_results_table_v2 th {
  background: #00b0f4; /* Celeste cabecera */
  color: #ffffff;
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 14px;
  text-align: center;
  border: 1.5px solid #00b0f4;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.sunedu_results_table_v2 td {
  background: #ffffff;
  border: 1.5px solid #00b0f4;
  padding: 16px 20px;
  vertical-align: middle;
}

.sunedu_results_table_v2 tbody tr {
  transition: background 0.15s ease;
  cursor: pointer;
}

.sunedu_results_table_v2 tbody tr:hover {
  background-color: #f7fcfe;
}

/* Columna 1: Graduado */
.sunedu_cell_graduado {
  text-align: center;
  width: 32%;
  min-width: 200px;
}

.res_graduado_nombre {
  color: #005ea6;
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.4;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.res_graduado_dni {
  color: #005ea6;
  font-weight: 800;
  font-size: 13.5px;
  text-transform: uppercase;
}

/* Columna 2: Grado o Título */
.sunedu_cell_grado {
  text-align: left;
  width: 40%;
  min-width: 250px;
  padding-left: 24px !important;
}

.res_grado_titulo {
  color: #00b0f4; /* Celeste de título de grado */
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.4;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.res_grado_meta {
  color: #005ea6;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 2px;
}

/* Columna 3: Institución */
.sunedu_cell_institucion {
  text-align: center;
  width: 28%;
  min-width: 180px;
}

.res_inst_nombre {
  color: #005ea6;
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.4;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.res_inst_pais {
  color: #005ea6;
  font-weight: 800;
  font-style: italic;
  font-size: 13px;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════════
   AVISO CORRECCIÓN DE DATOS (CAPTURA 1 Y CAPTURA 2)
   ═══════════════════════════════════════════════════════════════ */
.solicita_correccion_box {
  text-align: center;
  margin: 15px auto 16px auto;
  width: 100%;
}

.solicita_correccion_title {
  color: #00aeef;
  font-family: var(--font-title);
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.solicita_correccion_sub {
  color: #004b93;
  font-size: 11.5px;
  font-weight: 600;
}

.solicita_link {
  color: #00aeef;
  font-weight: 700;
  text-decoration: none;
}

.solicita_link:hover {
  text-decoration: underline;
}

.sunedu_disclaimer_note {
  font-size: 10.5px;
  color: #555555;
  line-height: 1.5;
  margin-top: 18px;
  text-align: left;
  padding: 0 4px;
}

/* ═══════════════════════════════════════════════════════════════
   FORMATO STACKED/BLOQUES (verificar_grados&titulos.html - CAPTURA 1)
   ═══════════════════════════════════════════════════════════════ */
.sunedu_stacked_results_box {
  width: 100%;
  border: 1.5px solid #00b0f4;
  background: #ffffff;
  border-radius: 2px;
  overflow: hidden;
}

.stacked_degree_block {
  border-bottom: 3.5px solid #004b93; /* Línea gruesa azul oscura divisora entre grados */
  background: #ffffff;
  transition: background 0.15s ease;
  cursor: pointer;
}

.stacked_degree_block:hover {
  background: #f8fcff;
}

.stacked_degree_block:last-child {
  border-bottom: none;
}

.stacked_degree_row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 18px;
  border-bottom: 1px solid #00b0f4; /* Línea delgada celeste divisora */
  gap: 15px;
}

.stacked_degree_row.no_border_bottom {
  border-bottom: none;
}

.stacked_degree_col_left {
  flex-shrink: 0;
  text-align: left;
}

.stacked_degree_col_right {
  flex-grow: 1;
  text-align: right;
}

.stacked_label {
  color: #008fd5;
  font-family: var(--font-title);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.stacked_grad_name {
  color: #004b93;
  font-weight: 800;
  font-size: 12.5px;
  text-transform: uppercase;
  line-height: 1.3;
}

.stacked_grad_dni {
  color: #004b93;
  font-weight: 800;
  font-size: 12.5px;
  margin-top: 5px;
}

.stacked_grado_title {
  color: #00b0f4;
  font-weight: 800;
  font-size: 12.5px;
  text-transform: uppercase;
  line-height: 1.3;
}

.stacked_dates_container {
  width: 100%;
  text-align: left;
  margin-top: 8px;
}

.stacked_date_item {
  color: #004b93;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.stacked_inst_name {
  color: #004b93;
  font-weight: 800;
  font-size: 12.5px;
  text-transform: uppercase;
  line-height: 1.3;
}

.stacked_inst_country {
  color: #004b93;
  font-weight: 800;
  font-style: italic;
  font-size: 12px;
  margin-top: 3px;
  text-transform: uppercase;
}

.results_table_scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #dee2e6;
  border-radius: var(--radius-sm);
  background: var(--sunedu-white);
}

.app_results_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
  min-width: 850px;
}

.app_results_table th {
  background: var(--sunedu-blue);
  color: var(--sunedu-white);
  font-weight: 700;
  padding: 10px 14px;
  white-space: nowrap;
}

.app_results_table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e9ecef;
  color: #495057;
  vertical-align: middle;
}

.app_results_table tbody tr {
  transition: background 0.15s ease;
  cursor: pointer;
}

.app_results_table tbody tr:hover {
  background: #f1f7ff;
}

.td_name {
  font-weight: 700;
  color: #212529;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
}

.badge_dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge_success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.badge_warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

.badge_danger {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.btn_view_row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--sunedu-blue);
  background: var(--sunedu-light-blue-bg);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn_view_row:hover {
  background: var(--sunedu-blue);
  color: var(--sunedu-white);
}

.btn_view_row i {
  font-size: 16px;
}

/* Paginación */
.app_pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.pagination_info_text {
  font-size: 11px;
  color: var(--sunedu-text-muted);
}

.pagination_buttons {
  display: flex;
  gap: 4px;
}

.page_btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
  background: var(--sunedu-white);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
  transition: all 0.15s ease;
  cursor: pointer;
}

.page_btn i {
  font-size: 16px;
}

.page_btn:hover:not([disabled]) {
  background: #f1f3f5;
  border-color: #ced4da;
}

.page_btn.active {
  background: var(--sunedu-blue);
  border-color: var(--sunedu-blue);
  color: var(--sunedu-white);
}

.page_btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── 9. TABS CONTENIDO GUÍA ────────────────────────────────── */
.guide_steps_list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.guide_step {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  background: #f8f9fa;
  padding: 16px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--sunedu-blue);
}

.step_num {
  width: 28px;
  height: 28px;
  background: var(--sunedu-blue);
  color: var(--sunedu-white);
  font-weight: 700;
  font-size: 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.guide_step p {
  font-size: 13px;
  color: #495057;
  line-height: 1.5;
}

.guide_step p strong {
  color: #111;
}

/* ── 10. MODAL DETALLE DE REGISTRO (Popup) ──────────────────── */
.detail_modal_overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.detail_modal_overlay[hidden],
.detail_modal_overlay.is_hidden {
  display: none !important;
  pointer-events: none !important;
}

.detail_modal_container {
  background: var(--sunedu-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 560px;
  animation: modalScaleIn 0.25s ease;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

@keyframes modalScaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.detail_modal_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--sunedu-blue);
  color: var(--sunedu-white);
}

.detail_title_area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail_title_area h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--sunedu-white);
  margin-bottom: 0;
}

.detail_modal_close {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.detail_modal_close:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

.detail_modal_body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

.detail_grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail_item {
  display: flex;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f2f6;
}

.detail_item:last-child {
  border-bottom: none;
}

.detail_label {
  font-size: 11px;
  font-weight: 700;
  color: var(--sunedu-text-muted);
  text-transform: uppercase;
  width: 160px;
  flex-shrink: 0;
}

.detail_val {
  font-size: 13px;
  color: #212529;
  font-weight: 600;
}

.detail_modal_footer {
  padding: 12px 20px;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* Botones del footer de detalle */
.btn_secondary {
  background: #6c757d;
  color: var(--sunedu-white);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s;
  cursor: pointer;
}

.btn_secondary:hover {
  background: #5a6268;
}

/* ── 11. FOOTER (Réplica de Colores) ────────────────────────── */
#footer_bg {
  background: var(--footer-sky-blue);
  color: var(--sunedu-white);
  padding-top: 40px;
}

.footer_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding-bottom: 40px;
}

.footer_col {
  display: flex;
  flex-direction: column;
}

.footer_title {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--sunedu-white);
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer_contact_info {
  font-size: 13px;
  line-height: 1.8;
}

.footer_contact_info p {
  margin-bottom: 12px;
}

.footer_contact_info i {
  margin-right: 6px;
  width: 14px;
}

.footer_logo_container {
  margin-top: 20px;
}

.footer_logo_white {
  max-width: 180px;
  height: auto;
}

/* Lista de MAC */
.mac_list_ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  font-size: 12px;
  margin-bottom: 16px;
}

.mac_list_ul li {
  opacity: 0.9;
}

.mac_schedules {
  font-size: 12px;
  line-height: 1.6;
}

.mac_schedules p {
  margin-bottom: 8px;
}

.mac_info_call {
  font-weight: 700;
  margin-top: 10px;
}

/* Iconos de Redes Sociales */
.footer_social_icons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social_icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  color: var(--sunedu-white);
  font-size: 14px;
  transition: all 0.2s ease;
}

.social_icon:hover {
  background: var(--sunedu-white);
  color: var(--footer-sky-blue);
}

/* Enlaces del Footer */
.footer_links_list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.footer_links_list a {
  opacity: 0.9;
  display: block;
}

.footer_links_list a:hover {
  text-decoration: underline;
  opacity: 1;
}

.indent_link {
  padding-left: 15px;
  font-size: 12px;
}

.footer_internal_links {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 12px;
}

.footer_internal_links a {
  opacity: 0.7;
}

.footer_internal_links a:hover {
  opacity: 1;
}

/* Copyright Bar */
#footer_coms {
  background: var(--footer-dark-blue);
  padding: 15px 0;
  text-align: center;
}

.copyright_txt {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

/* ── 12. BOTÓN VOLVER ARRIBA & EFECTOS ───────────────────────── */
#to_top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: var(--sunedu-orange);
  color: var(--sunedu-white);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

#to_top.visible {
  opacity: 1;
  visibility: visible;
}

#to_top:hover {
  background: #b34e2c;
  transform: translateY(-2px);
}

/* ── 13. ANIMACIONES GLOBALES ─────────────────────────────────── */
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── 14. FORMATO DE IMPRESIÓN OFICIAL (window.print()) ────────── */
@media print {
  /* Ocultar absolutamente todos los elementos en pantalla */
  html, body, #header_container, #direction_banner, .def_section, #footer_bg, #to_top, .bar_denuncias, .app_search_card, #results_section, #detail_modal {
    display: none !important;
    visibility: hidden !important;
  }

  /* Mostrar únicamente el contenedor de impresión */
  #print_area {
    display: block !important;
    visibility: visible !important;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: #ffffff;
    color: #000000;
  }

  #print_area * {
    visibility: visible !important;
  }

  .print_wrapper {
    width: 100%;
    padding: 0;
    margin: 0;
    background: #ffffff;
  }

  /* Cabecera del Reporte de Impresión (Estilo Captura Gobierno) */
  .print_header {
    display: flex;
    background: #212529 !important; /* Fondo negro de cabecera */
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    height: 70px;
    align-items: stretch;
    width: 100%;
    color: #ffffff !important;
    font-family: 'Open Sans', sans-serif;
  }

  .print_header_col1 {
    background: #c8102e !important; /* Rojo Gobierno */
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 8px;
    flex: 0 0 160px;
  }

  .print_header_peru_text {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: 1px;
  }

  .print_header_col2 {
    background: #212529 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    flex: 1;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-left: 1.5px solid #4a4a4a;
    line-height: 1.4;
    color: #ffffff !important;
  }

  .print_header_col3 {
    background: #343a40 !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
    flex: 1.2;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-left: 1.5px solid #4a4a4a;
    line-height: 1.4;
    color: #ffffff !important;
  }

  /* Título principal del reporte */
  .print_main_title {
    text-align: center;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    color: #000000 !important;
    text-transform: uppercase;
    margin: 25px 0 15px 0;
    letter-spacing: 0.5px;
  }

  /* Tabla de Resultados Impresión */
  .print_results_table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    border: 1.5px solid #0050b5 !important; /* Borde azul de la grilla */
  }

  .print_results_table th {
    border: 1.5px solid #0050b5 !important;
    padding: 10px 15px;
    text-align: left;
    font-weight: 700;
    color: #334155 !important;
    background: #ffffff !important;
    font-size: 13px;
  }

  .print_results_table td {
    border: 1.5px solid #0050b5 !important;
    padding: 12px 15px;
    vertical-align: top;
    background: #ffffff !important;
  }

  /* Celdas del Reporte */
  .print_cell_graduado {
    width: 30%;
  }

  .print_cell_grado {
    width: 38%;
  }

  .print_cell_institucion {
    width: 32%;
  }

  /* Estilos de Textos en Celdas */
  .print_grad_name {
    color: #0050b5 !important;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
  }

  .print_grad_dni {
    color: #0050b5 !important;
    font-weight: 800;
    font-size: 11px;
    margin-top: 4px;
  }

  .print_grado_title {
    color: #0050b5 !important;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
  }

  .print_grado_meta {
    color: #334155 !important;
    font-size: 11px;
    margin-top: 3px;
    font-weight: 500;
  }

  .print_inst_name {
    color: #0050b5 !important;
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
  }

  .print_inst_country {
    color: #0050b5 !important;
    font-style: italic;
    font-weight: 700;
    font-size: 11px;
    margin-top: 4px;
  }
}

/* ── 15. MODAL DE BÚSQUEDA INTEGRADO EN EL PORTAL ────────────── */
.modal_overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* Fondo gris semi-transparente */
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(2px);
}

.modal_container {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 780px; /* Ancho idéntico al buscador */
  max-height: 90vh;
  padding: 40px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow-y: auto; /* Scroll si los resultados exceden la pantalla */
  animation: modalFadeIn 0.3s ease;
}

/* Modal buscador ancho en index.html (Captura 2) */
#search_modal_overlay .modal_container {
  max-width: 1140px;
  width: 94%;
  padding: 30px 45px;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.modal_close_circle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #044bb1; /* Círculo azul */
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
  z-index: 101;
}

.modal_close_circle:hover {
  background: #00aeef; /* Celeste al pasar mouse */
}

.modal_close_circle:hover i,
.modal_close_circle:hover .fa {
  display: inline-block;
  animation: spinClose 0.6s linear infinite;
}

/* ── 16. MODAL DE ACTUALIZACIÓN TEMPORAL ───────────────────────── */
.maintenance_modal_container {
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 460px; /* Tamaño más compacto y elegante */
  padding: 40px 30px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  animation: modalFadeIn 0.3s ease;
}

.maintenance_icon_wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 110px;
  margin-bottom: 25px;
}

.gear_spin {
  animation: spinClockwise 5s linear infinite;
  transform-origin: center;
}

.gear_spin_counter {
  position: absolute;
  bottom: 10px;
  right: calc(50% - 60px);
  animation: spinCounterClockwise 3.5s linear infinite;
  transform-origin: center;
}

@keyframes spinClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.maintenance_title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 700;
  color: #044bb1;
  margin-bottom: 10px;
}

.maintenance_desc {
  font-size: 13px;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* ── 17. ANIMACIONES Y ESTILOS PARA MODALES DE SERVICIOS Y REDES SOCIALES ── */
@keyframes spinClose {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.detail_modal_close:hover {
  display: inline-block;
  animation: spinClose 0.6s linear infinite;
}

/* Barra de Redes Sociales Flotante Lateral (Estilo Capturas 2 y 3) */
.fixed_social_sidebar {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.25);
  border-radius: 0 4px 4px 0;
  overflow: hidden;
}

.fixed_social_sidebar a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 15px;
  text-decoration: none;
  transition: width 0.2s ease, opacity 0.2s ease;
}

.fixed_social_sidebar a:hover {
  width: 42px;
  opacity: 0.95;
}

.fixed_social_sidebar .soc_fb { background: #3b5998; }
.fixed_social_sidebar .soc_tw { background: #1da1f2; }
.fixed_social_sidebar .soc_yt { background: #cd201f; }
.fixed_social_sidebar .soc_fl { background: #ff0084; }
.fixed_social_sidebar .soc_ig { background: #c13584; }
.fixed_social_sidebar .soc_of { background: #f37023; }

/* Modales de Servicios Clocados */
.service_modal_container {
  max-width: 680px;
}

.service_modal_tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  background: #eef6fc;
  border-radius: 25px;
  padding: 4px;
  max-width: 280px;
  margin: 0 auto 20px auto;
}

.service_modal_tab {
  flex: 1;
  border: none;
  background: transparent;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  color: #044bb1;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.service_modal_tab.active {
  background: #044bb1;
  color: #ffffff;
}

.service_form_group {
  margin-bottom: 14px;
  text-align: left;
}

.service_form_label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 5px;
}

.service_form_input,
.service_form_select,
.service_form_textarea {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  background: #fbfdff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.service_form_input:focus,
.service_form_select:focus,
.service_form_textarea:focus {
  border-color: #00aeef;
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
  background: #ffffff;
}

.service_form_textarea {
  border-radius: 12px;
  resize: vertical;
  min-height: 80px;
}

.service_guide_box {
  background: #f8fbfe;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  line-height: 1.6;
}

.service_guide_step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.service_step_number {
  background: #00aeef;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 2px;
}

.service_result_box {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
  animation: modalFadeIn 0.3s ease;
}

.service_result_box.info {
  background: #eff6ff;
  border-color: #93c5fd;
}

/* ═══════════════════════════════════════════════════════════════
   ESTILOS PORTAL SUNEDU EN LÍNEA (SECCIÓN INTEGRADA)
   ═══════════════════════════════════════════════════════════════ */
.portal_hero {
  width: 100%;
  position: relative;
  background: #f1f5f9;
  border-bottom: 12px solid #00aeef;
  overflow: hidden;
  display: block;
  margin-top: 0;
}

.portal_hero_img {
  width: 100%;
  display: block;
  height: auto;
  max-height: 380px;
  object-fit: cover;
}

.portal_link_logo {
  position: absolute;
  top: 10px;
  left: 15px;
  width: 160px;
  height: 80px;
  cursor: pointer;
  z-index: 10;
}

.portal_link_home {
  position: absolute;
  top: 10px;
  right: 15px;
  width: 60px;
  height: 60px;
  cursor: pointer;
  z-index: 10;
}

.faq_link_container {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0;
}

.faq_link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #044bb1;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}

.faq_link:hover {
  color: #00aeef;
}

.faq_link_img {
  width: 32px;
  height: 32px;
  vertical-align: middle;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.faq_link:hover .faq_link_img {
  filter: grayscale(100%);
  transform: rotate(-10deg);
}

.category_section {
  margin-bottom: 35px;
}

.category_header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  width: 100%;
}

.category_pill {
  background: #00aeef;
  height: 38px;
  border-radius: 6px;
  color: #ffffff;
  padding: 0 40px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.category_arrow {
  background: #044bb1;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  margin-left: 8px;
  flex-shrink: 0;
}

.category_header_line {
  flex-grow: 1;
  height: 2px;
  background: #044bb1;
  margin-left: 12px;
}

.services_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.service_card {
  background: #f4f9fd;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 160px;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
}

.service_card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(4, 75, 177, 0.08);
  background: #ffffff;
  border-color: #00aeef;
}

.service_icon_container {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  width: 100%;
}

.service_icon_container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.service_card:hover .service_icon_container img {
  filter: grayscale(100%);
  transform: rotate(8deg);
}

.service_text {
  font-size: 11px;
  font-weight: 700;
  color: #044bb1;
  line-height: 1.4;
  max-width: 180px;
}

.grid_row_centered {
  grid-column: span 4;
  display: flex;
  justify-content: center;
  margin-top: 5px;
}

.grid_row_centered .service_card {
  width: calc(25% - 11px);
}

.linked_logos_container_box {
  display: flex;
  width: 100%;
  height: 75px;
  background: #f4f9fd;
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.linked_logo_block {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s;
}

.linked_logo_block img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  display: block;
}

.linked_logo_block:hover {
  transform: scale(1.02);
}

.linked_logos_descriptions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 12px;
  text-align: center;
}

.linked_logo_desc {
  font-size: 11px;
  font-weight: 700;
  color: #044bb1;
  line-height: 1.4;
  padding: 0 5px;
}

.linked_logo_desc a:hover {
  text-decoration: underline !important;
}

/* Hover de giro para los botones de cierre */
.app_card_close:hover i,
.app_card_close:hover .fa,
#card_close_btn:hover i,
#card_close_btn:hover .fa,
.modal_close_circle:hover i,
.modal_close_circle:hover .fa,
.detail_modal_close:hover i,
.detail_modal_close:hover .fa {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  animation: spinClose 0.6s linear infinite !important;
}


