.index-hero-section,
.index-welcome-section {
    display: flex;
    background: #fff;
    color: #222;
    border-radius: 14px;
    margin: 2rem auto;
    max-width: 90vw;    /* Canviat de 1100px a 90vw */
    padding: 2rem;
    align-items: center;
    box-shadow: 0 2px 8px #0001;
    width: 90vw;        /* Força el width al 90% de la pantalla */
}

.index-hero-section {
    background: #c62828;
    color: #fff;
    box-shadow: 0 2px 8px #0002;
}

.index-hero-left, .index-welcome-content, .user-type-section {
    flex: 1;
}

.index-main-text {
    font-size: 1.5rem;
    font-weight: 700;
}

.index-secondary-text {
    margin: 1rem 0 2rem 0;
}

.index-hero-img, .index-welcome-img img {
    max-width: 180px;
    width: 100%;
    height: auto;
    display: block;
}

.index-welcome-img {
    margin-right: 2rem;
    flex-shrink: 0;
}

.index-welcome-title {
    font-size: 1.3rem;
    font-weight: 700;
}

.index-welcome-desc {
    margin: 1rem 0 2rem 0;
}

.index-login-btn, .index-dash-btn {
    background: #fff;
    color: #c62828;
    font-weight: bold;
    padding: .7em 2em;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background .2s, color .2s;
}

.index-login-btn:hover { background: #e53935; color: #fff; }
.index-dash-btn { background: #c62828; color: #fff; }
.index-dash-btn:hover { background: #b71c1c; }

@media (max-width: 800px) {
    .index-hero-section,
    .index-welcome-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.2rem;
        width: 90%;
    }
    .index-hero-img,
    .index-welcome-img img {
        max-width: 120px;
        margin-bottom: 1rem;
    }
    .index-welcome-img {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    .index-main-text {
        font-size: 1.1rem;
    }
    .index-welcome-title {
        font-size: 1.1rem;
    }
    .index-welcome-desc {
        margin: 0.5rem 0 1rem 0;
    }
}



/* README / Important Information Section */
.index-readme-section {
    display: flex;
    flex-direction: column;
    background: #fff;
    color: #222;
    border-radius: 14px;
    margin: 2rem auto;
    max-width: 90vw;
    padding: 2rem;
    box-shadow: 0 2px 8px #0001;
    width: 90vw;
}

.index-readme-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #c62828;
    margin-bottom: 1rem;
}

.index-readme-text {
    margin: 0.5rem 0 1rem 0;
    line-height: 1.6;
}

.index-readme-text a {
    color: #c62828;
    font-weight: 600;
    text-decoration: none;
}

.index-readme-text a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 800px) {
    .index-readme-section {
        padding: 1.2rem;
        width: 90%;
    }
    .index-readme-title {
        font-size: 1.1rem;
    }
    .index-readme-text {
        font-size: 0.95rem;
    }
}

