/* =========================================================
   TARIFARIO UNH – style.css
   ========================================================= */

/* -------- RESET BÁSICO -------- */
.hidden {
  display: none !important;
}
* {
  box-sizing: border-box;
  margin: 0;
}

body {
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(to bottom, #f4f6f9, #e9eef4);
  color: #1f2933;
  line-height: 1.5;
}

/* -------- HEADER -------- */
.site-header {
  background: linear-gradient(135deg, #003866, #005aa3);
  color: #fff;
  padding: 24px 16px;
  text-align: center;
}

.site-header h1 {
  font-size: 1.8rem;
  margin-bottom: 6px;
}

.site-header .subtitle {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* -------- CONTAINER -------- */
.container {
  max-width: 1200px;
  margin: 0 auto;   
  padding: 0 20px;
}

/* -------- CONTROLS / FILTROS -------- */
.controls {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}
.search-wrap input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
}
.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.search-wrap {
  flex: 1 1 300px;
}

.filters-wrap {
  flex: 1 1 400px;
  margin-top: 0; 
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.filter-select {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  background: #fff;
}

.btn-export {
  background: #c62828;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-export:hover {
  background: #b71c1c;
}


/* -------- STATUS -------- */
.status {
  text-align: center;
  padding: 12px;
  font-size: 0.95rem;
  color: #6b7280;
}

/* -------- WARNING -------- */
.tarifa-warning {
  background: #fff8e1;
  border-left: 5px solid #ffb300;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: #5f4b00;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.04);
}

/* -------- CARDS -------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tag-origen {
  font-size: 0.75rem;
  font-weight: 600;
  color: #0d47a1;
  background: #e3f2fd;
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  align-self: flex-start;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 6px;
}

.meta {
  font-size: 0.85rem;
  color: #374151;
}

/* -------- ACTIONS -------- */
.actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  flex: 1;
  border-radius: 10px;
  font-size: 0.8rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  padding: 10px 8px;
  min-height: 60px;              
  display: flex;                 
  flex-direction: column;        
  justify-content: center;       
  align-items: center;           
  text-align: center;
  gap: 4px;
}

.btn-requisitos {
  background: #003866;
  color: #fff;
}

.btn-requisitos:hover {
  background: #002f57;
}

.btn-mail {
  background: #ea4335; /* Gmail Red */
  color: #fff;
}

.btn-mail:hover {
  background: #d93025;
}

.btn-ws {
  background: #25d366; /* WhatsApp Green */
  color: #fff;
}

.btn-ws:hover {
  background: #1ebe5d;
}


/* -------- PAGINACIÓN -------- */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; 
  gap: 6px;
  margin-top: 20px;
}

.page-btn {
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
  font-size: 0.85rem;
}

.page-btn.active {
  background: #003866;
  color: #fff;
  border-color: #003866;
}

/* -------- MODAL -------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.modal-overlay.hidden {
  display: none;
}
/* Asegura que la overlay no sea visible si tiene la clase hidden */
.modal-overlay.hidden {
  display: none !important;
  pointer-events: none !important; /* no bloquear clicks si hidden */
  opacity: 0 !important;
}
.modal {
  background: #fff;
  border-radius: 14px;
  max-width: 600px;
  width: 90%;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
}

.modal-close {
  position: absolute;
  right: 12px;
  top: 12px;
  background: none;
  border: none;
  font-size: 0.9rem;
  cursor: pointer;
  color: #374151;
}

.modal-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-meta p {
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.modal-meta a {
  color: #003866;
  text-decoration: none;
}

.req-title {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 600;
}

.modal-body ul {
  margin-top: 8px;
  padding-left: 24px;   
  list-style-position: outside; 
  list-style-type: disc; 
}

.modal-body li {
  font-size: 0.85rem;
  margin-bottom: 6px;
  line-height: 1.4;
}

.modal-body li::marker {
  color: #003866; /* azul institucional */
}

/* -------- CALCULADORA -------- */
.calc-section {
  margin-top: 14px;
}

.estimation-result {
  font-size: 0.85rem;
  color: #374151;
}

/* -------- RESPONSIVE -------- */
@media (max-width: 600px) {
  .filters-wrap {
    flex-direction: column;
  }

  .actions {
    flex-direction: column;
  }
}
.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #374151;
}
.btn i {
  margin-right: 6px;
  font-size: 0.9em;
  vertical-align: middle;
}
@media (max-width: 600px) {

  .pagination {
    gap: 4px;
  }

  .pagination button {
    font-size: 14px;
    padding: 5px 8px;
  }

}
/* -------- BOTONES GENERALES -------- */

.btn:hover {
  background: #002f57;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* ===============================
   PANTALLA INICIAL – SELECCIÓN
================================= */

.service-selection {
  padding: 80px 20px 60px 20px;
  text-align: center;
}

.selection-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: #1d3557;
}

.selection-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  flex-wrap: wrap;
}

.service-card {
  background: #ffffff;
  width: 320px;
  padding: 40px 30px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.card-icon {
  font-size: 3rem;
  color: #0d6efd;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #1d3557;
}

.service-card p {
  font-size: 0.95rem;
  color: #6c757d;
  margin-bottom: 25px;
}

.card-btn {
  background: #0d6efd;
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.3s ease;
}

.card-btn:hover {
  background: #084298;
}

/* Responsive */
@media (max-width: 768px) {
  .selection-cards {
    flex-direction: column;
    align-items: center;
  }
}
/* ==========================
   Selector de Facultades
========================== */

.facultad-selector {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;   /* centra horizontalmente */
  justify-content: center;
  margin: 50px auto;
}

.facultad-title {
  margin-bottom: 30px;
  font-weight: 600;
  text-align: center;
}

.facultad-cards {
  width: 100%;
  max-width: 1000px;   /* Más ancho */
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin: 0 auto;      /* centra el bloque */
}

.facultad-card {
  width: 100%;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px 30px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.25s ease;
  text-align: center;
}

.facultad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  background: #f5f9ff;
}

.btn-back {
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  margin-bottom: 30px;
  color: #003866;
  font-weight: 500;
}
.facultad-mode {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.filters-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.filters-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.general-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {

  .filters-wrap {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .filters-left {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .general-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .btn-export {
    width: 100%;
  }

  .filter-select {
    width: 100%;
  }
}

.site-header {
  background: linear-gradient(135deg, #002b5c, #00509d);
  padding: 18px 20px;
  text-align: center;
}

.header-center {
  max-width: 900px;
  margin: 0 auto;
}

.site-header h1 {
  font-size: 1.8rem;
  margin: 0;
  font-weight: 700;
}

.subtitle {
  margin-top: 4px;
  font-size: 0.95rem;
  opacity: 0.85;
}

.site-header {
  background: linear-gradient(135deg, #002b5c, #00509d);
  padding: 32px 20px;
  text-align: center;
}

.site-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0;
}

.subtitle {
  margin-top: 8px;
  font-size: 1.05rem;
  opacity: 0.9;
}

@media (max-width: 768px) {

  .site-header {
    padding: 18px 16px;
  }

  .site-header h1 {
    font-size: 1.45rem;
    line-height: 1.25;
  }

  .subtitle {
    font-size: 0.85rem;
    margin-top: 6px;
    opacity: 0.85;
  }

}

.results-info {
  max-width: 1200px;
  margin: 15px auto 5px auto;
  padding: 0 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1e2f4f;
}

/* =========================================
   FOOTER – TRANSPARENCIA NORMATIVA
   Versión corporativa moderna
========================================= */

.footer-normativo {
  margin-top: 70px;
  padding: 55px 20px;
  background: linear-gradient(135deg, #0d3b66, #144e8c);
  color: white;
}

.normativo-container {
  max-width: 1100px;
  margin: auto;
  text-align: center;
}

.normativo-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.normativo-text {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 30px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.normativo-links {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.normativo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
}

.normativo-btn:hover {
  background-color: white;
  color: #0d3b66;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.btn:hover {
  color: white !important;
}

.modal-guide {
  font-size: 0.85rem;
  color: #374151;
  margin-bottom: 14px;
  padding: 8px 12px;
  background: #f3f6fa;
  border-left: 4px solid #003866;
  border-radius: 6px;
}
