* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: "Libertinus Math", system-ui;
    background-color: #fef8f0;
}

.main-container {
    display: flex;
    flex-direction: column;
    margin: 0 2rem;
    margin-top: 2rem;
}

.main-container h2 {
    font-size: 2.5rem;
    color: #4b6a6bff;
    text-align: end;
}

.main-header {
    height: 7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    background-color: #fef8f0;
}

.logo {
    max-width: max-content;
    max-height: 8rem;
    margin: 5px 0 1rem 1rem;
}

.menu-button {
    height: auto;
    width: auto;
    margin: 0 3rem 0 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.close-button {
    align-self: flex-end;
    cursor: pointer;
    padding: 5px 0 0 15px;
    -webkit-tap-highlight-color: transparent;
    margin: 30px 30px 0 0;
}

.sidebar-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 250px;
    z-index: 999;
    color: #4b6a6bff;
    background-color: #fef8f0;
    font-size: 18px;
    box-shadow: -50px 0px 50px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.sidebar-nav.show {
    transform: translateX(0);
    opacity: 1;
    background-color: #fef8f0;
}

.sidebar-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 80px;
    margin-top: 80px;
}

.sidebar-nav li {
    display: flex;
}

.sidebar-nav a {
    text-decoration: none;
    color: #4b6a6bff;
    transition: text-shadow 0.2s ease-in-out;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-nav a:hover {
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.standard-nav {
    display: none;
}

.intro {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.pic-intro {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 200px;
    background-image: url("../media/sobre-laura.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 10px;
}

.hero {
    display: flex;
    flex-direction: column;
}

.hero h3 {
    text-align: end;
    margin-bottom: 10px;
}

.hero-text {
    text-align: justify;
    font-size: 18px;
}

.yoga {
    display: flex;
    flex-direction: column;
    margin: 2rem 0px 1rem 0px;
}

.terapias {
    display: flex;
    flex-direction: column;
    margin: 2rem 0px 1rem 0px;
}

.serv-container {
    display: flex;
    flex-direction: column;
}

.card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 400px;
    height: 200px;
    border-radius: 10px;
    padding: 5px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.card-arrow {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 1;
}

.card-arrow svg {
    width: 24px;
    height: 24px;
    fill: white;
    transition: transform 0.3s ease;
}

.card-arrow.open svg {
    transform: rotate(180deg);
}

.card h3 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 10px black;
    text-align: center;
}

.card-description {
    max-height: 0;
    overflow: hidden;
    text-align: justify;
    transition: max-height 0.3s ease;
    margin-bottom: 15px;
    padding: 5px 10px 0px 10px;
    font-size: 18px;
    max-width: 400px;
}

.card-description.open {
    max-height: 200px;
    padding: 5px 10px 0px 10px;
}

.card:focus {
    outline: none;
}

#card-yopar {
    background-image: url("../media/yoga-particulares.jpg");
}

#card-yogru {
    background-image: url("../media/yoga-grupo.jpg");
}

#card-yofp {
    background-image: url("../media/yoga-fp.jpg");
}

#card-menter {
    background-image: url("../media/menter.jpg");
}

#card-menevo {
    background-image: url("../media/menevo.jpg");
}

#card-masaj {
    background-image: url("../media/masaj.jpg");
}

#card-biodc {
    background-image: url("../media/biodes.jpg");
}

#card-ritcon {
    background-image: url("../media/ritcon.jpg");
}

#card-taller {
    background-image: url("../media/taller.jpg");
}



.testimonios {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
}

.test-container {
    height: 500px;
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 10px;
    align-items: center;
    margin-left: -2rem;
    margin-right: -2rem;
    padding: 0 2rem;
    scrollbar-color: lightgray #fef8f0;
}

.test-card {
    flex: 0 0 auto;
    /* Prevent shrinking, allow horizontal scroll */
    height: 450px;
    width: 325px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.test-head {
    height: 20%;
    margin-top: 5px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.test-pic {
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#test-pic-0 {
    background-image: url(../media/review-ana.jpg);
}

#test-pic-1 {
    background-image: url(../media/review-sandra.jpg);
}

#test-pic-2 {
    background-image: url(../media/review-cris.jpg);
}

#test-pic-3 {
    background-image: url(../media/review-rocio.jpg);
}

#test-pic-4 {
    background-image: url(../media/review-ada.jpg);
}

#test-pic-5 {
    background-image: url(../media/review-pati.jpg);
}

#test-pic-6 {
    background-image: url(../media/review-vero.jpg);
}

.test-name {
    color: #4b6a6bff;
    font-size: 20px;
}

.test-desc {
    height: 80%;
    padding: 10px 20px;
    font-size: 18px;
    text-align: justify;
}

.contacto {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.contact-container {
    display: flex;
    flex-direction: column;
    margin: 0 -1rem;
}



.whatsapp {
    display: flex;
    flex-direction: row;
    height: 200px;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.wha-txt {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
}

.wha-txt p {
    text-align: center;
    font-size: 28px;
}

.wha-tel {
    display: flex;
    flex-direction: column;
    width: 40%;
    align-items: center;
    justify-content: center;
}

.wha-logo {
    height: 66.6%;
    font-size: 120px;
}

.wha-logo a {
    color: #4b6a6bff;
}

.wha-num {
    height: 33.3%;
    font-size: 24px;
}

.wha-num a {
    color: #4b6a6bff;
    text-decoration: none;
}


.instagram {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 450px;
    margin-bottom: 50px;
}

.inst-head {
    width: 100%;
    height: 20%;
    font-size: 30px;
    color: #4b6a6bff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.inst-body {
    flex: 1;
    display: flex;
    flex-direction: row;
    width: 100%;
}

.inst-body a {
    flex: 1;
    display: flex;
}

.inst-grid {
    flex: 1;
    display: grid;
    aspect-ratio: 1 / 1;
    /* Mantiene el grid cuadrado */
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 5px;
}

/* Celda grande 2×2 arriba izquierda */
.inst-grid-1 {
    grid-column: 1 / span 2;
    grid-row: 1 / span 2;
    background-image: url("../media/grid-pic-1.png");
    background-size: cover;
    background-position: center;
    border-radius: 5px;
}

/* Otras celdas */
.inst-grid-2 {
    background-image: url("../media/grid-pic-2.png");
}

.inst-grid-3 {
    background-image: url("../media/grid-pic-3.png");
}

.inst-grid-4 {
    background-image: url("../media/grid-pic-5.png");
}

.inst-grid-5 {
    background-image: url("../media/grid-pic-4.png");
}

.inst-grid-6 {
    background-image: url("../media/grid-pic-6.png");
}

.inst-grid div {
    background-size: cover;
    background-position: center;
    border-radius: 5px;
}



@media screen and (min-width: 768px) {
    html {
        font-size: 24px;
    }

    .main-header {
        min-width: 600px;
        gap: 0.5rem;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        max-width: 100%;
        width: 100%;
        padding-top: 0;
    }

    #logo-container {
        width: 500px;
    }

    .sidebar-nav {
        display: none;
    }

    .menu-button {
        display: none;
    }

    .standard-nav {
        background-color: #fef8f0;
        display: flex;
        margin-right: 50px;
    }

    .standard-nav ul {
        list-style: none;
        display: flex;
        gap: 40px;
    }

    .standard-nav li {
        display: flex;
    }

    .standard-nav a {
        font-size: 20px;
        text-decoration: none;
        color: #4b6a6bff;
        transition: text-shadow 0.2s ease-in-out;
    }

    .standard-nav a:hover {
        text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    }



    .main-container {
        margin: 1rem 5rem;
    }

    .intro {
        flex-direction: row;
        margin-bottom: 1rem;
    }

    .pic-intro {
        width: 150%;
        height: 400px;
    }

    .hero {
        width: 100%;
        justify-content: end;
        align-items: end;
        font-size: 1.5rem;
    }

    .hero-text {
        padding: 0 0 0 10rem;
        text-align: right;
        font-size: 1.2rem;
    }

    #terapias {
        margin: 3rem 0 0 0;
    }

    .serv-container {
        flex-direction: row;
        justify-content: space-around;
        flex-wrap: wrap;
        gap: 20px;
    }

    .card-container {
        flex-direction: column;
        justify-content: flex-start;
        height: 450px;
        width: 600px;
        margin: 1rem 0 1rem 0;
        gap: 5px;
    }

    .card {
        width: 600px;
        height: 300px;
        max-width: none;
    }

    .card-description {
        overflow: visible;
        text-align: justify;
        margin-bottom: 50px;
        padding: 5px 10px 0px 10px;
        font-size: 24px;
        width: 580px;
        max-width: none;
    }

    .card-arrow {
        display: none;
    }

    .test-card {
        width: 475px;
    }

    .test-pic {
        width: 70px;
        height: 70px;
        border-radius: 35px;
    }

    .test-name {
        font-size: 26px;
    }

    .test-desc {
        font-size: 24px;
    }

    .contact-container {
        flex-direction: row;
        margin-bottom: 100px;
        margin-top: 25px;
    }

    .whatsapp {
        flex-direction: column;
        height: 500px;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
        width: 50%;
        gap: 25px;
    }

    .wha-txt {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 80%;
    }

    .wha-txt p {
        text-align: center;
        font-size: 36px;
    }

    .wha-tel {
        display: flex;
        flex-direction: column;
        width: 80%;
        align-items: center;
        justify-content: center;
        gap: 10px;
    }

    .wha-logo {
        height: 66.6%;
        font-size: 200px;
    }

    .wha-logo a {
        color: #4b6a6bff;
    }

    .wha-num {
        height: 33.3%;
        font-size: 36px;
    }

    .wha-num a {
        color: #4b6a6bff;
        text-decoration: none;
    }

    .instagram {
        display: flex;
        flex-direction: column;
        width: 50%;
        height: 450px;
        gap: 20px;
    }

    .inst-head {
        width: 100%;
        /* height: 20%; */
        font-size: 36px;
        color: #4b6a6bff;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .inst-body {
        flex: 0.8;
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: center;
        align-items: center;
    }

    .inst-body a {
        flex: 0.8;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .inst-grid {
        flex: 1;
        display: grid;
        aspect-ratio: 1 / 1;
        /* Mantiene el grid cuadrado */
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 5px;
    }

    /* Celda grande 2×2 arriba izquierda */
    .inst-grid-1 {
        grid-column: 1 / span 2;
        grid-row: 1 / span 2;
        background-image: url("../media/grid-pic-1.png");
        background-size: cover;
        background-position: center;
        border-radius: 5px;
    }

    /* Otras celdas */
    .inst-grid-2 {
        background-image: url("../media/grid-pic-2.png");
    }

    .inst-grid-3 {
        background-image: url("../media/grid-pic-3.png");
    }

    .inst-grid-4 {
        background-image: url("../media/grid-pic-5.png");
    }

    .inst-grid-5 {
        background-image: url("../media/grid-pic-4.png");
    }

    .inst-grid-6 {
        background-image: url("../media/grid-pic-6.png");
    }

    .inst-grid div {
        background-size: cover;
        background-position: center;
        border-radius: 5px;
    }

}