body {
    font-family: 'Open Sans', sans-serif;
    margin: 0;
    background-color: #1c0f13;
    color: #f5e6e8;
    line-height: 1.6;
    }

header {
    position: relative;
    background: linear-gradient(135deg, #3e0e1f, #741c3b);
    color: #f5e6e8;
    padding: 3rem 2rem;
    text-align: center;
    font-family: 'Playfair Display', serif;
    overflow: hidden;
    z-index: 0;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/pexels-tofros-com-83191-542506.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1; /* Ajusta esto según lo oscuro que lo quieras */
    z-index: -1;
}

header h1 {
    font-family: "Bonheur Royale", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 5.8rem;
    margin: 0.5rem;
    }

header p {
    font-style: italic;
    font-size: 1.2rem;
    }

header a{
    color: #e99ca4;
    text-decoration: none;
    font-weight: bold;
    }

#intro{
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0 150px;
    }

#intro h2 {
    width: 100%;
    text-align: center;
}

#intro-texto {
    flex: 1;
    margin: 125px;
    max-width: 900px;
    }

.jiji{
    font-size: .8rem;
}

#intro img {
        width: 350px;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
        margin: 0 50px;
        }

figure {
    text-align: center; /* Centra la imagen y el pie */
    margin: 2rem auto;
    font-size: .7rem;
}

section {
    min-height: 50vh;
    padding: 2rem;
    border-bottom: 1px solid #3a1d22;
    }

h2 {
    font-family: 'Playfair', serif;
    color: #e99ca4;
    font-size: 1.8rem;
    text-align: center;
    }

#quien {
    font-family: 'Playfair', serif;
    color: #e99ca4;
    font-size: 2.3rem;
    text-align: center;
    }

.obra {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 0, 150px;
    }

.obra img {
    width: 350px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    margin: 0 50px;
    }

    .obra-texto {
    flex: 1;
    margin: 125px;
    max-width: 900px;
    }

.invertida {
    flex-direction: row-reverse;
    }


a {
    color: #e99ca4;
    text-decoration: none;
    }

form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin: auto;
    }

#contacto p{
    text-align: center;
}

label, input, textarea {
    margin-bottom: 1rem;
    }

input, textarea {
    padding: 0.6rem;
    border: 1px solid #b97b85;
    border-radius: 5px;
    background-color: #2a1318;
    color: #f5e6e8;
    }

input::placeholder,
textarea::placeholder {
    color: #c9a5ab;
    }

button {
    background-color: #e99ca4;
    color: #1c0f13;
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    }

button:hover {
    background-color: #d1848c;
    }

.redes-sociales {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.redes-sociales a img {
    width: 40px;
    height: 40px;
    filter: invert(98%) sepia(62%) saturate(6458%) hue-rotate(287deg) brightness(105%) contrast(101%);;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.redes-sociales a img:hover {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(200%) contrast(100%);
    transform: scale(1.2);
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #2a1318;
    color: #a77d85;
    font-size: 0.9rem;
    }

    @media (max-width: 768px) {
        header h1 {
            font-size: 3rem;
        }

        header p {
            font-size: 1rem;
        }

        #intro,
        .obra {
            flex-direction: column;
            margin: 0 1rem;
        }

        #intro-texto,
        .obra-texto {
            margin: 2rem 1rem;
            text-align: center;
        }

        #intro img,
        .obra img {
            width: 90%;
            margin: 0 auto;
        }

        .invertida {
            flex-direction: column;
        }

        figure {
            font-size: 0.8rem;
            padding: 0 1rem;
        }

        .redes-sociales {
            flex-wrap: wrap;
            gap: 1rem;
        }

        .redes-sociales a img {
            width: 32px;
            height: 32px;
        }

        form {
            padding: 0 1rem;
        }

        footer {
            font-size: 0.8rem;
            padding: 2rem 1rem;
        }
}

    @media (min-width: 769px) and (max-width: 1024px) {
        header h1 {
            font-size: 4.2rem;
        }

        header p {
            font-size: 1.1rem;
        }

        #intro,
        .obra {
            flex-direction: column;
            margin: 0 3rem;
        }

        #intro-texto,
        .obra-texto {
            margin: 3rem 2rem;
            max-width: 100%;
            text-align: center;
        }

        #intro img,
        .obra img {
            width: 80%;
            max-width: 400px;
            margin: 1rem auto;
        }

        .invertida {
            flex-direction: column;
        }

        figure {
            font-size: 0.8rem;
            padding: 0 2rem;
        }

        .redes-sociales {
            gap: 1.2rem;
            margin-top: 2rem;
        }

        .redes-sociales a img {
            width: 36px;
            height: 36px;
        }

        form {
            padding: 0 2rem;
        }

        footer {
            font-size: 0.85rem;
            padding: 2rem;
        }
}
