:root {
    --bg-light: #e9e9e9;
    --gray-light: #a7a7a7;
    --gray-dark: #303030;
    --blue-dark: #212f3d;
    --blue-gray: #566573;
    --blue-light: #d6dbdf;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Viaoda';
    margin: 0;
    color: var(--gray-dark);
    background-color: #a7a7a7;
}

h1 {
    color: #d6dbdf;
    font-size: 150px;
    text-align: center;
}

/* ---- HEADER ---- */

.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    background-color: var(--gray-dark);
    z-index: 2;
    margin: 0;
    min-height: auto;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 1rem;  
    margin-bottom: 0.5rem; 
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.header__logo {
    height: 200px;
    border: 2px solid var(--bg-light);
    border-radius: 50%;
    margin-right: 100px;
}

.header__nav {
    display: flex;
    margin: 0;
    margin-left: 200px;
    padding: 0;
    list-style: none;
}

.nav-link {
    border-radius: 30px;
    color: var(--bg-light);
    text-decoration: none;
    margin: 0 1rem;
    padding: 1rem 2rem;
    font-family: 'Viaoda';
    transition: transform 0.3s;
    border: 1px solid #fff;
}

.nav-link:hover {
    transform: scale(1.1);
}

/* ---- MAIN ---- */

.main {
    background-color: var(--gray-light);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 2rem 1rem;
    width: 100%;
}

.main-img, .main-text {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s;
    align-items: justify;
    grid-column: span 1;
    z-index: 1;
    border: 1px solid #000;
}

.main-text {
    display: flex;
    justify-content: justify;
    text-align: center;
    font-size: 70px;
    background-color: var(--blue-light);
    border-radius: 8px;
    margin: 0;
    grid-column: span 3;
    padding: 50px 70px;
}

/* ---- MODELS ---- */
.title_model {
    margin: 0 auto;
    background-color: var(--gray-dark);
    padding: 40px;
    color: #e9e9e9;
    text-align: center;
    font-size: 50px;
}

.gallery {
    background-color: var(--gray-light);
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 1rem;
}

.gallery-img {
    min-width: 25%;
    border-radius: 8px;
}

.update-text{
    scroll-snap-align: start;
    margin: 0;
    padding: 20px;
    font-size: 40px;
    text-align: center;
    background-color: var(--gray-light);
    border-radius: 9px;
    background-color: #a7a7a7;
    border: 2px solid var(--blue-dark);
}

.text-model {
    border-radius: 8px;
    padding: 20px;
    margin-left: 20px;
    margin-right: 20px;
}

/* ---- BRANCHES ---- */

h3 {
    font-size: 58px;
}

.branches {
    background-color: #a7a7a7;
}

.title-branches {
    width: 100%;
    margin: 0;
    background-color: #303030;
    padding: 30px;
    font-size: 50px;
    color: #e9e9e9;
    text-align: center;
}

.branch-buttons {
    background-color: var(--gray-light);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem;
}

.branch-section {
    background-color: var(--gray-light);
    padding: 20px 10px;
    margin: auto;
    align-items: center;
}

.branch-btn {
    background-color: var(--gray-dark);
    color: #fff;
    padding: 0.5rem 3rem;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.5s;
}

.branch-btn:hover {
    background-color: var(--gray-light);
}

.branch-container {
    gap: 2rem;
    justify-items: center;
    padding: 1rem;
    width: 100%;
}

.branch-section {
    width: 100%;
    max-width: 800px;
    text-align: center;
    background-color: var(--gray-dark);
    border-radius: 10px;
}

.branch-img {
    width: 90%;
    border-radius: 8px;
    object-fit: cover;
    align-items: center;
    border: 10px solid var(--blue-light);
}

.branch-description {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
    font-size: 30px;
    padding-bottom: 20px;
    color: var(--blue-light);
}


/* ---- CONTACT ---- */

.contact {
    text-align: center;
    background-color: #a7a7a7;
    padding-bottom: 40px;
}

.title-contact {
    background-color: #303030;
    padding: 30px;
    font-size: 50px;
    color: #e9e9e9;
    text-align: center;
}

.social-media {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: auto;
    align-items: center;
    margin-top: 40px;
}

.text-contact {
    font-size: 25px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    gap: 0.5rem;
    padding: 1rem 1rem;
    background-color: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: var(--blue-dark);
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-link1 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    gap: 0.5rem;
    padding: 1rem 3.4rem;
    background-color: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: var(--blue-dark);
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-link4 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    gap: 0.5rem;
    padding: 1rem 4.3rem;
    background-color: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: var(--blue-dark);
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-link5 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    gap: 0.5rem;
    padding: 1rem 3.7rem;
    background-color: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: var(--blue-dark);
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-link6 {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    gap: 0.5rem;
    padding: 1rem 2.7rem;
    background-color: #fff;
    border-radius: 8px;
    text-decoration: none;
    color: var(--blue-dark);
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link1:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link4:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-link5:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-icon {
    width: 40px;
    height: 40px;
}

/* ---- FOOTER ---- */
.footer {
    background-color: var(--gray-dark);
    padding: 100px;
    color: var(--blue-light);
    text-align: center;
}

.text-footer {
    font-size: 40px;
}

.author {
    font-size: 20px;
    text-decoration: none;
    color: #fff;
    font-family: 'Viaoda';
}

/* ---- ANIMATIONS ---- */
.branch-btn, .gallery-img, .main-img {
    transition: all 0.3s ease;
}

.branch-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ---- MEDIA QUERIES ---- */
@media only screen and (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }
    
    .header {
        padding: 1rem;
        width: 100%;
    }
    
    .header-brand {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-top {
        flex-direction: column;
    }
    
    .header__logo {
        height: 120px;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .header__nav {
        flex-direction: column;
        align-items: center;
        margin-left: 0px;
    }
    
    .nav-link {
        margin: .5rem 1.5rem;
        width: 100%;
        text-align: center;
        padding: 1rem 2.5rem;
    }
    
    .main {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .main-text {
        grid-column: span 1;
        font-size: 1.5rem;
        padding: 1.5rem;
    }
    
    .title_model, .title-branches, .title-contact {
        font-size: 2rem;
        padding: 1.5rem;
    }
    
    .gallery-img {
        min-width: 80%;
    }
    
    .update-text {
        font-size: 1.5rem;
        padding: 1rem;
    }
    
    .text-model {
        font-size: 1rem;
        padding: 1rem;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .branch-buttons {
        flex-direction: column;
        padding: 1rem;
        text-align: center;
    }
    
    .branch-section {
        padding: 1rem;
    }
    
    .branch-img {
        width: 95%;
        border-width: 5px;
    }
    
    .branch-description {
        font-size: 1.2rem;
        max-width: 95%;
    }
    
    .social-media {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .social-link, .social-link1, .social-link4, .social-link5, .social-link6 {
        padding: 0.8rem;
        margin: 0.3rem auto;
        width: 100%;
        max-width: 300px;
    }
    
    .text-contact {
        font-size: 1rem;
    }
    
    .footer {
        padding: 2rem 1rem;
    }
    
    .text-footer {
        font-size: 1.5rem;
    }

    .author {
        font-size: 15px;
    }
}


/* Media Query para tablets pequeñas (mantiene más estilo de PC) */
@media only screen and (min-width: 481px) and (max-width: 768px) {
    .header__nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        width: auto;
        margin: 0.3rem;
    }
    
    .main {
        grid-template-columns: 1fr 1fr;
    }
    
    .main-text {
        grid-column: span 2;
    }
    
    .gallery-img {
        min-width: 45%;
    }
    
    .branch-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .social-media {
        grid-template-columns: 1fr 1fr;
    }
}