/* =========================================
   QNA Medical – pages.css
   Estilos para páginas internas
   ========================================= */

/* Page hero banner */
.page-hero {
  /*background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 100%);*/
  background: linear-gradient(135deg, #1E9DCD 0%, #167EA5 100%);
  color: var(--white);
  padding: 70px 0 60px;
  text-align: center;
  clip-path: ellipse(100% 100% at 50% 0%);
  padding-bottom: 90px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 10px;
}
.page-hero p {
  font-size: 1.05rem;
  opacity: 0.85;
}

/* Generic page section */
.page-section {
  padding: 70px 0 90px;
}
.page-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 18px;
}
.page-section p {
  color: var(--gray-text);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 14px;
}

/* Two column layout */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
@media(max-width:768px) { .two-col { grid-template-columns: 1fr; } }

/* Values grid (Nosotros) */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.value-card {
  background: var(--white);
  border: 1.5px solid #d8eaf8;
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.value-card i {
  font-size: 1.4rem;
  color: var(--blue-mid);
  margin-bottom: 10px;
}
.value-card h3 {
  font-size: 1.10rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.value-card p {
  font-size: 0.99rem;
  color: var(--gray-text);
  line-height: 1.55;
  margin: 0;
}

/* Contact styles */
.contact-info h2 { margin-bottom: 14px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 22px;
}
.contact-item i {
  font-size: 1.1rem;
  color: var(--blue-mid);
  margin-top: 3px;
  width: 20px;
  text-align: center;
}
.contact-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 2px;
}
.contact-item p {
  margin: 0;
  font-size: 0.9rem;
}

/* Contact form */
.contact-form {
  background: var(--white);
  border: 1.5px solid #d8eaf8;
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.contact-form h2 { margin-bottom: 24px; }

.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #d0e4f5;
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--blue-dark);
  background: var(--gray-light);
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  background: var(--white);
}

/* Soluciones page */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.solution-card {
  border: 1.5px solid #d8eaf8;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}
.solution-card:hover { transform: translateY(-5px); }
.solution-card .card-icon {
  width: 50px; height: 50px;
  background: var(--blue-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--blue-mid);
  margin-bottom: 14px;
}
.solution-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 8px;
}
.solution-card p {
  font-size: 0.87rem;
  color: var(--gray-text);
  line-height: 1.6;
  margin: 0;
}

/* Cobertura map placeholder */
.map-placeholder {
  background: var(--blue-pale);
  border-radius: var(--radius);
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--blue-mid);
  font-size: 3rem;
  margin-top: 40px;
}
.map-placeholder span {
  font-size: 0.95rem;
  font-weight: 700;
}

/* Cities grid */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 30px;
}
.city-badge {
  background: var(--white);
  border: 1.5px solid #d8eaf8;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-align: center;
  box-shadow: var(--shadow);
}












*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --primary: #1a5fa8;
      --primary-dark: #0e3f75;
      --primary-light: #e8f1fb;
      --accent: #2ec4b6;
      --accent-dark: #1a9a8f;
      --text-dark: #1a1a2e;
      --text-mid: #4a4a6a;
      --text-light: #8888aa;
      --bg: #f4f7fc;
      --white: #ffffff;
      --border: #dde4f0;
      --shadow: 0 4px 24px rgba(26,95,168,0.10);
      --shadow-lg: 0 8px 40px rgba(26,95,168,0.16);
      --radius: 14px;
      --radius-sm: 8px;
      --navbar-h: 72px;
    }

    body {
      font-family: 'Nunito', sans-serif;
      background: var(--bg);
      color: var(--text-dark);
      min-height: 100vh;
    }

    /* ─── NAVBAR ─── */
    .navbar {
      position: fixed; top: 0; left: 0; right: 0;
      height: var(--navbar-h);
      background: var(--white);
      box-shadow: 0 2px 16px rgba(26,95,168,0.08);
      z-index: 1000;
      display: flex; align-items: center;
    }
    .nav-inner {
      max-width: 1200px; margin: 0 auto; padding: 0 2rem;
      width: 100%; display: flex; align-items: center; justify-content: space-between;
    }

    .nav-links { display: flex; align-items: center; gap: 1.6rem; }
    .nav-links a {
      font-size: 0.95rem; font-weight: 600; color: var(--text-mid);
      text-decoration: none; transition: color .2s;
    }
    .nav-links a:hover { color: var(--primary); }
    .nav-links a.active { color: var(--primary); }
   
    /* ─── LOGIN SCREEN ─── */
    #login-screen {
      min-height: 100vh;
      display: flex; align-items: center; justify-content: center;
      padding-top: var(--navbar-h);
      background: linear-gradient(135deg, #eaf1fb 0%, #f4f7fc 60%, #e4f9f6 100%);
    }
    .login-card {
      background: var(--white);
      border-radius: 20px;
      box-shadow: var(--shadow-lg);
      padding: 2.8rem 2.4rem;
      width: 100%; max-width: 420px;
      text-align: center;
    }
    .login-card .lock-icon {
      width: 64px; height: 64px; border-radius: 50%;
      background: var(--primary-light);
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto 1.4rem;
    }
    .login-card .lock-icon i { font-size: 1.7rem; color: var(--primary); }
    .login-card h2 { font-size: 1.5rem; font-weight: 800; color: var(--text-dark); margin-bottom: .3rem; }
    .login-card .subtitle { font-size: .9rem; color: var(--text-light); margin-bottom: 1.8rem; }
    .form-group { margin-bottom: 1.1rem; text-align: left; }
    .form-group label { font-size: .82rem; font-weight: 700; color: var(--text-mid); display: block; margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .04em; }
    .form-group .input-wrap { position: relative; }
    .form-group .input-wrap i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-light); font-size: 1rem; }
    .form-group input {
      width: 100%; padding: .7rem 1rem .7rem 2.4rem;
      border: 1.5px solid var(--border); border-radius: var(--radius-sm);
      font-family: 'Nunito', sans-serif; font-size: .95rem; color: var(--text-dark);
      background: #f8fafd; outline: none; transition: border-color .2s, box-shadow .2s;
    }
    .form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,95,168,.12); background: var(--white); }
    .btn-login {
      width: 100%; padding: .8rem;
      background: var(--primary); color: var(--white);
      border: none; border-radius: var(--radius-sm);
      font-family: 'Nunito', sans-serif; font-size: 1rem; font-weight: 800;
      cursor: pointer; transition: background .2s, transform .1s;
      margin-top: .4rem;
    }

    .logout-btn {
      width: 100%; padding: 1rem;
      background: var(--blue-qna); color: var(--white);
      border: none; border-radius: var(--radius-sm);
      font-family: 'Nunito', sans-serif; font-size: .8rem; font-weight: 600;
      cursor: pointer; transition: background .4s, transform .1s;
      margin-top: .3rem;
    }

    .btn-login:hover { background: var(--primary-dark); }
    .btn-login:active { transform: scale(.98); }
    .login-error {
      background: #ffeaea; color: #c0392b; border-radius: var(--radius-sm);
      padding: .6rem 1rem; font-size: .85rem; font-weight: 600;
      margin-bottom: 1rem; display: none;
    }
    .login-hint { font-size: .78rem; color: var(--text-light); margin-top: 1rem; }

    /* ─── DASHBOARD ─── */
    #dashboard-screen { display: none; padding-top: var(--navbar-h); min-height: 100vh; }

    .user-badge {
      display: inline-flex; align-items: center; gap: .5rem;
      background: rgba(255,255,255,.15); border-radius: 50px;
      padding: .35rem .9rem; font-size: .85rem; font-weight: 700; margin-bottom: 1rem;
    }
    .user-badge i { font-size: .9rem; }

    /* Sections */
    .section { max-width: 1100px; margin: 0 auto; padding: 2.4rem 1.5rem; }
    .section-title {
      font-size: 1.15rem; font-weight: 800; color: var(--text-dark);
      margin-bottom: 1.2rem; display: flex; align-items: center; gap: .6rem;
    }
    .section-title i { color: var(--primary); font-size: 1.1rem; }
    .section-divider { border: none; border-top: 1.5px solid var(--border); margin: 1rem 0 2rem; }

    /* ── APP LINKS ── */
    .apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
    .app-card {
      background: var(--white); border-radius: var(--radius);
      box-shadow: var(--shadow); padding: 1.4rem 1rem;
      text-align: center; text-decoration: none; color: var(--text-dark);
      transition: transform .2s, box-shadow .2s; cursor: pointer;
      border: 1.5px solid transparent;
    }
    .app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
    .app-icon {
      width: 52px; height: 52px; border-radius: 14px;
      display: flex; align-items: center; justify-content: center;
      margin: 0 auto .8rem; font-size: 1.4rem;
    }
    .app-card h3 { font-size: .92rem; font-weight: 800; margin-bottom: .2rem; }
    .app-card p { font-size: .78rem; color: var(--text-light); }

    .icon-blue   { background: #e8f1fb; color: #1a5fa8; }
    .icon-teal   { background: #e0f7f4; color: #1a9a8f; }
    .icon-green  { background: #e6f9ee; color: #1a8a4a; }
    .icon-amber  { background: #fff7e0; color: #b07800; }
    .icon-purple { background: #f0ecfe; color: #6b4fcf; }
    .icon-coral  { background: #fdf0ec; color: #c0522a; }

    /* ── ORGANIGRAMA ── */
    .org-wrapper {
      background: var(--white); border-radius: var(--radius);
      box-shadow: var(--shadow); padding: 1.8rem 1.2rem; overflow-x: auto;
    }
    .org-tree { display: flex; flex-direction: column; align-items: center; gap: 0; }
    .org-level { display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap; }
    .org-node {
      background: var(--primary-light); border: 1.5px solid var(--primary);
      border-radius: 10px; padding: .7rem 1.1rem;
      text-align: center; min-width: 130px; max-width: 160px;
    }
    .org-node.root { background: var(--primary); color: var(--white); border-color: var(--primary-dark); }
    .org-node.root .node-name { color: var(--white); }
    .org-node.root .node-role { color: rgba(255,255,255,.8); }
    .org-node.dept { background: #e8f1fb; border-color: #6ba4d8; }
    .node-name { font-size: .85rem; font-weight: 800; color: var(--text-dark); line-height: 1.2; }
    .node-role { font-size: .73rem; color: var(--text-mid); margin-top: .2rem; }
    .org-connector {
      display: flex; flex-direction: column; align-items: center;
    }
    .v-line { width: 2px; height: 22px; background: var(--border); }
    .h-bar-wrap { display: flex; justify-content: center; position: relative; }
    .h-bar { height: 2px; background: var(--border); }

    /* ── VIDEOS ── */
    .videos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; }
    .video-card {
      background: var(--white); border-radius: var(--radius);
      box-shadow: var(--shadow); overflow: hidden; cursor: pointer;
      transition: transform .2s, box-shadow .2s;
    }
    .video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
    .video-thumb {
      width: 100%; aspect-ratio: 16/9; object-fit: cover;
      display: flex; align-items: center; justify-content: center;
      font-size: 2.4rem; position: relative; overflow: hidden;
    }
    .video-thumb .thumb-bg {
      position: absolute; inset: 0;
      display: flex; align-items: center; justify-content: center;
    }
    .play-btn {
      width: 52px; height: 52px; border-radius: 50%;
      background: rgba(255,255,255,.92); color: var(--primary);
      display: flex; align-items: center; justify-content: center;
      font-size: 1.3rem; position: relative; z-index: 2;
      box-shadow: 0 2px 12px rgba(0,0,0,.2);
    }
    .video-info { padding: 1rem 1.1rem; }
    .video-info h3 { font-size: .92rem; font-weight: 800; color: var(--text-dark); margin-bottom: .3rem; }
    .video-meta { font-size: .78rem; color: var(--text-light); display: flex; align-items: center; gap: .5rem; }
    .video-tag {
      background: var(--primary-light); color: var(--primary);
      font-size: .7rem; font-weight: 700; padding: .15rem .5rem;
      border-radius: 50px;
    }

    /* ── VIDEO MODAL ── */
    .modal-overlay {
      position: fixed; inset: 0; background: rgba(10,20,50,.7);
      z-index: 2000; display: none; align-items: center; justify-content: center;
      padding: 1rem;
    }
    .modal-overlay.open { display: flex; }
    .modal-box {
      background: var(--white); border-radius: 18px;
      width: 100%; max-width: 780px; overflow: hidden;
      box-shadow: 0 24px 80px rgba(0,0,0,.3);
      animation: modalIn .25s ease;
    }
    @keyframes modalIn { from { transform: scale(.93); opacity: 0; } to { transform: scale(1); opacity: 1; } }
    .modal-header {
      display: flex; align-items: center; justify-content: space-between;
      padding: 1rem 1.4rem; border-bottom: 1.5px solid var(--border);
    }
    .modal-header h3 { font-size: 1rem; font-weight: 800; }
    .modal-close {
      background: none; border: none; cursor: pointer;
      font-size: 1.2rem; color: var(--text-light); padding: .2rem .5rem;
      border-radius: 6px; transition: background .2s;
    }
    .modal-close:hover { background: var(--bg); color: var(--text-dark); }
    .modal-body { padding: 1.2rem 1.4rem; }
    .modal-video-area {
      width: 100%; aspect-ratio: 16/9;
      background: #111; border-radius: 10px;
      display: flex; align-items: center; justify-content: center;
      color: #fff; font-size: 1rem; overflow: hidden;
    }
    .modal-video-area iframe { width: 100%; height: 100%; border: none; }
    .modal-video-area .placeholder-msg {
      text-align: center; padding: 2rem;
    }
    .modal-video-area .placeholder-msg i { font-size: 2.5rem; opacity: .5; display: block; margin-bottom: .8rem; }
    .modal-video-area .placeholder-msg p { font-size: .9rem; opacity: .7; }
    .modal-desc { margin-top: 1rem; font-size: .88rem; color: var(--text-mid); line-height: 1.6; }


    /* Responsive */
    @media (max-width: 640px) {
      .nav-links { display: none; }
      .page-hero h1 { font-size: 1.5rem; }
      .apps-grid { grid-template-columns: repeat(2, 1fr); }
    }











    .org-section{
    padding:40px 0;
    background:#f4f7fb;
}

.section-title{
    text-align:center;
    margin-bottom:25px;
}

.section-title h2{
    font-size:28px;
    color:#102542;
    margin-bottom:5px;
}

.section-title p{
    color:#6b7280;
    font-size:14px;
}

/* CONTENEDOR */
.org-wrapper{
    width:100%;
}

/* NIVELES */
.org-level{
    display:flex;
    justify-content:center;
    align-items:stretch;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:14px;
}

/* TARJETAS */
.org-card{
    width:160px;
    min-height:85px;
    background:#fff;
    border-radius:14px;
    padding:12px;
    box-shadow:0 3px 12px rgba(0,0,0,.06);
    border-top:4px solid #0ea5e9;
    transition:.2s ease;
    position:relative;
    text-align:center;
}

.org-card:hover{
    transform:translateY(-2px);
}

/* TITULOS */
.org-card h3{
    font-size:12px;
    font-weight:700;
    line-height:1.2;
    margin-bottom:6px;
    color:#0f172a;
}

/* NOMBRES */
.org-card p{
    font-size:11px;
    line-height:1.2;
    color:#64748b;
    margin:0;
}

/* TAG */
.tag{
    position:absolute;
    top:8px;
    right:8px;
    background:#edf2f7;
    color:#475569;
    font-size:9px;
    padding:2px 6px;
    border-radius:20px;
    font-weight:700;
}

/* COLORES JERARQUICOS */

.assembly{
    border-color:#0f172a;
}

.general-manager{
    border-color:#2563eb;
}

.advisor,
.fiscal{
    border-color:#64748b;
}

.management{
    border-color:#0891b2;
}

.direction{
    border-color:#7c3aed;
}

.coordination{
    border-color:#16a34a;
}

.line{
    border-color:#f59e0b;
}

.support{
    border-color:#dc2626;
}

/* RESPONSIVE */
@media(max-width:768px){

    .org-level{
        gap:8px;
    }

    .org-card{
        width:145px;
        padding:10px;
    }

    .org-card h3{
        font-size:11px;
    }

    .org-card p{
        font-size:10px;
    }
}





/* ══════════════════════════════════════
   CALENDARIO CORPORATIVO
══════════════════════════════════════ */

.calendar-container{
  max-width:1100px;
  margin:auto;
  background:#fff;
  border-radius:24px;
  padding:30px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

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

.calendar-header h2{
  font-size:1.7rem;
  font-weight:800;
  color:#133b5c;
}

.calendar-header button{
  width:45px;
  height:45px;
  border:none;
  border-radius:12px;
  background:#0d6efd;
  color:#fff;
  cursor:pointer;
  font-size:1rem;
  transition:.3s;
}

.calendar-header button:hover{
  transform:scale(1.05);
  background:#0957d0;
}

.calendar-days{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  margin-bottom:12px;
}

.calendar-days div{
  text-align:center;
  font-weight:800;
  color:#4d5b6a;
  padding:10px 0;
}

.calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:12px;
}

.calendar-date{
  min-height:110px;
  background:#f5f8fc;
  border-radius:18px;
  padding:12px;
  position:relative;
  transition:.3s;
  cursor:pointer;
}

.calendar-date:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 20px rgba(0,0,0,.08);
}

.calendar-date .number{
  font-weight:800;
  font-size:1rem;
  color:#133b5c;
}

.calendar-date.today{
  border:2px solid #0d6efd;
  background:#eef5ff;
}

.calendar-event{
  margin-top:10px;
  background:#0d6efd;
  color:#fff;
  padding:6px 8px;
  border-radius:10px;
  font-size:.78rem;
  font-weight:700;
}

.calendar-event.green{
  background:#20b26b;
}

.calendar-event.orange{
  background:#ff8b2c;
}

.calendar-event.red{
  background:#e74c3c;
}

.calendar-date.empty{
  background:transparent;
  box-shadow:none;
  cursor:default;
}

@media(max-width:768px){

  .calendar-container{
    padding:18px;
  }

  .calendar-grid{
    gap:8px;
  }

  .calendar-date{
    min-height:90px;
    padding:8px;
  }

  .calendar-header h2{
    font-size:1.2rem;
  }

  .calendar-event{
    font-size:.65rem;
    padding:4px 6px;
  }
}


/* IMAGENES EN TARJETAS */
.card-icon{
  width:90px !important;
  height:90px !important;
  background:#dfeef7;
  border-radius:20px;
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom:20px;
  overflow:hidden;
}

.card-icon img{
  width:60px;
  height:60px;
  object-fit:contain;
  display:block;
}