/* Fuente Pacifico */
@font-face {
    font-family: 'Pacifico';
    src: url('../fonts/Pacifico-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --text-color: #1e293b;
    --text-light: #64748b;
    --border-color: #e2e8f0;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

/* Navbar */
.navbar {
    background: #dd0047;
    box-shadow: 0 4px 20px rgba(221, 0, 71, 0.3);
    padding: 1.25rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: none;
}

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

.nav-container h2 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    font-family: 'Pacifico', cursive;
}

/* Clase para aplicar fuente Pacifico a "Vagando" */
.vagando-text {
    font-family: 'Pacifico', cursive;
}

.nav-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.user-name-text {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9375rem;
}

/* Botones */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #dd0047;
    color: white;
    box-shadow: 0 4px 15px rgba(221, 0, 71, 0.3);
    font-weight: 600;
}

.btn-primary:hover {
    background: #dd0047;
    box-shadow: 0 6px 20px rgba(221, 0, 71, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

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

.btn-danger:hover {
    background-color: #dc2626;
}

/* Botón de regresar */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: #222;
    font-size: 16px;
    font-weight: 600;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-back:hover {
    color: #dd0047;
}

.btn-back svg {
    transition: transform 0.2s ease;
}

.btn-back:hover svg {
    transform: translateX(-4px);
}

/* Botón de cerrar sesión solo icono */
.icon-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.icon-btn svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
}

.logout-icon-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.logout-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.logout-icon-btn svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
                0 0 0 1px rgba(221, 0, 71, 0.05);
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    border: 1px solid rgba(221, 0, 71, 0.1);
}

.card:hover {
    box-shadow: 0 8px 30px rgba(221, 0, 71, 0.15),
                0 0 0 1px rgba(221, 0, 71, 0.2);
    transform: translateY(-2px);
}

/* Auth Page - Glassmorphism Style */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: auto;
    background: #0a0a0a;
    padding: 2rem 1rem;
}

/* Fondo con imagen - Fijo para que no cambie */
.auth-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../uploads/img.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 0;
    opacity: 0.9;
}

/* Overlay oscuro para mejor contraste - Fijo */
.auth-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 0, 40, 0.8) 100%);
    z-index: 0;
}

.auth-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    padding: 4rem 5rem;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    font-family: 'Pacifico', cursive;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    padding: 0;
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #ffffff;
    border-bottom-color: #dd0047;
    font-weight: 600;
    background: transparent;
}

/* Animación de contenido al cambiar */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInUp 0.4s ease-out;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

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

/* Registro - Estilo Glassmorphism */
#register-tab .auth-form {
    background: transparent;
}

#register-tab .form-group {
    margin-bottom: 1.75rem;
}

#register-tab .form-group label {
    display: block;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

#register-tab .form-group input,
#register-tab .form-group textarea,
#register-tab .form-group select {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    padding: 0.875rem 0;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    border-radius: 0;
    font-weight: 400;
    width: 100%;
    color: #ffffff;
}

#register-tab .form-group input::placeholder,
#register-tab .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#register-tab .form-group select {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#register-tab .form-group select option {
    background: #1a1a1a;
    color: #ffffff;
}

#register-tab .form-group input:focus,
#register-tab .form-group textarea:focus,
#register-tab .form-group select:focus {
    border-bottom-color: #dd0047;
    background: transparent;
    box-shadow: none;
    outline: none;
    color: #ffffff;
}

#register-tab .form-group input:focus::placeholder,
#register-tab .form-group textarea:focus::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#register-tab .btn-primary {
    background: #ffffff;
    color: #1a1a1a;
    font-weight: 600;
    padding: 1rem 2rem;
    width: 100%;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: none;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

#register-tab .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

/* Login - Estilo Glassmorphism */
#login-tab .auth-form {
    background: transparent;
}

#login-tab .form-group {
    margin-bottom: 2rem;
}

#login-tab .form-group label {
    display: none;
}

#login-tab .form-group input {
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    padding: 1rem 0;
    border-radius: 0;
    transition: all 0.3s ease;
    color: #ffffff;
    font-weight: 400;
    font-size: 1rem;
    width: 100%;
}

#login-tab .form-group input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#login-tab .form-group input:focus {
    border-bottom-color: #dd0047;
    background: transparent;
    box-shadow: none;
    outline: none;
    color: #ffffff;
}

#login-tab .form-group input:focus::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

#login-tab .btn-primary {
    background: #ffffff;
    color: #1a1a1a;
    font-weight: 600;
    padding: 1rem 2rem;
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    border: none;
    margin-top: 1rem;
}

#login-tab .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Forms */
.auth-form {
    margin-bottom: 0;
}

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

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


.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

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

/* Upload de imágenes */
.image-upload-container {
    margin-bottom: 1.5rem;
}

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

.image-upload-item {
    position: relative;
    aspect-ratio: 1;
    border: 2px dashed rgba(221, 0, 71, 0.3);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(221, 0, 71, 0.05);
    cursor: pointer;
    transition: var(--transition);
}

.image-upload-item:hover {
    border-color: #dd0047;
    background: rgba(221, 0, 71, 0.1);
    box-shadow: 0 4px 15px rgba(221, 0, 71, 0.2);
    transform: translateY(-2px);
}

.image-upload-item input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.image-upload-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.image-upload-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.875rem;
    text-align: center;
    padding: 1rem;
    transition: var(--transition);
}

.image-upload-item:hover .image-upload-placeholder {
    color: #dd0047;
}

.image-upload-placeholder svg {
    width: 48px;
    height: 48px;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

.image-upload-item.has-image .image-upload-placeholder {
    display: none;
}

.image-upload-item.has-image .image-upload-preview {
    display: block;
}

.image-upload-remove {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    font-size: 1rem;
    line-height: 1;
    opacity: 0;
    transition: var(--transition);
}

.image-upload-item.has-image:hover .image-upload-remove {
    opacity: 1;
}

.image-upload-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.image-upload-info {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Botón de Google Maps */
.btn-google-maps {
    background: #4285f4;
    color: white;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.3);
}

.btn-google-maps:hover {
    background: #357ae8;
    box-shadow: 0 4px 8px rgba(66, 133, 244, 0.4);
    transform: translateY(-1px);
}

.btn-google-maps:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.3);
}

.btn-google-maps svg {
    stroke: white;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.alert-error {
    background: rgba(239, 68, 68, 0.2);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 8px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.2);
    backdrop-filter: blur(10px);
    color: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.4);
    border-radius: 8px;
}

/* Page Header */
.page-header {
    margin-bottom: 2.5rem;
    text-align: center;
    padding-bottom: 2rem;
}

.page-header h1 {
    background: linear-gradient(135deg, #dd0047 0%, #ff0066 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

/* Buscador estilo Airbnb */
.search-container {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.search-bar {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 40px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 0;
    width: 100%;
    max-width: 850px;
    transition: all 0.2s ease;
}

.search-bar:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}

.search-bar.focused {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18), 0 0 0 2px rgba(221, 0, 71, 0.2);
    border-color: #dd0047;
}

.search-item {
    flex: 1;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 40px;
    position: relative;
}

.search-item:hover {
    background: #f7f7f7;
}

.search-item.active {
    background: #ffffff;
}

.search-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #222222;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}

.search-value {
    font-size: 0.9375rem;
    color: #717171;
    font-weight: 400;
}

.search-value.selected {
    color: #222222;
    font-weight: 500;
}

.search-divider {
    width: 1px;
    height: 24px;
    background: #dddddd;
    flex-shrink: 0;
}

.search-button {
    background: #dd0047;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0.375rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.search-button:hover {
    background: #c0003d;
    transform: scale(1.05);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
    z-index: 100;
    width: 100%;
    max-width: 850px;
    margin: 0 auto;
    padding: 0.5rem 0;
    max-height: 300px;
    overflow-y: auto;
}

.dropdown-option {
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
    color: #222222;
}

.dropdown-option:hover {
    background: #f7f7f7;
}

.dropdown-option.selected {
    background: #f7f7f7;
    font-weight: 500;
    color: #dd0047;
}

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

.filters select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--card-bg);
    cursor: pointer;
}

/* Perfil */
.profile-section {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(221, 0, 71, 0.1);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dd0047 0%, #ff0066 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(221, 0, 71, 0.3);
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #dd0047 0%, #ff0066 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-email {
    color: #6b7280;
    font-size: 1.125rem;
    margin: 0.5rem 0;
}

.profile-date {
    color: #9ca3af;
    font-size: 0.9375rem;
    margin: 0.5rem 0;
}

.profile-badge {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(221, 0, 71, 0.1);
    color: #dd0047;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.profile-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 3px solid #dd0047;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1rem;
    color: #1f2937;
    font-weight: 500;
}

.icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    color: #6b7280;
}

.feed-lugar .icon,
.feed-precio .icon,
.feed-contacto .icon,
.servicio-lugar .icon,
.servicio-precio .icon {
    margin-right: 0.5rem;
    color: #dd0047;
}

/* Servicios en perfil */
.servicio-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.servicio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.servicio-imagen {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}

.servicio-imagen-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #dd0047 0%, #ff0066 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.servicio-content {
    padding: 1.5rem;
}

.servicio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.servicio-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    flex: 1;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-activo {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.badge-inactivo {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.servicio-tipo {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0.5rem 0;
    font-weight: 500;
}

.servicio-lugar {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.servicio-direccion {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0.25rem 0;
}

.servicio-descripcion {
    color: #4b5563;
    font-size: 0.9375rem;
    margin: 1rem 0;
    line-height: 1.6;
}

.servicio-precio {
    color: #dd0047;
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0.75rem 0;
}

.servicio-fecha {
    color: #9ca3af;
    font-size: 0.8125rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Servicios Grid */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.servicio-card {
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
}

.servicio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.servicio-imagen {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.servicio-imagen-placeholder {
    width: 100%;
    height: 200px;
    background: #dd0047;
    background-size: 200% 200%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    animation: gradientMove 3s ease infinite;
}

.servicio-content {
    padding: 1.5rem;
}

.servicio-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.servicio-header h3 {
    font-size: 1.25rem;
    color: var(--text-color);
    flex: 1;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-activo {
    background-color: #d1fae5;
    color: #065f46;
}

.badge-inactivo {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-pendiente {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-restaurante {
    background: linear-gradient(135deg, rgba(221, 0, 71, 0.15) 0%, rgba(221, 0, 71, 0.15) 100%);
    color: #dd0047;
    border: 1px solid rgba(221, 0, 71, 0.3);
    font-weight: 600;
}

.badge-transporte {
    background: linear-gradient(135deg, rgba(221, 0, 71, 0.15) 0%, rgba(221, 0, 71, 0.15) 100%);
    color: #dd0047;
    border: 1px solid rgba(221, 0, 71, 0.3);
    font-weight: 600;
}

.servicio-tipo {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.servicio-lugar {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.servicio-direccion {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.servicio-descripcion {
    color: var(--text-color);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.servicio-precio {
    font-size: 1.25rem;
    font-weight: 600;
    background: #dd0047;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.servicio-fecha {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.servicio-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.servicio-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.servicio-details span {
    background: var(--bg-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
}

.servicio-contacto {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

.servicio-contacto p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.servicio-vendedor {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Feed Container (Tipo Airbnb Grid) */
.feed-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2.5rem 1.5rem;
    margin-top: 2rem;
}

/* Estado vacío (sin servicios) */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    min-height: 400px;
}

.empty-icon {
    color: #9ca3af;
    margin-bottom: 1.5rem;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #374151;
    margin: 0 0 0.75rem 0;
}

.empty-state p {
    font-size: 1rem;
    color: #6b7280;
    max-width: 400px;
    margin: 0;
    line-height: 1.6;
}

/* Tarjeta de Servicio estilo Airbnb */
.feed-card {
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}

.feed-card:hover .feed-image-container img {
    transform: scale(1.05);
}

/* Contenedor de imagen estilo Airbnb */
.feed-image-container {
    position: relative;
    width: 100%;
    padding-top: 66%; /* Relación 3:2 (más rectangular y compacto) */
    overflow: hidden;
    border-radius: 12px;
    background: #f0f0f0;
}

.feed-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.feed-image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dd0047 0%, #ff0066 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    pointer-events: none;
}

/* Botón de favorito estilo Airbnb */
.feed-favorite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
}

.feed-favorite-btn:hover {
    background: white;
    transform: scale(1.1);
}

.feed-favorite-btn svg {
    width: 18px;
    height: 18px;
    stroke: #222;
    fill: none;
}

.feed-favorite-btn.favorited svg {
    fill: #dd0047;
    stroke: #dd0047;
}

/* Información de la tarjeta estilo Airbnb */
.feed-info {
    padding: 10px 0 4px 0;
}

.feed-location {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin-bottom: 2px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-title {
    font-size: 15px;
    color: #717171;
    margin-bottom: 2px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #222;
    margin-bottom: 6px;
}

.feed-rating svg {
    width: 12px;
    height: 12px;
    fill: #222;
}

.feed-price-container {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.feed-price {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.feed-price-label {
    font-size: 15px;
    font-weight: 400;
    color: #222;
}

.feed-contacto {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.feed-contacto p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.feed-contacto a {
    background: #dd0047;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    font-weight: 600;
}

.feed-contacto a:hover {
    text-decoration: underline;
}

/* Links */
.link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    font-weight: 400;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

.link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.link:hover {
    text-decoration: underline;
}

.auth-footer {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Página de Detalle del Servicio */
.detalle-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    margin-bottom: 3rem;
    border-radius: 12px;
    overflow: hidden;
    height: 700px;
}

.gallery-main {
    grid-row: span 2;
    position: relative;
    overflow: hidden;
    height: 100%;
    background: #f0f0f0;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.3s ease;
    display: block;
}

/* Botones de navegación del carrusel */
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gallery-nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.gallery-prev {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.gallery-nav-btn svg {
    stroke: #222;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #dd0047 0%, #ff0066 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.gallery-placeholder svg {
    stroke: #ffffff;
}

.gallery-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: #f0f0f0;
    width: 100%;
    flex: 0 0 calc((100% - 12px) / 3);
    min-height: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.gallery-item .gallery-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Modal/Lightbox para ver imagen completa */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: white;
    transform: scale(1.1);
}

.modal-close svg {
    stroke: #222;
}

#modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: default;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.2s ease;
}

.modal-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-nav svg {
    stroke: #222;
}

.gallery-more {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
}

.detalle-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 8rem;
}

.detalle-header {
    margin-bottom: 2rem;
}

.detalle-header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #222;
}

.detalle-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #717171;
    font-size: 14px;
}

.detalle-location svg {
    width: 16px;
    height: 16px;
}

.detalle-divider {
    border-bottom: 1px solid #ebebeb;
    margin: 2rem 0;
}

.detalle-host {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.host-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dd0047 0%, #ff0066 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.detalle-host h3 {
    font-size: 1.375rem;
    font-weight: 600;
    margin: 0;
    color: #222;
}

.detalle-host p {
    font-size: 14px;
    color: #717171;
    margin: 0.25rem 0 0 0;
}

.detalle-section {
    margin: 2rem 0;
}

.detalle-section h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Calendario estilo Airbnb */
#calendar-container {
    width: 100%;
}

.calendar-header {
    margin-bottom: 1.5rem;
}

.calendar-header h2 {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

#calendar-selected-dates {
    font-size: 0.875rem;
    color: #717171;
    margin-top: 0.5rem;
}

#selected-dates-text {
    font-weight: 500;
    color: #222;
}

.calendar-wrapper {
    border: 1px solid #dddddd;
    border-radius: 12px;
    padding: 1.5rem;
    background: white;
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.calendar-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    color: #222;
}

.calendar-nav-btn:hover {
    background-color: #f7f7f7;
}

.calendar-months {
    display: flex;
    gap: 4rem;
    font-weight: 600;
    font-size: 1rem;
    color: #222;
}

.calendar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.calendar-month {
    display: flex;
    flex-direction: column;
}

.calendar-month-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.calendar-weekday {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #717171;
    padding: 0.5rem 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.875rem;
    color: #222;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.calendar-day:hover:not(.disabled):not(.selected-start):not(.selected-end):not(.in-range) {
    background-color: #f7f7f7;
}

.calendar-day.disabled {
    color: #b0b0b0;
    cursor: not-allowed;
}

.calendar-day.today {
    font-weight: 600;
}

.calendar-day.selected-start {
    background-color: #222;
    color: white;
    font-weight: 600;
    border-radius: 8px 0 0 8px;
}

.calendar-day.selected-end {
    background-color: #222;
    color: white;
    font-weight: 600;
    border-radius: 0 8px 8px 0;
}

.calendar-day.in-range {
    background-color: #f7f7f7;
    border-radius: 0;
}

.calendar-day.selected-start.selected-end {
    border-radius: 8px;
}

.calendar-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ebebeb;
    display: flex;
    justify-content: flex-end;
}

.calendar-clear-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #222;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.calendar-clear-btn:hover {
    background-color: #f7f7f7;
}

@media (max-width: 768px) {
    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .calendar-months {
        gap: 2rem;
        font-size: 0.875rem;
    }
}

/* ============================================
   CHAT WIDGET FLOTANTE (Estilo Facebook/Roblox)
   ============================================ */

.chat-widget {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Botón flotante para abrir chat */
.chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4b8e 0%, #dd0047 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(221, 0, 71, 0.35);
    transition: all 0.3s ease;
    position: relative;
    color: white;
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 22px rgba(221, 0, 71, 0.45);
}

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff3b30;
    color: white;
    border-radius: 12px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0 6px;
    border: 2px solid white;
}

/* Contenedor del chat */
.chat-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 360px;
    height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-widget.open .chat-toggle {
    display: none;
}

.chat-widget.open .chat-container {
    display: flex;
}

@media (max-width: 480px) {
    .chat-container {
        width: calc(100vw - 40px);
        height: calc(100vh - 100px);
        max-height: 600px;
    }
}

/* Header del chat */
.chat-header {
    background: linear-gradient(135deg, #ff5ca7 0%, #dd0047 100%);
    color: white;
    padding: 1rem;
    border-radius: 16px 16px 0 0;
}

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

.chat-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.chat-header-actions {
    display: flex;
    gap: 0.5rem;
}

.chat-header-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: background 0.2s ease;
}

.chat-header-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

/* Vista de lista de conversaciones */
.chat-list-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-search {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e4e6eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f0f2f5;
}

.chat-search svg {
    color: #65676b;
    flex-shrink: 0;
}

.chat-search input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.875rem;
    color: #1c1e21;
}

.chat-search input::placeholder {
    color: #65676b;
}

.chat-conversations {
    flex: 1;
    overflow-y: auto;
    background: white;
}

.chat-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #65676b;
}

.chat-empty-state p {
    margin: 0.5rem 0;
    font-size: 0.875rem;
}

/* Item de conversación */
.chat-conversation-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    border-bottom: 1px solid #e4e6eb;
}

.chat-conversation-item:hover {
    background: #f0f2f5;
}

.chat-conversation-item.active {
    background: rgba(221, 0, 71, 0.08);
}

.chat-conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff5ca7 0%, #dd0047 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.chat-conversation-info {
    flex: 1;
    min-width: 0;
}

.chat-conversation-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1c1e21;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-conversation-preview {
    font-size: 0.8125rem;
    color: #65676b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-conversation-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.chat-conversation-time {
    font-size: 0.75rem;
    color: #65676b;
}

.chat-conversation-unread {
    background: #dd0047;
    color: white;
    border-radius: 10px;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0 6px;
}

/* Vista de mensajes */
.chat-message-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-message-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e4e6eb;
    background: white;
}

.chat-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dd0047;
    transition: background 0.2s ease;
}

.chat-back-btn:hover {
    background: #f0f2f5;
}

.chat-contact-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-contact-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff5ca7 0%, #dd0047 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.chat-contact-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1c1e21;
}

.chat-contact-status {
    font-size: 0.75rem;
    color: #65676b;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 70%;
    animation: fadeIn 0.3s ease;
}

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

.chat-message.sent {
    align-self: flex-end;
}

.chat-message.received {
    align-self: flex-start;
}

.chat-message-bubble {
    padding: 0.625rem 0.875rem;
    border-radius: 12px;
    font-size: 0.9375rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-message.sent .chat-message-bubble {
    background: #dd0047;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.received .chat-message-bubble {
    background: white;
    color: #1c1e21;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.chat-message-time {
    font-size: 0.6875rem;
    color: #65676b;
    margin-top: 0.25rem;
    padding: 0 0.5rem;
}

.chat-message.sent .chat-message-time {
    text-align: right;
}

.chat-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #e4e6eb;
    background: white;
}

.chat-input {
    flex: 1;
    border: 1px solid #e4e6eb;
    border-radius: 20px;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    outline: none;
    transition: border-color 0.2s ease;
}

.chat-input:focus {
    border-color: #0084ff;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dd0047;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: #b40039;
}

.chat-send-btn:disabled {
    background: #c4c4c4;
    cursor: not-allowed;
}

/* Modal para nuevo chat */
.chat-new-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.chat-new-modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-new-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e4e6eb;
}

.chat-new-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.chat-close-modal {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #65676b;
    transition: background 0.2s ease;
}

.chat-close-modal:hover {
    background: #f0f2f5;
}

.chat-new-modal-body {
    padding: 1rem;
    overflow-y: auto;
}

.chat-services-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.chat-service-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-service-item:hover {
    background: #f0f2f5;
    border-color: #0084ff;
}

.chat-service-item img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.chat-service-info {
    flex: 1;
}

.chat-service-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #1c1e21;
    margin-bottom: 0.25rem;
}

.chat-service-vendor {
    font-size: 0.8125rem;
    color: #65676b;
}
    color: #222;
}

.detalle-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #222;
}

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

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-item svg {
    flex-shrink: 0;
    stroke: #222;
    margin-top: 0.25rem;
}

.feature-item span {
    font-size: 1rem;
    color: #222;
}

.detalle-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.detalle-card {
    border: 1px solid #dddddd;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.detalle-price {
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 600;
    color: #222;
}

.price-label {
    font-size: 1rem;
    color: #717171;
    margin-left: 0.25rem;
}

.contact-info {
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    font-size: 0.875rem;
    color: #222;
}

.contact-item svg {
    flex-shrink: 0;
    stroke: #717171;
}

.contact-item a {
    color: #dd0047;
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Card de ubicación clickeable */
#location-card {
    transition: all 0.2s ease;
}

#location-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#location-card:hover h3 {
    color: #dd0047;
}

/* La flecha cambia de color en hover */
#location-card:hover svg:last-child {
    stroke: #dd0047;
}

/* El icono de ubicación siempre blanco, sin animaciones ni transiciones */
#location-card > div > div:first-child svg {
    stroke: #ffffff !important;
    transition: none !important;
}

#location-card:hover > div > div:first-child svg {
    stroke: #ffffff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-links .btn {
        width: 100%;
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .servicios-grid {
        grid-template-columns: 1fr;
    }
    
    .filters {
        width: 100%;
    }
    
    .filters select {
        flex: 1;
        min-width: 150px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-avatar {
        margin: 0 auto;
    }
    
    .profile-details {
        grid-template-columns: 1fr;
    }
    
    .profile-section {
        padding: 1.5rem;
    }
    
    .search-bar {
        flex-direction: column;
        border-radius: 16px;
    }
    
    .search-item {
        border-bottom: 1px solid #dddddd;
        border-radius: 0;
    }
    
    .search-item:last-of-type {
        border-bottom: none;
    }
    
    .search-divider {
        display: none;
    }
    
    .search-button {
        margin: 0.5rem;
        align-self: center;
    }
}

@media (max-width: 768px) {
    .auth-container {
        max-width: 90%;
        padding: 3rem 2.5rem;
    }
    
    .auth-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 2.5rem 2rem;
        margin: 1rem;
        max-width: 95%;
    }
    
    .auth-header h1 {
        font-size: 2rem;
    }
    
    .image-upload-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .container {
        padding: 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    /* Detalle responsive */
    .detalle-gallery {
        grid-template-columns: 1fr;
        max-height: none;
    }
    
    .gallery-main {
        height: 300px;
        grid-row: span 1;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr;
    }
    
    .detalle-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .detalle-sidebar {
        position: static;
    }
    
    .detalle-features {
        grid-template-columns: 1fr;
    }
}

