/* Preconsulta.css - Versión Corregida */

/* Variables CSS personalizadas */
:root {
    --primary-blue: #667eea;
    --primary-green: #60efbc;
    --glassmorphism-bg: rgba(255, 255, 255, 0.05);
    --glassmorphism-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-light: #666;
    --white: #ffffff;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Header y menú superior */
.parte1 {
    position: relative;
    top: 0;
    z-index: 100;
}

.menusuperior {
    background: var(--glassmorphism-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glassmorphism-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.div1 {
    display: flex;
    align-items: center;
}

.icon {
    height: 50px;
    width: auto;
    transition: var(--transition);
}

.icon:hover {
    transform: scale(1.05);
}

.menu {
    background: var(--glassmorphism-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glassmorphism-border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.botonsup {
    background: var(--glassmorphism-bg);
    border: 1px solid var(--glassmorphism-border);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.botonsup:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.botonsup i {
    color: white;
}

/* Contenido principal */
.preconsulta-main {
    padding: 4rem 2rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.preconsulta-hero {
    text-align: center;
    margin-bottom: 4rem;
}

.preconsulta-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.preconsulta-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.preconsulta-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Sección de chatbot */
.chatbot-section {
    margin: 4rem 0;
}

.chatbot-container {
    background: var(--glassmorphism-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glassmorphism-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin: 0 auto;
}

/* Mensajes de bienvenida */
.chatbox {
    margin-bottom: 2rem;
}

.message {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    color: white;
    font-size: 1rem;
    line-height: 1.6;
}

.message strong {
    color: var(--primary-green);
}

/* Chat interativo */
.interactive-chat {
    min-height: 400px;
    max-height: 600px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bot {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    color: white;
    border-radius: 18px 18px 18px 5px;
    padding: 1rem 1.5rem;
    margin: 0.5rem 0;
    margin-right: 2rem;
    font-size: 1rem;
    line-height: 1.5;
}

.user {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 18px 18px 5px 18px;
    padding: 1rem 1.5rem;
    margin: 0.5rem 0;
    margin-left: 2rem;
    font-size: 1rem;
    text-align: right;
}

/* Área de input */
.input-area {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 25px;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.input-area input {
    flex: 1;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    padding: 1rem 1.5rem;
    outline: none;
}

.input-area input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.send-button {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.send-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Botones de opciones de respuesta */
.option-button {
    background: var(--glassmorphism-bg);
    border: 1px solid var(--glassmorphism-border);
    border-radius: 25px;
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    margin: 0.5rem 0.3rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
    font-weight: 500;
    display: inline-block;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 120px;
    text-align: center;
}

.option-button:hover {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border-color: var(--primary-green);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

.option-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.option-button:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(96, 239, 188, 0.3);
}

/* Botão de envio final */
.btn-submit-chat {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-green));
    border: none;
    border-radius: 25px;
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-submit-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Sección de información */
.info-section {
    margin: 4rem 0;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.info-card {
    background: var(--glassmorphism-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glassmorphism-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.info-card h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.info-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--glassmorphism-bg);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--glassmorphism-border);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .preconsulta-title {
        font-size: 2rem;
    }
    
    .preconsulta-subtitle {
        font-size: 1.2rem;
    }
    
    .preconsulta-main {
        padding: 2rem 1rem;
    }
    
    .menu {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .botonsup {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .option-button {
        display: block;
        width: 100%;
        margin: 0.3rem 0;
    }
}