:root {
        --primary-color: #3498db;
        --secondary-color: #2c3e50;
        --accent-color: #e74c3c;
        --light-color: #f8f9fa;
        --dark-color: #343a40;
        --success-color: #28a745;
      }

      body {
        font-family: 'Poppins', sans-serif;
        background-color: #f5f7fa;
        color: #333;
        margin: 0;
        padding: 0;
        overflow-x: hidden;
      }

      /* Header Styles */
      .site-header {
        background-color: var(--secondary-color);
        padding: 1rem 0;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        position: sticky;
        top: 0;
        z-index: 1000;
      }

      .header-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 2rem;
      }

      .site-branding img {
        max-height: 60px;
        transition: transform 0.3s ease;
      }

      .site-branding img:hover {
        transform: scale(1.05);
      }

      .main-navigation ul {
        display: flex;
        list-style: none;
        margin: 0;
        padding: 0;
      }

      .main-navigation li {
        margin-left: 2rem;
      }

      .main-navigation a {
        color: #fff;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
        font-size: 1rem;
      }

      .main-navigation a:hover {
        color: var(--primary-color);
      }

      .contact-info {
        display: flex;
        align-items: center;
        color: #fff;
      }

      .contact-info i {
        margin-right: 0.5rem;
        color: var(--primary-color);
      }

      /* Main Content Styles */
      .main-content {
        padding: 4rem 0;
      }

      /* Hero Banner with Education/Welding Images */
      .hero-banner {
        position: relative;
        height: 300px;
        background: linear-gradient(rgb(52 152 219), rgb(0 1 39 / 82%)), url(../../public/welding-banner.jpg);
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 3rem;
        border-radius: 10px;
        overflow: hidden;
      }

      .hero-content {
        text-align: center;
        color: white;
        z-index: 10;
        padding: 0 1rem;
      }

      .hero-content h1 {
        font-size: 2.8rem;
        margin-bottom: 1rem;
        font-weight: 700;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
      }

      .hero-content p {
        font-size: 1.2rem;
        max-width: 700px;
        margin: 0 auto;
        text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
      }

      /* Features Section */
      .features-section {
        margin-bottom: 3rem;
      }

      .features-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 20px;
      }

      .feature-card {
        flex: 1 1 300px;
        background-color: white;
        padding: 1.5rem;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        text-align: center;
        transition: transform 0.3s ease;
      }

      .feature-card:hover {
        transform: translateY(-10px);
      }

      .feature-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 1rem;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: var(--light-color);
        color: var(--primary-color);
        font-size: 2rem;
      }

      .feature-card h3 {
        margin-bottom: 1rem;
        color: var(--secondary-color);
      }

      .feature-card p {
        color: #6c757d;
        font-size: 0.95rem;
      }

      .search-container {
        background-color: white;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        margin-bottom: 3rem;
        transition: transform 0.3s ease;
      }

      .search-container:hover {
        transform: translateY(-5px);
      }

      .section-title {
        text-align: center;
        margin-bottom: 2rem;
        color: var(--secondary-color);
      }

      .section-title h2 {
        font-size: 2rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
      }

      .section-title p {
        font-size: 1.1rem;
        color: #6c757d;
      }

      .search-box {
        position: relative;
        max-width: 500px;
        margin: 0 auto;
      }

      .search-input {
        width: 100%;
        padding: 1rem 1.5rem;
        border-radius: 50px;
        border: 1px solid #ddd;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
      }

      .search-input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 2px 12px rgba(52, 152, 219, 0.2);
        outline: none;
      }

      .search-btn {
        position: absolute;
        right: 5px;
        top: 5px;
        background-color: var(--primary-color);
        border: none;
        border-radius: 50px;
        color: white;
        padding: 0.7rem 1.5rem;
        font-size: 1rem;
        cursor: pointer;
        transition: background-color 0.3s ease;
      }

      .search-btn:hover {
        background-color: #2980b9;
      }

      /* Certificate Panels */
      .certificate-panel {
        background-color: white;
        border-radius: 10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
        padding: 2rem;
        margin-bottom: 2rem;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.5s ease;
      }

      .certificate-panel.visible {
        opacity: 1;
        transform: translateY(0);
      }

      .panel-header {
        margin-bottom: 1.5rem;
        border-bottom: 1px solid #eee;
        padding-bottom: 1rem;
      }

      .panel-header h2 {
        color: var(--secondary-color);
        font-size: 1.5rem;
        font-weight: 600;
      }

      .panel-description {
        color: #6c757d;
        margin-bottom: 1.5rem;
      }

      /* Enhanced Responsive Tables */
      .responsive-table {
        width: 100%;
        overflow-x: auto;
      }

      /* Estilos comunes para ambas tablas */
      .certificate-table {
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 10px;
        table-layout: fixed; /* Importante para anchos fijos de columna */
      }

      .certificate-table thead th {
        background-color: #f8f9fa;
        color: var(--secondary-color);
        font-weight: 600;
        padding: 1rem;
        text-align: left;
        border: none;
      }

      /* Definición de ancho de columnas */
      .certificate-table th:nth-child(1), 
      .certificate-table td:nth-child(1) {
        width: 45% !important; /* Ancho fijo para título/nombre */
      }

      .certificate-table th:nth-child(2), 
      .certificate-table td:nth-child(2) {
        width: 10% !important; /* Ancho fijo para fechas */
      }

      .certificate-table th:nth-child(3), 
      .certificate-table td:nth-child(3) {
        width: 10% !important; /* Ancho fijo para fechas */
      }

      .certificate-table th:nth-child(4), 
      .certificate-table td:nth-child(4) {
        width: 10% !important; /* Ancho fijo para botón */
        text-align: center;
      }

      .certificate-table tbody tr {
        background-color: white;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
        transition: transform 0.2s ease;
      }

      .certificate-table tbody tr:hover {
        transform: translateY(-3px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
      }

      .certificate-table td {
        padding: 1rem;
        border-top: none;
        border-bottom: none;
        vertical-align: middle;
      }

      /* Estilos para título/nombre del curso */
      .title-column {
        font-weight: 500;
        color: var(--secondary-color);
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto; /* Permitir guiones automáticos para palabras largas */
      }

      /* Estilos para fechas */
      .date-column {
        white-space: nowrap;
      }

      /* Estilos para botón */
      .button-column {
        text-align: center;
      }

      .certificate-btn {
        border-radius: 50px;
        padding: 0.5rem 1rem;
        border: none;
        background-color: var(--primary-color);
        color: white;
        font-weight: 500;
        transition: all 0.3s ease;
        white-space: nowrap;
      }

      .certificate-btn:hover {
        background-color: #2980b9;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      }

      /* WhatsApp Button */
      .whatsapp-button {
        position: fixed;
        bottom: 30px;
        right: 30px;
        background-color: #25d366;
        color: white;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 30px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        z-index: 1000;
        text-decoration: none;
      }

      .whatsapp-button:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
      }

      /* Loading Animation */
      .loader {
        display: none;
        margin: 2rem auto;
        text-align: center;
      }

      .loader i {
        color: var(--primary-color);
        font-size: 2rem;
        animation: spin 1s infinite linear;
      }

      @keyframes spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
      }

      /* Footer */
      .site-footer {
        background-color: var(--secondary-color);
        color: white;
        padding: 3rem 0 2rem;
        margin-top: 4rem;
      }

      .footer-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
      }

      .footer-section {
        flex: 1 1 300px;
        margin-bottom: 2rem;
      }

      .footer-section h3 {
        color: white;
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
        position: relative;
      }

      .footer-section h3:after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -10px;
        width: 50px;
        height: 2px;
        background-color: var(--primary-color);
      }

      .footer-links {
        list-style: none;
        padding: 0;
        margin: 0;
      }

      .footer-links li {
        margin-bottom: 10px;
      }

      .footer-links a {
        color: #ddd;
        text-decoration: none;
        transition: color 0.3s ease;
      }

      .footer-links a:hover {
        color: var(--primary-color);
      }

      .contact-info-footer {
        margin-bottom: 10px;
        display: flex;
        align-items: center;
      }

      .contact-info-footer i {
        color: var(--primary-color);
        margin-right: 10px;
        width: 20px;
      }

      .footer-bottom {
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 20px;
      }

      /* Custom Styles for DataTables */
      .dataTables_wrapper .dataTables_filter {
        margin-bottom: 1.5rem;
      }

      .dataTables_wrapper .dataTables_filter input {
        border-radius: 50px;
        border: 1px solid #ddd;
        padding: 0.5rem 1rem;
        margin-left: 0.5rem;
      }

      .dataTables_wrapper .dataTables_length select {
        border-radius: 20px;
        border: 1px solid #ddd;
        padding: 0.3rem 1rem;
      }
      
      /* Importante: asegurar que las celdas de DataTables mantengan el ancho fijo */
      table.dataTable {
        table-layout: fixed !important;
        width: 100% !important;
      }
      
      table.dataTable thead th, 
      table.dataTable thead td {
        padding: 1rem !important;
      }
      
      table.dataTable tbody td {
        padding: 1rem !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
      }

      /* Responsive Styles */
      @media (max-width: 992px) {
        .header-container {
          flex-direction: column;
          padding: 1rem;
        }

        .site-branding {
          margin-bottom: 1rem;
        }

        .main-navigation ul {
          margin-top: 1rem;
        }

        .main-navigation li {
          margin-left: 1rem;
          margin-right: 1rem;
        }

        .hero-content h1 {
          font-size: 2.2rem;
        }

        .feature-card {
          flex: 1 1 100%;
        }
      }

      @media (max-width: 768px) {
        .main-content {
          padding: 2rem 0;
        }

        .hero-banner {
          height: 250px;
        }

        .search-container {
          padding: 1.5rem;
        }

        .main-navigation ul {
          flex-direction: column;
          text-align: center;
        }

        .main-navigation li {
          margin: 0.5rem 0;
        }

        .contact-info {
          margin-top: 1rem;
          justify-content: center;
        }

        .search-btn {
          padding: 0.7rem 1rem;
        }

        .panel-header h2 {
          font-size: 1.3rem;
        }
        
        /* Ajustar tabla en pantallas medianas */
        .certificate-table th:nth-child(1), 
        .certificate-table td:nth-child(1) {
          width: 35%;
        }
        
        .certificate-table th:nth-child(2), 
        .certificate-table td:nth-child(2),
        .certificate-table th:nth-child(3), 
        .certificate-table td:nth-child(3) {
          width: 22.5%;
        }
        
        .certificate-table th:nth-child(4), 
        .certificate-table td:nth-child(4) {
          width: 20%;
        }
      }

      @media (max-width: 576px) {
        .search-input {
          padding: 0.8rem 1rem;
        }

        .search-btn {
          padding: 0.5rem 0.8rem;
          font-size: 0.9rem;
        }

        .section-title h2 {
          font-size: 1.5rem;
        }

        .section-title p {
          font-size: 1rem;
        }

        .certificate-panel {
          padding: 1.5rem;
        }

        .hero-content h1 {
          font-size: 1.8rem;
        }

        .hero-content p {
          font-size: 1rem;
        }
        
        /* Ajustar tamaños de fuente en tablas para móviles */
        .certificate-table {
          font-size: 0.9rem;
        }
        
        .certificate-table th, 
        .certificate-table td {
          padding: 0.75rem !important;
        }
        
        /* Mantener la estructura en pantallas muy pequeñas */
        .certificate-table th:nth-child(1), 
        .certificate-table td:nth-child(1) {
          width: 30%;
        }
        
        .certificate-table th:nth-child(2), 
        .certificate-table td:nth-child(2),
        .certificate-table th:nth-child(3), 
        .certificate-table td:nth-child(3) {
          width: 25%;
        }
        
        .certificate-table th:nth-child(4), 
        .certificate-table td:nth-child(4) {
          width: 20%;
        }
        
        .certificate-btn {
          padding: 0.4rem 0.8rem;
          font-size: 0.8rem;
        }
      }

/* Estilos para badges de estado */
.status-column {
  text-align: center;
}

.badge {
  padding: 0.35em 0.8em;
  font-size: 0.85em;
  font-weight: 500;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.badge i {
  font-size: 0.9em;
}

.bg-success {
  background-color: #28a745 !important;
  color: white !important;
}

.bg-danger {
  background-color: #dc3545 !important;
  color: white !important;
}

.bg-primary {
  background-color: #007bff !important;
  color: white !important;
}

/* Ajuste de columnas para tabla con estado */
#cursos_data th:nth-child(1), 
#cursos_data td:nth-child(1) {
  width: 35% !important;
}

#cursos_data th:nth-child(2), 
#cursos_data td:nth-child(2) {
  width: 15% !important;
}

#cursos_data th:nth-child(3), 
#cursos_data td:nth-child(3) {
  width: 15% !important;
}

#cursos_data th:nth-child(4), 
#cursos_data td:nth-child(4) {
  width: 25% !important;
  text-align: center;
}

#cursos_data th:nth-child(5), 
#cursos_data td:nth-child(5) {
  width: 10% !important;
  text-align: center;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .badge {
    font-size: 0.75em;
    padding: 0.25em 0.6em;
  }
  
  #cursos_data th:nth-child(4), 
  #cursos_data td:nth-child(4) {
    width: 30% !important;
  }
}