body.swal2-noscroll {
  overflow: hidden !important;
}
/* FAQ / Ayuda Styles */
/* Ajuste para que el header fijo no tape el título */
.content-wrapper {
  padding: 120px 16px 120px; /* 120px arriba para compensar el header fijo */
  max-width: 800px;
  margin: auto;
}

.content-wrapper h1 {
  text-align: center;
  font-weight: 700;
  color: #007aff;
  margin: 30px 16px;
}

details {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 600;
  background: #007aff;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}

summary:hover {
  background: #005bb5;
}

.icon {
  transition: transform 0.3s ease;
}

details[open] .icon {
  transform: rotate(90deg);
}

details > div {
  padding: 0 20px;
  background-color: #fff;
  font-size: 16px;
  line-height: 1.5;
  color: #444;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.3s ease;
}

details[open] > div {
  opacity: 1;
  padding: 16px 20px;
  max-height: none;
}

a.enlace {
  color: #007aff;
  text-decoration: none;
  font-weight: 600;
}

a.enlace:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .content-wrapper h1 {
    font-size: 1.5rem;
  }
  .content-wrapper {
    padding-top: 80px;
  }
  summary {
    font-size: 16px;
    padding: 14px 16px;
  }
  details > div {
    font-size: 15px;
    padding: 14px 16px;
  }
}

@media (max-width: 400px) {
  .content-wrapper h1 {
    font-size: 1.3rem;
  }
  summary {
    font-size: 15px;
    padding: 12px;
  }
  details > div {
    font-size: 14px;
    padding: 12px;
  }
}


/* Ocultar frase del header en móviles y cuando hay sesión */
@media (max-width: 768px) {
  .header-desc {
    display: none !important;
  }
}
.logged-in .header-desc {
  display: none !important;
}
/* Hamburguesa */
.hamburger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 1100;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 4px 0;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

* {
  box-sizing: border-box;
  font-family: 'Quicksand', sans-serif;
  margin: 0;
  padding: 0;
}

    html, body {
      margin: 0;
      padding: 0;
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
      height: 100%;
      background: #f4f6f8;
      color: #333;
      line-height: 1.6;
      min-height: 100vh;
    }

    body {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }


    .container, #contenido-principal {
      width: 100%;
      max-width: 1000px;
      margin: 0 auto;
      padding-top: 130px; /* Espacio para header fijo en escritorio */
      padding-bottom: 80px; /* Espacio para footer fijo */
      box-sizing: border-box;
    }

    @media (max-width: 768px) {
      .container, #contenido-principal {
        padding-top: 100px; /* Espacio para header fijo en móvil */
        padding-bottom: 80px;
      }
    }

    footer, #footer {
      flex-shrink: 0;
    }

    .animated {
      opacity: 0;
      transform: translateY(30px);
      transition: all 0.6s ease;
    }

    .animated.visible {
      opacity: 1;
      transform: translateY(0);
    }

    .animated.invisible {
      opacity: 0;
      transform: translateY(30px);
    }

    header {
      background: #1a73e8;
      color: white;
      padding: 2rem; /* Adjusted padding */
      text-align: center;
    }

    .header-title{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-left: .75rem;   /* separación respecto al logo */
  margin-right: auto;    /* empuja lo que sigue (botones) a la derecha */
}

.fixed-header h1{
  margin: 0;
  line-height: 1.1;
}

.fixed-header .header-desc{
  margin: .15rem 0 0 0;
  font-size: 1rem;
}
.fixed-header p{
  flex-grow: 0;      /* <- importante para que no empuje los botones */
  margin-left: 0;    /* ya no lo necesitamos */
  text-align: left;
}
    .fixed-header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      max-width: 100%; /* Ensure it doesn't exceed viewport width */
      z-index: 1000;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
      padding: 1rem 2rem; /* Reduced padding */
      display: flex;
      flex-direction: row; /* Changed to row for horizontal layout */
      align-items: center;
      justify-content: space-between; /* Distribute items */
      
    }

    .fixed-header img {
      width: 80px; /* Smaller logo */
      margin-right: 1rem; /* Space between logo and text */
      margin-bottom: 0; /* Remove bottom margin */
    }

    .fixed-header h1 {
      font-size: 2rem; /* Smaller font size */
      margin-bottom: 0; /* Remove bottom margin */
      white-space: nowrap; /* Prevent wrapping */
    }

    .fixed-header p {
      font-size: 1rem; /* Smaller font size */
      margin-top: 0;
      margin-bottom: 0; /* Remove bottom margin */
      margin-left: 1rem; /* Space between title and description */
      flex-grow: 1; /* Allow description to take available space */
      text-align: left; /* Align text to the left */
    }

    .header-buttons {
      display: flex;
      gap: 10px; /* Smaller gap between buttons */
      flex-wrap: nowrap; /* Prevent wrapping */
      justify-content: flex-end; /* Align buttons to the right */
      margin-left: 1rem; /* Space between description and buttons */
    }

    .header-buttons button {
      padding: 0.5rem 1rem; /* Smaller padding */
      font-size: 1.2rem; /* Smaller font size */
      border: none;
      border-radius: 8px;
      background: #fbbf24;
      color: #1f2937;
      cursor: pointer;
    }

    /* Original header styles (might be overridden by fixed-header) */
    header img {
      width: 100px;
      height: auto;
      margin-bottom: 1rem;
    }

    header h1 {
      font-size: 2.7rem;
    }

    header p {
      font-size: 1.1rem;
      margin-top: 0.5rem;
    }

    .container {
      padding: 2rem 1rem;
      max-width: 1000px;
      margin: auto;
      margin-top: 120px; /* Adjusted margin-top for content to clear fixed header */
    }

    @media (max-width: 768px) {
      .hamburger {
        display: flex;
        position: absolute;
        top: 10px;
        right: 10px;
      }
      .header-buttons {
        display: none;
        position: absolute;
        top: 60px;
        right: 10px;
        background: #1a73e8;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        border-radius: 10px;
        padding: 0.5rem 0.7rem;
        z-index: 1050;
        width: 90vw;
        max-width: 340px;
        flex-direction: column;
        align-items: stretch;
      }
      .header-title {
    display: flex;
    flex-direction: column;
    align-items: center;           /* ← centra horizontalmente */
    margin-left: 0;                /* ← anula margen de escritorio */
    margin-right: 0;               /* ← muy importante: quita el “auto” que los empujaba */
  }
      .header-buttons.show {
        display: flex;
      }
      .fixed-header {
        flex-direction: column;
        align-items: center;
        padding: 0.4rem 0.2rem 0.3rem 0.2rem;
        min-height: unset;
        max-width: 100vw;
        text-align: center; 
      }
      .fixed-header img {
        margin-right: 0;
        margin-bottom: 0.2rem;
        width: 32px;
        max-width: 40vw;
        height: auto;
        align-self: center;
      }
      .fixed-header h1 {
        font-size: 1rem;
        margin-bottom: 0.1rem;
        text-align: center;
        word-break: break-word;
        font-weight: 700;
      }
      .fixed-header p {
        font-size: 0.7rem;
        margin-left: 0;
        text-align: center;
        margin-bottom: 0.3rem;
        word-break: break-word;
        line-height: 1.2;
        max-width: 95vw;
      }
      .header-buttons {
        flex-direction: column;
        gap: 6px;
        margin-left: 0;
        width: 100%;
        align-items: center;
      }
      .header-buttons button {
        width: 100%;
        max-width: 320px;
        font-size: 0.95rem;
        padding: 0.6rem 0.5rem;
        min-height: 38px;
        border-radius: 7px;
        margin-bottom: 0.3rem;
      }
      .container {
        margin-top: 120px;
      }
    }

    .features {
      display: grid;

    /* Consolidated styles for instrumento-content and SweetAlert modal behavior
       Moved here to avoid duplicated inline <style> blocks in templates.
    */
    .instrumento-content {
      max-width: 100%;
      box-sizing: border-box;
      padding: 20px;
      border-radius: 12px;
      border: 1px solid #e8f0fe;
      line-height: 1.6;
      font-size: 1.05rem;
      font-family: 'Quicksand', sans-serif;
      word-break: break-word;
      overflow-wrap: anywhere;
      -webkit-font-smoothing: antialiased;
      background: #fafbfc;
      text-align: left;
    }
    .instrumento-content h1,
    .instrumento-content h2,
    .instrumento-content h3 {
      color: #1a73e8;
      margin-top: 1.5rem;
      margin-bottom: 0.8rem;
      font-weight: 600;
    }
    .instrumento-content h1 { font-size: 1.4rem; }
    .instrumento-content h2 { font-size: 1.3rem; }
    .instrumento-content h3 { font-size: 1.2rem; }
    .instrumento-content p { margin-bottom: 1rem; color: #333; }
    .instrumento-content ul, .instrumento-content ol { margin: 1rem 0; padding-left: 2rem; }
    .instrumento-content li { margin-bottom: 0.5rem; color: #333; }
    .instrumento-content img { max-width: 100%; height: auto; display: block; margin: 0.5rem 0; }
    .instrumento-content table { width: 100%; min-width: 0; border-collapse: collapse; margin: 1.5rem 0; background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); table-layout: auto; display: block; }
    .instrumento-content table thead,
    .instrumento-content table tbody { display: table; width: 100%; box-sizing: border-box; }
    .instrumento-content table th,
    .instrumento-content table td { padding: 12px 15px; border-bottom: 1px solid #e8f0fe; vertical-align: top; word-break: break-word; white-space: normal; }
    .instrumento-content table th { background: #1a73e8; color: white; text-align: left; font-weight: 600; }
    .instrumento-content tr:nth-child(even) { background: #f8faff; }
    .instrumento-content tr:last-child td { border-bottom: none; }
    .instrumento-content strong { color: #1a73e8; font-weight: 600; }
    .instrumento-content em { color: #666; font-style: italic; }
    .instrumento-content blockquote { background: #e8f0fe; border-left: 4px solid #1a73e8; margin: 1.5rem 0; padding: 1rem 1.5rem; border-radius: 0 8px 8px 0; font-style: italic; color: #555; }
    .instrumento-content code { background: #f1f3f4; padding: 2px 6px; border-radius: 4px; font-family: 'Courier New', monospace; font-size: 0.9rem; color: #d73502; }
    .instrumento-content pre { background: #f8f9fa; padding: 1rem; border-radius: 8px; overflow-x: auto; border-left: 4px solid #1a73e8; white-space: pre-wrap; }
    .instrumento-content hr { border: none; height: 2px; background: linear-gradient(to right, #1a73e8, transparent); margin: 2rem 0; }

    /* SweetAlert popup helpers for large content modals */
    .swal2-popup-grande { 
      max-height: 90vh; 
      width: 90% !important;
      max-width: 700px !important;
      padding: 2rem !important;
      box-sizing: border-box; 
      display: flex; 
      flex-direction: column; 
      align-items: stretch; 
    }

    /* Ensure the immediate content wrapper is a flex column so the html container can flex/scroll */
    .swal2-popup-grande .swal2-content {
      display: flex;
      flex-direction: column;
      flex: 1 1 auto;
      min-height: 0; /* important for correct flex overflow behavior */
    }

    .swal2-popup-grande .swal2-html-container {
      overflow: auto;
      flex: 1 1 auto;
      min-height: 0;
      box-sizing: border-box;
      padding-right: 6px;
      padding-bottom: 80px; /* reserve space so content isn't hidden under the actions */
    }

    .swal2-popup-grande .swal2-actions {
      flex: 0 0 auto;
      position: sticky;
      bottom: 0;
      z-index: 5;
      background: rgba(255,255,255,0.98); /* make actions area opaque so content below doesn't show through */
      padding-top: 8px;
      padding-bottom: 8px;
    }
      grid-template-columns: 1fr 1fr;
      gap: 2rem;
      margin-bottom: 3rem;
    }

    .feature, .alignment, .pricing, .faq, .cta {
      background: white;
      padding: 1.5rem;
      border-radius: 12px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.1);
      margin-bottom: 3rem;
    }

    .feature h3, .alignment h3, .pricing h3, .faq h3 {
      color: #1a73e8;
      margin-bottom: 0.5rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .feature h3 i, .alignment h3 i, .pricing h3 i, .faq h3 i {
      width: 20px;
      height: 20px;
    }

    .cta {
      background: #1a73e8;
      color: white;
      text-align: center;
      padding-bottom: 4rem;
      margin-bottom: 3rem;
    }

    .cta h2 {
      margin-bottom: 1rem;
    }

    .cta p {
      margin-bottom: 2rem;
    }

    .cta button {
      padding: 0.8rem 1.5rem;
      font-size: 1rem;
      border: none;
      border-radius: 8px;
      background: #fbbf24;
      color: #1f2937;
      cursor: pointer;
    }

    .back-button {
      padding: 0.8rem 1.5rem;
      margin: 1rem auto;
      font-size: 1rem;
      display: block;
      background: #1a73e8;
      color: white;
      border: none;
      border-radius: 8px;
      cursor: pointer;
    }

    .feature img {
      width: 100%;
      height: 300px;
      object-fit: cover;
      border-radius: 10px;
      margin-bottom: 1rem;
    }

    @media (max-width: 768px) {
      .features {
        grid-template-columns: 1fr;
      }
    }

    #video {
      text-align: center;
    }

    #video iframe {
      display: inline-block;
    }

    .video-container {
      position: relative;
      width: 100%;
      padding-bottom: 56.25%;
      height: 0;
      overflow: hidden;
      max-width: 800px;
      margin: 0 auto;
    }

    .video-container iframe {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }

    /* SPA section */
#spa-view {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#spa-view iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

    
    @media (max-width: 768px) {
#spa-view iframe {
height: 100vh;
}
}
    
 .fade {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.fade.active {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.fade.show {
  opacity: 1;
}

#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  height: 60px;
  background-color: #1a73e8;
  display: none; /* solo se muestra tras iniciar sesión */
  justify-content: space-around;
  align-items: center;
  color: white;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}


#footer button {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  font-weight: 700;
  font-family: 'Quicksand', sans-serif;
  cursor: pointer;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s;
}

#footer button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

#footer i.lucide {
  width: 18px;
  height: 18px;
}
/* Oculta los textos del menú en pantallas pequeñas */
@media (max-width: 480px) {
  #footer .menu-label {
    display: none;
  }

  #footer button {
    flex-direction: column;
    font-size: 0;
    padding: 6px;
    justify-content: center;
  }
}

.swal2-popup {
  background-color: #f4f6f8 !important;
  color: #333 !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
  overflow-x: hidden !important;
  max-width: 500px !important;
  width: 95vw !important;
  min-width: 0 !important;
  box-sizing: border-box;
  padding: 1.5rem 0.5rem !important;
}

.swal2-title {
  color: #1a73e8 !important;
}

.swal2-html-container {
  overflow-y: auto;
  overflow-x: hidden !important;
  max-height: 50vh;
  padding: 0;
  word-break: break-word;
  width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

.swal2-input, .swal2-select {
  border: 1px solid #ccc !important;
  border-radius: 8px !important;
  padding: 0.8rem 1.2rem !important;
  margin-bottom: 1rem !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 80% !important;
  box-sizing: border-box;
  font-family: 'Quicksand', sans-serif !important;
  overflow-x: hidden !important;
}
@media (max-width: 600px) {
  .swal2-popup {
    max-width: 99vw !important;
    width: 99vw !important;
    min-width: 0 !important;
    padding: 1rem 0.1rem !important;
  }
  .swal2-html-container {
    max-height: 40vh;
    padding: 0;
    width: 100% !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }
  .swal2-input, .swal2-select {
    font-size: 1rem !important;
    padding: 0.7rem 1.1rem !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 85% !important;
    overflow-x: hidden !important;
  }
}

.swal2-confirm {
  background-color: #1a73e8 !important;
  color: white !important;
  border-radius: 8px !important;
  padding: 0.8rem 1.5rem !important;
  font-size: 1rem !important;
}

.swal2-cancel {
  background-color: #ccc !important;
  color: #333 !important;
  border-radius: 8px !important;
  padding: 0.8rem 1.5rem !important;
  font-size: 1rem !important;
}

.swal2-popup-visor {
    width: 500px !important;
    height: 720px !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}
.swal2-popup-visorxl {
    width: 95vw !important;
    height: 720px !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.profile-block {
  box-sizing: border-box;
  padding: 4rem 4rem; /* arriba/abajo y lateral */
  text-align: left;   /* mantiene alineación */
  max-width: 100%;
}

/* Ajuste para pantallas pequeñas */
@media (max-width: 480px) {
  .profile-block {
    padding: 0.75rem 0.75rem;
  }
}

/* Ajuste para pantallas grandes */
@media (min-width: 1024px) {
  .profile-block {
    padding: 1.25rem 1.5rem;
  }
}

.whatsapp-link {
  display: inline-block;
  background-color: #25D366;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.whatsapp-link:hover {
  background-color: #128C7E;
  text-decoration: none;
  color: white;
}

/* Estilos para Plan Analítico */
.plan-analitico-container {
  font-family: 'Quicksand', sans-serif;
  padding: 1rem;
  padding-top: 100px; /* Espacio para el header fijo */
}

.btn-agregar-problematica {
  background: #28a745;
  color: white;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-agregar-problematica:hover {
  background: #218838;
}

.problematicas-table {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.table-header {
  background: #f8f9fa;
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
  font-weight: 600;
  color: #333;
}

.problematica-row {
  padding: 1rem;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.2s ease;
}

.problematica-row:hover {
  background: #f8f9fa;
}

.problematica-row:last-child {
  border-bottom: none;
}

.problematica-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.ambito-tag {
  background: #1a73e8;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.problematica-titulo {
  font-weight: 600;
  color: #333;
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.problematica-descripcion {
  color: #666;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.problematica-evidencias {
  color: #888;
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.problematica-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-action {
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-editar {
  background: #ffc107;
  color: #333;
}

.btn-eliminar {
  background: #dc3545;
  color: white;
}

.btn-action:hover {
  transform: translateY(-1px);
}

.fecha-problematica {
  font-size: 0.85rem;
  color: #888;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: #888;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Estilos mejorados para SweetAlert2 del Plan Analítico - Removed to avoid conflicts with consolidated styles */

/* Responsive para Plan Analítico */
@media (max-width: 768px) {
  .plan-analitico-container {
    padding: 0.5rem;
  }
  
  .problematica-meta {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .problematica-actions {
    flex-wrap: wrap;
  }
}

/* Vista optimizada de problemáticas */
.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
}

.section-header h3 {
  color: #1a73e8;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.4rem;
}

.section-header p {
  color: #666;
  margin: 0;
}

.problematicas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.problematica-card {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.problematica-card:hover {
  border-color: #1a73e8;
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.15);
  transform: translateY(-2px);
}

.problematica-card .problematica-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.problematica-card .problematica-actions {
  display: flex;
  gap: 0.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.problematica-card:hover .problematica-actions {
  opacity: 1;
}

.problematica-card .problematica-titulo {
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  line-height: 1.3;
}

.problematica-preview {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.4;
}

.btn-icon {
  padding: 0.25rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.btn-icon.btn-editar {
  background: #ffc107;
  color: #333;
}

.btn-icon.btn-editar:hover {
  background: #e0a800;
}

.btn-icon.btn-eliminar {
  background: #dc3545;
  color: white;
}

.btn-icon.btn-eliminar:hover {
  background: #c82333;
}

.btn-icon:hover {
  transform: translateY(-1px);
}

/* Sección del organizador */
.organizador-section {
  margin-top: 3rem;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-agregar-organizador {
  background: #17a2b8;
  color: white;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  margin: 0 1rem 1.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-agregar-organizador:hover {
  background: #138496;
}

.vista-calendario {
  padding: 0 1rem 1rem 1rem;
}

.meses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.mes-card {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
}

.mes-card:hover {
  border-color: #1a73e8;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.1);
}

.mes-header {
  background: #1a73e8;
  color: white;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mes-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.contador-organizadores {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
}

.organizadores-lista {
  padding: 0.75rem;
  min-height: 100px;
  max-height: 200px;
  overflow-y: auto;
}

.organizador-item {
  background: white;
  border-radius: 6px;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.organizador-item:hover {
  border-color: #1a73e8;
  box-shadow: 0 1px 4px rgba(26, 115, 232, 0.1);
}

.organizador-item:last-child {
  margin-bottom: 0;
}

.organizador-problematica {
  font-weight: 500;
  color: #333;
  font-size: 0.85rem;
  cursor: pointer;
  flex: 1;
}

.organizador-acciones {
  display: flex;
  gap: 0.2rem;
}

.btn-mini {
  padding: 0.2rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.7rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.btn-ver {
  background: #17a2b8;
  color: white;
}

.btn-ver:hover {
  background: #138496;
}

.btn-mini.btn-editar {
  background: #ffc107;
  color: #333;
}

.btn-mini.btn-editar:hover {
  background: #e0a800;
}

.btn-mini.btn-eliminar {
  background: #dc3545;
  color: white;
}

.btn-mini.btn-eliminar:hover {
  background: #c82333;
}

.mes-vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #888;
  font-style: italic;
  min-height: 80px;
  gap: 0.3rem;
}

.mes-vacio i {
  opacity: 0.5;
  font-size: 1.5rem;
}

.mes-vacio span {
  font-size: 0.8rem;
}

.btn-agregar-mes {
  width: 100%;
  background: #28a745;
  color: white;
  border: none;
  padding: 0.6rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.btn-agregar-mes:hover {
  background: #218838;
}

/* Estilos específicos para desktop en SweetAlert del Plan Analítico */
@media (min-width: 769px) {
  .swal2-popup-grande .swal2-input,
  .swal2-popup-grande .swal2-textarea {
    font-size: 16px !important;
    padding: 14px 18px !important;
  }
  
  .swal2-popup-grande select.swal2-input {
    height: 50px !important;
    min-height: 50px !important;
    font-size: 16px !important;
  }
  
  .swal2-popup-grande {
    padding: 2.5rem !important;
  }
}

/* Estilos para Organizador del Plan Analítico */
.organizador-container {
  font-family: 'Quicksand', sans-serif;
  padding: 1rem;
  padding-top: 100px;
}

.organizador-header {
  text-align: center;
  margin-bottom: 2rem;
}

.organizador-header h2 {
  color: #1a73e8;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.organizador-header p {
  color: #666;
  font-size: 1.1rem;
}

.btn-agregar-organizador {
  background: #28a745;
  color: white;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-agregar-organizador:hover {
  background: #218838;
}

.vista-calendario {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.meses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.mes-card {
  background: #f8f9fa;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
}

.mes-card:hover {
  border-color: #1a73e8;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

.mes-header {
  background: #1a73e8;
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mes-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.contador-organizadores {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

.organizadores-lista {
  padding: 1rem;
  min-height: 150px;
  max-height: 250px;
  overflow-y: auto;
}

.organizador-item {
  background: white;
  border-radius: 8px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.organizador-item:hover {
  border-color: #1a73e8;
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.1);
}

.organizador-item:last-child {
  margin-bottom: 0;
}

.organizador-problematica {
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.3;
}

.organizador-acciones {
  display: flex;
  gap: 0.25rem;
  justify-content: flex-end;
}

.btn-mini {
  padding: 0.25rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.btn-ver {
  background: #17a2b8;
  color: white;
}

.btn-ver:hover {
  background: #138496;
}

.btn-mini.btn-editar {
  background: #ffc107;
  color: #333;
}

.btn-mini.btn-editar:hover {
  background: #e0a800;
}

.btn-mini.btn-eliminar {
  background: #dc3545;
  color: white;
}

.btn-mini.btn-eliminar:hover {
  background: #c82333;
}

.btn-mini:hover {
  transform: translateY(-1px);
}

.mes-vacio {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #888;
  font-style: italic;
  min-height: 100px;
  gap: 0.5rem;
}

.mes-vacio i {
  opacity: 0.5;
  font-size: 2rem;
}

.btn-agregar-mes {
  width: 100%;
  background: #28a745;
  color: white;
  border: none;
  padding: 0.75rem;
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-agregar-mes:hover {
  background: #218838;
}

/* Responsive para Organizador */
@media (max-width: 768px) {
  .organizador-container {
    padding: 0.5rem;
    padding-top: 80px;
  }
  
  .meses-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .mes-card {
    margin-bottom: 1rem;
  }
  
  .organizador-header h2 {
    font-size: 1.5rem;
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .organizador-acciones {
    flex-wrap: wrap;
  }
}