:root {
    --padding-container: 100px 0;
    --color-title: #001A49;
    --primary-color: #3498db;
    --accent-color: #0077cc;
    --primary-foreground: #001A49;
    --background: #ffffff;
    --text-muted: #6b7280;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: sans-serif;
}

.logo {
    font-family: Arial;
    position: relative;
    font-size: 1.2rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(45deg, #e7e9eb, #d6e4f0 50%, #7d7c7c 50%, #7d7c7c);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientAnimation 5s ease infinite;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: 2rem 1rem;
}

.header {
    color: #fff;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 800px;
    position: relative;
    display: grid;
    grid-template-rows: 100px 1fr;

}

.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url('../img/Armchair.jpg');
    background-size: cover;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 95%, 0 80%);
    z-index: -1;
}

.nav {
    --padding-container: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav__title {
    font-weight: 300;
}

.nav__link {
    margin-left: auto;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 2em;
}

.nav__items {
    list-style: none;
}

.nav__links {
    color: #fff;
    text-decoration: none;
}

.nav__links {
    transition: color 0.18s ease, transform 0.12s ease;
}

.nav__links:hover,
.nav__links:focus {
    color: var(--primary-color);
    transform: translateY(-2px);
    outline: none;
}

.nav__menu {
    margin-left: auto;
    cursor: pointer;
    display: none;
}

.nav__img {
    display: block;
    width: 30px;

}

.nav__close {
    display: var(--show, none);
}

.header__container {
    max-width: 800px;
    --padding-container: 0;
    display: grid;
    grid-auto-rows: max-content;
    align-content: center;
    gap: 1em;
    padding-bottom: 100px;
    text-align: center;
    justify-items: center;
}


.header__title {
    font-size: 3rem;
}

.header__paragraph {
    margin-bottom: 20px;
}


.contact-us {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

.contact {
    display: flex;
    background-color: white;
    border-radius: 5rem;
    padding: 0.6rem 1.2rem;
    min-width: 120px;
    height: 40px;
    text-decoration: none;
    text-align: center;
    align-items: center;
    justify-content: center;
    color: #001A49;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.contact:hover {
    color: #fff;
    background-color: #3498db;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.contact-us .contact {
    margin: 0 0.5rem;
}


.about__us {
    text-align: center;
}

.subtitle {
    color: var(--color-title);
    font-size: 2rem;
    margin-bottom: 25px;
}

.about__paragraph {
    line-height: 1.7;
    text-align: start;
    margin-left: 1.25rem;
}

.about__main {
    padding-top: 80px;
    display: grid;
    width: 90%;
    margin: 0 auto;
    gap: 1rem;
    overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(260px, auto));
}

/* Accessibility helpers */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link:focus {
    left: 10px;
    top: 10px;
    width: auto;
    height: auto;
    background: #fff;
    padding: 8px 12px;
    z-index: 9999;
    color: var(--primary-foreground);
    border-radius: 4px;
}

/* Visible focus outlines for keyboard users */
a:focus,
button:focus {
    outline: 3px solid rgba(52, 152, 219, 0.45);
    outline-offset: 2px;
}

/* small reveal animation used when navigating via menu */
.reveal {
    animation: fadeInUp 420ms cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about__icons {
    display: grid;
    gap: 1em;
    justify-items: center;
    width: 260px;
    overflow: hidden;
    margin: 0 auto;
}

.about__icon {
    width: 40px;
}

.services {
    text-align: center;
}


.services-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.service-card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex-basis: calc(50% - 0.75rem);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    color: #3498db;
    margin-bottom: 0.5rem;
}

.service-card ul {
    text-align: start;
    padding-left: 5rem;
}

.testimony__container {
    overflow: hidden;
}

.testimony__slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.testimony__body {
    flex: 0 0 100%;
    width: 100%;
    padding: 2.5rem 1.25rem;
    /* más espacio alrededor */
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 1fr max-content;
    justify-content: space-between;
    align-items: center;
    gap: 3rem;
    /* separación entre texto e imagen */
}

.testimony__dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot--active {
    background-color: #717171;
}

.testimony__img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 30%;
}

.testimony__img {
    margin-left: 1rem;
    /* separación adicional para evitar que se "peguen" */
}

.testimony__texts {
    max-width: 700px;
}

.testimony__course {
    color: #fff;
    display: inline-block;
    padding: 5px;
}

.footer {
    padding-top: 1rem;
}

.footer-content {
    width: 90%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 0;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
}

.footer-section ul li .icon {
    margin-right: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
}

.footer-section a {
    color: var(--primary-foreground);
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-icons a {
    color: var(--primary-foreground);
}

.social-icons a:hover {
    color: var(--accent-color);
}


.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.footer__link {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-bottom {
    padding-top: 1rem;
    text-align: center;
}

.renglon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 20%;
    margin-right: 20%;
    margin-top: 50px;
}


@media(max-width:800px) {
    .nav__menu {
        display: block;
    }

    .nav__link--menu {
        position: fixed;
        background-color: #000000f0;
        font-size: 1.2rem;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: .7s opacity;
    }

    .nav__link--show {
        --show: block;
        opacity: 1;
        pointer-events: unset;
    }

    .nav__close {
        position: absolute;
        top: 30px;
        right: 30px;
        width: 30px;
        cursor: pointer;
    }

    .header__title {
        font-size: 2.5rem;
    }

    .about__main {
        gap: 2em;
    }


    .card .back h3 {
        font-size: 20px;
    }

    .testimony__body {
        grid-template-columns: 1fr;
        grid-template-rows: max-content max-content;
        gap: 3em;
        justify-items: center;
    }

    .testimony__img {
        width: 200px;
        height: 200px;
    }


}

@media (max-width:600px) {
    .header__title {
        font-size: 2rem;
    }

    .header__paragraph {
        font-size: 1rem;
    }

    .subtitle {
        font-size: 1.7rem;
    }

    .service-card {
        flex-basis: 100%;
    }

    .testimony__container {
        grid-template-columns: 28px 1fr 28px;
        gap: .9em;
    }

    .footer-content {
        flex-direction: column;
        margin-left: 60px;
        gap: 2rem;
    }

    .renglon {
        margin-top: 20px;
    }

    .social-icons {
        justify-content: start;
    }

}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

::-webkit-scrollbar {
    display: none;
}