/*
 * Footer (footer.php), segun el diseño de Sofia (menu.png, 28-nov-2026): fondo gris oscuro y tres columnas a la derecha
 * (el menu principal, contact, newsletter), letra fina en mayusculas; abajo, muy chiquito, el nombre de la galeria.
 * Alto del diseño: 1920 x 352. Mobile-first: en celular las columnas van una debajo de la otra.
 */
:root{
    --tra-footer-bg: #272727;
    --tra-footer-inline: 20px;   /* margen lateral en celular; desde 521 px, el ancho del diseno */
}

@media (min-width: 521px){
    :root{
        --tra-footer-inline: 100px;
    }
}

.tra-footer{
    display: flex;
    flex-direction: column;
    background: var(--tra-footer-bg);
    color: var(--tra-white);
    font-weight: 200;
    text-transform: uppercase;
}

.tra-footer__inner{
    display: grid;
    gap: 40px;
    padding: 50px var(--tra-footer-inline);
}

.tra-footer a{
    color: inherit;
    text-decoration: none;
}

.tra-footer a:focus-visible {
    color: inherit;
    text-decoration: underline;
}

@media (hover: hover) {
    .tra-footer a:hover {
        color: inherit;
        text-decoration: underline;
    }
}

.tra-footer__menu,
.tra-footer__links{
    margin: 0;
    padding: 0;
    list-style: none;
}

/* En celular, zonas tactiles de 44 px; con mouse, las lineas juntas del diseño */
.tra-footer__menu a,
.tra-footer__links a{
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.tra-footer__label{
    display: block;
    color: inherit;
    font-weight: inherit;
}

.tra-footer__form{
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tra-footer__form input[type="email"],
.tra-footer__form input[type="email"]:focus{
    width: 160px;
    max-width: 100%;
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--tra-white);
    border-radius: 0;
    background: transparent;
    color: inherit;
}

.tra-footer__form input[type="email"]:focus-visible{
    outline: none;
    border-bottom-width: 2px;
}

.tra-footer__form input::placeholder{
    color: inherit;
    opacity: 1;
    text-transform: none;
}

/* Campo trampa para bots (inc/newsletter.php): fuera de la vista y del teclado */
.tra-footer__trap{
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.tra-footer__form button,
.tra-footer__form button:is(:hover, :focus){
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--tra-white);
    font-size: inherit;
    font-weight: 200;
    text-transform: lowercase;
}

.tra-footer__form button:focus-visible {
    text-decoration: underline;
}

@media (hover: hover) {
    .tra-footer__form button:hover {
        text-decoration: underline;
    }
}

.tra-footer__form :is(button, input):disabled{
    opacity: .5;
    cursor: not-allowed;
}

.tra-footer__message{
    min-height: 1.5em;
    margin: .5rem 0 0;
    color: inherit;
    font-size: 13px;
    text-transform: none;
}

/* El nombre de la galeria, muy chiquito, abajo de todo */
.tra-footer__copy{
    margin: auto 0 0;
    padding: 0 var(--tra-footer-inline) 20px;
    color: inherit;
    font-size: 10px;
    letter-spacing: .08em;
    opacity: .6;
}

@media (min-width: 521px){
    .tra-footer__copy{
        padding-bottom: 24px;
    }
}

/* Desde tablet: las tres columnas del diseño, alineadas arriba */
@media (min-width: 768px){
    .tra-footer{
        min-height: clamp(260px, 18.33vw, 352px);
    }

    .tra-footer__inner{
        grid-template-columns: repeat(3, auto);
        justify-content: space-between;
        align-items: start;
        gap: 0 var(--tra-space);
        padding: 75px var(--tra-space) 50px;
    }

    .tra-footer__menu a,
    .tra-footer__links a{
        min-height: 0;
        line-height: 1.55;
    }

    .tra-footer__label{
        margin-bottom: 1rem;
    }

    .tra-footer__form button,
    .tra-footer__form button:is(:hover, :focus){
        min-height: 0;
    }

    .tra-footer__copy{
        padding: 0 var(--tra-space) 24px;
    }
}

/* Escritorio: las columnas en 28 % · 53 % · 79 % del ancho, como en el diseño */
@media (min-width: 1024px){
    .tra-footer__inner{
        grid-template-columns: 28% 25% 26% 1fr;
        justify-content: stretch;
        gap: 0;
    }

    .tra-footer__nav{
        grid-column: 2;
    }
}
