/* Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Open Sans', 'Roboto', 'Helvetica Neue', sans-serif;
    scroll-behavior: smooth;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 999;
    transition: opacity 0.3s ease;
}

.menu-overlay.hidden {
    display: none;
}

.space {
    margin-bottom: 1.5rem;
}


/* Menú lateral */
.side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(26, 188, 156, 0.95);
    color: white;
    padding: 1rem;
    transition: left 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.side-menu.open {
    left: 0;
}

.close-btn {
    font-size: 2rem;
    align-self: flex-end;
    cursor: pointer;
    border: none;
    background: none;
    color: white;
}

.logo {
    width: 80px;
    margin: 1rem auto 2rem auto;
    display: block;
}

.side-menu nav a {
    display: block;
    margin: 1.5rem 0;
    font-size: 1.2rem;
    text-align: center;
    text-decoration: none;
    color: white;
}

/* Botón hamburguesa */
.open-btn {
    font-size: 2rem;
    background: none;
    border: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    cursor: pointer;
    color: white;
    transition: color 0.3s ease;
}

/* Por defecto blanco (cuando está en .hero) */
.open-btn.white {
    color: white;
}

/* Cuando se sale del hero */
.open-btn.dark {
    color: #035754;
    /* o #222 si prefieres más oscuro */
}


/* Hero */
.hero {
    position: relative;
    width: 100%;
    height: 70vh;
    background: url('images/dolordehombro.webp') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100vw;
    width: 100%;
    gap: 8rem;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.05);
}

.hero-content img {
    margin-left: 2rem;
    height: 65vh;
}

.hero-texto {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.4);
    flex: 1 1 50%;
}

.hero-texto h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 2rem;
    margin-right: 1rem;
}

.hero-texto h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero-texto p {
    font-size: 1.7rem;
    font-style: italic;
}


.hero-persona {
    flex: 0 0 auto;
    width: auto;
    max-width: 30vw;
    height: auto;

}

.container-section {
    background-color: f2f2f2;
    /* opcional */
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.05);
    z-index: 1;
}

.container-text {
    max-width: 1100px;
    /* MÁS ancho para escritorio */
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    font-size: 1.3rem;
    /* MÁS grande */
    line-height: 1.9;
}


.container-text h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.description-container {
    text-align: left;
    font-size: 1.35rem;
    line-height: 1.9;
    gap: 2rem;
}

.social-icon {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
    font-size: 2.5rem;
    color: #222;
}

.social-icon p {
    font-size: 2rem;
    color: #222;

}

.social-text {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 1.2rem;
    color: #222;

}

.opinion {
    padding-bottom: 0.4rem;
}

.patologias-description {
    font-size: 2rem;
}

.p-mb {
    margin-bottom: 2rem;
}

.center {
    text-align: center;
}

.grid-description {
    text-align: center;
}

.container-grid {
    display: grid;
    gap: 7rem;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    padding: 1rem;
    max-width: 90%;
    margin: 0 auto;
    box-sizing: border-box;
}

/*#grid-experiencia {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}*/


/* Mejora tarjetas patologías */
.container-grid .grid-item {
    aspect-ratio: 3 / 4;
    max-width: 450px;
    margin: 0 auto;
    background-color: white;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    height: 300px;
}

.container-grid .grid-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 16px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.container-grid .grid-item img:hover {
    transform: scale(1.05);
    cursor: pointer;

}

.container-grid .grid-item .experiencia-img:hover {
    transform: scale(1.00);
    cursor: initial;
}

.container-grid .grid-item h3 {
    font-size: 1rem;
    line-height: 1.4;
    /* overflow: hidden; */
    display: -webkit-box;
    /* -webkit-line-clamp: 3; */
    /* límite de líneas */
    -webkit-box-orient: vertical;
    /* text-overflow: ellipsis; */
    text-align: center;
}

.grid-item p {
    line-height: 1.5;
    min-height: 5em;
}

.accordion-content {
    height: 0;
    opacity: 0;
    overflow: hidden;
    transition: height 0.4s ease, opacity 0.4s ease;
    padding: 0 1rem;
    background-color: white;
    border-radius: 0.35em;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
}

.accordion-content.open {
    opacity: 1;
    margin-bottom: 2rem;
    padding: 1rem;
}

.accordion-content ul {
    list-style-type: disc;
    margin: .5rem;
}

.accordion-content li {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #333;
    text-align: start;
}

.accordion-arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
    display: inline-block;
}

.accordion-button {
    border-radius: 0.35em;
    color: #fff !important;
    text-decoration: none;
    padding: 0.75em 2.5em 0.75em 2.5em;
    min-width: 300px;
    width: 20%;
    background-color: #035754;
    border: 0;
    cursor: pointer;
    margin-bottom: 2em;
}

.accordion-button.open .accordion-arrow {
    transform: rotate(180deg);
    /* Gira la flecha hacia arriba */
}

.tarifas-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.tarifa-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.tarifa-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.tarifa-card .zona {
    font-size: 0.9rem;
    font-weight: 400;
    display: block;
    margin-top: 0.3rem;
    color: #444;
}

.tarifa-card p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #333;
}

.tarifa-card.urgente {
    background: #ffeaea;
    border-left: 5px solid #c0392b;
}

.pilates-card {
    background-color: #f9fbfc;
    border-left: 5px solid #2c9faf;
}

.pilates-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.pilates-card p {
    margin: 0.4rem 0;
    font-size: 1rem;
    color: #333;
}

.pilates-card .detalle {
    font-size: 0.95rem;
    color: #555;
}

.pilates-card .pregunta {
    margin-top: 0.8rem;
    font-style: italic;
    color: #2c3e50;
}

.convenio-card {
    background-color: #eefdf6;
    border-left: 5px solid #27ae60;
}

.club-logos {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.8rem;
    align-items: center;
}

.club-logos img {
    max-height: 50px;
    max-width: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.club-logos img:hover {
    transform: scale(1.1);
}

.tarifa-card h3 span {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.25rem;
    text-transform: none;
}

.tarifa-card .subinfo {
    font-size: 0.9rem;
    color: #444;
    margin: 0.5rem 0 1rem;
    line-height: 1.4;
}

.tarifa-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tarifa-card ul li {
    margin: 0.4rem 0;
    font-size: 1rem;
    color: #333;
}

.tarifa-card ul li strong {
    font-weight: 600;
}

.tarifa-info-box {
    background-color: #eafaf7;
    padding: 1.5rem;
    border-left: 4px solid #2c9faf;
    margin: 2rem auto;
    text-align: center;
    border-radius: 8px;
    max-width: 800px;
}

.tarifa-info-box p {
    margin: 0.5rem 0;
    font-size: 1.05rem;
    color: #333;
}

.tarifa-info-box .btn-contacto {
    display: inline-block;
    margin-top: 0.8rem;
    padding: 0.6rem 1.4rem;
    background-color: #035754;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.tarifa-info-box .btn-contacto:hover {
    background-color: #023f3c;
}

.tarifa-alert-box {
    background-color: #eafaf7;
    padding: 1.5rem;
    border-left: 4px solid #ffc107;
    margin: 2rem auto;
    text-align: center;
    border-radius: 8px;
    max-width: 800px;
}

.tarifa-alert-box p {
    margin: 0.5rem 0;
    font-size: 1.05rem;
    color: #333;
}

.testimonio-card {
    background-color: #f9f9f9;
    border-left: 5px solid #1abc9c;
    /* verde fisioterapia */
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 700px;
    font-family: 'Inter', sans-serif;
}

.testimonio-card .comentario {
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    color: #000;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.testimonio-card .autor {
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    text-align: right;
}

.estrellas {
    font-size: 1.3rem;
    color: #fbbf24;
    /* amarillo dorado */
    margin-bottom: 0.5rem;
}


.contact-form {
    max-width: 800px;
    margin: 2rem auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.form-row input {
    flex: 1 1 48%;
    min-width: 200px;
}

.contact-form textarea {
    resize: vertical;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 1rem;

}

.question-mark {
    font-size: 4rem !important;
    /* o 64px o lo que desees */
    text-align: center;
    color: red;
    margin: 0;
}

.contact-form button {
    background-color: #035754;
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 20vw;
}

.contact-form button:hover {
    background-color: #023d3a;
}

.reservar-button {
    background-color: #00b894;
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 6px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 35vw;
    text-align: center;
    text-decoration: none;

}

.reservar-button:hover {
    background-color: #019875;
}

.social-icons {
    display: flex;
    justify-content: space-evenly;
    width: 100%;
    margin-top: 2rem;
    font-size: 2.5rem;
    color: #222;
}

.social-icons a {
    color: #222;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #035754;
    /* Color al pasar el ratón */
}

.side-social {
    margin-top: auto;
    padding-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.side-social a {
    font-size: 1.8rem;
    color: white;
    transition: transform 0.3s ease, color 0.3s ease;
}

.side-social a:hover {
    transform: scale(1.2);
    color: #d1d1d1;
}

.container-review {
    max-width: 80%;
    margin: 0 auto;
    padding: 2rem 1rem;
    text-align: center;
}



.container-section:nth-of-type(even) {
    background-color: #d6f5f2;
    /* azul verdoso claro */
}

.container-section:nth-of-type(odd) {
    background-color: #f7f7f7;
    /* gris muy claro */
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background-color: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}



.modal-content img {
    max-width: 100%;
    max-height: 22vh;
    /* 🔧 Este valor controla la altura máxima relativa a la pantalla */
    height: auto;
    width: auto;
    border-radius: 16px;
    margin-bottom: 1.5rem;
    object-fit: contain;
}

.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-content button {
    background-color: #035754;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-content button:hover {
    background-color: #023d3a;
}


@media (min-width: 768px) and (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
    }

    .container-grid {

        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .hero-persona {
        width: 25vw;
        /* más grande que en móvil, menos que en escritorio */

    }

    .hero-content img {
        height: auto;
    }


    .hero-texto {
        max-width: 90%;
    }

    .hero-texto h1 {
        font-size: 2.2rem;
    }

    .hero-texto h2 {
        font-size: 1.3rem;
    }

    .hero-texto p {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        text-align: center;
        margin-right: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .side-menu {
        width: 100%;
    }

    .hero {
        height: auto;
        padding: 3rem 0;
    }

    .hero-content {
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        text-align: center;
        padding-right: 1.5rem;
        padding-left: 1.2rem;
    }

    .hero-content img {
        height: auto;
    }

    .hero-texto {
        flex: 1 1 auto;
        padding: 0;
    }

    .hero-texto h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        margin-right: 0;
    }

    .hero-texto h2 {
        font-size: 1.1rem;
    }

    .hero-texto p {
        text-align: center;
        margin-right: 0;
        font-size: 1rem;
    }

    .hero-persona {
        width: 140px;
    }

    /* Si necesitas ajustar el padding o el tamaño de texto en móvil */
    .container-text {
        font-size: 1.1rem;
        padding: 0 1rem;
        text-align: center;
    }

    .description-container p {
        font-size: 1rem;
    }

    .container-text h1 {
        font-size: 1.6rem;
    }

    .container-grid {
        grid-template-columns: repeat(auto-fit, minmax(40vw, 1fr));
        gap: 3rem;
    }

    .modal-content img {
        max-height: 15vh;
        /* Ajusta la altura máxima de la imagen en móvil */
    }


    .modal-content h2 {
        font-size: 1.2rem;
    }

    .modal-content p {
        font-size: 0.95rem;
    }

    .modal-content button {
        font-size: 0.95rem;
    }

    .description-container {
        text-align: center;
    }

    .social-icons {
        font-size: 0.5rem;
        gap: 0.5rem;
    }

    .social-icon {
        font-size: 1rem;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 0.4rem;
    }

    .social-icon p {
        font-size: 0.9rem;
    }

    .reservar-button {
        width: 45vw;
        font-size: 0.8rem;
    }

}