/* ===== RESET Y VARIABLES ===== */
:root {
    --primary-color: #4a90e2;
    --primary-dark: #3a7bc8;
    --secondary-color: #ff7eb3;
    --accent-color: #36d1dc;
    --light-color: #f8f9fa;
    --dark-color: #2c3e50;
    --text-color: #333;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --border-radius: 12px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* ===== NAVEGACIÓN ===== */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.login-btn {
    background: var(--secondary-color);
    color: white !important;
}

.login-btn:hover {
    background: #ff5a9c;
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--dark-color);
    transition: var(--transition);
}

/* ===== SECCIONES ===== */
.section {
    display: none;
    padding: 100px 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== HERO SECTION ===== */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.05) 0%, rgba(54, 209, 220, 0.05) 100%);
    padding: 3rem;
    border-radius: var(--border-radius);
}

.hero-content h1 {
    font-size: 3rem;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.subtitle {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* ===== SERVICIOS ===== */
.services {
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    text-align: center;
    border-top: 4px solid var(--primary-color);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-hover);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* ===== ABOUT SECTION ===== */
.about-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: white;
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 4rem;
}

.psychologist-info {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin-bottom: 2rem;
}

.psychologist-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.psychologist-details h3 {
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.specialty {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.experience {
    color: #666;
    margin-bottom: 1rem;
}

.qualifications {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.qualification {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #555;
    font-size: 0.9rem;
}

.qualification i {
    color: var(--secondary-color);
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
}

.feature i {
    font-size: 1.2rem;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* ===== AGENDA ===== */
.agenda-container {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.btn-calendar {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition);
}

.btn-calendar:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

#current-month {
    font-size: 1.5rem;
    color: var(--dark-color);
}

.availability-info {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.color-box.green { background-color: var(--success-color); }
.color-box.orange { background-color: var(--warning-color); }
.color-box.red { background-color: var(--danger-color); }

/* Calendario de 2 meses */
.calendar-months {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.month-calendar {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid #e9ecef;
}

.month-calendar h4 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: 1.3rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f8f9fa;
}

.availability-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 0.5rem;
}

.availability-indicator.green { background-color: var(--success-color); }
.availability-indicator.orange { background-color: var(--warning-color); }
.availability-indicator.red { background-color: var(--danger-color); }

.day.selected {
    border: 2px solid var(--primary-color) !important;
    background-color: rgba(74, 144, 226, 0.1) !important;
}

.calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.day-header {
    text-align: center;
    padding: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    background: white;
    border-radius: 8px;
}

.day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border: 2px solid transparent;
}

.day:hover {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

.day-number {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.day.green { background-color: rgba(46, 204, 113, 0.2); }
.day.orange { background-color: rgba(243, 156, 18, 0.2); }
.day.red { background-color: rgba(231, 76, 60, 0.2); }

.time-slots-container {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: var(--border-radius);
    margin-top: 2rem;
}

#selected-date {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-size: 1.2rem;
}

.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.time-slot {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.time-slot.available {
    border-color: var(--success-color);
}

.time-slot.available:hover {
    background: rgba(46, 204, 113, 0.1);
    transform: translateY(-2px);
}

.time-slot.booked {
    background: #e9ecef;
    color: #999;
    cursor: not-allowed;
}

.btn-book {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-top: 0.5rem;
}

.btn-book:hover {
    background: var(--primary-dark);
}

.login-required {
    text-align: center;
    padding: 1.5rem;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 8px;
    margin-top: 2rem;
    color: var(--warning-color);
}

.login-required a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.login-required a:hover {
    text-decoration: underline;
}

/* ===== JUEGOS ===== */
.game-container {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.game-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--secondary-color);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.game-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.game-card h3 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.game-card p {
    color: #666;
    margin-bottom: 1.5rem;
}

.btn-game {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-game:hover {
    background: #ff5a9c;
    transform: translateY(-2px);
}

.game-area {
    background: #f8f9fa;
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-placeholder {
    color: #999;
}

.game-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #ddd;
}

/* ===== BLOG ===== */
.blog-container {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.blog-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    color: #666;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

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

.article-card {
    background: #f8f9fa;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.article-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.article-content {
    padding: 1.5rem;
}

.article-content h3 {
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.article-excerpt {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    color: #999;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.newsletter {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 3rem;
    border-radius: var(--border-radius);
    text-align: center;
    color: white;
}

.newsletter h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.newsletter p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

#newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

#newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
}

#newsletter-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* ===== FOOTER ===== */
footer {
    background: var(--dark-color);
    color: white;
    padding: 4rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-section p i {
    color: var(--accent-color);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background: white;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    box-shadow: var(--box-shadow-hover);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    background: #f8f9fa;
    color: var(--danger-color);
}

.modal-content h2 {
    color: var(--dark-color);
    margin-bottom: 2rem;
    text-align: center;
}

.auth-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.auth-tab.active {
    color: var(--primary-color);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    color: #999;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: #e9ecef;
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.btn-google {
    width: 100%;
    background: white;
    border: 2px solid #ddd;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

/* ===== PANEL PSICÓLOGO ===== */
.panel {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    overflow-y: auto;
}

.panel.hidden {
    display: none;
}

.panel-header {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-close-panel {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close-panel:hover {
    background: rgba(255, 255, 255, 0.1);
}

.panel-content {
    padding: 2rem;
}

/* ===== LOADING ===== */
.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #999;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* ===== CALENDARIO RESPONSIVE ===== */
.desktop-months {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.mobile-month-controls {
    display: none;
    justify-content: space-between;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--border-radius);
}

.mobile-months {
    display: none;
    margin-bottom: 3rem;
}

@media (max-width: 768px) {
    .desktop-months {
        display: none;
    }
    
    .mobile-month-controls {
        display: flex;
    }
    
    .mobile-months {
        display: block;
    }
    
    .calendar-months {
        grid-template-columns: 1fr;
    }
    
    #month2-container {
        display: none;
    }
}

/* ===== DIAS DEL CALENDARIO ===== */
.day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.5rem;
    border: 2px solid transparent;
}

.day:hover:not(.empty):not(.unavailable):not(.past) {
    transform: scale(1.05);
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

.day-number {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.day.available { 
    background-color: rgba(46, 204, 113, 0.2); 
    cursor: pointer;
}

.day.limited { 
    background-color: rgba(243, 156, 18, 0.2); 
    cursor: pointer;
}

.day.busy { 
    background-color: rgba(231, 76, 60, 0.2); 
    cursor: pointer;
}

.day.unavailable { 
    background-color: rgba(149, 165, 166, 0.2); 
    cursor: not-allowed;
    color: #999;
}

.day.past { 
    background-color: rgba(189, 195, 199, 0.1); 
    cursor: not-allowed;
    color: #aaa;
}

.day.selected {
    border: 3px solid var(--primary-color) !important;
    background-color: rgba(74, 144, 226, 0.1) !important;
    transform: scale(1.05);
}

.availability-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-top: 5px;
}

.availability-indicator.available { background-color: var(--success-color); }
.availability-indicator.limited { background-color: var(--warning-color); }
.availability-indicator.busy { background-color: var(--danger-color); }
.availability-indicator.unavailable { background-color: #95a5a6; }
.availability-indicator.past { background-color: #bdc3c7; }

/* ===== HORARIOS ===== */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.time-slot {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border: 2px solid #e9ecef;
}

.time-slot.available {
    border-color: var(--success-color);
    cursor: pointer;
}

.time-slot.available:hover {
    background: rgba(46, 204, 113, 0.1);
    transform: translateY(-2px);
}

.time-slot.booked {
    background: #f8f9fa;
    color: #999;
    cursor: not-allowed;
}

.slot-time {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.slot-status {
    font-size: 0.9rem;
    color: #999;
}

.btn-book {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    margin-top: 0.5rem;
    width: 100%;
}

.btn-book:hover {
    background: var(--primary-dark);
}

.loading-slots, .no-slots {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading-slots i, .no-slots i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* ===== MENU DE USUARIO ===== */
.user-menu {
    position: absolute;
    top: 100%;
    right: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    width: 300px;
    display: none;
    z-index: 1000;
}

.user-menu.show {
    display: block;
}

.user-info {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--primary-color);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-details {
    flex: 1;
}

.user-details strong {
    display: block;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.user-details small {
    color: #666;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.user-role {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.user-menu-items {
    padding: 0.5rem 0;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
}

.menu-item:hover {
    background: #f8f9fa;
    color: var(--primary-color);
}

.menu-item i {
    width: 20px;
    text-align: center;
}

.user-menu-items hr {
    margin: 0.5rem 0;
    border: none;
    border-top: 1px solid #eee;
}

.logout-btn {
    color: var(--danger-color) !important;
}

/* ===== PANELES ===== */
.panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 2000;
    overflow-y: auto;
    display: none;
}

.panel.active {
    display: block;
}

.panel-header {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.panel-header h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.panel-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-close:hover {
    background: rgba(255,255,255,0.1);
}

.panel-content {
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .panel {
        width: 100%;
    }
}

/* Agrega al final de tu styles.css existente */

/* ===== RESPONSIVE PARA MÓVILES ===== */
@media (max-width: 768px) {
    /* Navegación móvil */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        width: 100%;
        justify-content: center;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    /* Hero section */
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    /* About section */
    .about-section {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 1.5rem;
    }
    
    .psychologist-info {
        flex-direction: column;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    /* Calendario para móviles */
    .calendar-months.desktop-months {
        display: none !important;
    }
    
    .mobile-calendar-container {
        display: block !important;
        margin: 1rem 0;
    }
    
    .mobile-month-controls {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        margin: 1rem 0;
        padding: 0.75rem;
        background: #f8f9fa;
        border-radius: var(--border-radius);
    }
    
    .mobile-month-controls h4 {
        font-size: 1.1rem;
        margin: 0;
        color: var(--dark-color);
    }
    
    .mobile-month-controls .btn-calendar {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        background: var(--primary-color);
        color: white;
        border: none;
        border-radius: 6px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    /* Calendario días más grandes en móvil */
    .calendar {
        gap: 3px;
    }
    
    .day {
        padding: 0.25rem;
        font-size: 0.9rem;
    }
    
    .day-number {
        font-size: 0.9rem;
    }
    
    /* Slots más grandes en móvil */
    .slots-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }
    
    .time-slot {
        padding: 0.75rem;
    }
    
    /* Panel de usuario en móvil */
    .user-menu {
        width: 280px;
        right: 0.5rem;
    }
    
    /* Paneles en móvil */
    .panel {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 80px 1rem 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .calendar-controls {
        flex-direction: column;
        gap: 1rem;
        padding: 0.75rem;
    }
    
    .legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .slots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }
}

/* Mostrar/ocultar elementos según vista */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
}

/* Mejoras para calendario en móvil */
@media (max-width: 768px) {
    .calendar {
        font-size: 0.9rem;
    }
    
    .day-header {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .day {
        min-height: 40px;
    }
    
    .availability-indicator {
        width: 8px;
        height: 8px;
    }
}

/* Mejoras para formularios en móvil */
@media (max-width: 768px) {
    .auth-modal {
        max-width: 95% !important;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px; /* Previene zoom en iOS */
    }
    
    #newsletter-form {
        flex-direction: column;
    }
    
    #newsletter-form input {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Agregar al archivo styles.css */

/* Estilo para horario de comida */
.time-slot.meal-time {
    background-color: #f8f9fa;
    border-color: #ffc107;
    color: #856404;
    cursor: not-allowed;
}

.time-slot.meal-time .slot-time {
    color: #856404;
    font-weight: 600;
}

.time-slot.meal-time .slot-status {
    color: #856404;
    font-style: italic;
    font-size: 0.9rem;
}

/* Mejorar el mensaje de login requerido */
.login-required {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(243, 156, 18, 0.1), rgba(231, 76, 60, 0.1));
    border-radius: 12px;
    margin-top: 2rem;
    color: #e67e22;
    border-left: 4px solid #e67e22;
}

.login-required p {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.login-required .login-link {
    color: #3498db;
    font-weight: 700;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 50px;
    border: 2px solid #3498db;
    display: inline-block;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.login-required .login-link:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

/* ===== ESTILOS PARA HORARIO DE COMIDA ===== */
.time-slot.meal-time {
    background-color: #f8f9fa;
    border-color: #ffc107;
    color: #856404;
    cursor: not-allowed;
}

.time-slot.meal-time .slot-time {
    color: #856404;
    font-weight: 600;
}

.time-slot.meal-time .slot-status {
    color: #856404;
    font-style: italic;
    font-size: 0.9rem;
}

/* ===== MEJORAS PARA EL CALENDARIO ===== */
.day {
    position: relative;
}

.day:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 5px;
}

.day:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--dark-color);
    margin-bottom: -5px;
    z-index: 10;
}

/* ===== RESPONSIVE ADICIONAL ===== */
@media (max-width: 768px) {
    .panel {
        width: 100% !important;
    }
    
    .mobile-calendar-container {
        margin: 1rem 0;
    }
}