/* =========================================
   1. CONFIGURACIÓN Y VARIABLES
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;700&family=Inter:wght@400;700&display=swap');

:root {
    --primary-grad: linear-gradient(135deg, #0d6efd 0%, #003a94 100%);
    --dark-bg: #0f172a;
    --glass-bg: rgba(15, 23, 42, 0.9);
    --info-color: #0dcaf0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #a9baca;
    color: #1e293b;
    overflow-x: hidden;
}

/* =========================================
   2. NAVEGACIÓN Y HERO
   ========================================= */
.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
}

.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 100px 0;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 202, 240, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* =========================================
   3. COMPONENTES (BOTONES, BUSCADOR, CARDS)
   ========================================= */
.search-box {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
}

.search-box input {
    background: transparent;
    border: none;
    color: white;
    padding-left: 10px;
    outline: none;
    font-size: 0.9rem;
}

.search-box i { color: var(--info-color); }

.btn-primary {
    background: var(--primary-grad);
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

.card {
    border: none;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    background: #fff;
    transform: translateY(-10px);
}

.card-body .cualidades {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: rgba(13, 202, 240, 0.1);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    transition: 0.3s;
}

.card:hover .cualidades {
    background: var(--info-color);
    color: white !important;
    transform: rotate(-5deg);
}

/* Estilo del Formulario */
.form-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 30px;
}

.custom-input {
    border-radius: 12px;
    padding: 12px 15px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.custom-input:focus {
    border-color: #0dcaf0;
    box-shadow: 0 0 0 4px rgba(13, 202, 240, 0.1);
}

/* Estilo para los botones de opción (Radio modernos) */
.btn-check:checked + .btn-outline-primary {
    background: var(--primary-grad);
    border-color: transparent;
}

.btn-check:checked + .btn-light {
    background-color: #0dcaf0 !important;
    color: white !important;
    border-color: #0dcaf0 !important;
}

.custom-radio .form-check-input:checked {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
}

.form-label {
    font-size: 0.95rem;
    color: #475569;
}

/* =========================================
   4. CHATBOT FLOTANTE (DIEGO)
   ========================================= */
.chat-launcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: var(--primary-grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.chat-launcher:hover { transform: scale(1.1) rotate(5deg); }

.chat-container { 
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-width: 90vw;
    z-index: 1000;
    height: 500px;
    background: white;
    border-radius: 20px;
    display: flex; 
    flex-direction: column; 
    overflow: hidden;
    animation: slideUp 0.4s ease-out;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-header { 
    background: #2c3e50; 
    color: white; 
    padding: 15px 20px; 
    font-weight: bold;
    border-bottom: 3px solid #c9ad6a;
}

.chat-box { 
    flex: 1; 
    padding: 15px; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    background-color: #fdfdfd;
}

.message {
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-message { 
    background: var(--info-color); 
    color: white; 
    align-self: flex-end; 
    border-bottom-right-radius: 2px; 
}

.bot-message { 
    background: #f1f5f9; 
    color: #2c3e50; 
    align-self: flex-start; 
    border-bottom-left-radius: 2px; 
    border: 1px solid #e2e8f0;
}

.input-area { 
    display: flex; 
    padding: 15px;
    background: white;
    border-top: 1px solid #eee; 
}

.input-area input { 
    flex: 1; 
    padding: 10px 15px; 
    border: 1px solid #ddd; 
    border-radius: 25px;
    outline: none; 
}

.input-area button { 
    margin-left: 8px;
    padding: 10px 18px; 
    background: #2c3e50; 
    color: white; 
    border: none; 
    border-radius: 25px;
    transition: background 0.3s;
}

.input-area button:hover { background: #34495e; }

.flag-icon {
    height: 25px;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.d-none { display: none !important; }

/* =========================================
   5. PÁGINAS LEGALES (Aviso y Privacidad)
   ========================================= */
.legal-content {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    line-height: 1.8;
}

.legal-content h1, .legal-content h2 {
    color: var(--dark-bg);
    margin-top: 2rem;
}

.legal-content p, .legal-content li {
    color: #475569;
    font-size: 1.05rem;
}

#cookie-banner {
    border-top: 3px solid var(--info-color);
    backdrop-filter: blur(15px);
    background: rgba(15, 23, 42, 0.95) !important;
}