/* ==============================
Archivo: index.css
Ubicación: /
Descripción: Estilos para la página de inicio pública (index.php)
============================== */

/* ==============================
RESET GLOBAL
============================== */
* {
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background: #f9f9f9;
    color: #222;
    overflow-x: hidden; /* 🔒 Previene scroll lateral */
  }
  
  h1, h2, h3 {
    font-weight: 700;
  }
  
  a {
    text-decoration: none;
    color: #0056b3;
  }
  
  /* ==============================
  SECCIÓN: HERO
  ============================== */
  #hero {
    background: linear-gradient(to right, #0056b3, #007bff);
    color: #fff;
    padding: 100px 20px;
    text-align: center;
  }
  
  .hero-container h1 {
    font-size: 36px;
    margin-bottom: 10px;
  }
  
  .hero-container p {
    font-size: 18px;
    margin-bottom: 20px;
  }
  
  .btn-principal {
    background-color: #fff;
    color: #0056b3;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
  }
  
  .btn-principal:hover {
    background-color: #f1f1f1;
  }
  
  /* ==============================
  SECCIÓN: MÓDULOS
  ============================== */
  #modulos {
    padding: 60px 30px;
    text-align: center;
    background-color: #fff;
  }
  
  .modulos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
  }
  
  .modulo {
    background: #f2f2f2;
    border-radius: 12px;
    padding: 20px;
    width: 250px;
    max-width: 90vw;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  
  .modulo img {
    height: 50px;
    margin-bottom: 15px;
  }
  
  /* ==============================
  SECCIÓN: IA DEMO
  ============================== */
  #demo-ia {
    padding: 60px 30px;
    background-color: #eef5ff;
    text-align: center;
  }
  
  .demo-chat {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  }
  
  #chat-output {
    min-height: 100px;
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 14px;
    background: #fefefe;
  }
  
  #userInput {
    width: 80%;
    padding: 10px;
    margin-right: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
  }
  
  .ejemplo-texto {
    font-style: italic;
    color: #666;
    margin-top: 10px;
  }
  
  /* ==============================
  SECCIÓN: REGISTRO
  ============================== */
  #registro {
    padding: 60px 30px;
    text-align: center;
    background-color: #fff;
  }
  
  .btn-secundario {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
  }
  
  /* ==============================
  SECCIÓN: FOOTER
  ============================== */
  .footer {
    background: #222;
    color: #ccc;
    padding: 40px 30px;
  }
  
  .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
  }
  
  .footer-col {
    flex: 1;
    min-width: 200px;
  }
  
  .footer-col h4 {
    color: #fff;
    margin-bottom: 10px;
  }
  
  .footer-col a {
    color: #ccc;
    font-size: 14px;
  }
  
  /* ==============================
  RESPONSIVIDAD
  ============================== */
  @media (max-width: 768px) {
    #hero,
    #modulos,
    #demo-ia,
    #registro {
      padding: 40px 20px;
    }
  
    .modulos-grid {
      flex-direction: column;
      gap: 20px;
      align-items: center;
    }
  
    .modulo {
      width: 100%;
      max-width: 320px;
    }
  
    #userInput {
      width: 100%;
      margin-bottom: 10px;
    }
  
    .footer-container {
      flex-direction: column;
      gap: 20px;
    }
  }
  
  