
/*----- Header -----*/

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: white;
}

.logo {
    text-decoration: none;
    color: inherit;
    font-size: 1.8rem;
    font-weight: bold;
}

.logo .g {
    color: black;
}

.logo .ti {
    color: #87005a;
}

nav a {
    position: relative;
    margin-left: 2em;
    margin-right: 2em;
    text-decoration: none;
    color: #8e0f5c;
    font-weight: 500;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #8e0f5c;
    left: 0;
    bottom: -4px; /* puedes ajustar si quieres la línea más pegada o separada */
    transition: width 0.3s ease;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

nav a:hover::after {
    width: 100%;
    transform: scaleX(1);
}



/*----- Footer -----*/

footer {
    background: #eee;
    padding: 2em;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2em;
}

.footer-info {
    color: #555;
    font-size: 0.9em;
    text-align: left;
    flex: 1;
}

.footer-info p {
    margin-bottom: 0.5em;
}

.footer-info a {
    color: #8e0f5c;
    text-decoration: none;
}

.footer-logo-block {
    text-align: right;
}

.logo {
    text-decoration: none;
    color: inherit;
    font-size: 1.8rem;
    font-weight: bold;
}

.logo .g {
    color: black;
}

.logo .ti {
    color: #87005a;
}

.footer-logo {
    text-decoration: none;
    color: inherit;
    font-size: 1.8rem;
    font-weight: bold;
}

.footer-logo span {
    color: #8e0f5c;
}

.footer-copy {
    font-size: 0.8em;
    color: #555;
    margin-top: 0.3em;
}

/* responsive */
@media (max-width: 565px) {
    /* HEADER */
    .header {
        flex-direction: row;
        flex-wrap: wrap; /* por si falta espacio */
        align-items: center;
        justify-content: space-between;
        padding: 0.8rem 1rem;
    }

    .logo {
        font-size: 1.4rem;
        flex-shrink: 0; /* evita que el logo se haga pequeñito */
        margin-bottom: 0.5rem;
    }

    .nav {
        display: flex;
        gap: 2rem;
        flex-wrap: nowrap;
        align-items: center;
        flex-direction: row;
        justify-content: flex-end;
        width: 100%;
        margin-top: -33px;
    }

    .nav a {
        font-size: 0.85rem;
        margin: 0;
        white-space: nowrap; /* evita que se corten en varias líneas */
    }

    .mi-cuenta {
        width: 100%;
        margin-top: 0.5rem;
    }

    .mi-cuenta button {
        width: 100%;
        text-align: left;
        font-size: 0.85rem;
        background: none;
        border: none;
        color: #8e0f5c;
        cursor: pointer;
        padding: 0;
    }

    .menu-cuenta {
        background: #f0f0f0;
        padding: 0.5rem;
        margin-top: 0.5rem;
    }

    /* FOOTER */
    footer {
        padding: 1.5rem 1rem;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-info,
    .footer-logo-block {
        width: 100%;
        text-align: left;
    }

    .footer-logo {
        font-size: 1.5rem;
    }

    .footer-copy {
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }
}