header {
    background: linear-gradient(135deg, #8B0000 0%, #6B0000 100%);
    color: white;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.25);
    border-bottom: 3px solid #A52A2A;
    flex-wrap: wrap;
    gap: 20px;
}

header a {
    position: absolute;
    left: 25px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

header a:hover {
    transform: scale(1.05);
}

header a img {
    height: 90px;
    width: auto;
    display: block;
}

header span {
    text-align: center;
    flex: 1;
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    min-width: 200px;
}

/* Responsive para tablets */
@media (max-width: 1024px) {
    header span {
        font-size: 2rem;
    }
}

/* Responsive para móvil */
@media (max-width: 768px) {
    header {
        padding: 20px 15px;
        flex-direction: column;
        gap: 15px;
    }

    header a {
        position: static;
        margin-bottom: 10px;
    }

    header span {
        font-size: 1.6rem;
        min-width: 100%;
        order: 2;
    }
}

/* Responsive para móvil pequeño */
@media (max-width: 480px) {
    header {
        padding: 15px 10px;
        gap: 10px;
    }

    header a img {
        height: 70px;
    }

    header span {
        font-size: 1.3rem;
        margin-top: 10px;
    }
}