@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&display=swap');

/*NavBar*/

.navbar {
    background-color: #4FC4B9;
    box-shadow: 5px 7px 13px rgba(0, 0, 0, 0.3);
    z-index: 1030;
}

.navbar-toggler {
    color: #e8ebea;
}

.navbar-logo {
    width: 5rem;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 10rem;
    margin-right: 1rem;
}

.nav-item .nav-link {
    font-weight: bold;
    color: #e8ebea;
}

.nav-item .nav-link:hover {
    font-weight: bold;
    color: #e8ebea;
    border-bottom: 0.1rem solid #e8ebea;
}

.dropdown-menu {
    background-color: #4FC4B9;
}

.dropdown-item {
    font-weight: bold;
    color: #e8ebea;
}

.contact-button {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    border-radius: 1rem;
    padding: 0.5rem;
    border: 0.2rem solid #ffffff;
    background-color: rgb(37, 211, 102);
}

.contact-button:hover {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    border-radius: 1rem;
    padding: 0.5rem;
    border: 0.2rem solid #ffffff;
    background-color: rgb(30, 172, 82);
}

/*drop-down-text*/

.drop-down-text {
    font-family: "Roboto Condensed";
}

.drop-down-text h1 {
    margin-top: 2rem;
    font-size: 3rem;
    text-align: center;
}

.text {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.details {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    transition: background-color 0.3s ease;
}

.details:hover {
    background-color: #f1f1f1;
}

.details summary {
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    list-style: none;
}

.details p {
    margin-top: 8px;
    font-size: 1rem;
    line-height: 1.5;
}

.details summary::-webkit-details-marker {
    display: none;
}

.details summary::after {
    content: "➕";
    float: right;
    transition: transform 0.3s ease;
}

.details[open] summary::after {
    content: "➖";
}

/*Footer*/

html, body {
    height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.footer {
    background-color: #5E4973;
    color: #e8ebea;
    margin-top: auto; /* Lo empuja al fondo */
    font-weight: bold;
}

.flex-container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: center;
    align-content: center;
}

.flex-items:nth-child(1) {
    display: block;
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: auto;
    align-self: auto;
    order: 0;
}

.flex-items:nth-child(2) {
    display: block;
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: auto;
    align-self: auto;
    order: 0;
}

.flex-items:nth-child(3) {
    display: block;
    flex-grow: 0;
    flex-shrink: 1;
    flex-basis: auto;
    align-self: auto;
    order: 0;
}

.flex-items:nth-child(2) .social-red {
    list-style: none;
    padding-top: 1rem;
}

.flex-items:nth-child(2) .social-red li a {
    text-decoration: none;
    color: #e8ebea;
}

.flex-items:nth-child(2) .social-red li a:hover {
    border-bottom: 0.1rem solid #e8ebea;
}

.imagen {
    width: 20vh;
}

@media (max-width: 600px) {
    /* --- Navbar --- */
    .navbar-logo {
        width: 120px;
        height: auto;
    }

    .navbar-nav .nav-link {
        text-align: center;
        padding: 0.5rem 0;
    }

    /* --- drop-down-text --- */
    .text {
        padding: 15px;
    }

    .details summary {
        font-size: 1rem;
    }

    .details p {
        font-size: 0.95rem;
    }

    /* --- Botón de contacto --- */
    .contact-button {
        width: 100%;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    /* --- Footer --- */
    .flex-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }

    .flex-items {
        width: 100%;
    }

    .flex-items img {
        max-width: 100%;
        height: auto;
    }
}