

.tm-page-wrapper {
    width: 100%;
    background: #ffffff;
}

.tm-hero {
    margin-top: 79px;
    padding: 70px 20px 50px;
    text-align: center;
    background: #ffffff;
}

.tm-hero__content {
    max-width: 860px;
    margin: 0 auto;
}

.tm-hero__title {
    margin: 0 0 16px;
    line-height: 1.1;
    font-weight: 700;
}

.tm-title-1 {
    font-size: 42px;
    font-family: 'DelaGothicOne', sans-serif;
    color: #1a1a1a;
}

.tm-title-2 {
    font-size: 42px;
    font-family: 'DelaGothicOne', sans-serif;
    color: #4A9FD8;
}

.tm-hero__subtitle {
    font-size: 17px;
    font-family: 'Poppins', sans-serif;
    color: #555555;
    margin: 0;
    line-height: 1.6;
}

.tm-reviews-section {
    padding: 30px 20px 80px;
    background: #ffffff;
}

.tm-reviews-container {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-left: 70px; /* espacio para que el avatar sobresalga a la izquierda */
}

.tm-review-card {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    background: #f0f2f8;
    border-radius: 12px;
    padding: 28px 40px 28px 36px;
    overflow: visible;
    /* sombra solo en la parte inferior */
    box-shadow: 0 8px 6px -6px rgba(0, 0, 0, 0.18);
    position: relative;
}

.tm-review-avatar-wrap {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    margin-left: -75px; /* hace sobresalir el avatar hacia la izquierda del card */
}

.tm-review-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.tm-review-avatar--placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #d0d4e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #8892a0;
}

.tm-review-content {
    flex: 1;
    min-width: 0;
}

.tm-review-author {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #1a1a1a;
    margin: 0 0 2px;
    line-height: 1.3;
}

.tm-review-position {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    margin: 0 0 14px;
    line-height: 1.3;
}

.tm-review-text {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #333333;
    line-height: 1.75;
    text-align: justify;
}

.tm-review-text p {
    margin: 0 0 12px;
}

.tm-review-text p:last-child {
    margin-bottom: 0;
}


/* BOTÓN WRITE A REVIEW */
.tm-write-review-wrap {
    text-align: center;
    padding: 0 20px 80px;
}


/* ── Tablet (mantiene efecto half-moon pero más pequeño) ── */
@media (max-width: 768px) {
    .tm-hero {
        margin-top: 28px;
        padding: 50px 20px 36px;
    }

    .tm-title-1,
    .tm-title-2 {
        font-size: 32px;
    }

    .tm-reviews-section {
        padding: 20px 16px 60px;
    }

    .tm-reviews-container {
        gap: 24px;
        padding-left: 55px; /* reducido para tablet */
    }

    .tm-review-card {
        padding: 24px 24px 24px 28px;
        gap: 20px;
    }

    .tm-review-avatar-wrap {
        margin-left: -60px; /* ajustado al nuevo tamaño */
    }

    .tm-review-avatar-wrap,
    .tm-review-avatar,
    .tm-review-avatar--placeholder {
        width: 90px;
        height: 90px;
    }

    .tm-review-avatar--placeholder {
        font-size: 32px;
    }
}

/* ── Mobile (layout vertical, avatar centrado sin half-moon) ── */
@media (max-width: 480px) {
    .tm-hero {
        padding: 36px 16px 28px;
    }

    .tm-title-1,
    .tm-title-2 {
        font-size: 26px;
    }

    .tm-hero__subtitle {
        font-size: 15px;
    }

    .tm-reviews-container {
        gap: 20px;
        padding-left: 0; /* sin overflow en móvil */
    }

    .tm-review-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 28px 20px 24px;
        gap: 16px;
    }

    .tm-review-avatar-wrap {
        margin-left: 0; /* sin half-moon en móvil */
    }

    .tm-review-avatar-wrap,
    .tm-review-avatar,
    .tm-review-avatar--placeholder {
        width: 100px;
        height: 100px;
    }

    .tm-review-text {
        text-align: left;
    }
}
