:root {
    --primary-light: #c5e1d2;
    --primary: #609b7f;
    --primary-dark: #38785f;
    --primary-darker: #0f211a;
    --secondary: #2a3d3a;
    --secondary-light: #455b58;
    --accent: #5a6755;
    --light: #f5f9f7;
    --dark: #1a1a1a;
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --success: #5f9c7a;
    --warning: #f2cc8f;
    --danger: #e07a5f;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-bg-dark: rgba(35, 35, 35, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
    --border-radius-sm: 8px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
    --section-padding: 100px 0;
    --chatbot-primary: var(--primary);
    --chatbot-primary-light: var(--primary-light);
    --chatbot-primary-dark: var(--primary-dark);
    --chatbot-gradient: linear-gradient(135deg, var(--primary), var(--primary-dark));
    --chatbot-bg: #fff;
    --chatbot-text: var(--text-dark);
    --chatbot-light-text: var(--text-light);
    --chatbot-border-radius: var(--border-radius);
    --chatbot-shadow: 0 10px 25px -5px rgba(96, 155, 127, 0.2), 0 10px 10px -5px rgba(96, 155, 127, 0.1);
    --chatbot-bubble-user: linear-gradient(135deg, var(--primary), var(--primary-dark));
    --chatbot-bubble-assistant: var(--gray-200);
    --chatbot-button-shadow: 0 4px 6px -1px rgba(96, 155, 127, 0.1), 0 2px 4px -1px rgba(96, 155, 127, 0.06);
    --chatbot-transition: var(--transition);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
}

h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark);
}

a:hover {
    color: var(--primary-dark);
}

.about {
    position: relative;
    overflow: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.about-img {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.about-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(143, 197, 168, 0.3) 0%, rgba(143, 197, 168, 0) 100%);
    z-index: 1;
}

.about-text h2 {
    margin-bottom: 30px;
    position: relative;
}

.about-text h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 70px;
    height: 3px;
    background-color: var(--primary);
}

.activities-container {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--card-shadow);
}

.activities-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.activities-content.active {
    display: block;
}

.activities-tabs {
    display: flex;
    background-color: var(--gray-100);
    border-radius: 30px;
    padding: 5px;
    margin-bottom: 30px;
}

.activities-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
    color: var(--secondary);
    position: relative;
}

.activities-title::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: var(--primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.activity-date {
    width: 100px;
    height: 100px;
    background-color: var(--primary);
    color: var(--text-light);
    border-radius: var(--border-radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-date .month {
    font-size: 1.2rem;
    font-weight: 700;
}

.activity-date .year {
    font-size: 1rem;
}

.activity-details {
    flex-grow: 1;
}

.activity-details h4 {
    margin-bottom: 10px;
    color: var(--secondary);
    font-size: 1.3rem;
}

.activity-info {
    list-style: none;
    margin-bottom: 20px;
}

.activity-info li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.activity-info li i {
    color: var(--primary);
    margin-top: 3px;
}

.activity-item {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--gray-200);
}

.activity-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.activity-subtitle {
    font-style: italic;
    color: var(--gray-600);
    margin-bottom: 15px;
}

.activity-tab {
    flex: 1;
    text-align: center;
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 25px;
    font-weight: 600;
    transition: var(--transition);
}

.activity-tab.active {
    background-color: var(--primary);
    color: var(--text-light);
}

.appointment {
    position: relative;
}

.appointment-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.appointment-form {
    background-color: var(--light);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--card-shadow);
}

.appointment-info {
    position: relative;
}

.appointments-login {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-300);
    text-align: center;
}

.appointments-login h4 {
    margin-bottom: 10px;
}

.appointments-login p {
    margin-bottom: 20px;
    color: var(--gray-600);
}

.area-select-content {
    padding: 20px;
}

.area-select-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.area-select-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.area-select-header h5 {
    margin: 0;
    color: var(--primary-darker);
    font-size: 1.2rem;
}

.area-select-icon {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.area-select-item {
    background-color: var(--light);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.area-select-item.selected {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.area-select-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.area-terapeuta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.area-therapies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.auth-buttons {
    margin-right: 1rem;
}

nav a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

nav a.active::after {
    width: 100%;
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.booking-calendar {
    background-color: var(--light);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.booking-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.booking-content h4 {
    margin-bottom: 20px;
    color: var(--dark);
    text-align: center;
}

.booking-content.active {
    display: block;
}

.booking-description {
    margin-bottom: 25px;
    text-align: center;
    color: var(--gray-600);
}

.booking-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.booking-summary {
    background-color: var(--gray-100);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    margin-bottom: 30px;
}

.booking-summary h5 {
    margin-bottom: 15px;
    text-align: center;
}

.booking-tab {
    flex: 1;
    padding: 12px 10px;
    text-align: center;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-600);
    transition: var(--transition);
    cursor: default;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-tab.active {
    background-color: var(--primary);
    color: var(--text-light);
}

.booking-tabs {
    display: flex;
    background-color: var(--gray-100);
    border-radius: 30px;
    padding: 5px;
    margin-bottom: 30px;
    gap: 5px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    background-color: var(--primary);
    color: var(--text-light);
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 20px;
}

.btn-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-login {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background-color: var(--primary);
    color: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-login:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--text-light);
}

.btn-primary {
    background-color: var(--primary-dark);
}

.btn-primary:hover {
    background-color: var(--secondary);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    color: var(--text-light);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    position: relative;
}

.calendar-day-available::after {
    content: '';
    position: absolute;
    bottom: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--success);
}

.calendar-day.disabled {
    color: var(--gray-400);
    cursor: not-allowed;
    background-color: var(--gray-100);
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.selected {
    background-color: var(--primary);
    color: var(--text-light);
}

.calendar-day.today {
    border: 2px solid var(--primary);
}

.calendar-day:hover:not(.disabled):not(.empty) {
    background-color: var(--primary-light);
    color: var(--text-light);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 10px;
}

/* Contenedor principal del chatbot */
.chatbot-container {
position: fixed;
bottom: 100px;
right: 30px;
width: 380px;
height: 600px;
background-color: var(--chatbot-bg);
border-radius: var(--chatbot-border-radius);
box-shadow: var(--chatbot-shadow);
z-index: 1000;
overflow: hidden;
display: flex;
flex-direction: column;
transition: var(--chatbot-transition);
transform: translateY(40px) scale(0.95);
opacity: 0;
pointer-events: none;
backdrop-filter: blur(10px);
border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Ajuste para pantallas grandes */
@media (min-width: 1440px) {
.chatbot-container {
    width: 420px;
    height: 650px;
    right: 50px;
    bottom: 120px;
}
}

.chatbot-container.active {
transform: translateY(0) scale(1);
opacity: 1;
pointer-events: all;
animation: chatbotAppear 0.5s forwards;
}

@keyframes chatbotAppear {
0% {
    transform: translateY(40px) scale(0.95);
    opacity: 0;
}
70% {
    transform: translateY(-10px) scale(1.02);
}
100% {
    transform: translateY(0) scale(1);
    opacity: 1;
}
}

/* Cabecera del chatbot */
.chatbot-header {
background: var(--chatbot-gradient);
color: var(--chatbot-light-text);
padding: 18px 24px;
display: flex;
justify-content: space-between;
align-items: center;
position: relative;
overflow: hidden;
}

.chatbot-header::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
opacity: 0.4;
}

.chatbot-title {
font-size: 1.3rem;
font-weight: 600;
position: relative;
z-index: 1;
letter-spacing: 0.3px;
}

.chatbot-close {
background: rgba(255, 255, 255, 0.2);
border: none;
color: var(--chatbot-light-text);
font-size: 1.1rem;
cursor: pointer;
width: 32px;
height: 32px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
position: relative;
z-index: 1;
transition: var(--chatbot-transition);
}

.chatbot-close:hover {
background: rgba(255, 255, 255, 0.3);
transform: rotate(90deg);
}

/* Cuerpo del chatbot */
.chatbot-body {
flex-grow: 1;
padding: 24px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 16px;
scrollbar-width: thin;
scrollbar-color: rgba(79, 70, 229, 0.2) transparent;
background-image: linear-gradient(rgba(243, 244, 246, 0.2) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(243, 244, 246, 0.2) 1px, transparent 1px);
background-size: 20px 20px;
background-position: center center;
}

.chatbot-body::-webkit-scrollbar {
width: 6px;
}

.chatbot-body::-webkit-scrollbar-thumb {
background-color: rgba(79, 70, 229, 0.2);
border-radius: 3px;
}

.chatbot-body::-webkit-scrollbar-track {
background: transparent;
}

/* Mensajes de chat */
.chat-message {
display: flex;
align-items: flex-start;
gap: 12px;
max-width: 90%;
animation: messageAppear 0.3s forwards;
transition: var(--chatbot-transition);
position: relative;
}

@keyframes messageAppear {
from {
    opacity: 0;
    transform: translateY(10px);
}
to {
    opacity: 1;
    transform: translateY(0);
}
}

.chat-message.user {
align-self: flex-end;
flex-direction: row-reverse;
}

.chat-avatar {
width: 42px;
height: 42px;
border-radius: 12px;
background-color: #F3F4F6;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
overflow: hidden;
position: relative;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
transition: border-radius 0.3s ease;
}

.chat-message:hover .chat-avatar {
border-radius: 50%;
}

.chat-avatar i {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 1.3rem;
line-height: 1;
width: auto;
height: auto;
display: block;
text-align: center;
color: var(--chatbot-primary);
}

.chat-message.user .chat-avatar {
background-color: var(--chatbot-primary-light);
}

.chat-message.user .chat-avatar i {
color: white;
}

.chat-bubble {
background-color: var(--chatbot-bubble-assistant);
padding: 14px 18px;
border-radius: 18px;
border-top-left-radius: 4px;
box-shadow: var(--chatbot-button-shadow);
color: var(--chatbot-text);
line-height: 1.6;
position: relative;
transition: var(--chatbot-transition);
font-size: 0.95rem;
}

.chat-message.user .chat-bubble {
background-image: var(--chatbot-bubble-user);
color: var(--chatbot-light-text);
border-radius: 18px;
border-top-right-radius: 4px;
}

.chat-bubble::after {
content: "";
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 0;
background-color: rgba(0,0,0,0.03);
transition: height 0.3s ease;
z-index: -1;
border-radius: inherit;
}

.chat-message:hover .chat-bubble::after {
height: 100%;
}

/* Opciones de chat */
.chat-options {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 12px;
}

.chat-option {
padding: 8px 16px;
background-color: #F9FAFB;
border: 1px solid #E5E7EB;
border-radius: 50px;
font-size: 0.9rem;
cursor: pointer;
transition: var(--chatbot-transition);
box-shadow: var(--chatbot-button-shadow);
transform: translateY(0);
color: var(--chatbot-primary);
}

.chat-option:hover {
background-color: var(--chatbot-primary);
color: var(--chatbot-light-text);
border-color: var(--chatbot-primary);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

/* Pie del chatbot */
.chatbot-footer {
padding: 18px 24px;
border-top: 1px solid #E5E7EB;
display: flex;
gap: 12px;
background-color: rgba(249, 250, 251, 0.8);
backdrop-filter: blur(5px);
}

.chat-input {
flex-grow: 1;
padding: 14px 20px;
border: 1px solid #E5E7EB;
border-radius: 24px;
font-size: 0.95rem;
outline: none;
background-color: white;
color: var(--chatbot-text);
transition: var(--chatbot-transition);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chat-input:focus {
border-color: var(--chatbot-primary);
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.chat-send {
width: 46px;
height: 46px;
border-radius: 50%;
background-image: var(--chatbot-gradient);
color: var(--chatbot-light-text);
border: none;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: var(--chatbot-transition);
box-shadow: var(--chatbot-button-shadow);
position: relative;
overflow: hidden;
}

.chat-send::before {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background-color: rgba(255, 255, 255, 0.2);
border-radius: 50%;
transform: translate(-50%, -50%);
transition: width 0.5s ease, height 0.5s ease;
}

.chat-send:hover::before {
width: 150%;
height: 150%;
}

.chat-send i {
position: relative;
z-index: 1;
}

.chat-send:hover {
transform: translateY(-2px);
box-shadow: 0 6px 15px rgba(79, 70, 229, 0.25);
}

.chat-send:active {
transform: translateY(1px);
}

/* Botón de activación del chatbot */
.chatbot-toggle {
position: fixed;
bottom: 40px;
right: 40px;
width: 64px;
height: 64px;
border-radius: 20px;
background-image: var(--chatbot-gradient);
color: var(--chatbot-light-text);
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
box-shadow: var(--chatbot-shadow);
z-index: 999;
transition: var(--chatbot-transition);
overflow: hidden;
}

.chatbot-toggle::before {
content: '';
position: absolute;
width: 100%;
height: 100%;
background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
opacity: 0.4;
transition: var(--chatbot-transition);
}

.chatbot-toggle:hover {
border-radius: 30px;
transform: translateY(-5px) scale(1.05);
box-shadow: 0 15px 25px rgba(79, 70, 229, 0.3);
}

.chatbot-toggle i {
font-size: 1.6rem;
position: relative;
z-index: 1;
}

.chatbot-toggle:hover i {
animation: pulse 2s infinite;
}

@keyframes pulse {
0% {
    transform: scale(1);
}
50% {
    transform: scale(1.1);
}
100% {
    transform: scale(1);
}
}

/* Indicador de escritura */
.typing-indicator {
display: flex;
align-items: center;
gap: 5px;
padding: 12px 16px;
background-color: var(--chatbot-bubble-assistant);
border-radius: 18px;
width: fit-content;
}

.typing-dot {
width: 8px;
height: 8px;
background-color: var(--chatbot-primary);
border-radius: 50%;
opacity: 0.6;
animation: typingAnimation 1.4s infinite;
}

.typing-dot:nth-child(1) {
animation-delay: 0s;
}

.typing-dot:nth-child(2) {
animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
animation-delay: 0.4s;
}

@keyframes typingAnimation {
0%, 100% {
    transform: translateY(0);
    opacity: 0.6;
}
50% {
    transform: translateY(-5px);
    opacity: 1;
}
}

.contact {
    background-color: var(--gray-100);
    position: relative;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-form {
    background-color: var(--light);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--card-shadow);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: var(--dark);
}

.contact-icon {
    min-width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-text h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.contact-text p {
    color: var(--gray-600);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;

    overflow-x: hidden;

}

/* Asegurar responsividad */
.copyright {
    margin-bottom: 0;
}

.desarrollado-por {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

/* Desarrollado por más grande pero elegante */
.desarrollado-por {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 115%; /* Incrementado al 115% */
    /* font-weight: 500; */
    letter-spacing: 0.02em;
    padding: 4px 8px; /* Ligero padding para dar más espacio */
    transition: all 0.3s ease;
}

/* Contenedor con padding para absorber el efecto */
.desarrollado-por {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 5px; /* Espacio para absorber el efecto */
    transition: color 0.3s ease; /* Solo transición de color */
}

.desarrollado-por span {
    color: rgba(255, 255, 255, 0.95);
}

.desarrollado-por span {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

/* Efecto hover sutil */
.desarrollado-por:hover {
    transform: scale(1.03);
}

.desarrollado-por:hover {
    color: rgba(255, 255, 255, 1); /* Más brillante */
}

.desarrollado-por:hover .intellia-logo {
    filter: brightness(1.15);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

/* Mejora visual de los elementos del dropdown */
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--dark);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.dropdown-item.logout {
    border-top: 1px solid #eee;
    color: var(--danger);
}

.dropdown-item:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--dark);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

section {
    padding: var(--section-padding);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.feature-icon {
    min-width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.footer-about {
    color: var(--text-light);
}

.footer-about p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Ajustar posicionamiento según sea necesario */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden; /* Contiene los efectos */
}

.footer-contact-icon {
    color: var(--primary-light);
    font-size: 1.2rem;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-heading {
    font-size: 1.3rem;
    margin-bottom: 25px;
    color: var(--text-light);
    position: relative;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-light);
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-light);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.form-check-input {
    margin-top: 3px;
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--light);
    color: var(--dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(143, 197, 168, 0.3);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-header {
    margin-bottom: 30px;
}

.form-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236c757d' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px;
    padding-right: 2.5rem;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilos para los botones de autenticación */
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
    margin-top: 0;
    padding-top: 80px;
    padding-bottom: 50px;
}

/* Mejora de contraste para la sección hero */
.hero {
    position: relative;
}

.hero h1 {
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--dark);
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--dark);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    z-index: -1;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-content {
    max-width: 600px;
    margin-top: 0;
}

.hero-img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
    max-width: 600px;
    z-index: -1;
    opacity: 0.9;
}

.info-card {
    background-color: var(--light);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--card-shadow);
    height: 100%;
}

.info-card {
    max-width: 100%;
    overflow-x: hidden;
}

.info-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.info-content p {
    color: var(--gray-600);
    margin-bottom: 5px;
}

.info-header {
    margin-bottom: 30px;
}

.info-header h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.info-icon {
    min-width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.intellia-link {
    display: flex;
    align-items: center;
    color: var(--primary-light);
    transition: all 0.3s ease;
}

/* Contenedor del logo con padding para absorber efecto */
.intellia-link {
    display: inline-block;
    padding: 2px; /* Espacio para absorber el efecto */
    overflow: hidden; /* Crucial para contener el efecto */
}

.intellia-link:hover {
    opacity: 0.8;
    transform: translateY(-2px);
}

/* Efectos hover seguros */
.intellia-link:hover .intellia-logo {
    filter: brightness(1.25); /* Efecto de brillo */
    /* Sin transform:scale() que causa problemas */
}

.intellia-logo {
    height: 24px;
    width: auto;
    vertical-align: middle;
    display: inline-block;
}

/* Logo más grande */
.intellia-logo {
    height: 35px;
    filter: brightness(1.05) contrast(1.05);
    transition: all 0.3s ease;
}

/* Logo con efecto de brillo */
.intellia-logo {
    height: 30px;
    width: auto;
    display: block;
    transition: filter 0.3s ease; /* Solo filtro, no tamaño */
}

.legend-color {
    width: l15px;
    height: 15px;
    border-radius: 3px;
}

.legend-color.available {
    border: 1px solid var(--primary-light);
    background-color: var(--light);
}

.legend-color.selected {
    background-color: var(--primary);
    border: 1px solid var(--primary);
}

.legend-color.unavailable {
    background-color: var(--gray-200);
    border: 1px solid var(--gray-300);
    position: relative;
}

.legend-color.unavailable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg,
            transparent,
            transparent 3px,
            rgba(0, 0, 0, 0.05) 3px,
            rgba(0, 0, 0, 0.05) 6px);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 50px;
    height: 50px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
}

.newsletter-btn {
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background-color: var(--primary-dark);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 50px;
    font-size: 0.9rem;
}

body {
    background-color: var(--light);
    color: var(--primary-darker);
    line-height: 1.6;
    transition: background-color 0.3s ease;
}

footer {
    background-color: var(--secondary);
    color: var(--text-light);
    padding: 80px 0 30px;
}

footer {
    overflow: hidden;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--gray-600);
}

.selected-date-info {
    text-align: center;
    margin-bottom: 20px;
    padding: 10px;
    background-color: var(--gray-100);
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

.selected-date-info p {
    margin: 0;
}

.service-card {
    background-color: var(--light);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-content {
    padding: 25px;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.service-img {
    position: relative;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--text-light);
    font-size: 3rem;
}

.service-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, var(--light), transparent);
}

.service-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.service-select-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.service-select-item {
    background-color: var(--gray-100);
    border-radius: var(--border-radius-sm);
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.service-select-item h5 {
    font-size: 0.9rem;
    margin: 0;
    color: var(--dark);
}

.service-select-item.selected {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.service-select-item.selected .service-select-icon {
    background-color: var(--primary);
    color: var(--text-light);
}

.service-select-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.services {
    background-color: var(--gray-100);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--text-light);
    transform: translateY(-3px);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.summary-detail {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.summary-item i {
    color: var(--success);
    font-size: 1.2rem;
}

.summary-label {
    font-weight: 500;
}

.summary-value {
    color: var(--primary-dark);
    font-weight: 600;
}

.terapeuta-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.terapeuta-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.terapeuta-info h6 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: var(--secondary);
}

.terapeuta-info p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    margin-right: 20px;
}

.therapist-card {
    background-color: var(--light);
    border-radius: var(--border-radius-sm);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.therapist-card.selected {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.therapist-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.therapist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.therapist-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.therapist-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.therapist-info {
    flex-grow: 1;
}

.therapist-info h5 {
    margin-bottom: 5px;
    color: var(--dark);
}

.therapist-info p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 10px;
}

.therapist-rating {
    display: flex;
    align-items: center;
    color: #FFD700;
    font-size: 0.9rem;
}

.therapist-rating span {
    color: var(--gray-600);
    margin-left: 5px;
}

.therapy-tag {
    padding: 6px 12px;
    background-color: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 20px;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
   
    font-size: clamp(0.65rem, 2.5vw, 0.85rem);
}

.time-slot-item {
    background-color: var(--light);
    border: 1px solid var(--primary-light);
    border-radius: var(--border-radius-sm);
    padding: 12px 10px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.time-slot-item.selected {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--text-light);
}

.time-slot-item.unavailable {
    background-color: var(--gray-200);
    border-color: var(--gray-300);
    color: var(--gray-500);
    cursor: not-allowed;
    position: relative;
}

.time-slot-item.unavailable::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: repeating-linear-gradient(45deg,
            transparent,
            transparent 5px,
            rgba(0, 0, 0, 0.05) 5px,
            rgba(0, 0, 0, 0.05) 10px);
}

.time-slot-item:hover:not(.unavailable) {
    background-color: var(--primary-light);
    color: var(--text-light);
}

.time-slot-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.time-slots-container {
    margin-bottom: 30px;
}

.time-slots-date {
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* SOLUCIÓN PARA FOOTER CON EFECTO HOVER */
html, body {
    overflow-x: hidden;
}

.training-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: var(--transition);
}

.training-card h4 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.training-card p {
    margin-bottom: 20px;
}

.training-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.training-detail {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.training-detail i {
    color: var(--primary);
}

.training-details {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.training-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 2rem;
}

.trainings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.trip-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.trip-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.trip-card:hover .trip-img img {
    transform: scale(1.1);
}

.trip-content {
    padding: 25px;
}

.trip-content h4 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.trip-content p {
    margin-bottom: 20px;
}

.trip-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.trip-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.trip-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.trips-intro {
    margin-bottom: 30px;
    text-align: center;
}

.trips-intro p {
    margin-bottom: 15px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: var(--gray-500);
    border-radius: 50%;
    animation: typing 1.5s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.5s;
}

.typing-dot:nth-child(3) {
    animation-delay: 1s;
}

.typing-indicator {
    display: flex;
    gap: 3px;
    padding: 10px;
    background-color: var(--gray-200);
    border-radius: 18px;
    border-bottom-left-radius: 5px;
    width: fit-content;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    margin-top: 0.5rem;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 100;
    overflow: hidden;
    display: none;
}

/* Responsive para móvil */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    margin-top: 0.5rem;
    background-color: white; /* Color de fondo definido explícitamente */
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Aumentar el z-index para asegurar que esté por encima de otros elementos */
    overflow: visible; /* Cambiar de hidden a visible */
    display: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.user-menu {
    position: relative;
}

/* Asegurar que el contenedor de usuario tenga el posicionamiento correcto */
.user-menu {
    position: relative;
    z-index: 1000; /* Asegurar que esté por encima de otros elementos */
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 2rem;
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-menu-toggle:hover {
    background-color: rgba(var(--primary-rgb), 0.1);
}

.user-menu.active .user-dropdown {
    display: block;
    animation: fadeIn 0.2s ease;
}

.user-menu.active .user-dropdown {
    display: block;
    opacity: 1;
    visibility: visible;
    max-height: 300px; /* Definir una altura máxima */
    overflow-y: auto; /* Solo mostrar scrollbar si es necesario */
}

.user-name {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background-color: #25D366;
    color: white;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.whatsapp-link {
    color: white;
}

.whatsapp-link i {
    font-size: 1.2rem;
}

.whatsapp-link:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: white;
}

.whatsapp-link:hover {
    color: white;
}

.whatsapp-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.workshop-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.workshop-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.workshop-content {
    padding: 25px;
}

.workshop-content p {
    margin-bottom: 25px;
}

.workshop-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.workshop-header h3 {
    color: var(--text-light);
    margin: 0;
    font-size: 1.5rem;
}

.workshop-icon {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.workshops {
    background-color: var(--light);
    position: relative;
}

.workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .desarrollado-por {
        flex-direction: column;
        margin-top: 10px;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-top: 0;
    }

    .hero-img {
        display: none;
    }

    .about-content,
    .appointment-container,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

    .chatbot-container {
        width: 300px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--light);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 30px;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        max-width: 350px;
        margin: 0 auto;
    }

    .btn-group {
        justify-content: center;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .info-card {
        margin-top: 30px;
    }

    .chatbot-container {
        bottom: 80px;
        right: 10px;
        width: calc(100% - 20px);
        max-width: 350px;
    }

    .chatbot-toggle {
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    :root {
        --section-padding: 60px 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .btn-group {
        flex-direction: column;
    }

    .appointment-form,
    .info-card,
    .contact-form {
        padding: 25px;
    }

    .feature-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .feature-icon {
        margin-bottom: 10px;
    }
}

@media (max-width: 768px) {


    .service-select-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }


    .service-select-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto 10px;
    }


    .therapist-card {
        padding: 15px;
        gap: 10px;
    }

    .therapist-img {
        width: 60px;
        height: 60px;
    }


    .booking-calendar {
        padding: 15px 10px;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
    }

    .calendar-days {
        gap: 5px;
    }


    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 10px;
    }

    .time-slot-item {
        padding: 10px 5px;
        font-size: 0.85rem;
    }


    .booking-nav {
        flex-wrap: wrap;
        gap: 10px;
    }


    .booking-summary {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .service-select-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .service-select-item {
        padding: 15px 10px;
    }

    .service-select-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .booking-tabs {
        overflow-x: auto;
        justify-content: flex-start;
        flex-wrap: nowrap;
        padding-bottom: 10px;
    }

    .booking-tab {
        flex: 0 0 auto;
        white-space: nowrap;
        min-width: fit-content;
        padding: 10px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    
        line-height: 1.2;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 1.8rem;
    
        line-height: 1.2;
    }

    .hero h1 {
        font-size: 1.8rem;
    
    }

    .hero-content {
        margin-top: 20px;
    }

    .hero p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }

    .appointment-form,
    .info-card,
    .contact-form {
        padding: 20px 15px;
    }
}

@media (max-width: 768px) {

    .booking-summary,
    .calendar-weekdays,
    .calendar-days,
    .time-slots-grid {
        width: 100%;
        overflow-x: visible;
    }
}

@media (min-width: 768px) {
    .area-select-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .area-terapeuta {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .area-therapies {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .whatsapp-link {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .desarrollado-por {
        margin-top: 8px;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .desarrollado-por {
        margin-top: 15px;
        justify-content: center;
    }
}

/* Corrección para el menú desplegable de usuario */
@media (max-width: 768px) {
    .user-name {
        display: none;
    }
    
    .btn-login span {
        display: none;
    }
    
    .btn-login {
        padding: 0.5rem;
    }
    
    .user-menu-toggle {
        padding: 0.5rem;
    }
    
    .user-menu-toggle .fa-chevron-down {
        display: none;
    }
}

/* Ajustes para solucionar el problema del dropdown */

/* 1. Asegurar que el header no limite el overflow */
.header-container {
    overflow: visible;
}

/* 2. Asegurar que los controles del header no limiten el overflow */
.header-controls {
    overflow: visible;
}

/* 3. Arreglar el posicionamiento del dropdown */
.user-dropdown {
    position: absolute;
    top: 100%;         /* Posicionarlo debajo del botón */
    right: 0;          /* Alinearlo a la derecha */
    z-index: 9999;     /* Z-index muy alto para aparecer sobre todo */
    margin-top: 10px;  /* Espacio entre el botón y el dropdown */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    max-height: none;  /* Eliminar altura máxima que causa scrolling */
    overflow: visible; /* Eliminar scrolling */
    width: 220px;      /* Un poco más ancho para evitar ajustes de texto */
}

/* 4. Asegurar que el menú de usuario tenga posicionamiento correcto */
.user-menu {
    position: relative;
    z-index: 9999;
}

/* 5. Eliminar cualquier restricción de altura */
.user-menu.active .user-dropdown {
    max-height: none;
    overflow: visible;
}

/* 6. Forzar que los elementos del dropdown sean visibles */
.dropdown-item {
    position: relative;
    z-index: 10000;
}

/* Estilos modernos para imágenes de terapeutas */
.terapeuta-profile {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.area-select-item:hover .terapeuta-profile {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(96, 155, 127, 0.2);
}

/* Estilos para tarjetas de servicios destacados */
.featured-service {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.featured-service:hover {
    transform: translateY(-10px);
}

.service-img-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
}

.service-real-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.featured-service:hover .service-real-img {
    transform: scale(1.1);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(96, 155, 127, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 20px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.service-overlay i {
    color: white;
    font-size: 2rem;
    margin-bottom: 10px;
}

.featured-service:hover .service-overlay {
    opacity: 1;
}

/* Estilo moderno para la sección de equipo */
.team-collage {
    position: relative;
    height: 450px;
    width: 100%;
}

.team-img {
    position: absolute;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    transition: all 0.5s ease;
}

.team-img.valentina {
    width: 65%;
    height: 70%;
    top: 0;
    right: 0;
    z-index: 2;
}

.team-img.gabriel {
    width: 55%;
    height: 60%;
    bottom: 0;
    left: 0;
    z-index: 1;
}

.team-decoration {
    position: absolute;
    width: 150px;
    height: 150px;
    bottom: 50px;
    right: 30px;
    border-radius: 20px;
    background-color: rgba(96, 155, 127, 0.1);
    border: 5px solid var(--primary-light);
    z-index: 0;
}

.about-content:hover .team-img.valentina {
    transform: translateY(-10px) rotate(2deg);
}

.about-content:hover .team-img.gabriel {
    transform: translateY(10px) rotate(-2deg);
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .team-collage {
        height: 350px;
    }
    
    .team-img.valentina,
    .team-img.gabriel {
        width: 75%;
        height: 50%;
    }
    
    .team-decoration {
        width: 100px;
        height: 100px;
    }
}

/* Corrección de alineación para área terapéutica */
.area-select-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
}

.area-select-item {
    display: flex;
    flex-direction: column;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    background-color: white;
}

/* Asegurar que los encabezados tengan la misma altura */
.area-select-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: var(--primary-light);
    height: 80px; /* Altura fija para encabezados */
}

.area-select-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 10px;
    margin-right: 15px;
    flex-shrink: 0;
}

.area-select-header h5 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Estilos consistentes para las imágenes de los terapeutas */
.terapeuta-img {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
}

.terapeuta-profile {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Estructura consistente para la información del terapeuta */
.area-terapeuta {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
    height: 110px; /* Altura fija */
}

.terapeuta-info {
    margin-left: 15px;
}

.terapeuta-info h6 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    font-weight: 600;
}

.terapeuta-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.4;
}

/* Contenedor de etiquetas de terapia */
.area-therapies {
    padding: 15px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 120px; /* Altura mínima */
}

.therapy-tag {
    background-color: var(--gray-100);
    color: var(--gray-600);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.therapy-tag:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* Mejora para animación al seleccionar */
.area-select-item.selected {
    box-shadow: 0 10px 30px rgba(96, 155, 127, 0.15);
    transform: translateY(-5px);
    border: 2px solid var(--primary);
}

/* Mejoras responsive */
@media (max-width: 767px) {
    .area-select-grid {
        grid-template-columns: 1fr;
    }
    
    .area-therapies {
        min-height: auto;
    }
}

/* Estilos del día del calendario */
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    position: relative;
}

.calendar-day-available::after {
    content: '';
    position: absolute;
    bottom: 3px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--success);
}

.calendar-day.disabled {
    color: var(--gray-400);
    cursor: not-allowed;
    background-color: var(--gray-100);
}

.calendar-day.empty {
    cursor: default;
}

.calendar-day.selected {
    background-color: var(--primary);
    color: var(--text-light);
}

.calendar-day.today {
    border: 2px solid var(--primary);
}

.calendar-day:hover:not(.disabled):not(.empty) {
    background-color: var(--primary-light);
    color: var(--text-light);
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 10px;
}

/* IMPORTANTE: Eliminé la primera definición duplicada de .calendar-nav */

/* Navegación del calendario - estructura principal */
.calendar-nav {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    justify-content: space-between;
    position: relative;
}

/* Contenedor para los controles de navegación */
.calendar-nav-main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    background-color: transparent; /* Asegura que no tenga fondo */
}

.current-date {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 15px;
    min-width: 150px;
    text-align: center;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

/* Botones de navegación */
.btn-cal-nav {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: transparent;
    border-radius: 50%;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.8;
    position: relative;
    z-index: 2;
    isolation: isolate; /* Aísla el botón para efectos de stacking context */
}


.btn-cal-nav:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    opacity: 1;
}

/* Botón "Hoy" específico */
#today-btn {
    background-color: var(--gray-100);
    color: var(--primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    /* No necesita margin-left: auto si estamos usando justify-content: space-between */
}

#today-btn:hover {
    background-color: var(--primary);
    color: white;
    /* transform: translateY(-2px); */
    box-shadow: 0 4px 8px rgba(96, 155, 127, 0.2);
}

/* Responsive */
@media (max-width: 576px) {
    .calendar-nav {
        padding: 10px;
    }
    
    .current-date {
        font-size: 0.9rem;
        min-width: 120px;
        margin: 0 8px;
    }
    
    .btn-cal-nav {
        width: 35px;
        height: 35px;
    }
}


/* Ajusta el contenedor de los botones para que no tenga efectos hover */
.calendar-nav-main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    background-color: transparent; /* Importante */
}

/* Asegúrate que el botón tenga una posición y z-index adecuado */
.btn-cal-nav {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: transparent;
    border-radius: 50%; /* Este es el border-radius correcto */
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.8;
    position: relative; /* Importante */
    z-index: 2; /* Asegura que esté por encima */
}

/* Ajusta el efecto hover para que sea muy específico al botón */
.btn-cal-nav:hover {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    opacity: 1;
    border-radius: 50%; /* Forzar border-radius correcto en hover */
}

/* Navegación del calendario - contenedor principal */
.calendar-nav {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    justify-content: space-between;
    position: relative;
    overflow: visible; /* Asegura que los botones no se recorten */
}

/* Contenedor principal de áreas terapéuticas */
.therapy-areas {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-bottom: 50px;
}

/* Tarjeta de área terapéutica */
.therapy-area-card {
    background-color: var(--light);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.therapy-area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Encabezado del área terapéutica */
.therapy-area-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    padding: 30px;
    color: var(--primary-darker);
    position: relative;
    overflow: hidden;
}

.therapy-area-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: 1;
}

/* Título del área terapéutica */
.therapy-area-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}

.therapy-area-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.therapy-area-title h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Información del terapeuta */
.therapy-area-therapist {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.therapist-info {
    max-width: 60%;
}

.therapist-info h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.therapist-info p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

.therapist-img {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.therapist-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.therapy-area-card:hover .therapist-img {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Contenido del área terapéutica */
.therapy-area-content {
    padding: 35px;
}

.therapy-area-description {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--gray-600);
    max-width: 950px;
}

/* Imagen destacada de la terapia */
.therapy-feature-image {
    position: relative;
    margin-bottom: 35px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.therapy-feature-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.therapy-area-card:hover .therapy-feature-image img {
    transform: scale(1.03);
}

.therapy-image-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 10px 20px;
    border-radius: 30px;
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.therapy-area-card:hover .therapy-image-badge {
    transform: translateY(-5px);
}

.therapy-image-badge i {
    font-size: 1rem;
}

/* Grid de terapias */
.therapies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* Item de terapia */
.therapy-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background-color: rgba(var(--primary-rgb), 0.05);
    border-radius: var(--border-radius);
    transition: var(--transition);
    border-left: 3px solid var(--primary);
}

.therapy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    background-color: rgba(var(--primary-rgb), 0.1);
}

.therapy-item-icon {
    min-width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1.4rem;
    transition: var(--transition);
}

.therapy-item:hover .therapy-item-icon {
    background-color: var(--primary);
    color: var(--text-light);
    transform: rotate(360deg);
}

.therapy-item-content h4 {
    font-size: 1.2rem;
    margin: 0 0 10px 0;
    color: var(--dark);
}

.therapy-item-content p {
    margin: 0;
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA de terapias */
.therapy-cta {
    text-align: center;
    margin-top: 50px;
}

.therapy-cta p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--gray-600);
}

/* Efectos decorativos adicionales */
.therapy-feature-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 50%);
    z-index: 1;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.therapy-area-card:hover .therapy-feature-image::before {
    opacity: 0.5;
}

/* Patrón decorativo en esquina */
.therapy-feature-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5z' fill='%23ffffff' fill-opacity='0.3' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
    border-bottom-right-radius: 100%;
    pointer-events: none;
    z-index: 2;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 992px) {
    .therapy-area-title h3 {
        font-size: 1.8rem;
    }
    
    .therapy-area-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .therapist-img {
        width: 100px;
        height: 100px;
    }
    
    .therapist-info h4 {
        font-size: 1.2rem;
    }
    
    .therapist-info p {
        font-size: 0.9rem;
    }
    
    .therapy-area-content {
        padding: 25px;
    }
    
    .therapy-area-description {
        font-size: 1rem;
    }
    
    .therapy-feature-image img {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .therapy-area-therapist {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .therapist-info {
        max-width: 100%;
    }
    
    .therapist-img {
        margin-left: auto;
        margin-right: auto;
    }
    
    .therapies-grid {
        grid-template-columns: 1fr;
    }
    
    .therapy-item {
        padding: 20px;
    }
    
    .therapy-feature-image img {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .therapy-area-header {
        padding: 20px;
    }
    
    .therapy-area-title {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .therapy-area-icon {
        margin: 0 auto;
    }
    
    .therapist-info {
        text-align: center;
        width: 100%;
    }
    
    .therapy-area-content {
        padding: 20px;
    }
    
    .therapy-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .therapy-item-icon {
        margin-bottom: 15px;
    }
    
    .therapy-feature-image img {
        height: 200px;
    }
    
    .therapy-image-badge {
        bottom: 10px;
        right: 10px;
        padding: 8px 15px;
        font-size: 0.8rem;
    }
}

/* Variable de color RGB para uso en opacidades */
:root {
    --primary-rgb: 96, 155, 127;
}

/* Animaciones adicionales */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.therapy-area-card:hover .therapy-area-icon i {
    animation: pulse 1s infinite;
}

/* Efecto de brillo para la insignia de la imagen */
.therapy-area-card:hover .therapy-image-badge {
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.5);
}

/* === CORRECCIONES GENERALES === */
html, body {
    overflow-x: hidden; /* Prevenir scroll horizontal */
    max-width: 100%;
}

/* === CORRECCIONES PARA SECCIÓN DE CITAS === */
/* Corregir problemas de overflow que impiden scroll */
.booking-content.active {
    display: block;
    max-height: none; /* Eliminar restricciones de altura */
    overflow: visible; /* Permitir que el contenido exceda el contenedor */
}

/* Asegurar que todos los contenedores permiten scroll cuando es necesario */
.booking-calendar, 
.calendar-weekdays,
.calendar-days,
.time-slots-grid,
.booking-summary {
    width: 100%;
    overflow-x: visible;
}

/* Mejorar tabs de reserva para que se deslicen horizontalmente en móviles */
.booking-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto; /* Permitir scroll horizontal */
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
    padding-bottom: 10px; /* Espacio para scrollbar */
    margin-bottom: 20px;
    scrollbar-width: thin; /* Para Firefox */
}

.booking-tabs::-webkit-scrollbar {
    height: 4px; /* Para Chrome/Safari */
}

.booking-tabs::-webkit-scrollbar-thumb {
    background-color: var(--primary-light);
    border-radius: 4px;
}

.booking-tab {
    flex: 0 0 auto; /* No permitir que se encojan */
    white-space: nowrap;
    min-width: fit-content;
    padding: 10px 15px;
}

/* Mejorar la navegación del formulario */
.booking-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

@media (max-width: 576px) {
    .booking-nav button {
        flex: 1 0 auto; /* Permitir que los botones crezcan en móviles */
    }
}

/* Corregir el calendario para dispositivos móviles */
@media (max-width: 768px) {
    .booking-calendar {
        padding: 15px 10px;
        width: 100%;
        max-width: 100%;
    }
    
    .calendar-days {
        gap: 4px; /* Reducir espaciado entre días */
    }
    
    .calendar-day {
        font-size: 0.8rem; /* Texto más pequeño */
    }

    .time-slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 10px;
    }
    
    .time-slot-item {
        padding: 10px 5px;
        font-size: 0.85rem;
    }
}

/* === CORRECCIONES PARA SECCIÓN DE TERAPIAS === */
/* Corregir solapamientos en tarjetas de terapia */
.therapy-item {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.therapy-item:hover {
    transform: translateY(-5px);
    z-index: 10; /* Mayor z-index al hacer hover para evitar solapamientos */
}

/* Mejorar responsividad del grid de terapias */
.therapies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    width: 100%;
}

/* Evitar que las imágenes con efectos parallax causen problemas de layout */
.therapy-feature-image {
    position: relative;
    overflow: hidden; /* Contener el efecto de escala */
}

.therapy-feature-image img {
    transform-origin: center; /* Escalar desde el centro */
}

/* Corregir problema con la información del terapeuta en móviles */
@media (max-width: 768px) {
    .therapy-area-therapist {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .therapist-info {
        max-width: 100%;
    }
    
    .therapist-img {
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Reducir a una columna en móviles */
    .therapies-grid {
        grid-template-columns: 1fr;
    }
    
    .therapy-item {
        padding: 20px; /* Menos padding en móviles */
    }
    
    /* Reducir movimiento hover en móviles */
    .therapy-item:hover {
        transform: translateY(-3px);
    }
}

/* Mejorar visualización en pantallas muy pequeñas */
@media (max-width: 576px) {
    .therapy-area-header {
        padding: 20px;
    }
    
    .therapy-area-title {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .therapy-area-icon {
        margin: 0 auto 10px;
    }
    
    .therapist-info {
        text-align: center;
        width: 100%;
    }
    
    .therapy-area-content {
        padding: 20px;
    }
    
    .therapy-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .therapy-item-icon {
        margin-bottom: 15px;
    }
}

/* === CORRECCIONES PARA ELEMENTOS DE FORMULARIO === */
.form-control {
    width: 100%;
    box-sizing: border-box; /* Asegurar que el padding no aumente el ancho */
}

.appointment-form,
.info-card,
.contact-form {
    overflow: visible; /* Permitir que el contenido exceda el contenedor si es necesario */
}

@media (max-width: 576px) {
    .appointment-form, 
    .info-card, 
    .contact-form {
        padding: 20px 15px; /* Menos padding en móviles */
    }
    
    .form-group {
        margin-bottom: 15px; /* Menos espacio entre campos */
    }
}

/* === CORRECCIONES PARA CHATBOT === */
@media (max-width: 768px) {
    .chatbot-container {
        width: calc(100% - 20px);
        max-width: 350px;
        bottom: 80px;
        right: 10px;
    }
    
    .chatbot-toggle {
        bottom: 20px;
        right: 20px;
    }
}

/* 1. Eliminar cualquier overflow que cause scroll interno */
.appointment-form,
.booking-content,
.booking-content.active,
.booking-calendar,
.appointment-container {
    overflow: visible !important; /* Forzar que no haya scroll interno */
    max-height: none !important; /* Eliminar restricciones de altura */
    height: auto !important; /* Permitir que crezca naturalmente */
}

/* 2. Asegurarse de que el contenido fluya naturalmente */
.booking-content.active {
    display: block;
    position: relative; /* Mantener contexto de posicionamiento si es necesario */
}

/* 3. Eliminar posibles restricciones en los pasos del formulario */
#paso1-content,
#paso2-content,
#paso3-content,
#paso4-content {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

/* 4. Asegurar que los contenedores de selección de fecha/hora puedan expandirse */
.time-slots-container,
.booking-summary,
.form-group {
    overflow: visible !important;
    height: auto !important;
}

/* 5. Modificar la estructura en móviles para mejor flujo */
@media (max-width: 768px) {
    .appointment-container {
        display: block; /* Cambiar de grid a block para flujo natural */
    }
    
    .appointment-form,
    .info-card {
        margin-bottom: 30px;
    }
    
    /* Asegurar que el último elemento no tenga margen inferior */
    .booking-content > *:last-child {
        margin-bottom: 0;
    }
    
    /* Hacer que el formulario se expanda completamente */
    .appointment-form {
        width: 100%;
        box-sizing: border-box;
    }
}

/* === CORRECCIÓN DE TAMAÑO DEL ÍCONO DE HAMBURGUESA === */
@media (max-width: 768px) {
    .mobile-toggle {
        font-size: 1.2rem; /* Reducir tamaño del ícono */
        padding: 8px; /* Añadir padding para mantener área táctil */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-toggle i {
        font-size: 1.1rem; /* Ajustar tamaño específico del ícono */
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 375px) {
    .mobile-toggle {
        font-size: 1rem;
        padding: 6px;
    }
    
    .mobile-toggle i {
        font-size: 1rem;
    }
}

/* === CORRECCIÓN DEL MENÚ DE USUARIO EN MÓVILES === */

/* Asegurar que el contenedor de usuario sea visible y esté bien posicionado */
.user-menu {
    position: relative;
    z-index: 1010; /* Valor alto de z-index */
}

/* Mejorar la visualización del botón de usuario */
.user-menu-toggle {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: 2rem;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 38px; /* Altura mínima para mejor área táctil */
    position: relative; /* Para posicionamiento correcto del dropdown */
}

/* Mejorar la visualización del dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    width: 220px;
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    z-index: 1020; /* Valor alto de z-index */
    transform-origin: top right;
    border: 1px solid rgba(0,0,0,0.1);
}

/* Estado activo del dropdown */
.user-menu.active .user-dropdown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: all !important;
    transform: none !important;
}

/* Mejorar la visibilidad del ícono de usuario en móviles */
@media (max-width: 768px) {
    .user-menu-toggle {
        width: 38px;
        height: 38px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        overflow: hidden;
    }
    
    .user-menu-toggle i:first-child {
        font-size: 1.2rem; /* Hacer el ícono de usuario visible */
        margin: 0;
    }
    
    /* Posicionar el dropdown desde la izquierda en móviles para evitar que se salga */
    .user-dropdown {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        top: calc(100% + 10px);
        width: 200px;
    }
    
    /* Añadir un triángulo indicador encima del dropdown */
    .user-dropdown::before {
        content: '';
        position: absolute;
        top: -10px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 10px solid transparent;
        border-right: 10px solid transparent;
        border-bottom: 10px solid white;
        filter: drop-shadow(0 -1px 0px rgba(0,0,0,0.1));
    }
    
    /* Ajustar el área de clic del botón de usuario */
    .auth-buttons {
        position: relative;
        margin-right: 1rem;
    }
}

/* === CORRECCIÓN DE LA VISUALIZACIÓN DE TERAPEUTAS Y ETIQUETAS EN MÓVILES === */

/* Mejorar la estructura del área de terapeuta */
@media (max-width: 768px) {
    /* 1. Arreglar estructura del área de terapeuta para mejor visibilidad */
    .area-terapeuta {
        display: flex;
        flex-direction: column; /* Apilar elementos verticalmente */
        align-items: center;
        padding: 15px;
        text-align: center;
        gap: 15px;
        height: auto !important; /* Eliminar altura fija */
    }
    
    /* 2. Ajustar imagen del terapeuta */
    .terapeuta-img {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    /* 3. Ajustar información del terapeuta */
    .terapeuta-info {
        width: 100%;
        text-align: center;
        margin: 0;
    }
    
    .terapeuta-info p {
        font-size: 0.9rem;
        margin: 5px 0 0 0;
        line-height: 1.4;
    }
    
    /* 4. CRUCIAL: Asegurar que las etiquetas tomen todo el ancho disponible */
    .area-therapies {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 15px 10px;
        width: 100% !important;
        justify-content: flex-start; /* Alinear desde la izquierda */
        height: auto !important; /* Eliminar altura fija */
        min-height: auto !important; /* Eliminar altura mínima */
    }
    
    /* 5. Hacer las etiquetas más pequeñas y compactas */
    .therapy-tag {
        font-size: 0.75rem; /* Texto más pequeño */
        padding: 5px 10px; /* Padding más compacto */
        border-radius: 15px;
        margin-bottom: 5px;
        white-space: nowrap;
        display: inline-block;
    }
}

/* Correcciones específicas para pantallas aún más pequeñas */
@media (max-width: 400px) {
    /* Hacer etiquetas aún más pequeñas */
    .therapy-tag {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    /* Reducir el espaciado entre etiquetas */
    .area-therapies {
        gap: 6px;
        padding: 10px 8px;
    }
}

/* Arreglar potenciales problemas con áreas seleccionadas */
.area-select-item.selected .area-select-content {
    /* Asegurar que todo es visible en áreas seleccionadas */
    overflow: visible !important;
}

/* Asegurar que el contenedor de áreas terapéuticas no tiene restricciones */
.area-select-grid {
    gap: 25px;
    margin-bottom: 30px;
    overflow: visible !important;
}

.area-select-item {
    overflow: visible !important;
    height: auto !important;
}

.area-select-content {
    overflow: visible !important;
    height: auto !important; 
}

/* Asegurarse de que no haya problemas de scroll interno */
#paso1-content {
    overflow: visible !important;
    height: auto !important;
}

/* Sección de carrusel multimedia */
.media-carousel {
    position: relative;
    padding: var(--section-padding);
    background-color: var(--light);
    overflow: hidden;
}

.media-carousel::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: radial-gradient(var(--primary-light) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}

/* Filtros del carrusel */
.carousel-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 12px 24px;
    border-radius: 50px;
    border: none;
    background-color: var(--gray-200);
    color: var(--gray-600);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.filter-btn.active, 
.filter-btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
}

/* Contenedor del carrusel */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

/* Flechas del carrusel */
.carousel-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    z-index: 2;
    flex-shrink: 0;
}

.carousel-arrow:hover {
    background-color: var(--primary-dark);
    transform: scale(1.1);
}

.carousel-arrow.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Slides del carrusel */
.carousel-slide {
    min-width: calc(33.333% - 20px);
    position: relative;
    height: 400px;
    margin: 0 10px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    opacity: 0.7;
    transform: scale(0.9);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.slide-media {
    width: 100%;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.slide-media img,
.video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-slide:hover .slide-media img,
.carousel-slide:hover .video-poster {
    transform: scale(1.05);
}

/* Protección de imágenes */
.protected-image, .video-poster {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.video-wrapper {
    position: relative;
}

.slide-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0.8;
    z-index: 2;
}

.slide-play-button:hover {
    background-color: var(--primary);
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.slide-caption {
    padding: 8px 20px 8px 20px;
    background-color: white;
    height: 100px;
}

.slide-caption h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
    color: var(--secondary);
}

.slide-caption p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

/* Progreso del carrusel */
.carousel-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    margin-top: 20px;
}

.progress-bar {
    flex-grow: 1;
    height: 4px;
    background-color: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    margin-right: 20px;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.3s ease;
}

.slide-counter {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
}

.current-slide {
    color: var(--primary);
}

/* Modal para contenido multimedia */
.media-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.media-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 1000px;
    position: relative;
}

#modal-media-container {
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;
}

#modal-media-container img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    object-fit: contain;
}

.modal-caption {
    text-align: center;
    color: white;
    margin-top: 20px;
}

.modal-caption h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.modal-caption p {
    font-size: 1rem;
    opacity: 0.9;
}

.protection-notice {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 20px;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2001;
}

.modal-close:hover {
    background-color: var(--primary);
    transform: rotate(90deg);
}

/* Estilos para Plyr (reproductor de video) */
.plyr {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    width: 100%;
    max-width: 1000px;
    max-height: 80vh;
}

.plyr__video-wrapper {
    background: black;
}

.plyr__control--overlaid {
    background: var(--primary);
}

.plyr--full-ui input[type=range] {
    color: var(--primary);
}

.plyr__menu__container {
    display: none !important;
}

.plyr__control[data-plyr="download"] {
    display: none !important;
}

/* Protección de contenido adicional */
.secure-container {
    position: relative;
}

.secure-container::before {
    content: "Crecimiento del Ser";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.15);
    font-size: 5vw;
    font-weight: 900;
    pointer-events: none;
    z-index: 10;
    text-transform: uppercase;
    opacity: 0.5;
    transform: rotate(-30deg);
    overflow: hidden;
}

/* Responsivo */
@media (max-width: 1200px) {
    .carousel-slide {
        min-width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .carousel-slide {
        min-width: calc(100% - 20px);
        height: 350px;
    }
    
    .slide-media {
        height: 250px;
    }
    
    .carousel-arrow {
        position: absolute;
        top: 125px;
        transform: translateY(-50%);
        z-index: 5;
    }
    
    .prev-arrow {
        left: 10px;
    }
    
    .next-arrow {
        right: 10px;
    }
    
    .secure-container::before {
        font-size: 8vw;
    }
}

/* Ajuste para el último slide */
.carousel-slide:last-child {
    margin-right: 0; /* Eliminar margen derecho en el último slide */
}

/* Contenedor del carrusel con espacio adicional */
.carousel-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding-right: 2px; /* Pequeño padding para evitar cortes */
}

/* Ajuste adicional al track */
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    padding-right: 1px; /* Espacio adicional al final */
}

.calendar-day.disabled {
    background-color: #f0f0f0;
    color: #999;
    text-decoration: line-through;
    cursor: not-allowed;
    pointer-events: none;
}

/* Añade estos estilos para mejorar la apariencia del Markdown */
.markdown-content {
    line-height: 1.5;
}

.markdown-content h1, 
.markdown-content h2, 
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.markdown-content p {
    margin-bottom: 0.75rem;
}

.markdown-content ul, 
.markdown-content ol {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.markdown-content code {
    background-color: rgba(0,0,0,0.05);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: monospace;
}

.markdown-content pre {
    background-color: rgba(0,0,0,0.05);
    padding: 0.75rem;
    border-radius: 4px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.markdown-content a {
    color: #007bff;
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content blockquote {
    border-left: 3px solid #ddd;
    padding-left: 1rem;
    margin-left: 0;
    color: #777;
}

/* Ajustes para modo oscuro */
.dark-mode .markdown-content code,
.dark-mode .markdown-content pre {
    background-color: rgba(255,255,255,0.1);
}

.dark-mode .markdown-content blockquote {
    border-left-color: #555;
    color: #bbb;
}

/* Estilos para las secciones de perfil y citas */
.profile-section,
.appointments-section {
    padding: 6rem 0;
    min-height: calc(100vh - 150px);
    background-color: var(--background);
}

.profile-container,
.appointments-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.profile-sidebar,
.appointments-sidebar {
    width: 250px;
    flex-shrink: 0;
}

.profile-content,
.appointments-content {
    flex: 1;
}

.profile-user-info {
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--primary);
    font-size: 2.5rem;
}

.profile-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.profile-email {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu {
    background-color: var(--background-light);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-200);
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
    color: var(--primary);
}

.profile-menu-item.active {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}

.profile-menu-item:hover:not(.active) {
    background-color: var(--gray-100);
}

.profile-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    margin-bottom: 2rem;
}

.profile-card:last-child {
    margin-bottom: 0;
}

.profile-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.profile-card-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.profile-card-body {
    padding: 1.5rem;
}

.form-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

/* Estilos para la sección de citas */
.appointments-actions {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.appointments-tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: 1.5rem;
    overflow-x: auto;
}

.appointment-tab {
    padding: 0.75rem 1.25rem;
    background: none;
    border: none;
    color: var(--gray-600);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
}

.appointment-tab.active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
}

.appointment-tab:hover:not(.active) {
    color: var(--primary-dark);
}

.appointments-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.appointment-card {
    background-color: var(--background-light);
    border-radius: var(--border-radius-sm);
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.appointment-status {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 500;
    width: fit-content;
}

.appointment-status i {
    margin-right: 0.5rem;
}

.appointment-status.pendiente {
    background-color: var(--warning-light);
    color: var(--warning-dark);
}

.appointment-status.confirmado {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.appointment-status.completado {
    background-color: var(--success-light);
    color: var(--success-dark);
}

.appointment-status.cancelado {
    background-color: var(--danger-light);
    color: var(--danger-dark);
}

.appointment-detail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.appointment-date,
.appointment-time,
.appointment-therapist,
.appointment-service {
    display: flex;
    align-items: center;
}

.appointment-date i,
.appointment-time i,
.appointment-therapist i,
.appointment-service i {
    margin-right: 0.75rem;
    width: 18px;
    text-align: center;
    color: var(--primary);
}

.appointment-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.empty-appointments {
    text-align: center;
    padding: 3rem 1rem;
    background-color: var(--background-light);
    border-radius: var(--border-radius-sm);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.empty-icon {
    font-size: 4rem;
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.empty-appointments h3 {
    margin-bottom: 1rem;
}

.empty-appointments p {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
}

/* Modo oscuro */
.dark-mode .profile-user-info,
.dark-mode .profile-menu,
.dark-mode .profile-card,
.dark-mode .appointment-card,
.dark-mode .empty-appointments {
    background-color: var(--background-light);
    border-color: var(--gray-700);
}

.dark-mode .profile-card-header {
    border-color: var(--gray-700);
}

.dark-mode .profile-menu-item {
    color: var(--text-light);
    border-color: var(--gray-700);
}

.dark-mode .profile-menu-item:hover:not(.active) {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .profile-menu-item.active {
    background-color: rgba(96, 155, 127, 0.2);
    color: var(--text-light);
}

.dark-mode .profile-email {
    color: var(--gray-400);
}

.dark-mode .appointments-tabs {
    border-color: var(--gray-700);
}

.dark-mode .appointment-tab {
    color: var(--gray-400);
}

.dark-mode .appointment-tab.active {
    color: var(--primary-light);
    border-color: var(--primary-light);
}

.dark-mode .empty-icon {
    color: var(--gray-600);
}

/* Responsive */
@media (max-width: 768px) {
    .profile-container,
    .appointments-container {
        flex-direction: column;
    }
    
    .profile-sidebar,
    .appointments-sidebar {
        width: 100%;
    }
    
    .appointment-detail {
        grid-template-columns: 1fr;
    }
}

/* Estilos para los botones de selección de vista */
.view-selection {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    justify-content: center;
}

.view-option {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 15px;
    border-radius: var(--border-radius-sm);
    border: 1px solid var(--gray-300);
    background: var(--background-light);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.view-option.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.view-option:hover:not(.active) {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.view-option i {
    font-size: 1rem;
}

/* Versión para modo oscuro */
.dark-mode .view-option {
    border-color: var(--gray-500);
    background: var(--background-light);
    color: var(--text-light);
}

.dark-mode .view-option:hover:not(.active) {
    background-color: rgba(96, 155, 127, 0.2);
}

/* Estilos para días bloqueados */
.blocked-day {
    background-color: #ffe0e0;
    position: relative;
}

.blocked-day::after {
    content: '\f05e'; /* Icono de prohibido de Font Awesome */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    color: #ff5252;
}

.blocked-slot {
    background-color: rgba(255, 210, 210, 0.5);
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255, 0, 0, 0.1) 10px,
        rgba(255, 0, 0, 0.1) 20px
    );
}

/* Estilos para fechas habilitadas */
.enabled-day {
    background-color: #c8e6c9;
    color: #2e7d32;
    position: relative;
}

.enabled-day::after {
    content: '✓';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 10px;
    color: #2e7d32;
}

.dark-mode .enabled-day {
    background-color: rgba(200, 230, 201, 0.2);
    color: #81c784;
}

.enabled-dates-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
}

.enabled-date-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--gray-300);
}

.enabled-date-item:last-child {
    border-bottom: none;
}

.enabled-date {
    font-weight: 600;
    color: var(--primary);
}

.enabled-date-reason {
    color: var(--gray-600);
    font-style: italic;
    margin: 0 10px;
    flex-grow: 1;
}

.enabled-dates-info {
    margin-bottom: 15px;
}

.info-text {
    background-color: rgba(96, 155, 127, 0.1);
    border-left: 3px solid var(--primary);
    padding: 10px;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    font-size: 0.9rem;
}

.dark-mode .info-text {
    background-color: rgba(96, 155, 127, 0.2);
}

.no-records {
    padding: 15px;
    text-align: center;
    color: var(--gray-500);
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.occupancy-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.occupancy-bar {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.low-occupancy {
    background-color: #4CAF50; /* Verde - baja ocupación */
}

.medium-occupancy {
    background-color: #FFC107; /* Amarillo - ocupación media */
}

.high-occupancy {
    background-color: #F44336; /* Rojo - alta ocupación */
}

.dark-mode .occupancy-bar-container {
    background-color: var(--gray-700);
}

.card-info-text {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-bottom: 15px;
}

/* Estilos para modal de confirmación */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.confirmation-modal {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-align: center;
}

.confirmation-icon {
    font-size: 3rem;
    margin: 1rem 0;
    color: var(--success);
}

.confirmation-modal.error .confirmation-icon {
    color: var(--danger);
}

.dark-mode .confirmation-modal {
    background-color: var(--background-light);
    color: var(--text-light);
}

.modal-body p {
    margin-bottom: 1.5rem;
}