/* --- 1. CONFIGURACIÓN BASE --- */
body {
    background-color: #e6e6e6; 
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    padding: 10px;
}

.main-content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* --- 2. BLOQUE SUPERIOR (LOGO Y BUSCADOR) --- */
.header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; 
    width: 100%;
    max-width: 650px;
}

.main-logo {
    width: 150px;
    height: auto;
    display: block;
}

.chat-bar-main {
    display: flex;
    align-items: flex-end;
    background-color: #d1d1d1;
    padding: 10px;
    border-radius: 40px;
    width: 100%;
    box-shadow: 0 10px 20px rgba(0,0,0,0.14);
    box-sizing: border-box;
}

.chat-input-area {
    flex-grow: 1;
    background-color: #f9f9f9;
    border-radius: 25px;
    border: none;
    padding: 12px 20px;
    outline: none;
    font-size: 11px; /* Sincronizado con disclaimer-text */
    color: #555;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    resize: none;
    line-height: 1.4;
    height: 22px; 
    overflow-y: hidden;
    font-family: inherit;
}

.chat-send-btn {
    margin-left: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    border: none;
    background: none;
    display: flex;
}

.chat-send-btn svg {
    fill: #ffffff;
    width: 30px;
    height: 30px;
    transform: rotate(-15deg);
}

.disclaimer-text {
    color: #a0a0a0;
    font-size: 11px;
    text-align: center;
    margin-top: 5px;
    width: 90%;
    line-height: 1.4;
    font-style: italic;
}

/* --- 3. BLOQUE DE BOTONES (ESTILOS Y ANIMACIONES) --- */
.buttons-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px; 
    width: 100%;
    max-width: 500px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.btn-link {
    text-decoration: none;
    color: inherit;
    flex: 0 0 calc(33.333% - 10px);
    max-width: 88px; /* Reducido de 110px a 88px (20% menos) */
}

.btn-blog-body, .btn-bus-body, .btn_news-body {
    width: 100%;
    aspect-ratio: 1 / 1.5;
    background-color: #cbcbcb;
    border-radius: 16px; /* Ajuste proporcional del radio */
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -4px 4px 8px rgba(0, 0, 0, 0.1), 4px -4px 8px rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.blog-img-file, .bus-img, .btn_news-img {
    width: 50%;
    height: auto;
}

.btn-link:hover .btn-blog-body, 
.btn-link:hover .btn-bus-body, 
.btn-link:hover .btn_news-body {
    transform: translateY(-5px) scale(1.02);
    box-shadow: -10px 10px 20px rgba(0, 0, 0, 0.1), 5px -5px 15px rgba(255, 255, 255, 0.7);
}

/* --- 4. FOOTER --- */
.main-footer {
    width: 100%;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: #8e8e8e;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.footer-copy {
    color: #b0b0b0;
    font-size: 10px;
    margin: 0;
}

/* --- 5. ADAPTACIÓN PARA MONITORES (ESCRITORIO) --- */
@media (min-width: 1024px) {
    .main-logo { width: 256px; margin-bottom: 20px; }
    .buttons-row { margin-top: 50px; gap: 40px; max-width: 800px; }
    
    .btn-link { flex: 0 0 90px; }
    
    .btn-blog-body, .btn-bus-body, .btn_news-body { 
        width: 90px; 
        height: 132px; 
        border-radius: 24px; 
    }
    
    .blog-img-file, .bus-img, .btn_news-img { width: 36px; }
    
    .chat-input-area { font-size: 16px; padding: 15px 25px; height: 30px; }
    
    .disclaimer-text { font-size: 13px; }
}
