/* Font Awesome 6 — monochromatic icons */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');

/* Conectamente LAMP Stack - Main Stylesheet */

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

:root {
    --primary: #2B2CEB;
    --primary-light: #667eea;
    --primary-dark: #1a1b8f;
    --secondary: #764ba2;
    --accent: #00d4ff;
    --success: #4CAF50;
    --warning: #FFA500;
    --danger: #F44336;
    --light: #f5f7fa;
    --gray: #999;
    --dark: #333;
    --border: #ddd;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins',
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--dark);
    background: #fff;
    line-height: 1.6;
}
* { font-family: 'Poppins';}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

p {
    margin-bottom: 15px;
    color: #555;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Navigation */
nav {
    position: sticky;
    top: 0;
    background: rgba(250,250,250,0.5);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: var(--shadow);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.navbar-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.navbar-links a {
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

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

.navbar-auth {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Language toggle */
.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border: 1.5px solid var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}
.lang-toggle:hover {
    background: var(--primary);
    color: #fff;
}
.lang-flag { font-size: 15px; }
.lang-flag img { width: 1.3em; vertical-align: middle; }

/* Hamburger toggle */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    flex-direction: column;
    gap: 5px;
}
.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.navbar-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.navbar-toggle.active span:nth-child(2) { opacity: 0; }
.navbar-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary:hover {
    background: #f0f4ff;
}

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

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

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #d32f2f;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #45a049;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 80px 0;
}

.section-light {
    background: var(--light);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 120px 40px;
    text-align: center;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .btn {
    padding: 14px 30px;
    font-size: 16px;
}

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

.hero .btn-primary:hover {
    background: #f0f4ff;
}

/* Grid */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3-2 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
    justify-content: center;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid-4-2 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
    justify-content: center; 
}

/* Cards */
.card {
    /* background: white; */
    background-position:center;
    background-size:contain;
    background-repeat: no-repeat;
    border-radius: 12px;
    padding: 25px;
    /* box-shadow: var(--shadow); */
    transition: all 0.3s;
    /* border: 1px solid var(--border); */
}
.card.wh {
    aspect-ratio:24/36;
}

.card:hover {
    cursor:pointer;
    transform: translateY(-7px);
    /* box-shadow: var(--shadow-lg); */
}

.card-header {
    margin-bottom: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.card-text {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.card-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

/* Therapist Card */
.therapist-card {
    text-align: center;
    padding: 0 !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    max-width: 320px;
}
.therapist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.15);
}

.therapist-card .therapist-photo-wrap {
    position: relative;
    overflow: hidden;
}

.therapist-card .therapist-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(rgba(41,39,184,0.0), rgba(41,39,184,.9));
    color: white;
    padding: 40px 14px 14px;
    text-align: left;
}
.therapist-card .therapist-overlay .therapist-name {
    color: white;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
.therapist-card .therapist-overlay .therapist-price {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.therapist-card .therapist-card-body {
    padding: 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.therapist-avatar {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    display: block;
    border-radius: 0;
    border: none;
    margin: 0;
    transition: transform 0.4s;
}
.therapist-card:hover .therapist-avatar {
    transform: scale(1.05);
}

.therapist-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}

.therapist-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 10px 0;
}

.specialty-badge {
    background: #f0f4ff;
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.therapist-bio {
    color: #666;
    font-size: 13px;
    margin: 15px 0;
    line-height: 1.5;
}

.therapist-info {
    display: flex;
    justify-content: space-around;
    margin: 15px 0;
    font-size: 13px;
    color: #999;
}

.therapist-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark);
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43, 44, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Search and Filter */
.search-filter {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.search-input {
    position: relative;
    margin-bottom: 15px;
}

.search-input input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
}

.search-input::after {
    content: '🔍';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

/* 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;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--gray);
}

.modal-close:hover {
    color: var(--dark);
}

/* Alerts */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border-left-color: #3c3;
}

.alert-error {
    background: #fee;
    color: #c33;
    border-left-color: #c33;
}

.alert-warning {
    background: #ffe;
    color: #cc3;
    border-left-color: #cc3;
}

.alert-info {
    background: #eef;
    color: #33c;
    border-left-color: #33c;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-primary {
    background: #f0f4ff;
    color: var(--primary);
}

.badge-success {
    background: #efe;
    color: #3c3;
}

.badge-danger {
    background: #fee;
    color: #c33;
}

.badge-warning {
    background: #ffe;
    color: #cc3;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 50px 40px 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: white;
}

.footer-section a {
    display: block;
    color: #ccc;
    margin-bottom: 10px;
    font-size: 14px;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #999;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
    .navbar-toggle {
        display: flex;
        order: 3;
    }
    .navbar-links,
    .navbar-auth {
        display: none;
        width: 100%;
        order: 4;
    }
    .navbar-links.open,
    .navbar-auth.open {
        display: flex;
    }
    .navbar-links {
        flex-direction: column;
        gap: 0;
        padding: 10px 0;
    }
    .navbar-links li { list-style: none; }
    .navbar-links a {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
    }
    .navbar-auth {
        flex-direction: column;
        gap: 10px;
        padding: 10px 0;
        align-items: stretch;
    }
    .navbar-auth .btn {
        text-align: center;
    }
    .navbar-auth span {
        text-align: center;
        font-size: 14px;
    }
    .navbar {
        flex-wrap: wrap;
    }
    .navbar-brand {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .hero {
        padding: 60px 20px;
    }
    
    .hero h1 {
        font-size: 36px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-in {
    animation: slideIn 0.5s ease-out;
}

/* Loading spinner */
.spinner {
    border: 4px solid var(--light);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility classes */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.p-20 {
    padding: 20px;
}

.hidden {
    display: none;
}

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.gap-20 {
    gap: 20px;
}
