﻿/* =======================
   Tratamientos Page Styles
   ======================= */

.tratamientos-main {
    padding: 6rem 2rem;
    background: var(--white-color);
    min-height: 100vh;
}

.tratamientos-section {
    max-width: 1400px;
    margin: 0 auto;
}

.tratamientos-section h1 {
    font-family: var(--h1-fontfamily);
    font-size: 3.5rem;
    color: var(--color-oscuro);
    text-align: center;
    margin-bottom: 4rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.tratamientos-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.tratamiento-detalle {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    background-color: var(--white-color);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    border: 1px solid var(--border-light);
    position: relative;
    padding: 0;
}

.tratamiento-detalle:last-child {
    border-bottom: 1px solid var(--border-light);
}

.tratamiento-detalle::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-fucsia), var(--color-rosa));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.tratamiento-imagen {
    overflow: hidden;
    min-height: 300px;
    width: 100%;
    height: 300px;
}

.tratamiento-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.tratamiento-detalle:hover .tratamiento-imagen img {
    transform: scale(1.05);
}

.tratamiento-detalle:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-fucsia);
}

.tratamiento-detalle:hover::before {
    opacity: 1;
}

.tratamiento-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 10px 0 16px;
    color: var(--color-fucsia, #ec1596);
    font-size: 0.95rem;
    font-weight: 600;
}

.sin-tratamientos {
    width: 100%;
    padding: 40px 20px;
    text-align: center;
}

.tratamiento-contenido {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.tratamiento-contenido h2 {
    font-family: var(--h2-fontfamily);
    font-size: 1.6rem;
    color: var(--color-oscuro);
    margin: 0 0 0.6rem 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.tratamiento-contenido p {
    color: var(--text-light);
    font-size: 0.96rem;
    line-height: 1.7;
    margin: 0 0 1.4rem 0;
}

.botones-tratamiento {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.btn-mas-info {
    padding: 0.8rem 2rem;
    border: 1px solid var(--color-fucsia);
    background-color: transparent;
    color: var(--color-fucsia);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 0;
    transition: all 0.4s ease;
    letter-spacing: 1px;
    font-family: var(--font-family);
    text-transform: uppercase;
}

.btn-mas-info:hover {
    background-color: var(--color-fucsia);
    color: var(--white-color);
    box-shadow: none;
    transform: none;
}

.tratamiento-detalle .btn-reserva {
    align-self: flex-start;
    margin-top: 0;
    padding: 0.8rem 2rem;
    font-size: 0.8rem;
}

@media (max-width: 1024px) {
    .tratamientos-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* =======================
   Dialogs - Especificaciones
   ======================= */

.dialog-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.dialog-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-content {
    background-color: var(--white-color);
    border-radius: 0;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.3s ease;
    border: 1px solid var(--border-light);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.dialog-header h2 {
    font-family: var(--h2-fontfamily);
    font-size: 1.8rem;
    color: var(--color-oscuro);
    margin: 0;
    font-weight: 400;
}

.dialog-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-fucsia);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog-close:hover {
    color: var(--color-rosa);
}

.dialog-section {
    margin-bottom: 2rem;
}

.dialog-section h3 {
    font-family: var(--h4-fontfamily);
    font-size: 0.95rem;
    color: var(--color-fucsia);
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.dialog-section p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.beneficios-dialog {
    list-style: none;
    padding: 0;
    margin: 0;
}

.beneficios-dialog li {
    color: var(--text-light);
    font-size: 0.95rem;
    padding: 0.6rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.beneficios-dialog li:before {
    content: "Â·";
    position: absolute;
    left: 0;
    color: var(--color-fucsia);
    font-weight: 400;
    font-size: 1.2rem;
}

.dialog-footer {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.dialog-footer button {
    flex: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .tratamientos-section h1 {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .tratamiento-detalle {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .tratamiento-detalle.tratamiento-right {
        grid-template-columns: 1fr;
    }

    .tratamiento-detalle.tratamiento-right .tratamiento-imagen {
        order: 1;
    }

    .tratamiento-detalle.tratamiento-right .tratamiento-contenido {
        order: 2;
    }

    .tratamiento-imagen {
        min-height: 240px;
        height: 240px;
    }

    .tratamiento-contenido {
        padding: 1.4rem;
    }

    .tratamiento-contenido h2 {
        font-size: 1.35rem;
        margin-bottom: 0.5rem;
    }

    .tratamiento-contenido p {
        font-size: 0.95rem;
    }

    .dialog-content {
        padding: 2rem;
    }

    .dialog-header h2 {
        font-size: 1.4rem;
    }
}



