
/* =========================================
   SYMPHONY GROUP - ESTILOS GENERALES
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: #fff;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
}

.container {
    width: min(100%, 1140px);
    margin: 0 auto;
    padding: 16px 20px;
}

/* Encabezado */

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.animation {
    display: block;
    width: min(230px, 55vw);
    height: auto;
    object-fit: contain;
}

.brand {
    display: block;
    width: min(780px, 95%);
    height: auto;
    object-fit: contain;
}

/* Líneas divisorias */

.rule {
    width: 100%;
    height: 3px;
    margin: 16px 0;
    background: #c4d986;
}

/* =========================================
   LOGOS - 3 COLUMNAS
   ========================================= */

.logos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 22px;
    align-items: center;
}

.logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 100px;
    padding: 8px;
    border-radius: 8px;
    transition: transform .2s, background .2s;
}

.logos img {
    display: block;
    width: 100%;
    max-width: 250px;
    max-height: 95px;
    height: auto;
    object-fit: contain;
}

.logos a:hover,
.logos a:focus-visible {
    transform: scale(1.04);
    background: #f7f9f2;
}

/* Accesibilidad */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

/* =========================================
   ESCRITORIO - AJUSTE SEGÚN ALTURA
   ========================================= */

@media (min-width: 1024px) {

    .container {
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-top: clamp(8px, 1.5vh, 18px);
        padding-bottom: clamp(8px, 1.5vh, 18px);
    }

    .animation {
        width: auto;
        max-width: 55vw;
        height: clamp(100px, 21vh, 205px);
    }

    .brand {
        width: min(780px, 85%);
        max-height: 10vh;
    }

    .rule {
        flex-shrink: 0;
        margin: clamp(8px, 1.5vh, 18px) 0;
    }

    .logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        grid-template-rows: repeat(3, minmax(0, 1fr));
        gap: clamp(4px, 1vh, 12px) 20px;
        flex: 1 1 auto;
        min-height: 0;
    }

    .logos a {
        min-height: 0;
        height: 100%;
        padding: 4px 8px;
    }

    .logos img {
        max-width: 250px;
        max-height: min(12vh, 95px);
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* =========================================
   TABLET - 2 COLUMNAS
   ========================================= */

@media (min-width: 600px) and (max-width: 1023px) {

    .container {
        padding: 20px;
    }

    .animation {
        width: min(190px, 40vw);
    }

    .brand {
        width: min(700px, 95%);
    }

    .logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .logos a {
        min-height: 110px;
        padding: 8px;
    }

    .logos img {
        max-width: 260px;
        max-height: 105px;
    }

    .logos a:last-child {
        grid-column: 1 / -1;
    }
}

/* =========================================
   CELULAR - UNA COLUMNA
   ========================================= */

@media (max-width: 599px) {

    .container {
        padding: 16px;
    }

    header {
        gap: 5px;
    }

    .animation {
        width: min(150px, 45vw);
    }

    .brand {
        width: 100%;
    }

    .rule {
        margin: 18px 0;
        height: 2px;
    }

    .logos {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .logos a {
        min-height: 95px;
        padding: 8px;
    }

    .logos img {
        width: 100%;
        max-width: 260px;
        max-height: 95px;
    }
}

/* =========================================
   PANTALLAS DE ESCRITORIO BAJAS
   ========================================= */

@media (min-width: 1024px) and (max-height: 700px) {

    .animation {
        height: 17vh;
    }

    .brand {
        max-height: 9vh;
    }

    .rule {
        margin: 7px 0;
    }

    .logos {
        gap: 3px 15px;
    }

    .logos img {
        max-height: 11vh;
    }
}

/* Accesibilidad: reducir animaciones */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}

