/* ===== GOOGLE FONTS & VARIABLES ===== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --header-height: 3.5rem;

    /* Colors */
    --primary-color: #E8BD8A; /* Dorado característico */
    --dark-color: #1A1A1A;
    --text-color: #333;
    --body-color: #FFFFFF;
    --container-color: #F5F5F5;

    /* Font */
    --body-font: 'Montserrat', sans-serif;
    --h1-font-size: 2.1rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;

    /* Font weight */
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
}

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

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    background-color: var(--body-color);
    color: var(--text-color);
    overflow-x: hidden;
}

.treatments-main {
    padding-top: var(--header-height);
}

h1, h2, h3 {
    font-weight: var(--font-semi-bold);
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section {
    padding: 4rem 0 2rem;
}

.section__title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.section__subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.section__description {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    max-width: 800px;
    margin: -2rem auto 3rem auto;
}

.text--primary {
    color: var(--primary-color);
}

/* ===== REUSABLE CSS CLASSES ===== */
.button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: var(--font-medium);
    transition: background-color .3s;
    border: none;
    cursor: pointer;
}


.button--primary {
    background-color: var(--primary-color);
    color: var(--dark-color);
}

.button--primary:hover {
    background-color: #c9a975; /* Un tono más oscuro para el hover */
}

.button--rounded {
    border-radius: 25px;
}

.button--secondary-outline {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

/* ===== HEADER & NAV ===== */
.header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--body-color);
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: block;
    width: 150px;
    height: 50px;
    background-image: url('../images/logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.nav__list {
    display: flex;
    column-gap: 2rem;
}

.nav__link {
    font-weight: var(--font-medium);
    transition: color .3s;
}

.nav__link:hover, .nav__link.active-link {
    color: var(--primary-color);
}

.nav__toggle {
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

.nav__link:hover {
    color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero-slider {
    padding-top: var(--header-height);
    width: 100%;
    height: 450px;
    background-color: var(--primary-color);
}

.swiper-container {
    width: 100%;
    height: 100%;
    touch-action: pan-y;
}

.hero-slide {
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-1 {
    background-image: none;
}

.hero-2 {
    background-image: url('https://wsmile.com.co/wp-content/uploads/2024/11/fondo_banner_2.jpg');
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.6;
}

.swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

.hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Se elimina la alineación general para controlar cada item por separado */
    gap: 2rem;
}

.hero__content {
    animation: fadeInDown 1s ease-out;
    align-self: center; /* Se centra el texto verticalmente */
}

.hero__title {
    font-size: var(--h1-font-size);
    color: var(--dark-color);
    margin-bottom: 1rem;
    margin-top: 2rem;
    line-height: 1.2;
}

.hero__title-alt {
    color: white;
}

.hero__description {
    margin-bottom: 2rem;
    margin-left: 1rem;
    margin-right: 1rem;
    font-size: 1.1rem;

}

.hero__image img {
    max-width: 100%;
    border-radius: 8px;
    align-self: end; /* Se alinea la imagen a la parte inferior */
    margin-top: 2.5rem;
}

.hero__list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.hero__list li {
    color: white;
    font-size: 1.3rem;
    font-weight: var(--font-medium);
    margin-bottom: 1rem;
}

.hero__list i {
    color: #E2CAAE;
    margin-right: 1rem;
}

.form__group {
    margin-top: 0.5rem;
}

/* ===== INFO BOX & FEATURES SECTION ===== */
.features {
    background-color: var(--body-color);
}

.info-box__content {
    background-color: #f0eded;
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    max-width: 80%;
    text-align: center;
    margin: -9rem auto 4rem auto;
    position: relative;
    z-index: 10;
}

.info-box__content .button {
    margin-top: 1rem;
}

/* ===== TREATMENTS HERO SECTION ===== */
.treatments-hero {
    background-color: #E8BD8A;
    padding: 1.5rem 0;
}

.treatments-hero__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
}

.treatments-hero__image img {
    max-width: 100%;
    height: auto;
    margin-top: -2rem; 
    margin-bottom: -1.7rem;
    display: inline-block;
}

.treatments-hero__content {
    color: var(--dark-color);
}

.treatments-hero__title {
    font-size: 2rem;
    font-weight: var(--font-bold);
}

.treatments-hero__subtitle {
    font-size: 1.3rem;
    margin: 1rem 0 2rem;
}

.treatments-hero__actions .button {
    background-color: #B39674;
    color: white;
    font-weight: var(--font-bold);
}

.treatments-hero__actions .button:hover {
    background-color: #a28565;
}

.treatments-hero__actions .button i {
    margin-right: 0.5rem;
}

/* ===== CONTACT PAGE ===== */
.contact-main {
    padding-top: var(--header-height);
}

.contact__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 992px) {
    .contact__container {
        grid-template-columns: 1fr 1.2fr;
    }
}

.contact__info-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    color: var(--dark-color);
}

.contact__info-title:first-child {
    margin-top: 0;
}

.contact__info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact__info-item i {
    color: var(--primary-color);
    font-size: 1.4rem;
}

.contact__form .form__group {
    margin-bottom: 1.5rem;
}

.contact__form .form__input {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--body-font);
}

.contact__form .form__group--checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact__form .button {
    width: 100%;
}
/* ===== TREATMENTS PAGE ===== */
.treatments-page {
    background-color: var(--body-color);
}

/* Toggle Switch */
.toggle-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
    gap: 1rem;
}

.toggle__label {
    font-size: 1.1rem;
    font-weight: var(--font-medium);
    color: var(--dark-color);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--primary-color);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--dark-color);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

/* Detailed Treatment Cards */
.treatments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.treatment-card-detailed {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.treatment-card-detailed__image {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.treatment-card-detailed__content {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.treatment-card-detailed h3 {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.treatment-card-detailed p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.treatments-category-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature__item {
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform .3s, box-shadow .3s;
}

.feature__item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.feature__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.feature__title {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.feature__item p {
    color: var(--text-color);
    line-height: 1.6;
}

.feature__list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    text-align: left;
    display: inline-block;
}

.feature__list li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.feature__list i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--body-color);
}

.testimonials__container {
    /* Previene el scroll horizontal causado por el slider */
    overflow: hidden;
}

.testimonial-card {
    background-color: #fff;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
    height: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.testimonial__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.testimonial__photo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial__initial {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: var(--font-bold);
    color: white;
}

.testimonial__info {
    line-height: 1.4;
}

.testimonial__name {
    font-size: 1.1rem;
    font-weight: var(--font-semi-bold);
    color: var(--dark-color);
}

.testimonial__date {
    font-size: var(--small-font-size);
    color: #888;
}

.testimonial__body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.testimonial__service {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.testimonial__stars {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.testimonial__comment {
    font-style: italic;
    color: #555;
    line-height: 1.7;
    flex-grow: 1;
}

/* Estilos para la funcionalidad "Leer más" en testimonios */
.testimonial__comment.collapsed {
    max-height: 125px; /* Altura máxima inicial (aprox. 5-6 líneas) */
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.testimonial__comment.expanded {
    max-height: 1000px; /* Una altura grande para permitir que se expanda completamente */
    -webkit-mask-image: none;
    mask-image: none;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: var(--font-bold);
    cursor: pointer;
    padding: 0.5rem 0 0 0;
}
.testimonials-swiper {
    position: relative;
    padding-bottom: 3rem;
}

.testimonials-swiper .swiper-slide {
    width: 85%;
    height: auto;
}

.testimonials-swiper .swiper-pagination {
    position: absolute;
    bottom: 0;
}


/* ===== CTA SECTION ===== */
.cta {
    padding: 2rem 0;
}

.cta--background {
    background-color: var(--primary-color);
}

.cta__container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.cta__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
}

.cta__text {
    color: #FFFFFF;
}

.cta__title {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    text-align: left;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.cta__content p {
    margin: 0;
    text-align: left;
    opacity: 0.9;
    color: black;
}

.cta__button .button {
    white-space: nowrap;
    background-color: #FFFFFF;
    color: var(--dark-color);
}

.cta__button .button:hover {
    background-color: #f0f0f0;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: #fff;
    padding-top: 4rem;
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer__title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer__section p {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer__section a {
    color: #fff;
    transition: color .3s;
}

.footer__section a:hover {
    color: var(--primary-color);
}

.footer__social {
    display: flex;
    gap: 1.5rem;
}

.footer__social-link {
    font-size: 1.5rem;
}

.footer__copy {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #333;
    font-size: var(--small-font-size);
    color: #888;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
    .info-box__content {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .treatments-hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .treatments-hero__image {
        order: -1;
    }

    .contact__container {
        grid-template-columns: 1fr;
    }

    .hero-slider {
        height: auto;
    }

    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 0;
    }

    .hero__image {
        display: none;
    }

    .hero__title {
        font-size: 2rem;
    }

    .info-box__content {
        max-width: 90%;
        margin-top: -7rem;
        padding: 1.5rem;
    }

    .cta__content {
        flex-direction: column;
        text-align: center;
    }

    .cta__title, .cta__content p {
        text-align: center;
    }

    .nav__toggle {
        display: block;
    }

    .nav__menu {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: 100%;
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        transition: right .4s;
    }

    .nav__menu.show-menu {
        right: 0;
        background-color: gainsboro;
    }

    .nav__list {
        flex-direction: column;
        padding-top: 4rem;
        gap: 2.5rem;
        align-items: center;
    }

    .testimonials-swiper .swiper-slide {
        width: 85%;
    }
}

@media (min-width: 768px) {
    .testimonials-swiper .swiper-slide {
        width: auto;
    }
}
