body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fbfbfb;
  }
  header{
    background-color: #1f1f1f;
  }

  .header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 100px; 
}

.logo-container {
    text-align: center;
}

.logo {
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}

  nav {
    background-color: #333;
    padding: 10px;
    text-align: center;
  }

  nav a {
    color: rgba(255, 255, 255, 0.959);
    text-decoration: none;
    margin: 0 15px;
  }

  main {
    padding: 40px;
    text-align: center;
  }
  section {
margin-top: 40px;
}

ul {
list-style-type: square;
text-align: left;
max-width: 600px;
margin: 0 auto;
font-size: 18px;
}

.hero-banner {
      background-color: #28539c;
      color: white;
      padding: 60px 20px;
      margin-bottom: 40px;
    }
    
    .services-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
      margin-top: 40px;
    }
    
    .service-card {
      background-color: white;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      padding: 20px;
      transition: transform 0.3s ease;
    }
    
    .service-card:hover {
      transform: translateY(-10px);
    }
    
    .service-card h3 {
      color: #2a5298;
      margin-top: 0;
    }
    
    .service-icon {
      font-size: 48px;
      color: #2a5298;
      margin-bottom: 15px;
    }
    
    .cta-button {
      display: inline-block;
      background-color: #2a5298;
      color: white;
      padding: 12px 24px;
      border-radius: 4px;
      text-decoration: none;
      margin-top: 15px;
      transition: background-color 0.3s ease;
    }
    
    .cta-button:hover {
      background-color: rgba(255, 255, 255, 0.285);
    }
    
    /* Estilos para la sección de clientes */
.clients-section {
  padding: 2rem 0;
}

.client-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
  justify-items: center;
}

.client-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.client-logo:hover {
  transform: translateY(-5px);
}

/* Tamaño uniforme para todas las imágenes */
.client-logo img {
  width: 120px;
  height: 80px;
  object-fit: contain;
  object-position: center;
  margin-bottom: 0.5rem;
  filter: grayscale(0%);
  transition: filter 0.3s ease;
}

.client-logo:hover img {
  filter: grayscale(0%);
}

/* Estilos para los nombres de los clientes */
.client-logo span {
  font-size: 0.9rem;
  font-weight: 500;
  color:#1435ba;
  max-width: 150px;
  line-height: 1.3;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
  .client-logos {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
  }
  
  .client-logo img {
    width: 100px;
    height: 70px;
  }
  
  .client-logo span {
    font-size: 0.8rem;
    max-width: 120px;
  }
}
    
    .contact-form {
      max-width: 600px;
      margin: 0 auto;
      background-color: white;
      padding: 30px;
      border-radius: 8px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }
    
    .form-group {
      margin-bottom: 20px;
    }
    
    .form-group label {
      display: block;
      margin-bottom: 5px;
      font-weight: bold;
    }
    
    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 10px;
      border: 1px solid #ddd;
      border-radius: 4px;
    }
    
    .form-group textarea {
      height: 150px;
    }
    
    footer {
      background-color: #1f1f1f;
      color: white;
      padding: 40px 20px;
      margin-top: 60px;
      text-align: center;
    }
    
    .footer-content {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 30px;
      max-width: 1200px;
      margin: 0 auto;
      text-align: left;
    }
    
    .footer-section h3 {
      margin-top: 0;
      border-bottom: 2px solid #2a5298;
      padding-bottom: 10px;
      display: inline-block;
    }
    
    .social-links {
      display: flex;
      gap: 15px;
      margin-top: 15px;
    }
    
    .social-icon {
      width: 40px;
      height: 40px;
      background-color: #2a5298;
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      text-decoration: none;
    }
    
    
    .tab-content {
      display: none;
    }
    
    .tab-content.active {
      display: block;
    }

    /* ESTILOS DEL CHATBOT */
    .chatbot-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
    }

    .chat-popup {
        position: absolute;
        bottom: 80px;
        right: 0;
        width: 350px;
        max-height: 550px;
        background: white;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        display: none;
        overflow: hidden;
        animation: chatSlideUp 0.3s ease;
        border: 2px solid #2a5298;
    }

    @keyframes chatSlideUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .chat-header {
        background: linear-gradient(135deg, #2a5298 0%, #1c3a6b 100%);
        color: white;
        padding: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .chat-header h3 {
        margin: 0;
        font-size: 1.1em;
        font-weight: bold;
    }

    .close-btn {
        background: none;
        border: none;
        color: white;
        font-size: 1.5em;
        cursor: pointer;
        padding: 0;
        width: 25px;
        height: 25px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: background-color 0.3s ease;
    }

    .close-btn:hover {
        background-color: rgba(255,255,255,0.2);
    }

    .chat-body {
        padding: 20px;
        max-height: 450px;
        overflow-y: auto;
    }

    .bot-message {
        background: #f8f9fa;
        padding: 15px;
        border-radius: 15px;
        margin-bottom: 15px;
        position: relative;
        border-left: 4px solid #2a5298;
        font-size: 14px;
        line-height: 1.4;
    }

    .bot-message strong {
        color: #2a5298;
    }

    .chat-form-container {
        margin-top: 15px;
    }

    .chat-form-group {
        margin-bottom: 15px;
    }

    .chat-form-group label {
        display: block;
        margin-bottom: 5px;
        color: #333;
        font-weight: bold;
        font-size: 13px;
    }

    .chat-form-group input,
    .chat-form-group textarea,
    .chat-form-group select {
        width: 100%;
        padding: 10px;
        border: 2px solid #e1e1e1;
        border-radius: 8px;
        font-size: 14px;
        transition: border-color 0.3s ease;
        box-sizing: border-box;
    }

    .chat-form-group input:focus,
    .chat-form-group textarea:focus,
    .chat-form-group select:focus {
        outline: none;
        border-color: #2a5298;
    }

    .chat-form-group textarea {
        resize: vertical;
        min-height: 60px;
    }

    .chat-submit-btn {
        width: 100%;
        padding: 12px;
        background: linear-gradient(135deg, #2a5298 0%, #1c3a6b 100%);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: bold;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

    .chat-submit-btn:hover {
        transform: translateY(-2px);
    }

    .chat-submit-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
    }

    .chat-trigger {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        background: linear-gradient(135deg, #2a5298 0%, #1c3a6b 100%);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 15px rgba(42, 82, 152, 0.4);
        transition: transform 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .chat-trigger:hover {
        transform: scale(1.1);
    }

    .chat-trigger::before {
        content: '💬';
        font-size: 24px;
        position: absolute;
    }

    .chat-success-message {
        background: #d4edda;
        color: #155724;
        padding: 15px;
        border-radius: 8px;
        border-left: 4px solid #28a745;
        margin-top: 15px;
        text-align: center;
        font-size: 14px;
        line-height: 1.4;
    }

    .chat-pulse {
        animation: chatPulse 2s infinite;
    }

    @keyframes chatPulse {
        0% {
            box-shadow: 0 4px 15px rgba(42, 82, 152, 0.4);
        }
        50% {
            box-shadow: 0 4px 25px rgba(42, 82, 152, 0.7);
        }
        100% {
            box-shadow: 0 4px 15px rgba(42, 82, 152, 0.4);
        }
    }

    /* Estadísticas animadas (agregadas para mejorar la página) */
    .stats-section {
        background: linear-gradient(135deg, #2a5298 0%, #1c3a6b 100%);
        color: white;
        padding: 60px 20px;
        margin: 40px 0;
    }

    .stats-container {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 30px;
        max-width: 1000px;
        margin: 0 auto;
    }

    .stat-item {
        text-align: center;
        padding: 20px;
    }

    .counter {
        font-size: 3em;
        font-weight: bold;
        margin-bottom: 10px;
        color: #fff;
    }

    .stat-title {
        font-size: 1.1em;
        opacity: 0.9;
    }

    /* Por qué elegirnos */
    .why-choose-us {
        margin: 60px 0;
        padding: 0 20px;
    }

    .why-choose-us h2 {
        color: #2a5298;
        margin-bottom: 40px;
    }

    .features-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
        max-width: 1200px;
        margin: 0 auto;
    }

    .feature-card {
        background: white;
        padding: 30px 20px;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        text-align: center;
        transition: transform 0.3s ease;
        border-top: 4px solid #2a5298;
    }

    .feature-card:hover {
        transform: translateY(-5px);
    }

    .feature-icon {
        font-size: 3em;
        margin-bottom: 20px;
    }

    .feature-card h3 {
        color: #2a5298;
        margin-bottom: 15px;
    }

    .feature-card p {
        color: #666;
        line-height: 1.6;
    }

    /* CTA Section */
    .cta-section {
        background-color: #28539c;
        padding: 60px 20px;
        margin: 40px 0;
        border-radius: 10px;
    }

    .cta-section h2 {
        color: #ffffff;
        margin-bottom: 20px;
    }

    .cta-section p {
        font-size: 1.2em;
        color: white;
        margin-bottom: 30px;
    }

    /* Estados de validación */
    .form-group input.error,
    .form-group textarea.error,
    .form-group select.error {
        border-color: #e74c3c;
        background-color: #fdf2f2;
    }

    .form-group input.success,
    .form-group textarea.success,
    .form-group select.success {
        border-color: #28a745;
        background-color: #f2f8f2;
    }