:root {
    /* Paleta MILA — ☀️ MILA Light: blanco + lavanda + morado + amarillo (acento) */
    --mila-institucional: #35166F; /* logo, títulos, íconos principales */
    --mila-morado: #4B249B;        /* botones principales */
    --mila-morado-oscuro: #35166F;
    --mila-lavanda: #8C6FE6;
    --mila-vibrante: #6B35C9;
    --mila-transicion: #6B35C9;
    --mila-lavanda-suave: #C8B7FE; /* Lavender Dream */
    --mila-lavanda-soft: #E9E1FF;  /* Lavender Soft: botones secundarios */
    --mila-superficie: #E9E1FF;
    --mila-bruma: #F1ECFF;         /* Lavender Mist: secciones especiales */
    --mila-limon: #FFF1A6;         /* Pale Lemon: solo acentos y promociones */
    --mila-limon-suave: #FFF8D6;
    --mila-rosa: #F3A6C7;
    --mila-dorado: #F5B82E;
    --mila-verde: #32C56D;
    --mila-texto: #2E2450;
    --titulo: var(--mila-institucional);
    --fuente-titulos: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /* Nombres antiguos (se mantienen para que el resto del CSS siga funcionando) */
    --brand-blue: var(--mila-morado);
    --brand-light-blue: var(--mila-lavanda);
    --brand-beige: var(--mila-lavanda);
    --brand-off-white: #FAF9FC;

    /* Colores del tema */
    --primary: var(--mila-morado);
    --primary-dark: var(--mila-morado-oscuro);
    --primary-light: var(--mila-lavanda);

    --secondary: var(--mila-lavanda);
    --secondary-light: var(--mila-lavanda-suave);

    --accent: var(--mila-vibrante);

    --background: #FAF9FC;
    --surface: #FFFFFF;
    --surface-alt: var(--mila-superficie);

    --text-main: var(--mila-morado-oscuro);
    --text-muted: #746D86;
    --border: #E5DFF2;

    /* Degradados */
    --gradient-hero: linear-gradient(135deg, #FAF9FC 0%, #FFFFFF 100%);
    --gradient-mila: linear-gradient(135deg, #35166F 0%, #4B249B 55%, #6B35C9 100%);
    --gradient-blue: var(--gradient-mila);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(75, 36, 155, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(75, 36, 155, 0.1), 0 2px 4px -1px rgba(75, 36, 155, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(75, 36, 155, 0.1), 0 4px 6px -2px rgba(75, 36, 155, 0.05);
    --shadow-blue: 0 4px 14px 0 rgba(75, 36, 155, 0.3);
}

/* Logo Styles */
.logo-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.logo-text {
    color: #000000;
}

.logo-box {
    background-color: #6B35C9;
    /* Vibrant Blue */
    color: white;
    padding: 0px 6px;
    border-radius: 6px;
    margin-left: 2px;
    font-style: italic;
    display: inline-block;
    line-height: 1.4;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--surface);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #6B35C9;
    box-shadow: 0 0 0 3px rgba(75, 36, 155, .35);
}

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

.form-helper {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.file-upload:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 480px;
    /* Mobile-first approach optimized for app-like feel */
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header */
.app-header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo .dot {
    color: var(--primary);
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    padding: 4px;
}

/* Hero */
.hero {
    padding: var(--spacing-lg) 0;
    background: var(--gradient-hero);
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.hero h1 {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
    color: var(--text-main);
}

.hero p {
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.search-bar {
    display: flex;
    gap: var(--spacing-xs);
    background: var(--surface);
    padding: 4px;
    /* Reduced padding */
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    align-items: center;
    /* Center content vertically */
}

.search-bar input {
    flex: 1;
    border: none;
    padding: 0 var(--spacing-sm);
    outline: none;
    font-size: 0.9rem;
    /* Slightly smaller font */
    background: transparent;
    height: 36px;
    /* Explicit height control */
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1.2rem;
    /* Reduced padding */
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 0.9rem;
    /* Match input font size */
}

.btn-secondary {
    background: var(--mila-lavanda-soft);
    color: var(--mila-institucional);
    border: 1px solid transparent;
    padding: 0.5rem 1.2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
    font-size: 0.9rem;
}

.btn-secondary:active {
    transform: scale(0.96);
}

/* Promo Banner Animation */
@keyframes pulse-banner {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(122,43,218, 0.3);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(122,43,218, 0.6);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(122,43,218, 0.3);
    }
}

@keyframes shine {
    0% {
        background-position: -100% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.promo-banner {
    position: relative;
    display: block;
    width: 100%;
    padding: 16px 24px;
    color: white;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    border-radius: 50px;

    /* Clean, Aesthetic Gradient */
    background: var(--gradient-mila);

    /* Soft Glow Shadow */
    box-shadow: 0 8px 20px -5px rgba(75, 36, 155, 0.3);

    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.promo-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px -5px rgba(75, 36, 155, 0.4);
    background: linear-gradient(135deg, #4B249B 0%, #6B35C9 60%, #8C6FE6 100%);
}

/* Subtle Shine Effect */
.promo-banner .shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-20deg);
    animation: aesthetic-shine 5s infinite;
    pointer-events: none;
}

@keyframes banner-breath {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }
}

@keyframes aesthetic-shine {
    0% {
        left: -100%;
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        left: 200%;
        opacity: 0;
    }
}

.banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.banner-discount {
    font-size: 1.8rem;
    font-weight: 800;
    color: #FFD700;
    /* Gold/Yellow */
    margin: 5px 0;
    line-height: 1.2;
}

.banner-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 60%;
}

.banner-btn {
    background: white;
    color: #35166F;
    border: none;
    padding: 8px 16px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    z-index: 2;
    /* Ensure clickable above shine */
    position: relative;
}

.btn-primary:active {
    transform: scale(0.96);
}

/* Sections */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.see-all {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.category-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 0;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    overflow: hidden;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    overflow: hidden;
    background: white;
}

.category-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    padding: 8px;
    width: 100%;
}

/* Pros Grid */
.pros-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
    padding-bottom: var(--spacing-lg);
}

.pro-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 0;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.pro-image {
    width: 100%;
    height: 110px;
    border-radius: 0;
    object-fit: cover;
    background-color: #ddd;
}

.pro-info {
    padding: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pro-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.pro-name {
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.verified-badge {
    color: var(--accent);
    width: 16px;
    height: 16px;
}

.pro-rating {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 0.85rem;
    color: #B45309;
    /* Amber */
    font-weight: 600;
}

.pro-service {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.pro-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.btn-book {
    background: #25D366;
    /* WhatsApp Green */
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

/* Modal */
/* Modal */
.modal {
    visibility: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    /* When closing: wait 0.3s for opacity to fade before hiding visibility */
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.modal.active {
    visibility: visible;
    opacity: 1;
    /* When opening: show visibility immediately */
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.modal-content {
    background: var(--surface);
    width: 90%;
    max-width: 400px;
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    z-index: 10;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #FFFFFF;
    color: #000000;
    z-index: 2000;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    visibility: hidden;
    opacity: 0;
    /* Same logic for sidebar overlay */
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}

.sidebar-overlay.active {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
}

.chat-option-btn {
    background: white;
    border: 1px solid var(--mila-lavanda);
    color: var(--mila-morado);
    padding: 5px 10px;
    border-radius: 9999px;
    transition: opacity 0.3s ease;
}

.sidebar-header {
    padding: var(--spacing-lg);
    background: #FAFAFA;
    /* Light gray header */
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border);
}

.avatar-container {
    position: relative;
    width: 60px;
    height: 60px;
    cursor: pointer;
}

.sidebar-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--primary);
    /* Blue Border */
    object-fit: cover;
    background: #f0f0f0;
}

.avatar-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #FFFFFF;
    /* White Background */
    color: var(--primary);
    /* Blue Icon */
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s;
}

.avatar-overlay:hover {
    transform: scale(1.1);
}

.sidebar-menu {
    list-style: none;
    padding: var(--spacing-md);
    margin: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-menu li a {
    color: #000000;
    /* Black Text */
    text-decoration: none;
    padding: 12px;
    display: block;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    font-weight: 500;
}

.sidebar-menu li a:hover {
    background: #F3F4F6;
    /* Light gray hover */
    color: var(--primary);
    transform: translateX(5px);
}

/* Apple-Style Membership Page */
.apple-bg {
    background-color: #EBEBEB;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
}

.apple-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin: 30px 0 40px;
    color: #35166F;
    letter-spacing: -0.02em;
}

.apple-card {
    border-radius: 20px;
    padding: 25px;
    margin: 0 auto 25px;
    /* Center and add bottom margin */
    max-width: 380px;
    /* Make cards smaller */
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #FFFFFF;
}

.apple-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Standard Plan */
.apple-card-standard {
    background: #FFFFFF;
    border: 1px solid rgba(53, 22, 111, 0.1);
    box-shadow: 0 10px 30px rgba(53, 22, 111, 0.03);
}

/* Premium Plan */
.apple-card-premium {
    background: linear-gradient(135deg, #FFFFFF 0%, #EBEBEB 100%);
    border: 1px solid rgba(53, 22, 111, 0.2);
    box-shadow: 0 15px 35px rgba(53, 22, 111, 0.1);
}

.apple-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(90deg, #6B35C9, #8C6FE6);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(200,168,245, 0.3);
}

/* Elite Plan - Reverted to Dark */
@keyframes elite-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes elite-shine {
    0% {
        left: -100%;
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        left: 200%;
        opacity: 0;
    }
}

.apple-card-elite {
    background: linear-gradient(135deg, #35166F, #2E2450, #35166F);
    background-size: 300% 300%;
    animation: elite-gradient 8s ease infinite;
    color: white;
    box-shadow: 0 20px 50px rgba(53, 22, 111, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.apple-card-elite::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    animation: elite-shine 4s infinite;
    pointer-events: none;
}

.apple-plan-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    /* Center icon */
    font-size: 1.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.apple-card-standard .apple-plan-icon {
    background: #EBEBEB;
    color: #35166F;
}

.apple-card-premium .apple-plan-icon {
    background: white;
    color: #35166F;
}

.apple-card-elite .apple-plan-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #C8B7FE;
    backdrop-filter: blur(10px);
}

.apple-plan-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-align: center;
}

.apple-plan-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.4;
    text-align: center;
}

.apple-price {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
    text-align: center;
}

.apple-price span {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.6;
}

.apple-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.apple-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.apple-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid #35166F;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.apple-check svg {
    width: 10px;
    height: 10px;
    stroke: #35166F;
    stroke-width: 3;
}

.apple-card-elite .apple-check {
    border-color: #C8B7FE;
    background: transparent;
}

.apple-card-elite .apple-check svg {
    stroke: #C8B7FE;
}

.apple-btn {
    width: 100%;
    padding: 15px;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.apple-btn-standard {
    background: #EBEBEB;
    color: #35166F;
}

.apple-btn-premium {
    background: #35166F;
    color: white;
    box-shadow: 0 8px 20px rgba(53, 22, 111, 0.3);
}

.apple-btn-elite {
    background: white;
    color: #35166F;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.apple-btn-elite::after {
    display: none;
    /* Remove shine from button */
}

.apple-btn:hover {
    transform: scale(1.02);
}

/* Account Page Styles */
.account-header {
    padding: var(--spacing-lg) var(--spacing-lg) 0;
    background: #FAFAFA;
}

.account-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.profile-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    /* Increased gap for cleaner look */
    margin-bottom: var(--spacing-lg);
    cursor: pointer;
    padding: 10px 0;
    /* Add vertical padding */
}

.summary-avatar-container {
    position: relative;
    width: 72px;
    height: 72px;
}

.summary-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #F3F4F6;
    border: 2px solid #35166F;
    /* Dark Blue Border */
    object-fit: cover;
    padding: 2px;
    /* Space between border and image */
}

.avatar-plus-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: #35166F;
    font-weight: bold;
    font-size: 1.2rem;
    border: 1px solid #E5E7EB;
}

.summary-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.summary-info h3 {
    margin: 0;
    font-size: 1.4rem;
    /* Larger Name */
    font-weight: 800;
    color: #000;
    line-height: 1.2;
}

.summary-info p {
    margin: 0;
    color: #6B7280;
    /* Gray text for role */
    font-size: 1rem;
    font-weight: 500;
}

.plan-banner {
    background: #FFF9E6;
    /* Light Goldish background for plan */
    border: 1px solid #FFD700;
    border-radius: 15px;
    padding: 15px;
    margin: 0 var(--spacing-lg) var(--spacing-lg);
    position: relative;
    cursor: pointer;
}

.plan-banner.premium {
    background: #E9E1FF;
    border: 1px solid var(--primary);
}

.plan-banner.elite {
    background: #F5F5F5;
    border: 1px solid #000;
}

.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    padding: 0 var(--spacing-lg) var(--spacing-lg);
}

.action-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.action-card svg {
    width: 24px;
    height: 24px;
    stroke: #000;
}

.action-card span {
    font-size: 0.8rem;
    font-weight: 500;
}

.menu-section {
    background: white;
    margin-bottom: var(--spacing-md);
    padding: 0 var(--spacing-lg);
}

.menu-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
    padding-top: 10px;
}

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

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-item-left svg {
    width: 20px;
    height: 20px;
    stroke: #000;
}

.menu-item-right {
    color: #ccc;
}

/* View Management */
.view-section {
    display: none;
    min-height: 100vh;
    background: #FAFAFA;
}

.view-section.active {
    display: block;
}

/* Tracking Card Styles */

.moving-to-client {
    animation: moveRight 10s linear infinite;
}

@keyframes moveRight {
    0% {
        left: 15%;
    }

    100% {
        left: 85%;
    }
}

.tracking-steps {
    display: flex;
    justify-content: space-between;
    padding: 16px 24px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    opacity: 0.5;
    transition: all 0.3s;
}

.step.active {
    opacity: 1;
    color: var(--primary);
    font-weight: 600;
}

.step-dot {
    width: 10px;
    height: 10px;
    background: currentColor;
    border-radius: 50%;
}

.step-label {
    font-size: 0.75rem;
}

/* Elite Plan Page Styles */
.elite-page {
    background: #FFFFFF;
}

.elite-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.elite-hero {
    padding: 40px 0 30px;
}

.elite-hero-card {
    background: linear-gradient(135deg, #6B35C9 0%, #C8B7FE 100%);
    border-radius: 30px;
    padding: 40px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(122,43,218, 0.3);
    animation: hero-float 6s ease-in-out infinite;
}

@keyframes hero-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.crown-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.2));
    animation: crown-pulse 3s infinite;
}

@keyframes crown-pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.elite-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.elite-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
    font-weight: 500;
}

.elite-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.elite-price span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

.elite-cta-btn {
    background: white;
    color: #6B35C9;
    border: none;
    padding: 16px 32px;
    border-radius: 99px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.elite-cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.elite-cta-btn.large {
    width: 100%;
    max-width: 350px;
    background: linear-gradient(90deg, #6B35C9, #6B35C9);
    color: white;
    box-shadow: 0 10px 30px rgba(122,43,218, 0.4);
}

.section-title-center {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 40px 0 30px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 40px;
}

@media (min-width: 768px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.benefit-item {
    background: #F5F7FA;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: transform 0.2s;
}

.benefit-item:hover {
    transform: translateY(-3px);
    background: #F4EFFA;
}

.benefit-icon {
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6B35C9;
    box-shadow: 0 4px 15px rgba(122,43,218, 0.1);
    flex-shrink: 0;
}

.benefit-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #1d1d1f;
}

.benefit-content p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.elite-visual {
    padding: 20px 0 50px;
}

.visual-card {
    background: #000;
    border-radius: 30px;
    height: 250px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.visual-content h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.visual-abstract {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
}

.c1 {
    width: 200px;
    height: 200px;
    background: #6B35C9;
    top: -50px;
    left: -50px;
    animation: move1 10s infinite alternate;
}

.c2 {
    width: 300px;
    height: 300px;
    background: #C8B7FE;
    bottom: -100px;
    right: -50px;
    animation: move2 12s infinite alternate;
}

@keyframes move1 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes move2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-50px, -50px);
    }
}

.elite-emotional {
    text-align: center;
    padding: 0 20px 60px;
}

.elite-emotional p {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.elite-footer {
    text-align: center;
    padding-bottom: 60px;
}

/* Redesigned Professional Card Styles */
.pro-image-container {
    position: relative;
    width: 100%;
}

.favorite-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: white;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    color: #6B6B6B;
}

.favorite-btn:hover {
    color: #ff4081;
}

.pro-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.pro-profession {
    color: #666;
    font-size: 0.8rem;
    margin: 0 0 8px 0;
}

.pro-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.pro-price {
    color: #6B35C9;
    font-weight: 700;
    font-size: 0.9rem;
}

.pro-location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #6B6B6B;
    font-size: 0.8rem;
}

/* Home Header Redesign */
.home-header {
    background: linear-gradient(180deg, #8C6FE6 0%, #C8B7FE 100%);
    padding: 20px 20px 30px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    color: white;
    margin-bottom: 20px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.location-label {
    font-size: 0.8rem;
    opacity: 0.9;
    display: block;
}

.location-value {
    font-weight: 600;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.search-container {
    margin-bottom: 25px;
}

.search-input-wrapper {
    background: white;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header-search-input {
    border: none;
    outline: none;
    width: 100%;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #333;
}

.category-circles-grid {
    display: flex;
    justify-content: flex-start;
    /* Start from left for scrolling */
    gap: 20px;
    /* Increased gap to prevent text overlap */
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 10px;
    /* More space for scrollbar */
    padding-left: 5px;
    /* Initial padding */
    padding-right: 5px;
}

.cat-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 80px;
    /* Increased width for longer text */
    flex-shrink: 0;
    cursor: pointer;
}

.cat-circle-icon {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 0;
    /* Remove padding so image fills circle */
    border: 2px solid white;
    /* Optional: adds a clean rim */
}

.cat-circle-label {
    font-size: 0.75rem;
    color: #333;
    text-align: center;
    font-weight: 600;
}

/* Override promo banner margin since header is big */
.promo-banner {
    margin-top: 0;
}

/* Notification Dropdown */
.home-header {
    position: relative;
    /* Ensure absolute positioning works */
}

.notification-dropdown {
    position: absolute;
    top: 60px;
    right: 20px;
    width: 300px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideDownNotif 0.3s ease-out;
}

.notification-dropdown.active {
    display: flex;
}

@keyframes slideDownNotif {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-header {
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    margin: 0;
    color: #333;
    font-size: 1rem;
}

.close-notif {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6B6B6B;
    cursor: pointer;
    line-height: 1;
}

.notification-body {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.empty-notif {
    text-align: center;
    color: #6B6B6B;
    font-size: 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.btn-sm {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
    height: 30px;
    /* Smaller fixed height */
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Header Location Selector */
.header-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #F0F0F0;
    border: none;
    border-radius: 6px;
    padding: 6px 24px 6px 10px;
    font-size: 0.85rem;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    min-width: 100px;
    transition: background-color 0.2s;
}

.header-select:focus {
    outline: none;
    background-color: #E0E0E0;
}

.header-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-image: none;
}

.location-separator {
    color: #ccc;
    font-size: 1.2rem;
    font-weight: 300;
}

/* ===== TRACKING CARD - Solo visible con servicio activo ===== */
.tracking-card {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 380px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 -4px 30px rgba(75, 36, 155, 0.18);
    z-index: 500;
    overflow: hidden;
    animation: trackingSlideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tracking-card.hidden {
    display: none;
}

@keyframes trackingSlideUp {
    from { transform: translate(-50%, 100%); opacity: 0; }
    to   { transform: translate(-50%, 0);    opacity: 1; }
}

.tracking-header {
    background: var(--primary);
    color: white;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tracking-icon-bg {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.map-container {
    position: relative;
    height: 150px;
    background: #F4EFFA;
    overflow: hidden;
}

.map-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, #E9E1FF 0%, #F4EFFA 100%);
    background-image: repeating-linear-gradient(0deg, transparent, transparent 30px, rgba(163,111,220,0.15) 30px, rgba(163,111,220,0.15) 31px),
                      repeating-linear-gradient(90deg, transparent, transparent 30px, rgba(163,111,220,0.15) 30px, rgba(163,111,220,0.15) 31px);
}

.map-route {
    position: absolute;
    top: 50%;
    left: 20%;
    right: 20%;
    height: 3px;
    background: var(--primary);
    opacity: 0.4;
    border-radius: 2px;
}

.map-marker-pro {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    font-size: 1.6rem;
    transition: left 2s ease;
}

.map-marker-client {
    position: absolute;
    top: 50%;
    right: 15%;
    transform: translateY(-50%);
    font-size: 1.6rem;
}

.tracking-steps {
    display: flex;
    justify-content: space-around;
    padding: 14px 16px;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.step.active {
    opacity: 1;
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
}

.step.active .step-dot {
    background: var(--primary);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.step.active .step-label {
    color: var(--primary);
}
/* ===== END TRACKING CARD ===== */

/* ===== Chat asistente Mila ===== */
#chat-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2000;
    font-family: inherit;
}

.chat-toggle-btn {
    position: relative;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    background: white;
    box-shadow: 0 8px 22px rgba(75, 36, 155, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.chat-toggle-btn:hover { transform: scale(1.06); }

.chat-toggle-btn img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: #ef4444;
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.chat-window {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: 350px;
    max-width: calc(100vw - 32px);
    height: 480px;
    max-height: calc(100vh - 120px);
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(53, 22, 111, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
}

.chat-window.hidden { display: none; }

.chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--gradient-mila);
    color: white;
}

.chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.chat-avatar img { width: 34px; height: 34px; object-fit: contain; }

.chat-info { display: flex; flex-direction: column; flex: 1; line-height: 1.2; }
.chat-name { font-weight: 700; font-size: 0.95rem; }
.chat-status { font-size: 0.75rem; opacity: 0.85; }

.chat-close-btn {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--background);
}

.chat-messages .message {
    max-width: 82%;
    padding: 9px 12px;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-messages .message.bot {
    align-self: flex-start;
    background: white;
    color: var(--mila-texto);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-messages .message.user {
    align-self: flex-end;
    background: var(--mila-morado);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 0.68rem;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}

.chat-option-btn { cursor: pointer; font-size: 0.82rem; }
.chat-option-btn:hover { background: var(--mila-superficie); }

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid var(--border);
    background: white;
}

.chat-input-area input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 9999px;
    padding: 10px 14px;
    font-size: 0.9rem;
    outline: none;
}

.chat-input-area input:focus { border-color: var(--mila-lavanda); }

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--mila-vibrante);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== Base tipo app (modo cliente) ===== */

/* Encabezado: mismo tamaño de logo en todas las páginas y sin desbordes en el celular */
.app-header img[src*="mila-logo"] {
    height: 30px !important;
    width: auto;
}

.app-header .container {
    gap: 12px;
}

.app-header .container > div:first-child {
    min-width: 0;
}

.header-location-selector {
    min-width: 0;
    margin-top: 4px;
}

.header-location-selector .header-select {
    min-width: 0;
    max-width: 130px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.app-header nav {
    flex-shrink: 0;
}

html,
body {
    overflow-x: hidden;
}

/* Barra de navegación inferior */
.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1500;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(53, 22, 111, 0.06);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}

.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 4px 0;
    color: #8A7F99;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 12px;
    transition: color 0.2s ease;
}

.bottom-nav-item svg {
    transition: transform 0.2s ease;
}

.bottom-nav-item.active {
    color: var(--mila-morado);
}

.bottom-nav-item.active svg {
    transform: translateY(-1px);
    stroke-width: 2.3;
}

.bottom-nav-item.active::after {
    content: '';
    width: 18px;
    height: 3px;
    border-radius: 3px;
    background: var(--gradient-mila);
    margin-top: 1px;
}

.bottom-nav-item:not(.active)::after {
    content: '';
    height: 3px;
    margin-top: 1px;
}

/* Espacio para que la barra no tape el contenido, y el chat encima de la barra */
body.has-bottom-nav {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

body.has-bottom-nav #chat-widget {
    bottom: calc(84px + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
    .bottom-nav {
        max-width: 480px;
        margin: 0 auto;
        left: 50%;
        transform: translateX(-50%);
        bottom: 16px;
        border: 1px solid var(--border);
        border-radius: 22px;
        padding-bottom: 6px;
    }
}

/* Tarjeta de servicio en curso (Mis citas) */
.live-service-card {
    display: block;
    text-decoration: none;
    color: white;
    background: var(--gradient-mila);
    border-radius: 20px;
    padding: 14px 16px;
    margin-bottom: 22px;
    box-shadow: 0 12px 28px rgba(75, 36, 155, 0.3);
}

.live-service-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    opacity: 0.95;
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #6EF2B0;
    box-shadow: 0 0 0 0 rgba(110, 242, 176, 0.7);
    animation: live-pulse 1.6s infinite;
}

@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(110, 242, 176, 0.7); }
    100% { box-shadow: 0 0 0 10px rgba(110, 242, 176, 0); }
}

.live-service-body {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.live-service-body img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.live-service-body div {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.live-service-body strong {
    font-size: 0.98rem;
}

.live-service-body div span {
    font-size: 0.8rem;
    opacity: 0.85;
}

.live-service-cta {
    background: white;
    color: var(--mila-morado);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 8px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.history-subtitle {
    font-size: 1rem;
    color: var(--mila-texto);
    margin: 0 0 12px;
}

/* ===== Responsive: tablet, laptop y PC ===== */
.desktop-nav {
    display: none;
}

@media (min-width: 768px) {
    .container {
        max-width: 760px;
        padding: 0 24px;
    }

    .hero {
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 2.6rem;
    }

    .pros-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .pro-image {
        height: 170px;
    }

    .category-circles-grid {
        flex-wrap: wrap;
        overflow: visible;
        gap: 24px;
    }

    .cat-circle-icon {
        width: 72px;
        height: 72px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1160px;
        padding: 0 32px;
    }

    /* La barra de abajo se vuelve menú superior */
    .bottom-nav {
        display: none;
    }

    body.has-bottom-nav {
        padding-bottom: 40px;
    }

    body.has-bottom-nav #chat-widget {
        bottom: 24px;
        right: 24px;
    }

    .app-header {
        padding: 12px 0;
    }

    .app-header .container > div:first-child {
        flex-direction: row !important;
        align-items: center !important;
        gap: 28px;
    }

    .header-location-selector {
        margin-top: 0;
    }

    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 4px;
        margin-left: auto;
        margin-right: 12px;
    }

    .desktop-nav a {
        padding: 9px 16px;
        border-radius: 999px;
        color: #5B4E6E;
        font-weight: 600;
        font-size: 0.95rem;
        text-decoration: none;
        transition: background 0.2s ease, color 0.2s ease;
    }

    .desktop-nav a:hover {
        background: #F4EFFA;
        color: var(--mila-morado);
    }

    .desktop-nav a.active {
        background: var(--mila-superficie);
        color: var(--mila-morado);
    }

    /* Inicio: portada a dos columnas con la moto de Mila */
    .hero {
        padding: 64px 0;
    }

    .hero .container {
        min-height: 300px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        background: url(../assets/mila-rider.png) no-repeat right center / 360px auto;
        padding-right: 420px;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero p {
        font-size: 1.15rem;
        max-width: 520px;
    }

    .hero .promo-banner {
        display: inline-block;
        width: auto;
        padding: 16px 40px;
    }

    .pros-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
    }

    .pro-image {
        height: 210px;
    }

    .category-circles-grid {
        gap: 34px;
    }

    .cat-circle-icon {
        width: 84px;
        height: 84px;
    }

    .cat-circle-item {
        width: 96px;
    }

    .cat-circle-label {
        font-size: 0.85rem;
    }
}

@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }

    .pros-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ===== Medios de pago ===== */
.pagos-wrap {
    max-width: 640px;
    margin: 0 auto;
}

.pago-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 12px;
}

.pago-item.pred {
    border-color: var(--mila-lavanda);
    box-shadow: 0 0 0 3px rgba(163, 111, 220, 0.15);
}

.pago-icono {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--mila-superficie);
    color: var(--mila-morado);
}

.pago-nequi { background: #FCE7F3; color: #9D174D; }
.pago-daviplata { background: #FEE2E2; color: #B91C1C; }
.pago-pse { background: #E0F2FE; color: #075985; }

.pago-texto {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pago-texto strong {
    color: var(--text-main);
    font-size: 0.98rem;
}

.pago-texto span {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.pago-badge {
    font-style: normal;
    align-self: flex-start;
    margin-top: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--mila-morado);
    background: var(--mila-superficie);
    padding: 3px 8px;
    border-radius: 999px;
}

.pago-link {
    align-self: flex-start;
    background: none;
    border: none;
    padding: 4px 0 0;
    color: var(--mila-vibrante);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}

.pago-acciones {
    display: flex;
    gap: 6px;
}

.pago-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--mila-morado);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pago-btn:hover {
    background: var(--mila-superficie);
}

.pago-btn.borrar {
    color: #C2410C;
}

.pago-vacio {
    text-align: center;
    padding: 28px 16px;
    border: 1.5px dashed var(--border);
    border-radius: 16px;
    color: var(--text-muted);
}

.pago-vacio strong {
    display: block;
    color: var(--text-main);
    margin: 6px 0 4px;
}

.pago-seguro {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
}

.pago-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(46, 36, 80, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.pago-modal.hidden {
    display: none;
}

.pago-sheet {
    width: 100%;
    max-width: 480px;
    max-height: 92vh;
    overflow-y: auto;
    background: var(--surface);
    border-radius: 24px 24px 0 0;
    padding: 22px 20px calc(20px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 6px;
}

@media (min-width: 768px) {
    .pago-modal {
        align-items: center;
    }

    .pago-sheet {
        border-radius: 24px;
    }
}

.pago-sheet h2 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 8px;
}

.pago-sheet .form-input,
.pago-sheet .form-select {
    height: 46px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 10px;
    background: var(--surface);
    color: var(--text-main);
    font-size: 1rem;
}

.pago-fila {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pago-marca {
    font-weight: 700;
    color: var(--mila-vibrante);
    margin-left: 6px;
}

.pago-check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
    margin: 4px 0;
}

.pago-error {
    color: #C2410C;
    font-size: 0.85rem;
    min-height: 1.2em;
}

.pago-botones {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 4px;
}

.pago-toast {
    position: fixed;
    left: 50%;
    bottom: calc(96px + env(safe-area-inset-bottom));
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    background: var(--mila-texto);
    color: white;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    z-index: 3100;
}

.pago-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ===== Ubicación automática: solo texto, pequeño y sutil ===== */
.location-chip {
    display: block;
    max-width: 240px;
    margin-top: 2px;
    padding: 0;
    border: none;
    background: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
}

.location-chip-text {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-chip:hover .location-chip-text {
    color: var(--text-main);
}

.location-chip.cargando .location-chip-text {
    opacity: 0.6;
}

.location-chip.error {
    color: var(--text-muted);
    font-style: italic;
}

@media (min-width: 1024px) {
    .location-chip {
        margin-top: 0;
        max-width: 340px;
        font-size: 0.78rem;
    }
}

/* ===== Términos y condiciones ===== */
.legal-page {
    background: var(--background);
}

.legal-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.legal-back {
    color: var(--text-main);
    display: flex;
}

.legal-logo {
    height: 30px;
}

.legal-switch {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--mila-vibrante);
    text-decoration: none;
}

.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 24px 18px 60px;
    color: var(--text-main);
    line-height: 1.65;
}

.legal h1 {
    font-size: 1.7rem;
    line-height: 1.2;
    margin-bottom: 6px;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.legal-indice {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 4px 16px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    margin-bottom: 26px;
}

.legal-indice a,
.legal a {
    color: var(--mila-vibrante);
    text-decoration: none;
    font-size: 0.92rem;
}

.legal section {
    margin-bottom: 24px;
    scroll-margin-top: 70px;
}

.legal h2 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.legal p,
.legal li {
    font-size: 0.95rem;
    color: var(--text-main);
}

.legal ul {
    padding-left: 20px;
    display: grid;
    gap: 6px;
}

.legal mark {
    background: #FEF3C7;
    color: #78350F;
    padding: 0 4px;
    border-radius: 4px;
}

.legal-fin {
    text-align: center;
    margin-top: 30px;
}

.terminos-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-main);
    line-height: 1.45;
    margin: 6px 0 12px;
    text-align: left;
}

.terminos-check input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--mila-morado);
    flex-shrink: 0;
}

.terminos-check a {
    color: var(--mila-vibrante);
    font-weight: 600;
}

/* ===== Selector de tema ===== */
.tema-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 4px;
    border-radius: 14px;
    background: var(--surface-alt);
}

.tema-selector button {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 9px 6px;
    border-radius: 10px;
    cursor: pointer;
}

.tema-selector button.activo {
    background: var(--surface);
    color: var(--mila-morado);
    box-shadow: 0 1px 4px rgba(46, 36, 80, 0.12);
}

.tema-rapido {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    display: flex;
}

/* ===== Modo oscuro ===== */
:root[data-theme="oscuro"] {
    /* 🌙 MILA Dark: ciruela profundo + morado + lavanda + amarillo */
    --mila-superficie: #2A1B3D;
    --mila-bruma: #21152F;
    --mila-lavanda-soft: #2A1B3D;
    --mila-lavanda-suave: #6B4F99;
    --mila-texto: #FFFFFF;
    --mila-institucional: #C8B7FE;
    --titulo: #FFFFFF;
    --background: #140D20;
    --surface: #21152F;
    --surface-alt: #2A1B3D;
    --text-main: #FFFFFF;
    --text-muted: #C9BED8;
    --border: #49365C;
    --brand-off-white: #140D20;
    --gradient-hero: linear-gradient(135deg, #21152F 0%, #140D20 100%);
    --gradient-mila: linear-gradient(135deg, #4B249B 0%, #6B35C9 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 10px 24px rgba(0, 0, 0, 0.5);
    /* En oscuro los morados de texto pasan a lavanda; los botones usan #6B35C9 */
    --primary: #C8B7FE;
    --primary-dark: #E9E1FF;
    --mila-morado: #C8B7FE;
    --mila-vibrante: #C8B7FE;
    --accent: #C8B7FE;
}

:root[data-theme="oscuro"] body {
    background: var(--background);
    color: var(--text-main);
}

/* En modo oscuro se usa assets/mila-logo-oscuro.png (lo cambia js/tema.js) */

/* Superficies blancas escritas directamente en las páginas */
:root[data-theme="oscuro"] [style*="background: white"],
:root[data-theme="oscuro"] [style*="background:white"],
:root[data-theme="oscuro"] [style*="background: #fff"],
:root[data-theme="oscuro"] [style*="background: #FFF"],
:root[data-theme="oscuro"] [style*="background-color: white"],
:root[data-theme="oscuro"] [style*="background: #f9fafb"],
:root[data-theme="oscuro"] [style*="background: #F9FAFB"],
:root[data-theme="oscuro"] [style*="background: #f8fafc"],
:root[data-theme="oscuro"] [style*="background: #F8FAFC"],
:root[data-theme="oscuro"] [style*="background: #fafafa"],
:root[data-theme="oscuro"] [style*="background: #FAFAFA"] {
    background: var(--surface) !important;
}

:root[data-theme="oscuro"] [style*="background: #f0f0f0"],
:root[data-theme="oscuro"] [style*="background: #F3F4F6"],
:root[data-theme="oscuro"] [style*="background: #f3f4f6"],
:root[data-theme="oscuro"] [style*="background: #F5F5F5"],
:root[data-theme="oscuro"] [style*="background: #f1f5f9"],
:root[data-theme="oscuro"] [style*="background: #E9E1FF"],
:root[data-theme="oscuro"] [style*="background: #F1ECFF"] {
    background: var(--surface-alt) !important;
}

/* Textos oscuros escritos directamente en las páginas */
:root[data-theme="oscuro"] [style*="color: #333"],
:root[data-theme="oscuro"] [style*="color: #000"],
:root[data-theme="oscuro"] [style*="color:#000"],
:root[data-theme="oscuro"] [style*="color: #2E2450"],
:root[data-theme="oscuro"] [style*="color: #1e293b"],
:root[data-theme="oscuro"] [style*="color: #1F2937"],
:root[data-theme="oscuro"] [style*="color: #111827"],
:root[data-theme="oscuro"] [style*="color: #3A2A55"],
:root[data-theme="oscuro"] [style*="color: #35166F"],
:root[data-theme="oscuro"] [style*="color: #1d1d1f"] {
    color: var(--text-main) !important;
}

:root[data-theme="oscuro"] [style*="color: #666"],
:root[data-theme="oscuro"] [style*="color: #555"],
:root[data-theme="oscuro"] [style*="color: #6B7280"],
:root[data-theme="oscuro"] [style*="color: #64748b"],
:root[data-theme="oscuro"] [style*="color: #999"],
:root[data-theme="oscuro"] [style*="color: #6B6B6B"],
:root[data-theme="oscuro"] [style*="color: #64748B"] {
    color: var(--text-muted) !important;
}

/* Colores de estado oscurecidos por contraste en modo claro: en modo oscuro vuelven al tono claro */
:root[data-theme="oscuro"] [style*="color: #047857"] { color: #34D399 !important; }

:root[data-theme="oscuro"] [style*="border: 1px solid #eee"],
:root[data-theme="oscuro"] [style*="border-bottom: 1px solid #eee"],
:root[data-theme="oscuro"] [style*="border: 1px solid #ddd"],
:root[data-theme="oscuro"] [style*="border-top: 1px solid #eee"] {
    border-color: var(--border) !important;
}

/* Piezas comunes */
:root[data-theme="oscuro"] .app-header,
:root[data-theme="oscuro"] .bottom-nav {
    background: rgba(28, 16, 48, 0.92);
    border-color: var(--border);
}

:root[data-theme="oscuro"] .bottom-nav-item {
    color: #9C8DB5;
}

:root[data-theme="oscuro"] .bottom-nav-item.active,
:root[data-theme="oscuro"] .desktop-nav a.active,
:root[data-theme="oscuro"] .desktop-nav a:hover {
    color: #D7C0F7;
}

:root[data-theme="oscuro"] .desktop-nav a {
    color: #C9BADF;
}

:root[data-theme="oscuro"] .app-header .btn-icon,
:root[data-theme="oscuro"] .app-header [style*="color: #000"] {
    color: var(--text-main) !important;
}

:root[data-theme="oscuro"] .sidebar,
:root[data-theme="oscuro"] .sidebar-header,
:root[data-theme="oscuro"] .modal-content,
:root[data-theme="oscuro"] .login-card,
:root[data-theme="oscuro"] .category-card,
:root[data-theme="oscuro"] .cat-circle-icon,
:root[data-theme="oscuro"] .account-header,
:root[data-theme="oscuro"] .menu-item,
:root[data-theme="oscuro"] .settings-item,
:root[data-theme="oscuro"] .pro-card {
    background: var(--surface);
    color: var(--text-main);
    border-color: var(--border);
}

:root[data-theme="oscuro"] .sidebar-menu li a {
    color: var(--text-main);
}

:root[data-theme="oscuro"] .sidebar-menu li a:hover {
    background: var(--surface-alt);
}

:root[data-theme="oscuro"] .cat-circle-label,
:root[data-theme="oscuro"] .category-name,
:root[data-theme="oscuro"] .pro-name,
:root[data-theme="oscuro"] h1,
:root[data-theme="oscuro"] h2,
:root[data-theme="oscuro"] h3,
:root[data-theme="oscuro"] h4 {
    color: var(--text-main);
}

:root[data-theme="oscuro"] .form-input,
:root[data-theme="oscuro"] .form-select,
:root[data-theme="oscuro"] .form-textarea,
:root[data-theme="oscuro"] input[type="text"],
:root[data-theme="oscuro"] input[type="tel"],
:root[data-theme="oscuro"] input[type="email"],
:root[data-theme="oscuro"] input[type="number"],
:root[data-theme="oscuro"] input[type="search"],
:root[data-theme="oscuro"] select,
:root[data-theme="oscuro"] textarea {
    background: var(--surface-alt);
    color: var(--text-main);
    border-color: var(--border);
}

:root[data-theme="oscuro"] ::placeholder {
    color: #8C7DA6;
}

:root[data-theme="oscuro"] .btn-secondary {
    background: transparent;
    color: #D7C0F7;
    border-color: #6D4BA3;
}

:root[data-theme="oscuro"] .chat-messages .message.bot,
:root[data-theme="oscuro"] .chat-input-area,
:root[data-theme="oscuro"] .chat-option-btn,
:root[data-theme="oscuro"] .chat-toggle-btn {
    background: var(--surface-alt);
    color: var(--text-main);
    border-color: var(--border);
}

:root[data-theme="oscuro"] .pago-toast,
:root[data-theme="oscuro"] .toast {
    background: #EDE4FB;
    color: #2E2450;
}

:root[data-theme="oscuro"] .pago-nequi { background: #4A1D35; color: #F9A8D4; }
:root[data-theme="oscuro"] .pago-daviplata { background: #4A1D1D; color: #FCA5A5; }
:root[data-theme="oscuro"] .pago-pse { background: #0C3348; color: #7DD3FC; }

:root[data-theme="oscuro"] .legal mark {
    background: #5C4410;
    color: #FDE68A;
}

/* Mapa oscuro */
:root[data-theme="oscuro"] #map .leaflet-tile-pane {
    filter: invert(1) hue-rotate(190deg) brightness(0.85) saturate(0.35) contrast(0.9);
}

:root[data-theme="oscuro"] .sheet,
:root[data-theme="oscuro"] .fab,
:root[data-theme="oscuro"] .order-chip,
:root[data-theme="oscuro"] .help-pill,
:root[data-theme="oscuro"] .home-label {
    background: var(--surface);
    color: var(--text-main);
}

:root[data-theme="oscuro"] .pro-row {
    background: var(--surface-alt);
    border-color: var(--border);
}

:root[data-theme="oscuro"] .leaflet-control-attribution {
    background: rgba(28, 16, 48, 0.7) !important;
    color: #B4A6C9;
}

/* Fondos morados con letra blanca se mantienen intensos en modo oscuro */
:root[data-theme="oscuro"] .btn-primary,
:root[data-theme="oscuro"] .chat-messages .message.user,
:root[data-theme="oscuro"] .chat-send-btn,
:root[data-theme="oscuro"] .round-btn.call,
:root[data-theme="oscuro"] .step.active .step-dot,
:root[data-theme="oscuro"] [style*="background: var(--primary)"],
:root[data-theme="oscuro"] [style*="background: var(--mila-morado)"],
:root[data-theme="oscuro"] [style*="background-color: var(--primary)"] {
    background: #6B35C9 !important;
    color: #FFFFFF !important;
}

:root[data-theme="oscuro"] .tema-selector button.activo {
    background: #6B35C9;
    color: #FFFFFF;
}

/* Textos morados escritos directamente en las páginas */
:root[data-theme="oscuro"] [style*="color: #4B249B"],
:root[data-theme="oscuro"] [style*="color: #6B35C9"],
:root[data-theme="oscuro"] [style*="color:#6B35C9"],
:root[data-theme="oscuro"] [style*="color: #35166F"],
:root[data-theme="oscuro"] [style*="color: #1E3A8A"] {
    color: #C4A1F5 !important;
}

:root[data-theme="oscuro"] [style*="background: #e6f4ea"],
:root[data-theme="oscuro"] [style*="background: #E6F4EA"] {
    background: #123A26 !important;
    color: #86EFAC !important;
}

:root[data-theme="oscuro"] [style*="background: #fce8e6"] {
    background: #45161A !important;
    color: #FCA5A5 !important;
}

/* Perfil, planes y suscripción */
:root[data-theme="oscuro"] .view-section,
:root[data-theme="oscuro"] .menu-section,
:root[data-theme="oscuro"] .apple-bg,
:root[data-theme="oscuro"] .elite-bg {
    background: var(--background);
    color: var(--text-main);
}

:root[data-theme="oscuro"] .menu-section,
:root[data-theme="oscuro"] .apple-card,
:root[data-theme="oscuro"] .apple-card-standard,
:root[data-theme="oscuro"] .benefit-item,
:root[data-theme="oscuro"] .plan-banner {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text-main);
}

:root[data-theme="oscuro"] .plan-banner *,
:root[data-theme="oscuro"] .apple-card *,
:root[data-theme="oscuro"] .benefit-item h3,
:root[data-theme="oscuro"] .benefit-item p {
    color: var(--text-main);
}

:root[data-theme="oscuro"] .apple-plan-desc,
:root[data-theme="oscuro"] .benefit-item p {
    color: var(--text-muted) !important;
}

:root[data-theme="oscuro"] .apple-plan-icon,
:root[data-theme="oscuro"] .benefit-icon {
    background: var(--surface-alt) !important;
    color: #C4A1F5 !important;
}

:root[data-theme="oscuro"] .apple-btn-standard {
    background: var(--surface-alt) !important;
    color: var(--text-main) !important;
}

:root[data-theme="oscuro"] .apple-card-premium {
    background: linear-gradient(135deg, #2A1B45 0%, #1C1030 100%) !important;
}

:root[data-theme="oscuro"] .app-header[style] {
    background: rgba(28, 16, 48, 0.92) !important;
}

:root[data-theme="oscuro"] #map {
    background: #120920;
}

:root[data-theme="oscuro"] .status-pill,
:root[data-theme="oscuro"] .pago-badge {
    background: #3A2468;
    color: #E2D2FB;
}

:root[data-theme="oscuro"] .code-box strong,
:root[data-theme="oscuro"] .order-chip b {
    color: #C4A1F5;
}

:root[data-theme="oscuro"] .pro-price,
:root[data-theme="oscuro"] .elite-emotional p,
:root[data-theme="oscuro"] .elite-emotional {
    color: #D7C0F7 !important;
}

:root[data-theme="oscuro"] .live-service-cta {
    color: #4B249B;
}

:root[data-theme="oscuro"] [style*="background: #FBF8FF"],
:root[data-theme="oscuro"] [style*="background: #fbf8ff"] {
    background: var(--surface-alt) !important;
    color: var(--text-main) !important;
    border-color: var(--border) !important;
}

:root[data-theme="oscuro"] [style*="background: #FEF2F2"],
:root[data-theme="oscuro"] [style*="background: #fef2f2"],
:root[data-theme="oscuro"] [style*="background: #FEE2E2"],
:root[data-theme="oscuro"] [style*="background-color: #FEF2F2"] {
    background: #3B1219 !important;
    border-color: #7F1D1D !important;
}

:root[data-theme="oscuro"] [style*="background: #FFFBEB"],
:root[data-theme="oscuro"] [style*="background: #fffbeb"],
:root[data-theme="oscuro"] [style*="background: #FEF3C7"],
:root[data-theme="oscuro"] [style*="background-color: #FFFBEB"] {
    background: #3A2A0B !important;
    border-color: #78350F !important;
}

:root[data-theme="oscuro"] [style*="background: #FEF2F2"] *,
:root[data-theme="oscuro"] [style*="background: #fef2f2"] *,
:root[data-theme="oscuro"] [style*="background: #FFFBEB"] *,
:root[data-theme="oscuro"] [style*="background: #fffbeb"] *,
:root[data-theme="oscuro"] [style*="background: #FEF3C7"] * {
    color: #FDE2E2 !important;
}

:root[data-theme="oscuro"] .apple-badge {
    color: #2E2450;
}

:root[data-theme="oscuro"] .step-bar {
    background: #3A2A55;
}

:root[data-theme="oscuro"] .feed-card,
:root[data-theme="oscuro"] .stat-card,
:root[data-theme="oscuro"] .appointment-card,
:root[data-theme="oscuro"] .service-card,
:root[data-theme="oscuro"] .review-card {
    background: var(--surface);
    color: var(--text-main);
    border-color: var(--border);
}

/* ===== Verificación de rostro ===== */
.rostro-modal {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: #120920;
    color: #F3ECFC;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.rostro-paso {
    width: 100%;
    max-width: 420px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.rostro-paso.hidden {
    display: none;
}

.rostro-paso h2 {
    color: #F3ECFC;
    font-size: 1.4rem;
}

.rostro-paso p {
    color: #CFC2E3;
    font-size: 0.95rem;
    line-height: 1.45;
}

.rostro-emoji {
    font-size: 3rem;
}

.rostro-tips {
    list-style: none;
    padding: 12px 14px;
    border-radius: 14px;
    background: #1C1030;
    text-align: left;
    font-size: 0.88rem;
    color: #E2D2FB;
    display: grid;
    gap: 6px;
}

.rostro-tips li::before {
    content: '✓ ';
    color: #86EFAC;
    font-weight: 700;
}

.rostro-modal .terminos-check {
    color: #E2D2FB;
}

.rostro-modal .btn-primary {
    padding: 14px;
    font-size: 1rem;
    background: #6B35C9;
}

.rostro-modal .link-btn {
    color: #C4A1F5;
}

.rostro-error {
    color: #FDBA74 !important;
    font-size: 0.88rem !important;
    min-height: 1.2em;
}

.rostro-visor {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    overflow: hidden;
    background: #000;
}

.rostro-visor video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

.rostro-ovalo {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 62%;
    height: 78%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 2000px rgba(18, 9, 32, 0.55);
    transition: border-color 0.2s ease;
}

.rostro-visor[data-ok="si"] .rostro-ovalo {
    border-color: #6EF2B0;
}

.rostro-visor[data-ok="no"] .rostro-ovalo {
    border-color: #FDBA74;
}

.rostro-cargando {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 9, 32, 0.7);
    font-weight: 600;
}

.rostro-cargando.hidden {
    display: none;
}

.rostro-instruccion {
    font-size: 1.15rem;
    font-weight: 700;
    min-height: 2.8em;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.rostro-progreso {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.rostro-progreso span {
    width: 34px;
    height: 6px;
    border-radius: 6px;
    background: #3A2A55;
    transition: background 0.2s ease;
}

.rostro-progreso span.ok {
    background: #6EF2B0;
}

.rostro-foto {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 6px;
    border: 4px solid #6EF2B0;
}

/* Recuadro de selfie en los formularios de registro */
.selfie-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1.5px dashed var(--border);
    border-radius: 16px;
    margin-bottom: 8px;
}

.selfie-box img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--surface-alt);
}

.selfie-box.ok {
    border-style: solid;
    border-color: #22C55E;
}

.selfie-estado {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: left;
}

.selfie-box.ok .selfie-estado {
    color: #15803D;
    font-weight: 600;
}

:root[data-theme="oscuro"] .selfie-box.ok .selfie-estado {
    color: #86EFAC;
}

.turnstile-box {
    display: flex;
    justify-content: center;
    margin: 8px 0;
}

.hp-campo {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ===== Inicio: portada ===== */
.portada {
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.portada-img {
    position: absolute;
    inset: 0 0 34px 0;
    background: url(../assets/portada/portada-movil.jpg) center right / cover no-repeat;
    border-radius: 0 0 28px 28px;
}

.portada-img::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(246, 240, 253, 0.97) 0%, rgba(246, 240, 253, 0.85) 38%, rgba(246, 240, 253, 0.1) 70%, rgba(246, 240, 253, 0) 100%);
}

.portada-contenido {
    position: relative;
    padding-top: 34px;
    padding-bottom: 26px;
    min-height: 250px;
}

.portada h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 2.3rem;
    line-height: 1.05;
    color: var(--mila-morado-oscuro, #35166F);
    max-width: 230px;
    margin-bottom: 12px;
}

.portada-corazon {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    color: var(--mila-morado);
}

.portada p {
    position: relative;
    max-width: 220px;
    font-size: 0.95rem;
    line-height: 1.35;
    color: #3A2A55;
}

.buscador {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 12px 18px;
    border: none;
    border-radius: 999px;
    background: var(--surface);
    box-shadow: 0 10px 30px rgba(75, 36, 155, 0.16);
    color: var(--mila-morado);
    font-family: inherit;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
}

.buscador span {
    flex: 1;
    color: var(--text-muted);
}

.buscador-filtros {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mila-superficie);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mila-morado);
}

/* ===== Inicio: secciones ===== */
.seccion {
    margin-top: 26px;
}

.seccion-titulo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.seccion-titulo h2 {
    font-size: 1.3rem;
    color: var(--text-main);
}

.seccion-titulo a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--mila-vibrante);
    text-decoration: none;
    white-space: nowrap;
}

.seccion-sub {
    margin: -6px 0 12px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.fila-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 2px 16px 10px;
    margin: 0 -16px;
    scroll-padding-inline: 16px;
    scrollbar-width: none;
}

.fila-scroll::-webkit-scrollbar {
    display: none;
}

.fila-scroll > * {
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* Tarjetas de profesionales destacadas */
.destacada {
    width: 190px;
    background: var(--surface);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(53, 22, 111, 0.08);
    cursor: pointer;
}

.destacada-foto {
    position: relative;
    height: 160px;
}

.destacada-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destacada-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(46, 36, 80, 0.25);
    backdrop-filter: blur(6px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.destacada-fav.activo,
.favorite-btn.activo {
    color: #fff;
    background: #C0265E;
}

.destacada-fav.activo svg,
.favorite-btn.activo svg {
    fill: currentColor;
}

.destacada-chips {
    position: absolute;
    left: 10px;
    bottom: 10px;
    display: flex;
    gap: 6px;
}

.destacada-chips span {
    background: rgba(255, 255, 255, 0.95);
    color: #2E2450;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
}

.destacada-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px 12px;
}

.destacada-info strong {
    display: block;
    font-size: 0.98rem;
    color: var(--text-main);
}

.destacada-info small {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.punto-estado {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #CBD5E1;
    flex-shrink: 0;
}

.punto-estado.on {
    background: #22C55E;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Carrusel de promociones */
.promos-carrusel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    border-radius: 22px;
    scrollbar-width: none;
    box-shadow: 0 10px 28px rgba(53, 22, 111, 0.14);
}

.promos-carrusel::-webkit-scrollbar {
    display: none;
}

.promo-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 8 / 3;
    display: block;
    position: relative;
    text-decoration: none;
    overflow: hidden;
}

.promo-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.promo-texto {
    display: flex;
    align-items: center;
    padding: 18px 22px;
    color: #fff;
}

.promo-texto strong {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.promo-texto p {
    font-size: 0.9rem;
    max-width: 260px;
    opacity: 0.95;
    margin-bottom: 10px;
    line-height: 1.3;
}

.promo-boton {
    display: inline-block;
    background: #fff;
    color: #4B249B;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 7px 14px;
    border-radius: 999px;
}

.promo-marca {
    position: absolute !important;
    right: 18px;
    bottom: 16px;
    width: 90px !important;
    height: auto !important;
    opacity: 0.35;
}

.promos-puntos {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}

.promos-puntos button {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: none;
    padding: 0;
    background: #D8CBEB;
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.promos-puntos button.activo {
    width: 22px;
    background: var(--mila-morado);
}

/* Mis favoritas */
.favorita {
    width: 84px;
    text-align: center;
    text-decoration: none;
}

.favorita-foto {
    position: relative;
    display: block;
    width: 72px;
    height: 72px;
    margin: 0 auto 6px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gradient-mila);
}

.favorita-foto img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--surface);
}

.favorita-foto .punto-estado {
    position: absolute;
    right: 4px;
    bottom: 4px;
    border: 2px solid var(--surface);
}

.favorita strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-main);
}

.favorita small {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favoritas-vacio {
    width: 100%;
    padding: 16px;
    border: 1.5px dashed var(--border);
    border-radius: 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-align: center;
}

/* Sugerencias de servicios */
.sugerencia {
    width: 230px;
    height: 92px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 12px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(90deg, #FBEFF6 0%, #F4EDFC 100%);
    text-decoration: none;
    color: #35166F;
}

.sugerencia img {
    width: 92px;
    height: 92px;
    object-fit: cover;
    flex-shrink: 0;
}

.sugerencia span {
    flex: 1;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
}

.sugerencia i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    color: var(--mila-morado);
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
    font-weight: 700;
    flex-shrink: 0;
}

/* Mejor votados */
.votados {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.votado {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    display: block;
}

.votado img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.votado::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(46, 36, 80, 0.7) 100%);
}

.votado-likes,
.votado-texto {
    position: absolute;
    z-index: 1;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.votado-likes {
    left: 8px;
    bottom: 8px;
}

.votado-texto {
    top: 8px;
    left: 8px;
    right: 8px;
    font-weight: 600;
    background: rgba(46, 36, 80, 0.35);
    padding: 2px 6px;
    border-radius: 6px;
    width: fit-content;
    max-width: calc(100% - 16px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (min-width: 768px) {
    .portada-img {
        background-image: url(../assets/portada/portada.jpg);
        background-position: center;
    }

    .portada-contenido {
        min-height: 340px;
        padding-top: 60px;
    }

    .portada h1 {
        font-size: 3.4rem;
        max-width: 420px;
    }

    .portada p {
        max-width: 360px;
        font-size: 1.1rem;
    }

    .buscador {
        max-width: 640px;
        margin: 0 auto;
    }

    .fila-scroll {
        margin: 0;
        padding: 2px 0 10px;
    }

    .destacada {
        width: 220px;
    }

    .votados {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1024px) {
    .portada-img {
        inset: 0 0 34px 0;
        border-radius: 0 0 36px 36px;
    }

    .portada-contenido {
        min-height: 420px;
        padding-top: 90px;
    }

    .portada h1 {
        font-size: 4rem;
        max-width: 480px;
    }

    .destacada {
        width: 240px;
    }

    .destacada-foto {
        height: 200px;
    }

    .sugerencia {
        width: 320px;
        height: 110px;
    }

    .sugerencia img {
        width: 110px;
        height: 110px;
    }
}

/* Inicio en modo oscuro */
:root[data-theme="oscuro"] .portada-img::after {
    background: linear-gradient(90deg, rgba(18, 9, 32, 0.95) 0%, rgba(18, 9, 32, 0.8) 38%, rgba(18, 9, 32, 0.15) 70%, rgba(18, 9, 32, 0) 100%);
}

:root[data-theme="oscuro"] .portada h1 {
    color: #F3ECFC;
}

:root[data-theme="oscuro"] .portada p {
    color: #D7C0F7;
}

:root[data-theme="oscuro"] .sugerencia {
    background: linear-gradient(90deg, #2A1B45 0%, #1C1030 100%);
    color: #F3ECFC;
}

:root[data-theme="oscuro"] .sugerencia i {
    background: #3A2468;
    color: #E2D2FB;
}

:root[data-theme="oscuro"] .promos-puntos button {
    background: #3A2A55;
}

:root[data-theme="oscuro"] .promos-puntos button.activo {
    background: #C4A1F5;
}

/* ===== Mila Clips (estilo TikTok) ===== */
body.clips-page {
    background: #000;
    overflow: hidden;
    padding-bottom: 0 !important;
}

.clips-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent);
    color: #fff;
}

.clips-atras {
    color: #fff;
    display: flex;
    width: 36px;
}

.clips-tabs {
    display: flex;
    gap: 18px;
}

.clips-tabs button {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    padding: 6px 2px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
}

.clips-tabs button.activo {
    color: #fff;
    border-bottom-color: #fff;
}

.clips-yo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    display: flex;
    text-decoration: none;
}

.clips-yo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-iniciales {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-mila);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: 50%;
}

.clips-feed {
    height: calc(100dvh - 76px - env(safe-area-inset-bottom));
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.clips-feed::-webkit-scrollbar {
    display: none;
}

.clip {
    position: relative;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow: hidden;
    color: #fff;
}

.clip-fondo {
    position: absolute;
    inset: -20px;
    background-size: cover;
    background-position: center;
    filter: blur(24px) brightness(0.55);
}

.clip-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.clip::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.72) 100%);
    pointer-events: none;
}

.clip-acciones {
    position: absolute;
    right: 12px;
    bottom: 120px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.clip-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    display: flex;
}

.clip-btn {
    background: none;
    border: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.clip-like.activo {
    color: #9B4DFF;
}

.clip-like.activo svg {
    filter: drop-shadow(0 0 1px #fff) drop-shadow(0 2px 6px rgba(155, 77, 255, 0.6));
}

.clip-info {
    position: absolute;
    left: 14px;
    right: 80px;
    bottom: 22px;
    z-index: 2;
}

.clip-autor {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.clip-hace {
    font-size: 0.8rem;
    opacity: 0.85;
}

.clip-info p {
    margin: 6px 0 8px;
    font-size: 0.95rem;
    line-height: 1.35;
}

.clip-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.clip-chips span,
.clip-chips a {
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    text-decoration: none;
}

.clip-reservar {
    display: inline-block;
    background: #fff;
    color: #4B249B;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 9px 16px;
    border-radius: 999px;
    text-decoration: none;
}

.clip-corazon-grande {
    position: absolute;
    left: 50%;
    top: 45%;
    z-index: 3;
    color: #9B4DFF;
    filter: drop-shadow(0 0 2px #fff) drop-shadow(0 6px 18px rgba(75, 36, 155, 0.55));
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    pointer-events: none;
}

.clip-corazon-grande svg {
    width: 110px;
    height: 110px;
}

.clip-corazon-grande.pop {
    animation: corazon-pop 0.8s ease forwards;
}

@keyframes corazon-pop {
    0% { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
    30% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
    70% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -60%) scale(1); opacity: 0; }
}

.clips-subir {
    position: fixed;
    right: 16px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 30;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: var(--gradient-mila);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(122, 43, 218, 0.5);
    cursor: pointer;
}

.clips-vacio {
    color: #fff;
    text-align: center;
    padding: 40vh 24px 0;
}

body.clips-page .bottom-nav {
    background: rgba(0, 0, 0, 0.92);
    border-top-color: rgba(255, 255, 255, 0.08);
}

body.clips-page .bottom-nav-item {
    color: rgba(255, 255, 255, 0.65);
}

body.clips-page .bottom-nav-item.active {
    color: #fff;
}

.subir-foto {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 210px;
    border-radius: 16px;
    border: 2px dashed var(--mila-lavanda-suave);
    background: var(--surface-alt);
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.subir-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.subir-texto {
    min-height: 70px;
    padding-top: 10px;
    resize: vertical;
    height: auto !important;
}

.subir-publicidad {
    background: var(--surface-alt);
    padding: 10px 12px;
    border-radius: 12px;
}

@media (min-width: 1024px) {
    body.clips-page {
        padding-bottom: 0;
    }

    body.clips-page .bottom-nav {
        display: flex;
    }

    .clips-feed {
        height: calc(100dvh - 90px);
        max-width: 520px;
        margin: 0 auto;
    }

    .clips-top {
        max-width: 520px;
        margin: 0 auto;
    }

    .clips-subir {
        right: calc(50% - 250px);
        bottom: 110px;
    }
}

/* ===== Perfil de Clips de la clienta ===== */
.perfil-clips {
    max-width: 720px;
    padding-top: 20px;
}

.pc-cabecera {
    text-align: center;
    margin-bottom: 18px;
}

.pc-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 10px;
    border-radius: 50%;
    padding: 3px;
    background: var(--gradient-mila);
}

.pc-avatar img,
.pc-avatar .avatar-iniciales {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--surface);
    font-size: 1.6rem;
}

.pc-cabecera h1 {
    font-size: 1.35rem;
    color: var(--text-main);
}

.pc-rol {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.pc-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 14px 0;
}

.pc-stats strong {
    display: block;
    font-size: 1.2rem;
    color: var(--text-main);
}

.pc-stats span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pc-acciones {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pc-acciones a {
    text-decoration: none;
    padding: 10px 18px;
}

.pc-nota {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 12px;
}

.pc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}

.pc-item {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 6px;
    background: var(--surface-alt);
}

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

.pc-item-likes {
    position: absolute;
    left: 6px;
    bottom: 6px;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.pc-item-pub {
    position: absolute;
    left: 6px;
    top: 6px;
    font-size: 0.9rem;
}

.pc-item-menu {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.pc-menu-img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 8px;
    display: block;
}

/* Página Mis favoritas */
.favoritas-pagina {
    max-width: 640px;
    margin: 0 auto;
}

.fav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 12px;
    margin-bottom: 10px;
}

.fav-item img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
}

.fav-texto {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.fav-texto strong {
    color: var(--text-main);
}

.fav-texto span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.fav-texto .fav-on {
    color: #16A34A;
}

.fav-acciones {
    display: flex;
    align-items: center;
    gap: 6px;
}

.fav-acciones .btn-primary {
    text-decoration: none;
    padding: 8px 14px;
}

.fav-acciones .borrar {
    color: #C0265E;
    font-size: 1.1rem;
}

/* ===== Cámara de Mila Clips ===== */
.camara {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.camara.flash .camara-visor::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    animation: flash 0.25s ease-out forwards;
}

@keyframes flash {
    from { opacity: 0.9; }
    to { opacity: 0; }
}

.camara-visor {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.camara-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camara-video.espejo {
    transform: scaleX(-1);
}

/* Marco guía: muestra dónde queda la foto */
.camara-guia {
    position: absolute;
    left: 7%;
    right: 7%;
    top: 14%;
    bottom: 26%;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 26px;
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.18);
    pointer-events: none;
}

.camara-aviso {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 38%;
    transform: translateY(-50%);
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
    background: rgba(28, 16, 48, 0.85);
    padding: 18px;
    border-radius: 18px;
    z-index: 2;
}

.camara-aviso.hidden,
.camara-tiempo.hidden {
    display: none;
}

.camara-tiempo {
    position: absolute;
    top: calc(64px + env(safe-area-inset-top));
    left: 50%;
    transform: translateX(-50%);
    background: #E11D48;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 4px 12px;
    border-radius: 999px;
    z-index: 2;
}

.camara-arriba {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(12px + env(safe-area-inset-top)) 14px 10px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent);
}

.camara-titulo {
    font-weight: 700;
}

.camara-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.camara-abajo {
    position: relative;
    z-index: 3;
    margin-top: auto;
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
    text-align: center;
}

.camara-ayuda {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 12px;
}

.camara-controles {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 380px;
    margin: 0 auto 14px;
}

.camara-galeria {
    justify-self: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    padding: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
}

.camara-disparador {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    border: 5px solid #fff;
    background: transparent;
    padding: 5px;
    cursor: pointer;
}

.camara-disparador span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    transition: all 0.2s ease;
}

.camara-disparador.video span {
    background: #E11D48;
}

.camara-disparador.grabando span {
    border-radius: 8px;
    transform: scale(0.55);
}

.camara-modos {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
}

.camara-modos button {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 7px 18px;
    border-radius: 999px;
    cursor: pointer;
}

.camara-modos button.activo {
    background: #fff;
    color: #2E2450;
}

/* Pantalla de publicar */
.subir-media {
    position: relative;
    height: 240px;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
}

.subir-media img,
.subir-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.subir-tipo {
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
}

#subir-repetir {
    align-self: center;
    margin-bottom: 4px;
}

.subir-terminos {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 6px 0 2px;
}

.subir-terminos input {
    width: 16px;
    height: 16px;
    accent-color: var(--mila-morado);
}

.subir-terminos a {
    color: var(--mila-vibrante);
    font-weight: 600;
}

/* Marca de video en las cuadrículas */
.es-video {
    position: absolute;
    right: 6px;
    bottom: 6px;
    z-index: 1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clip-sonido {
    font-size: 1.5rem;
    line-height: 1;
}

/* Botón tipo enlace (general) */
.link-btn {
    background: none;
    border: none;
    color: var(--mila-vibrante);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px;
    cursor: pointer;
}

.link-btn:disabled {
    color: var(--text-muted);
    cursor: default;
}

/* ---------- Cuenta: foto de perfil e identidad ---------- */
.foto-perfil-linea { font-size: 0.8rem; color: var(--text-muted); margin: 8px 0 0; text-align: center; }
.foto-perfil-linea .link-btn { display: inline; padding: 0; margin: 0; font-size: 0.8rem; cursor: pointer; }
.foto-opciones { display: flex; flex-direction: column; gap: 12px; max-width: 360px; width: 100%; margin: 0 auto; }
.foto-opciones label { display: flex; align-items: center; justify-content: center; cursor: pointer; width: 100%; }
.menu-sub { display: block; font-size: 0.75rem; font-weight: 500; color: var(--text-muted); margin-top: 2px; }
.campo-verificado { background: var(--bg-secondary, #F1ECFF); color: var(--text-muted); }
.identidad-modal { z-index: 10050; }
.identidad-modal .pago-sheet { max-height: 92vh; overflow-y: auto; }
.id-intro { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 14px; }
.id-lados { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.id-lado { border: 1.5px dashed var(--primary-light, #C8B7FE); border-radius: 14px; padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.id-lado.ok { border-style: solid; border-color: var(--primary, #4B249B); }
.id-vista { aspect-ratio: 1.58; border-radius: 10px; background: #E9E1FF; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; color: #4B249B; }
.id-vista span { font-size: 1.8rem; line-height: 1; }
.id-vista small { font-weight: 600; margin-top: 4px; }
.id-vista img { width: 100%; height: 100%; object-fit: cover; }
.id-botones { display: flex; gap: 6px; }
.id-botones label { flex: 1; text-align: center; font-size: 0.75rem; font-weight: 600; padding: 7px 4px; border-radius: 10px; background: #F1ECFF; color: #4B249B; cursor: pointer; white-space: nowrap; }
.id-consejo { font-size: 0.78rem; color: var(--text-muted); margin: 8px 0 0; }
.id-privado { font-size: 0.75rem; color: var(--text-muted); text-align: center; margin: 10px 0 0; }
[data-theme="oscuro"] .id-vista, [data-theme="oscuro"] .id-botones label { background: #2A1450; color: #C8B7FE; }
[data-theme="oscuro"] .campo-verificado { background: #2A1450; }
.id-rechazo { background: #FFF1EC; color: #9A3412; border: 1px solid #F3C1A5; border-radius: 10px; padding: 8px 10px; font-size: 0.85rem; margin: 0 0 12px; }
.pro-estado { background: #FFF8E6; color: #7A4B00; border-bottom: 1px solid #F5D98B; padding: 10px 16px; font-size: 0.85rem; text-align: center; }
.pro-estado.rechazada { background: #FFF1EC; color: #9A3412; border-color: #F3C1A5; }
.pro-estado .link-btn { display: inline; padding: 0; margin: 0 0 0 4px; font-size: 0.85rem; }
[data-theme="oscuro"] .pro-estado { background: #3A2A0A; color: #F5D98B; border-color: #5A4515; }
[data-theme="oscuro"] .pro-estado.rechazada { background: #3A1A10; color: #F3C1A5; }

/* Utilidad global: ocultar */
.hidden { display: none !important; }

/* ---------- Calendario ---------- */
.cal-modal { z-index: 10060; }
.cal-modal h2 { margin: 0 0 4px; }
.cal-resumen { color: var(--text-muted); font-size: 0.9rem; margin: 0 0 14px; }
.cal-resumen::first-letter { text-transform: uppercase; }
.cal-opcion { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 8px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text-main); text-decoration: none; font: inherit; cursor: pointer; }
.cal-opcion:hover { border-color: var(--primary-light); }
.cal-opcion span:last-child { display: flex; flex-direction: column; }
.cal-opcion small { color: var(--text-muted); font-size: 0.8rem; }
.cal-ico { font-size: 1.5rem; width: 28px; text-align: center; }
.cal-nota { font-size: 0.78rem; color: var(--text-muted); margin: 4px 0 12px; }
.cal-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--primary-light); background: var(--surface-alt); color: var(--primary); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; }
.cal-tarjeta { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; margin: 0 0 18px; }
.cal-tarjeta img { flex-shrink: 0; }
.cal-tarjeta div { flex: 1; min-width: 0; }
.cal-tarjeta strong { display: block; color: var(--text-main); }
.cal-tarjeta small { color: var(--text-muted); }
.proxima { background: var(--surface); border-radius: 12px; padding: 14px 15px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); display: flex; gap: 12px; align-items: center; }
.proxima > div { flex: 1; min-width: 0; }
.proxima > div:first-child { flex: 0 0 auto; padding: 10px !important; }
.proxima .cal-btn { flex: 0 0 auto; white-space: nowrap; }
.proxima h3 { margin: 0; font-size: 1rem; color: var(--text-main); }
.proxima p { margin: 3px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.proxima > .proxima-botones { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }

/* ==========================================================
   Inicio de la clienta (diseño de referencia MILA)
   ========================================================== */
.inicio-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #F7F1FE 0%, #F1E8FD 70%, #ECE0FC 100%);
    padding: calc(14px + env(safe-area-inset-top)) 0 56px;
}

.inicio-hero-img {
    position: absolute;
    right: 0;
    top: calc(54px + env(safe-area-inset-top));
    width: 67%;
    aspect-ratio: 900 / 595;
    background: url('../assets/inicio/hero-movil.jpg') center / 100% 100% no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%);
}

.inicio-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 70px;
    background: linear-gradient(180deg, rgba(248, 245, 252, 0) 0%, var(--background) 100%);
    pointer-events: none;
}

.inicio-hero-contenido {
    position: relative;
    z-index: 1;
}

.inicio-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.inicio-ubicacion {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 6px 0;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: #2A1650;
    cursor: pointer;
    min-width: 0;
}

.inicio-ubicacion svg:first-child {
    color: var(--mila-morado);
    flex-shrink: 0;
}

.inicio-ubicacion span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inicio-acciones {
    display: flex;
    align-items: center;
    gap: 12px;
}

.inicio-circulo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 18px rgba(75, 36, 155, 0.12);
    color: #3B1F6E;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.inicio-marca {
    margin-top: 10px;
    max-width: 40%;
    min-width: 138px;
}

.inicio-logo {
    display: block;
    width: 126px;
    max-width: 100%;
    height: auto;
}

.inicio-marca h1 {
    margin: 8px 0 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 300;
    font-size: 1.08rem;
    line-height: 1.25;
    color: #4A3D63;
    letter-spacing: -0.01em;
}

.inicio-marca p {
    margin: 6px 0 0;
    font-size: 0.7rem;
    line-height: 1.35;
    color: #7A6E8E;
    max-width: 150px;
}

/* Buscador sobre el borde inferior de la portada */
main.inicio {
    position: relative;
    z-index: 2;
    margin-top: -40px;
}

.inicio-buscador {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(75, 36, 155, 0.13);
    padding: 7px 7px 7px 20px;
}

.inicio-buscador-campo {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    background: none;
    border: none;
    padding: 8px 0;
    font: inherit;
    font-size: 1rem;
    color: #7A6E8E;
    text-align: left;
    cursor: pointer;
}

.inicio-buscador-campo svg {
    color: #2A1650;
    flex-shrink: 0;
}

.inicio-buscador-campo span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.inicio-filtros {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #E9E1FF;
    color: var(--mila-morado);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inicio-seccion {
    margin-top: 22px;
}

/* Promoción */
.inicio-promo {
    position: relative;
    display: flex;
    align-items: stretch;
    min-height: 124px;
    border-radius: 22px;
    overflow: hidden;
    background: linear-gradient(100deg, #FCE7F3 0%, #FBE3F0 45%, #F9D9EA 100%);
    box-shadow: 0 8px 24px rgba(236, 72, 153, 0.12);
    text-decoration: none;
}

.inicio-promo-img {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 56%;
    object-fit: cover;
    object-position: 30% 50%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 30%);
}

.inicio-promo-texto {
    position: relative;
    z-index: 1;
    padding: 14px 0 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.inicio-promo-etiqueta {
    background: #F9C9DF;
    color: #BE185D;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 10px;
    border-radius: 999px;
}

.inicio-promo h2 {
    margin: 8px 0 10px;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.62rem;
    line-height: 1.02;
    color: #2A0A5E;
    letter-spacing: -0.01em;
}

.inicio-promo h2 b {
    background: linear-gradient(90deg, #4B249B, #6B35C9);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.inicio-promo-boton {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg, #4B249B, #6B35C9);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: 0 6px 14px rgba(75, 36, 155, 0.3);
}

/* Títulos de sección */
.inicio-titulo {
    margin: 0 0 12px;
    font-size: 1.22rem;
    font-weight: 700;
    color: #2A0A5E;
    letter-spacing: -0.01em;
}

.inicio-titulo-fila {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.inicio-titulo-fila a {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--mila-vibrante);
    text-decoration: none;
    white-space: nowrap;
}

/* Categorías */
.inicio-categorias {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px 10px;
}

.inicio-cat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    min-width: 0;
}

.inicio-cat img {
    width: 100%;
    height: auto;
    aspect-ratio: 132 / 115;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(75, 36, 155, 0.06);
    transition: transform 0.2s ease;
}

.inicio-cat:active img {
    transform: scale(0.96);
}

.inicio-cat span {
    font-size: 0.74rem;
    font-weight: 500;
    color: #2A1650;
    white-space: nowrap;
}

/* Profesionales destacadas: tarjetas como en la referencia */
.inicio .destacada {
    width: 158px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(53, 22, 111, 0.08);
}

.inicio .destacada-foto {
    height: 104px;
}

.inicio .destacada-fav {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.28);
}

.inicio .destacada-fav svg {
    width: 18px;
    height: 18px;
}

.inicio .destacada-chips {
    left: 8px;
    bottom: 8px;
    gap: 5px;
}

.inicio .destacada-chips span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.66rem;
    padding: 3px 7px;
}

.chip-estrella {
    color: #F5A524;
    font-style: normal;
}

.inicio .destacada-info {
    padding: 8px 10px 10px;
}

.inicio .destacada-info strong {
    font-size: 0.86rem;
}

.inicio .destacada-info small {
    font-size: 0.76rem;
    max-width: 118px;
}

.inicio .punto-estado.on {
    background: #22C55E;
}

/* Banner NENI */
.inicio-neni {
    display: block;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(75, 36, 155, 0.12);
}

.inicio-neni img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1972 / 496;
}

/* Barra inferior flotante (todas las páginas de la clienta) */
@media (max-width: 767px) {
    .bottom-nav {
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        border: none;
        border-radius: 26px;
        padding: 8px 4px 6px;
        box-shadow: 0 10px 34px rgba(53, 22, 111, 0.14);
    }

    body.has-bottom-nav {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    body.has-bottom-nav #chat-widget {
        bottom: calc(100px + env(safe-area-inset-bottom));
    }
}

.bottom-nav-item {
    font-size: 0.72rem;
    font-weight: 500;
}

.bottom-nav-item.active {
    font-weight: 700;
}

.bottom-nav-item.active::after {
    width: 22px;
    background: var(--mila-morado);
}

/* Tablet, laptop y PC: portada ancha con la imagen completa */
@media (min-width: 768px) {
    .inicio-hero {
        min-height: 420px;
        padding-bottom: 90px;
    }

    .inicio-hero-img {
        top: 0;
        bottom: 0;
        height: auto;
        aspect-ratio: auto;
        width: 68%;
        background-image: url('../assets/portada/portada.jpg');
        background-size: cover;
        background-position: 30% 50%;
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 20%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 20%);
    }

    .inicio-marca {
        margin-top: 40px;
        max-width: 42%;
    }

    .inicio-logo {
        width: 230px;
    }

    .inicio-marca h1 {
        font-size: 2rem;
    }

    .inicio-marca p {
        font-size: 0.95rem;
        max-width: 320px;
    }

    main.inicio {
        margin-top: -58px;
    }

    .inicio-buscador {
        max-width: 720px;
    }

    .inicio-seccion {
        margin-top: 32px;
    }

    .inicio-promo {
        min-height: 200px;
    }

    .inicio-promo-texto {
        padding: 26px 0 26px 32px;
    }

    .inicio-promo h2 {
        font-size: 2.6rem;
    }

    .inicio-categorias {
        grid-template-columns: repeat(8, 1fr);
    }

    .inicio .destacada {
        width: 210px;
    }

    .inicio .destacada-foto {
        height: 150px;
    }

    .inicio-top .desktop-nav {
        margin-left: auto;
    }
}

/* Modo oscuro del inicio */
:root[data-theme="oscuro"] .inicio-hero {
    background: linear-gradient(180deg, #1C0E36 0%, #20103D 100%);
}

:root[data-theme="oscuro"] .inicio-hero-img {
    opacity: 0.92;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 22%, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 22%, #000 90%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 22%, #000 80%, transparent 100%);
    mask-composite: intersect;
}

/* La promoción conserva su fondo rosado: el texto queda oscuro también en modo oscuro */
:root[data-theme="oscuro"] .inicio-promo h2 {
    color: #2A0A5E;
}

:root[data-theme="oscuro"] .inicio-ubicacion,
:root[data-theme="oscuro"] .inicio-cat span,
:root[data-theme="oscuro"] .inicio-titulo {
    color: #F3ECFC;
}

:root[data-theme="oscuro"] .inicio-marca h1 {
    color: #E4D9F5;
}

:root[data-theme="oscuro"] .inicio-marca p {
    color: #B9ABCF;
}

:root[data-theme="oscuro"] .inicio-circulo,
:root[data-theme="oscuro"] .inicio-buscador {
    background: rgba(40, 24, 70, 0.92);
    border-color: rgba(255, 255, 255, 0.08);
    color: #F3ECFC;
}

:root[data-theme="oscuro"] .inicio-buscador-campo,
:root[data-theme="oscuro"] .inicio-buscador-campo svg {
    color: #D8CBEE;
}

:root[data-theme="oscuro"] .inicio-filtros {
    background: #2E1A55;
    color: #C8B7FE;
}

:root[data-theme="oscuro"] .inicio-titulo-fila a {
    color: #C4A1F5;
}

/* En el inicio no se muestra la burbuja del asistente (el diseño va limpio; se usa al reservar) */
body.pagina-inicio #chat-toggle {
    display: none;
}

/* ==========================================================
   Perfil público de la profesional (profesional.html)
   ========================================================== */
body.pagina-profesional {
    background: linear-gradient(180deg, #F6F0FE 0%, var(--background) 320px);
}

/* Sin barra de pestañas: abajo van "Enviar mensaje" y "Reservar" */
body.pagina-profesional .bottom-nav,
body.pagina-profesional #chat-toggle {
    display: none;
}

body.pagina-profesional.has-bottom-nav {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.pp-barra {
    background: transparent;
    box-shadow: none;
    border: none;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pp-barra-in {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
}

.pp-barra-logo img {
    height: 34px;
    width: auto;
    display: block;
}

.pp-barra-acciones {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.pp-icono {
    width: 42px;
    height: 42px;
    border: none;
    background: none;
    color: var(--mila-morado);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}

.pp-icono.activo svg {
    fill: #E0457B;
    stroke: #E0457B;
}

.pp {
    padding-top: 4px;
    padding-bottom: 20px;
}

/* Tarjeta principal */
.pp-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 16px;
    box-shadow: 0 8px 26px rgba(53, 22, 111, 0.07);
}

.pp-top {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.pp-avatar {
    position: relative;
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    margin-bottom: 12px;
}

.pp-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #E4D4FA, 0 6px 16px rgba(75, 36, 155, 0.18);
}

.pp-avatar-check {
    position: absolute;
    right: 2px;
    bottom: 20px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--mila-vibrante);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

.pp-estado {
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px 4px 20px;
    border-radius: 999px;
    background: #F1F5F9;
    color: #64748B;
    border: 2px solid #fff;
}

.pp-estado::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 50%;
    width: 7px;
    height: 7px;
    margin-top: -3.5px;
    border-radius: 50%;
    background: currentColor;
}

.pp-estado.on {
    background: #DCFCE7;
    color: #15803D;
}

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

.pp-nombre-fila {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
}

.pp-nombre-fila h1 {
    min-width: 0;
}

.pp-info h1 {
    margin: 2px 0 0;
    font-size: 1.2rem;
    line-height: 1.2;
    color: #2A0A5E;
    font-weight: 800;
}

.pp-verificada {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--mila-vibrante);
    color: #fff;
    font-size: 0.7rem;
    vertical-align: middle;
}

.pp-seguir {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    border: 1.5px solid #D9C6F7;
    background: var(--surface);
    color: #2A0A5E;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 12px;
    cursor: pointer;
}

.pp-seguir svg {
    width: 16px;
    height: 16px;
}

.pp-seguir.activo {
    background: var(--mila-morado);
    border-color: var(--mila-morado);
    color: #fff;
}

.pp-oficio {
    margin: 4px 0 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.pp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pp-chips span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #F4EEFD;
    color: #2A0A5E;
    font-size: 0.78rem;
    padding: 5px 10px;
    border-radius: 999px;
}

.pp-estrella {
    color: #2A0A5E;
}

.pp-desde {
    margin: 10px 0 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--mila-morado);
}

.pp-bio {
    margin: 12px 0 0;
    color: #4A3D63;
    font-size: 0.9rem;
    line-height: 1.45;
}

.pp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 14px;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.pp-stats div {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 0 4px;
    border-left: 1px solid var(--border);
}

.pp-stats div:first-child {
    border-left: none;
}

.pp-stats i {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #F4EEFD;
    color: var(--mila-morado);
    display: flex;
    align-items: center;
    justify-content: center;
    font-style: normal;
}

.pp-stats span {
    font-size: 0.7rem;
    line-height: 1.25;
    color: #5B4E6E;
}

.pp-stats b {
    color: #2A0A5E;
}

/* Pestañas */
.pp-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 16px;
    background: var(--surface);
    border-radius: 16px;
    padding: 4px;
    box-shadow: 0 4px 14px rgba(53, 22, 111, 0.05);
}

.pp-tabs button {
    border: none;
    background: none;
    font: inherit;
    font-size: 0.85rem;
    color: #746D86;
    padding: 10px 4px;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
}

.pp-tabs button.activo {
    background: #E9E1FF;
    color: var(--mila-morado);
    font-weight: 700;
}

.pp-tabs button.activo::after {
    content: '';
    position: absolute;
    left: 18%;
    right: 18%;
    bottom: 4px;
    height: 2.5px;
    border-radius: 2px;
    background: var(--mila-morado);
}

.pp-panel {
    margin-top: 14px;
}

.pp-filtros {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px 4px;
}

.pp-filtros::-webkit-scrollbar {
    display: none;
}

.pp-filtros button {
    flex-shrink: 0;
    border: 1.5px solid #E4D8F6;
    background: var(--surface);
    color: #2A0A5E;
    font: inherit;
    font-size: 0.84rem;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.pp-filtros button.activo {
    background: var(--mila-vibrante);
    border-color: var(--mila-vibrante);
    color: #fff;
}

.pp-titulo-fila {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 18px 0 10px;
}

.pp-titulo-fila h2,
.pp-h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2A0A5E;
}

.pp-h2 {
    margin: 18px 0 10px;
}

.pp-ver {
    border: none;
    background: none;
    font: inherit;
    font-size: 0.85rem;
    color: var(--mila-vibrante);
    cursor: pointer;
}

.pp-trabajos {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 0 -16px;
    padding: 0 16px;
}

.pp-trabajos::-webkit-scrollbar {
    display: none;
}

.pp-trabajo {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    height: 108px;
    border-radius: 12px;
    overflow: hidden;
    display: block;
}

.pp-trabajo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pp-trabajo span {
    position: absolute;
    left: 7px;
    bottom: 6px;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.pp-trabajo em {
    position: absolute;
    top: 6px;
    right: 7px;
    color: #fff;
    font-style: normal;
    font-size: 0.8rem;
}

.pp-trabajos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.pp-trabajos-grid .pp-trabajo {
    width: auto;
    height: auto;
    aspect-ratio: 1;
}

/* Lista de servicios */
.pp-servicios {
    background: var(--surface);
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(53, 22, 111, 0.05);
    padding: 2px 12px;
}

.pp-serv {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    grid-template-areas: "img info precio" "img info boton";
    column-gap: 10px;
    row-gap: 4px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.pp-serv:last-child {
    border-bottom: none;
}

.pp-serv img {
    grid-area: img;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
}

.pp-serv-info {
    grid-area: info;
    min-width: 0;
}

.pp-serv-info strong {
    display: block;
    font-size: 0.92rem;
    color: #2A0A5E;
}

.pp-serv-info small {
    display: block;
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.3;
}

.pp-serv-precio {
    grid-area: precio;
    justify-self: end;
    font-weight: 800;
    font-size: 0.92rem;
    color: #2A0A5E;
}

.pp-serv-reservar {
    grid-area: boton;
    justify-self: end;
    border: none;
    background: var(--mila-vibrante);
    color: #fff;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    cursor: pointer;
}

.pp-serv-flecha {
    display: none;
}

/* Opiniones e información */
.pp-resumen-op {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}

.pp-resumen-op strong {
    font-size: 2rem;
    color: #2A0A5E;
}

.pp-estrellas {
    color: #F5A524;
    letter-spacing: 1px;
}

.pp-opinion {
    background: var(--surface);
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
    box-shadow: 0 3px 12px rgba(53, 22, 111, 0.04);
}

.pp-opinion div {
    display: flex;
    justify-content: space-between;
}

.pp-opinion strong {
    color: #2A0A5E;
    font-size: 0.9rem;
}

.pp-opinion p {
    margin: 4px 0;
    font-size: 0.88rem;
    color: #4A3D63;
}

.pp-opinion small,
.pp-vacio {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.pp-info-lista {
    background: var(--surface);
    border-radius: 16px;
    padding: 4px 14px;
}

.pp-info-lista p {
    margin: 0;
    padding: 10px 0;
    font-size: 0.9rem;
    color: #4A3D63;
    border-bottom: 1px solid var(--border);
}

.pp-info-lista p:last-child {
    border-bottom: none;
}

/* Domicilio y horario */
.pp-extra {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
}

.pp-box {
    display: flex;
    gap: 12px;
    background: var(--surface);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 4px 16px rgba(53, 22, 111, 0.05);
}

.pp-box-ico {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #F4EEFD;
    color: var(--mila-morado);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pp-box > div:last-child {
    flex: 1;
    min-width: 0;
}

.pp-box strong {
    display: block;
    color: #2A0A5E;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.pp-box p {
    margin: 2px 0;
    font-size: 0.84rem;
    color: #5B4E6E;
}

.pp-box-km {
    color: var(--mila-vibrante) !important;
    font-weight: 600;
}

.pp-horario div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.82rem;
    color: #5B4E6E;
    padding: 2px 0;
}

/* Botones fijos abajo */
.pp-acciones {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1400;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 10px;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, rgba(248, 245, 252, 0) 0%, var(--background) 30%);
}

.pp-acciones button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 14px 10px;
    border-radius: 18px;
    cursor: pointer;
    white-space: nowrap;
}

.pp-mensaje {
    background: var(--surface);
    border: 1.5px solid #CDB4F3;
    color: #2A0A5E;
}

.pp-reservar {
    background: linear-gradient(90deg, #4B249B, #6B35C9);
    border: none;
    color: #fff;
    box-shadow: 0 8px 18px rgba(75, 36, 155, 0.3);
}

@media (min-width: 768px) {
    .pp {
        max-width: 860px;
    }

    .pp-avatar {
        width: 150px;
        height: 150px;
    }

    .pp-info h1 {
        font-size: 1.9rem;
    }

    .pp-stats span {
        font-size: 0.82rem;
    }

    .pp-trabajo {
        width: 150px;
        height: 160px;
    }

    .pp-serv {
        grid-template-columns: 56px 1fr auto auto 16px;
        grid-template-areas: "img info precio boton flecha";
        column-gap: 16px;
    }

    .pp-serv img {
        width: 56px;
        height: 56px;
    }

    .pp-serv-flecha {
        display: block;
        grid-area: flecha;
        color: #746D86;
        font-size: 1.3rem;
    }

    .pp-serv-reservar {
        padding: 9px 22px;
        font-size: 0.9rem;
    }

    .pp-extra {
        grid-template-columns: 1fr 1fr;
    }

    .pp-acciones {
        max-width: 860px;
        margin: 0 auto;
    }
}

/* Modo oscuro */
:root[data-theme="oscuro"] body.pagina-profesional {
    background: var(--background);
}

:root[data-theme="oscuro"] .pp-info h1,
:root[data-theme="oscuro"] .pp-titulo-fila h2,
:root[data-theme="oscuro"] .pp-h2,
:root[data-theme="oscuro"] .pp-serv-info strong,
:root[data-theme="oscuro"] .pp-serv-precio,
:root[data-theme="oscuro"] .pp-box strong,
:root[data-theme="oscuro"] .pp-opinion strong,
:root[data-theme="oscuro"] .pp-resumen-op strong,
:root[data-theme="oscuro"] .pp-stats b,
:root[data-theme="oscuro"] .pp-chips span,
:root[data-theme="oscuro"] .pp-estrella,
:root[data-theme="oscuro"] .pp-filtros button,
:root[data-theme="oscuro"] .pp-seguir,
:root[data-theme="oscuro"] .pp-mensaje {
    color: #F3ECFC;
}

:root[data-theme="oscuro"] .pp-bio,
:root[data-theme="oscuro"] .pp-stats span,
:root[data-theme="oscuro"] .pp-box p,
:root[data-theme="oscuro"] .pp-horario div,
:root[data-theme="oscuro"] .pp-opinion p,
:root[data-theme="oscuro"] .pp-info-lista p {
    color: #CFC3E3;
}

:root[data-theme="oscuro"] .pp-chips span,
:root[data-theme="oscuro"] .pp-stats i,
:root[data-theme="oscuro"] .pp-box-ico,
:root[data-theme="oscuro"] .pp-tabs button.activo {
    background: #2E1A55;
}

:root[data-theme="oscuro"] .pp-tabs button.activo,
:root[data-theme="oscuro"] .pp-stats i,
:root[data-theme="oscuro"] .pp-box-ico,
:root[data-theme="oscuro"] .pp-icono,
:root[data-theme="oscuro"] .pp-desde {
    color: #C8B7FE;
}

:root[data-theme="oscuro"] .pp-avatar img,
:root[data-theme="oscuro"] .pp-estado,
:root[data-theme="oscuro"] .pp-avatar-check {
    border-color: var(--surface);
}

/* Trabajos: miniaturas como botones y visor a pantalla completa */
button.pp-trabajo {
    border: none;
    padding: 0;
    background: none;
    cursor: pointer;
}

.pp-visor {
    position: fixed;
    inset: 0;
    z-index: 6000;
    background: #0C0418;
    display: flex;
    flex-direction: column;
    color: #fff;
}

.pp-visor-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(12px + env(safe-area-inset-top)) 16px 8px;
}

.pp-visor-contador {
    font-size: 0.9rem;
    opacity: 0.8;
}

.pp-visor-cerrar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.pp-visor-media {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
}

.pp-visor-media img,
.pp-visor-media video {
    max-width: 100%;
    max-height: 100%;
    border-radius: 14px;
    object-fit: contain;
    background: #000;
}

.pp-visor-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.pp-visor-nav.prev {
    left: 10px;
}

.pp-visor-nav.next {
    right: 10px;
}

.pp-visor-pie {
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
}

.pp-visor-texto {
    font-size: 0.92rem;
    margin-bottom: 10px;
    opacity: 0.95;
}

.pp-visor-acciones {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pp-visor-likes {
    font-weight: 700;
    margin-right: auto;
}

.pp-visor-clips {
    color: #C8B7FE;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

.pp-visor-reservar {
    border: none;
    background: linear-gradient(90deg, #4B249B, #6B35C9);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
}

/* ===== Distintivos de las profesionales (js/distintivos.js) ===== */
.dist {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    background: #F1EAFB;
    color: #4B249B;
}
.dist i { font-style: normal; font-size: 0.8rem; }
.dist-verificado i { color: #1E9E5A; font-weight: 800; }
.dist-destacado { background: #FFF4DA; color: #8A5A00; }
.dist-recomendado { background: #FDE8F0; color: #A3245A; }
.pp-distintivos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    text-align: left;
}
.pp-dist-info { color: #6E6187; font-size: 0.85rem; }
.pp-aviso-dist { margin: 6px 0 0; font-size: 0.75rem; color: #6E6187; line-height: 1.45; }
.destacada-info .dist, .fav-texto .dist, .dist-fila-tarjeta .dist { font-size: 0.66rem; padding: 2px 7px; margin-top: 4px; align-self: flex-start; }
.dist-fila-tarjeta:empty { display: none; }
.dist-hoja {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(20, 8, 40, 0.45);
}
.dist-caja {
    position: relative;
    /* colores del tema */
    width: 100%;
    max-width: 460px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    background: var(--surface);
    color: var(--text-main);
}
@media (min-width: 768px) { .dist-hoja { align-items: center; } .dist-caja { border-radius: 22px; } }
.dist-caja h3 { margin: 0 0 12px; font-size: 1.05rem; }
.dist-cerrar { position: absolute; top: 12px; right: 12px; border: 0; background: #F1EAFB; color: #4B249B; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; }
.dist-fila { padding: 12px; border: 1px solid #EEE6F8; border-radius: 14px; margin-bottom: 8px; opacity: 0.7; }
.dist-fila.ganado { opacity: 1; border-color: #CDB5EE; }
.dist-fila p { margin: 6px 0 0; font-size: 0.82rem; line-height: 1.45; }
.dist-fila small { display: block; margin-top: 4px; font-size: 0.72rem; color: #6E6187; }
.dist-fila.ganado small { color: #1E9E5A; font-weight: 600; }
.dist-aviso { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #F7F3FC; font-size: 0.75rem; line-height: 1.45; color: #6B5A85; }


/* ===== Precios "desde", largo y propuestas de precio ===== */
.pp-serv-precio small { display: block; font-size: 0.66rem; font-weight: 600; color: #6E6187; text-align: right; line-height: 1.1; }
.pp-serv-varia { display: block; margin-top: 3px; font-style: normal; font-size: 0.7rem; color: #8A5A00; }
.pp-serv-oferta {
    margin-top: 5px; padding: 3px 9px; border: 1px solid #CDB5EE; border-radius: 999px;
    background: #F1ECFF; color: #4B249B; font: inherit; font-size: 0.72rem; font-weight: 600; cursor: pointer;
}
.pp-acepta { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: #F1EAFB; color: #4B249B; font-size: 0.7rem; font-weight: 600; vertical-align: middle; }

/* Mis servicios (profesional) */
.mt-lista { display: flex; flex-direction: column; gap: 12px; padding-bottom: 90px; }
.mt-cargando, .mt-ayuda, .mt-resumen { margin: 0; color: var(--text-muted); font-size: 0.85rem; line-height: 1.45; }
.mt-resumen { font-weight: 600; color: #4B249B; }
.mt-ofertas, .mt-serv { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 16px; }
.mt-ofertas { display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1.5px solid #CDB5EE; }
.mt-ofertas p { margin: 4px 0 0; font-size: 0.82rem; color: var(--text-muted); }
.mt-serv.apagado { opacity: 0.6; }
.mt-serv-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.mt-serv-top strong { display: block; color: var(--text-main); }
.mt-serv-top small { color: var(--text-muted); font-size: 0.8rem; }
.mt-nota { margin: 6px 0 0; font-size: 0.75rem; color: #1E9E5A; }
.mt-serv.apagado .mt-nota { color: var(--text-muted); }
.mt-fila { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 12px; }
.mt-fila label { display: flex; flex-direction: column; gap: 5px; font-size: 0.75rem; font-weight: 600; color: #4B249B; }
.mt-fila select, .mt-plata input {
    width: 100%; padding: 10px; border: 1px solid #E2E8F0; border-radius: 10px; font: inherit; font-size: 0.9rem;
    background: var(--surface); color: var(--text-main); min-width: 0;
}
.mt-plata { display: flex; align-items: center; gap: 4px; }
.mt-plata i { font-style: normal; color: #6E6187; font-weight: 600; }
.mt-plata.mini input { padding: 7px 8px; }
.mt-largos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.mt-largo { display: flex; flex-direction: column; gap: 4px; padding: 10px; border-radius: 12px; background: #F7F3FC; font-size: 0.8rem; }
.mt-largo > span:first-child { font-weight: 700; color: var(--text-main); }
.mt-largo em { font-style: normal; font-size: 0.72rem; color: #6E6187; }
.mt-switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; cursor: pointer; }
.mt-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.mt-switch span { position: absolute; inset: 0; border-radius: 999px; background: #D8CFE6; transition: background 0.2s; pointer-events: none; }
.mt-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform 0.2s; }
.mt-switch input:checked + span { background: #6B35C9; }
.mt-switch input:checked + span::after { transform: translateX(20px); }
.mt-guardar-barra { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--background) 35%); display: flex; justify-content: center; }
.mt-guardar-barra .btn-primary { width: 100%; max-width: 480px; padding: 14px; font-size: 1rem; }
.mt-guardar-barra .btn-primary:disabled { opacity: 0.6; cursor: default; }
.mt-toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); opacity: 0; z-index: 3000; max-width: 92vw; padding: 10px 16px; border-radius: 12px; background: #2A1745; color: #fff; font-size: 0.85rem; transition: all 0.25s; pointer-events: none; }
.mt-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Propuestas de precio (panel de la profesional) */
.of-caja { margin-bottom: 18px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1.5px solid #CDB5EE; box-shadow: var(--shadow-sm); }
.of-caja h3 { margin: 0; font-size: 1.05rem; color: var(--text-main); }
.of-caja h3 span { display: inline-block; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: #C0265E; color: #fff; font-size: 0.75rem; text-align: center; }
.of-ayuda { margin: 4px 0 10px; font-size: 0.8rem; color: var(--text-muted); }
.of-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px 0; border-top: 1px solid #EEE6F8; }
.of-info { display: flex; flex-direction: column; gap: 2px; font-size: 0.8rem; color: var(--text-muted); min-width: 0; }
.of-info strong { color: var(--text-main); font-size: 0.95rem; }
.of-precios { text-align: right; display: flex; flex-direction: column; }
.of-precios b { font-size: 1.1rem; color: #4B249B; }
.of-precios s { font-size: 0.8rem; color: #6E6187; }
.of-precios small { font-size: 0.7rem; color: #C0265E; font-weight: 600; }
.of-botones { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.of-botones button { padding: 10px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.of-no { background: transparent; border: 1.5px solid #D8CFE6; color: var(--text-main); }
.of-si { background: #6B35C9; border: 0; color: #fff; }
.of-botones button:disabled { opacity: 0.6; }
.of-hecho { grid-column: 1 / -1; margin: 0; font-size: 0.85rem; font-weight: 600; color: #1E9E5A; }

/* Mis citas: estado de la propuesta */
.cita-oferta, .cita-precio { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; background: #F1EAFB; color: #4B249B; }
.cita-oferta.no { background: #FDE8F0; color: #A3245A; }

/* ===== Negocios y locales ===== */
.local-sin-foto { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; padding-bottom: 20px; font-size: 2.2rem; font-weight: 800; letter-spacing: 2px; color: #fff; background: linear-gradient(135deg, #4B249B, #E0457B); }
/* Logos: se muestran completos (sin recortar) sobre un fondo suave */
.destacada-foto img.local-logo { object-fit: contain; background: #F1ECFF; padding: 8px 8px 30px; }
.pp-iniciales { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; font-size: 1.8rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #4B249B, #E0457B); }
:root[data-theme="oscuro"] .destacada-foto img.local-logo { background: #271840; }
#locales-lista .destacada-chips { right: 10px; flex-wrap: wrap; }
#locales-lista .destacada-chips span { white-space: nowrap; }
.tipo-cuenta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.tipo-opcion { display: block; cursor: pointer; }
.tipo-opcion input { position: absolute; opacity: 0; pointer-events: none; }
.tipo-opcion span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 12px; border: 1.5px solid #E2D8F0; border-radius: 14px; background: var(--surface); }
.tipo-opcion b { font-size: 0.95rem; color: var(--text-main); }
.tipo-opcion small { font-size: 0.78rem; color: var(--text-muted); line-height: 1.35; }
.tipo-opcion input:checked + span { border-color: #6B35C9; background: #F1ECFF; box-shadow: 0 0 0 3px rgba(122, 43, 218, 0.12); }
.tipo-opcion input:focus-visible + span { outline: 2px solid #6B35C9; outline-offset: 2px; }
.mt-equipo { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.mt-miembro { padding: 12px; border-radius: 12px; background: #F7F3FC; display: flex; flex-direction: column; gap: 6px; }
.mt-miembro small { display: block; font-size: 0.75rem; color: var(--text-muted); }
.mt-quitar { border: 0; background: transparent; color: #A3245A; font-size: 1rem; cursor: pointer; padding: 4px 8px; }
.mt-hace { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-main); }
.mt-hace .mt-plata { width: 110px; }
.mt-nuevo-miembro { display: grid; gap: 8px; }
.mt-nuevo-miembro input { padding: 10px; border: 1px solid #E2E8F0; border-radius: 10px; font: inherit; font-size: 0.9rem; background: var(--surface); color: var(--text-main); }
.pp-equipo { margin-top: 12px; }
.pp-equipo strong { display: block; font-size: 0.9rem; color: var(--text-main); margin-bottom: 6px; }
.pp-equipo div { display: flex; flex-wrap: wrap; gap: 6px; }
.pp-equipo span { padding: 5px 10px; border-radius: 999px; background: #F1ECFF; color: #4B249B; font-size: 0.78rem; }
.pp-serv-dur { display: block; margin-top: 3px; font-style: normal; font-size: 0.7rem; color: #6B5A85; }

/* ===== Ajustes para celular ===== */
.filter-select {
    appearance: none; -webkit-appearance: none;
    padding: 9px 34px 9px 14px; border: 1.5px solid #E2D8F0; border-radius: 999px;
    background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23571E9C' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: var(--text-main); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.card-actions .btn-sm { white-space: nowrap; padding: 8px 6px; font-size: 0.8rem; }
.pro-price small { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); }

/* Chat en celular: pantalla completa, con la barra de escribir sobre el teclado y lejos del borde */
@media (max-width: 600px) {
    .chat-window {
        position: fixed;
        inset: 0;
        width: 100%;
        max-width: none;
        height: 100%;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
        border: 0;
        z-index: 2600;
        padding-top: env(safe-area-inset-top);
    }
    .chat-input-area { padding-bottom: calc(10px + env(safe-area-inset-bottom)); }
    .chat-input-area input { font-size: 16px; } /* evita que iPhone haga zoom al escribir */
}

/* ===== Modo oscuro de lo nuevo (distintivos, precios, Mis servicios, propuestas, negocios) ===== */
:root[data-theme="oscuro"] .dist { background: #34224F; color: #E3D3FA; }
:root[data-theme="oscuro"] .dist-destacado { background: #4A3610; color: #FFD98A; }
:root[data-theme="oscuro"] .dist-recomendado { background: #4D1A33; color: #FFB3D0; }
:root[data-theme="oscuro"] .dist-fila { border-color: #3A2A55; }
:root[data-theme="oscuro"] .dist-fila.ganado { border-color: #7A5AAE; }
:root[data-theme="oscuro"] .dist-aviso,
:root[data-theme="oscuro"] .mt-largo,
:root[data-theme="oscuro"] .mt-miembro,
:root[data-theme="oscuro"] .tipo-opcion input:checked + span,
:root[data-theme="oscuro"] .local-sin-foto { background: #271840; }
:root[data-theme="oscuro"] .dist-cerrar,
:root[data-theme="oscuro"] .pp-serv-oferta,
:root[data-theme="oscuro"] .pp-acepta,
:root[data-theme="oscuro"] .pp-equipo span,
:root[data-theme="oscuro"] .cita-oferta,
:root[data-theme="oscuro"] .cita-precio { background: #34224F; color: #E3D3FA; border-color: #5B3E8A; }
:root[data-theme="oscuro"] .cita-oferta.no { background: #4D1A33; color: #FFB3D0; }
:root[data-theme="oscuro"] .pp-serv-varia { color: #FFD98A; }
:root[data-theme="oscuro"] .pp-serv-dur { color: #B4A6C9; }
:root[data-theme="oscuro"] .mt-ofertas,
:root[data-theme="oscuro"] .of-caja,
:root[data-theme="oscuro"] .tipo-opcion span { border-color: #5B3E8A; }
:root[data-theme="oscuro"] .of-item { border-top-color: #3A2A55; }
:root[data-theme="oscuro"] .of-precios b,
:root[data-theme="oscuro"] .mt-resumen,
:root[data-theme="oscuro"] .mt-fila label { color: #C4A1F5; }
:root[data-theme="oscuro"] .mt-fila select,
:root[data-theme="oscuro"] .mt-plata input,
:root[data-theme="oscuro"] .mt-nuevo-miembro input,
:root[data-theme="oscuro"] .filter-select { border-color: #3A2A55; }
:root[data-theme="oscuro"] .mt-switch span { background: #3A2A55; }
:root[data-theme="oscuro"] .of-no { border-color: #5B3E8A; }
:root[data-theme="oscuro"] .mt-toast { background: #F3ECFC; color: #1C1030; }

/* La burbuja del asistente tapa botones en celular: se abre sola al reservar o escribir */
@media (max-width: 767px) {
    #chat-toggle { display: none; }
}
.mt-ofertas .mt-plata { flex: 0 0 112px; }
.mt-ofertas .mt-plata input { text-align: right; }
.pp-acciones > .pp-reservar { min-width: 0; }
.pp-acciones > .pp-reservar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Inicio: barrio y dirección más cercana */
.inicio-ubicacion #inicio-ubicacion-texto { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; min-width: 0; max-width: 58vw; text-align: left; }
.inicio-ubicacion #inicio-ubicacion-texto b,
.inicio-ubicacion #inicio-ubicacion-texto small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inicio-ubicacion #inicio-ubicacion-texto b { font-size: 0.95rem; font-weight: 700; }
.inicio-ubicacion #inicio-ubicacion-texto small { font-size: 0.74rem; font-weight: 500; opacity: 0.75; }

/* ===== Hoja de direcciones (inicio) ===== */
.ubi-hoja { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: flex-end; justify-content: center; background: rgba(20, 8, 40, 0.45); }
.ubi-caja { position: relative; width: 100%; max-width: 480px; max-height: 88vh; overflow-y: auto; padding: 22px 16px calc(20px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--surface); color: var(--text-main); display: flex; flex-direction: column; gap: 8px; }
@media (min-width: 768px) { .ubi-hoja { align-items: center; } .ubi-caja { border-radius: 22px; } }
.ubi-caja h3 { margin: 0 40px 6px 0; font-size: 1.1rem; }
.ubi-caja h4 { margin: 10px 0 2px; font-size: 0.9rem; color: var(--text-muted); }
.ubi-cerrar { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #F1EAFB; color: #4B249B; cursor: pointer; }
.ubi-op { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text-main); font: inherit; text-align: left; cursor: pointer; }
.ubi-op.activa { border-color: #6B35C9; background: #F1ECFF; }
.ubi-op i { font-style: normal; font-size: 1.3rem; }
.ubi-op span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ubi-op b { font-size: 0.95rem; }
.ubi-op small { font-size: 0.78rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ubi-op em { font-style: normal; color: #6B35C9; font-weight: 800; }
.ubi-link { align-self: flex-start; padding: 4px 0; border: 0; background: none; color: #4B249B; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.ubi-vacio { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.ubi-nueva { border: 1.5px dashed #CDB5EE; border-radius: 14px; padding: 12px; }
.ubi-nueva summary { cursor: pointer; font-weight: 700; color: #4B249B; }
.ubi-nueva form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.ubi-nueva input[type="text"] { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 12px; font: inherit; font-size: 16px; background: var(--surface); color: var(--text-main); }
.ubi-nombres { display: flex; gap: 6px; }
.ubi-nombres label { flex: 1; cursor: pointer; }
.ubi-nombres input { position: absolute; opacity: 0; pointer-events: none; }
.ubi-nombres span { display: block; padding: 8px 4px; border: 1.5px solid var(--border); border-radius: 999px; text-align: center; font-size: 0.85rem; }
.ubi-nombres input:checked + span { border-color: #6B35C9; background: #F1ECFF; color: #4B249B; font-weight: 700; }
.ubi-error { margin: 0; font-size: 0.8rem; color: #C0265E; }
:root[data-theme="oscuro"] .ubi-op.activa,
:root[data-theme="oscuro"] .ubi-nombres input:checked + span,
:root[data-theme="oscuro"] .ubi-cerrar { background: #34224F; color: #E3D3FA; }
:root[data-theme="oscuro"] .ubi-link,
:root[data-theme="oscuro"] .ubi-nueva summary { color: #C4A1F5; }

/* ===== Citas reales en el panel de la profesional ===== */
.cp-vacio { margin: 0 0 16px; padding: 16px; border-radius: 14px; background: var(--surface); color: var(--text-muted); font-size: 0.9rem; box-shadow: var(--shadow-sm); }
.cp-item { margin-bottom: 12px; padding: 14px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); border-left: 4px solid #CDB5EE; display: flex; flex-direction: column; gap: 8px; }
.cp-item.en_camino, .cp-item.en_servicio { border-left-color: #6B35C9; }
.cp-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cp-top strong { color: #4B249B; font-size: 0.95rem; }
.cp-estado { padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: #F1EAFB; color: #4B249B; white-space: nowrap; }
.cp-estado.en_camino, .cp-estado.en_servicio { background: #6B35C9; color: #fff; }
.cp-info { display: flex; flex-direction: column; gap: 2px; font-size: 0.85rem; color: var(--text-muted); }
.cp-info b { color: var(--text-main); font-size: 0.95rem; }
.cp-botones { display: flex; gap: 8px; }
.cp-botones button { padding: 10px 14px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.cp-si { flex: 1; border: 0; background: #6B35C9; color: #fff; }
.cp-no { border: 1.5px solid var(--border); background: transparent; color: var(--text-main); }
.cp-botones button:disabled { opacity: 0.6; }
:root[data-theme="oscuro"] .cp-estado { background: #34224F; color: #E3D3FA; }
:root[data-theme="oscuro"] .cp-top strong { color: #C4A1F5; }

#locales-lista .destacada-foto { height: 132px; }
.ubi-nueva summary { list-style: none; }
.ubi-nueva summary::-webkit-details-marker { display: none; }

/* Logo del negocio en el perfil: completo, sin recortar */
.pp-avatar img.pp-logo { object-fit: contain; background: #fff; padding: 6px; }
.pro-image.pro-logo { object-fit: contain; background: #F1ECFF; padding: 10px; }
.pro-image.local-sin-foto { height: 100%; min-height: 140px; }
:root[data-theme="oscuro"] .pro-image.pro-logo { background: #271840; }
.mt-otras { flex-direction: column; align-items: stretch; }
.mt-otras-fila { display: flex; gap: 8px; margin-top: 10px; }
.mt-otras-fila select { flex: 1; padding: 10px; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: var(--surface); color: var(--text-main); }
.anterior { background: var(--surface); border-radius: 12px; padding: 15px; margin-bottom: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.anterior-top { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 8px; }
.anterior-estado { padding: 4px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; }
.anterior-estado.ok { background: #e6f4ea; color: #1e8e3e; }
.anterior-estado.no { background: #fce8e6; color: #c5221f; }
.anterior-estado.gris { background: var(--surface-alt); color: var(--text-muted); }
.anterior h3 { margin: 0; font-size: 1rem; color: var(--text-main); }
.anterior p { margin: 4px 0 0; font-size: 0.88rem; color: var(--text-muted); }
.anterior .anterior-precio { font-weight: 700; color: var(--primary); }
.anterior-botones { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.anterior-botones .btn-primary { padding: 8px 16px; font-size: 0.88rem; }
.sin-citas { text-align: center; color: var(--text-muted); padding: 28px 16px; line-height: 1.5; }

/* ===== MILOOP: feed vertical a pantalla completa, como una app ===== */
body.miloop { background: #000; height: 100dvh; overflow: hidden; overscroll-behavior: none; }
body.miloop .clips-feed { position: fixed; inset: 0; height: 100dvh; width: 100%; max-width: none; margin: 0; }
body.miloop .clip { height: 100dvh; background: #000; }
body.miloop .clip-img { object-fit: cover; }
body.miloop .clip-img.horizontal { object-fit: contain; }
body.miloop .clip::after { background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0, transparent 20%, transparent 52%, rgba(0, 0, 0, 0.78) 100%); }
body.miloop .clips-top { background: none; align-items: flex-start; padding: calc(8px + env(safe-area-inset-top)) 14px 8px; }
body.miloop .clips-atras, body.miloop .clips-yo { margin-top: 4px; filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.5)); }
.miloop-centro { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.miloop-marca { font-weight: 900; font-size: 1.15rem; letter-spacing: 0.16em; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45); }
body.miloop .clips-tabs { gap: 16px; }
body.miloop .clips-tabs button { font-size: 0.9rem; padding: 4px 2px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5); }
body.miloop .clip-info { bottom: calc(86px + env(safe-area-inset-bottom)); }
body.miloop .clips-subir { bottom: calc(96px + env(safe-area-inset-bottom)); right: 14px; width: 50px; height: 50px; top: auto; }
body.miloop .clip-acciones { bottom: calc(166px + env(safe-area-inset-bottom)); }
body.miloop .bottom-nav { background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.92)); border-top: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.miloop .bottom-nav-item { color: rgba(255, 255, 255, 0.7); }
body.miloop .bottom-nav-item.active { color: #fff; }
/* Profesionales y negocios: sin barra inferior, todo el alto para el video */
body.miloop-pro .clip-info { bottom: calc(26px + env(safe-area-inset-bottom)); }
body.miloop-pro .clips-subir { bottom: calc(28px + env(safe-area-inset-bottom)); }
body.miloop-pro .clip-acciones { bottom: calc(96px + env(safe-area-inset-bottom)); }
.clip-verif { display: inline-block; background: #fff; color: #4B249B; font-size: 0.62rem; font-weight: 800; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 6px; vertical-align: 2px; margin-left: 4px; }
.clip-pausa { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; width: 74px; height: 74px; border-radius: 50%; background: rgba(0, 0, 0, 0.4); color: #fff; font-size: 2rem; display: none; align-items: center; justify-content: center; padding-left: 6px; pointer-events: none; }
.clip.pausado .clip-pausa { display: flex; }
.miloop-progreso { height: 6px; border-radius: 3px; background: var(--surface-alt); overflow: hidden; margin: 10px 0 4px; }
.miloop-progreso span { display: block; height: 100%; width: 0; background: var(--gradient-mila); transition: width 0.2s ease; }
.miloop-progreso[hidden] { display: none; }
/* En computador: columna tipo celular centrada, fondo negro a los lados */
@media (min-width: 768px) {
    body.miloop .clips-feed { left: 50%; width: min(100%, 480px); transform: translateX(-50%); }
    body.miloop .clips-top { max-width: 480px; margin: 0 auto; }
    body.miloop .clips-subir { right: calc(50% - 226px); }
    body.miloop .bottom-nav { max-width: 480px; margin: 0 auto; }
}
.miloop-accion { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(120deg, #2E2450, #4B249B); color: #fff; text-decoration: none; box-shadow: 0 8px 22px rgba(75, 36, 155, 0.25); }
.miloop-accion-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; background: #fff; color: #4B249B; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; padding-left: 3px; }
.miloop-accion strong { display: block; font-size: 1rem; letter-spacing: 0.02em; }
.miloop-accion small { display: block; font-size: 0.8rem; opacity: 0.85; margin-top: 2px; }
.miloop-accion-ir { margin-left: auto; font-size: 1.6rem; opacity: 0.8; }
.clip-guardar svg { fill: none; }
.clip-guardar.activo svg { fill: #FFC53D; stroke: #FFC53D; }
.clip-guardar.activo { color: #fff; }
.pc-tabs { display: flex; gap: 6px; background: var(--surface-alt); padding: 4px; border-radius: 12px; margin: 0 0 14px; }
.pc-tabs button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 9px; font: inherit; font-weight: 700; font-size: 0.9rem; color: var(--text-muted); cursor: pointer; }
.pc-tabs button[aria-selected="true"] { background: var(--surface); color: var(--primary); box-shadow: 0 2px 8px rgba(75, 36, 155, 0.12); }
.pc-tabs[hidden] { display: none; }
/* MILOOP: sin zoom por doble toque (el doble toque es "me gusta") */
body.miloop .clip { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
body.miloop .clip-acciones a, body.miloop .clip-autor { position: relative; z-index: 4; }
.clip-like.activo span { color: #fff; }

/* ==========================================================
   MILA Light / MILA Dark — Inicio con la paleta oficial
   (#35166F institucional, #4B249B botones, lavanda #C8B7FE, acento #FFF1A6)
   ========================================================== */
.inicio-hero { background: linear-gradient(180deg, #FAF9FC 0%, #F1ECFF 72%, #E9E1FF 100%); padding-bottom: 62px; }
.inicio-hero::after { background: linear-gradient(180deg, rgba(250, 249, 252, 0) 0%, var(--background) 100%); }
.inicio-hero-img { top: calc(58px + env(safe-area-inset-top)); width: 64%; }
.inicio-top { align-items: flex-start; }
.inicio-logo-bloque { display: flex; flex-direction: column; align-items: flex-start; }
.inicio-logo-bloque .inicio-logo { width: 132px; }
.inicio-eslogan { margin-top: 3px; font-size: 0.56rem; font-weight: 600; letter-spacing: 0.16em; color: var(--mila-institucional); white-space: nowrap; }
.inicio-marca { margin-top: 8px; max-width: 52%; min-width: 170px; }
.inicio-ubicacion { color: var(--mila-texto); font-size: 0.88rem; padding: 2px 0 6px; }
.inicio-ubicacion svg:first-child { color: var(--mila-institucional); }
.inicio-marca h1 { margin: 6px 0 0; font-family: var(--fuente-titulos); font-weight: 700; font-size: 1.72rem; line-height: 1.02; color: var(--mila-institucional); letter-spacing: -0.015em; }
.inicio-marca h1 span { display: block; margin-top: 3px; font-weight: 400; font-size: 1.28rem; color: var(--mila-morado); white-space: nowrap; }
.inicio-marca h1 svg { width: 17px; height: 17px; vertical-align: -1px; }
.inicio-marca p { margin-top: 8px; font-size: 0.74rem; color: var(--text-muted); max-width: 170px; }
.inicio-circulo { background: #FFFFFF; color: var(--mila-institucional); box-shadow: 0 6px 18px rgba(53, 22, 111, 0.12); }
.inicio-buscador { background: #FFFFFF; border-color: var(--border); box-shadow: 0 10px 26px rgba(53, 22, 111, 0.1); }
.inicio-buscador-campo svg { color: var(--mila-institucional); }
/* Promo: crema + amarillo pastel como acento */
.inicio-promo { background: linear-gradient(100deg, #FFF8D6 0%, #FFF4C2 48%, #F1ECFF 100%); box-shadow: 0 8px 24px rgba(53, 22, 111, 0.1); }
.inicio-promo-etiqueta { background: #E9E1FF; color: var(--mila-institucional); }
.inicio-promo h2 { color: var(--mila-institucional); font-size: 1.7rem; }
.inicio-promo h2 b { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--mila-morado); }
.inicio-promo-boton { background: #4B249B; box-shadow: 0 6px 14px rgba(75, 36, 155, 0.3); }
/* Títulos de sección con serifa */
.inicio-titulo { font-family: var(--fuente-titulos); font-weight: 600; font-size: 1.42rem; color: var(--mila-institucional); letter-spacing: -0.01em; }
.inicio-titulo-fila a { color: var(--mila-morado); font-weight: 500; }
.inicio-cat span { color: var(--mila-texto); }
.inicio-cat img { box-shadow: 0 4px 12px rgba(53, 22, 111, 0.07); }
.inicio .destacada-info strong { color: var(--mila-texto); }
.inicio .punto-estado.on { background: var(--mila-verde); }
/* Barra inferior */
.bottom-nav-item { color: #746D86; }
.bottom-nav-item.active { color: #4B249B; }

/* 🌙 Inicio en modo oscuro: ciruela profundo */
:root[data-theme="oscuro"] .inicio-hero { background: radial-gradient(120% 80% at 80% 10%, #3A1F66 0%, #21152F 55%, #140D20 100%); }
:root[data-theme="oscuro"] .inicio-hero::after { background: linear-gradient(180deg, rgba(20, 13, 32, 0) 0%, var(--background) 100%); }
:root[data-theme="oscuro"] .inicio-eslogan,
:root[data-theme="oscuro"] .inicio-marca p { color: #C9BED8; }
:root[data-theme="oscuro"] .inicio-marca h1 { color: #FFFFFF; }
:root[data-theme="oscuro"] .inicio-marca h1 span { color: #C8B7FE; }
:root[data-theme="oscuro"] .inicio-ubicacion { color: #FFFFFF; }
:root[data-theme="oscuro"] .inicio-ubicacion svg:first-child { color: #C8B7FE; }
:root[data-theme="oscuro"] .inicio-circulo { background: rgba(42, 27, 61, 0.85); color: #FFFFFF; border: 1px solid #49365C; }
:root[data-theme="oscuro"] .inicio-buscador { background: #21152F; border: 1px solid #49365C; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35); }
:root[data-theme="oscuro"] .inicio-buscador-campo, :root[data-theme="oscuro"] .inicio-buscador-campo svg { color: #C9BED8; }
:root[data-theme="oscuro"] .inicio-promo { background: linear-gradient(100deg, #2A1B3D 0%, #33204D 55%, #3D2463 100%); border: 1px solid #49365C; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35); }
:root[data-theme="oscuro"] .inicio-promo-etiqueta { background: #FFF1A6; color: #35166F; }
:root[data-theme="oscuro"] .inicio-promo h2 { color: #FFFFFF; }
:root[data-theme="oscuro"] .inicio-promo h2 b { color: #FFF1A6; }
:root[data-theme="oscuro"] .inicio-promo-boton { background: #C8B7FE; color: #35166F; box-shadow: none; }
:root[data-theme="oscuro"] .inicio-promo-img { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
:root[data-theme="oscuro"] .inicio-titulo, :root[data-theme="oscuro"] .inicio-cat span { color: #FFFFFF; }
:root[data-theme="oscuro"] .inicio-titulo-fila a { color: #C8B7FE; }
:root[data-theme="oscuro"] .inicio-cat img { border: 1px solid #49365C; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
:root[data-theme="oscuro"] .inicio .destacada { background: #21152F; border: 1px solid #49365C; }
:root[data-theme="oscuro"] .inicio .destacada-info strong { color: #FFFFFF; }
:root[data-theme="oscuro"] .inicio .destacada-info small { color: #C8B7FE; }
:root[data-theme="oscuro"] .bottom-nav { background: rgba(33, 21, 47, 0.96); border-top-color: #49365C; }
:root[data-theme="oscuro"] .bottom-nav-item { color: #C9BED8; }
:root[data-theme="oscuro"] .bottom-nav-item.active { color: #C8B7FE; }
/* Portada: la foto se funde con el fondo lavanda (sin bordes visibles) */
.inicio-hero { background: linear-gradient(180deg, #F4EFFD 0%, #F1ECFF 55%, #ECE3FB 100%); }
.inicio-hero-img {
    top: calc(64px + env(safe-area-inset-top)); width: 62%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%), linear-gradient(180deg, #000 78%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 26%), linear-gradient(180deg, #000 78%, transparent 100%);
    mask-composite: intersect;
}
.inicio-marca .inicio-ubicacion { position: relative; z-index: 2; background: rgba(255, 255, 255, 0.72); border-radius: 999px; padding: 4px 10px 4px 6px; margin-left: -6px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); max-width: 100%; }
.inicio-titulo { white-space: nowrap; font-size: clamp(1.18rem, 5.4vw, 1.42rem); }
:root[data-theme="oscuro"] .inicio-marca .inicio-ubicacion { background: rgba(33, 21, 47, 0.7); }
/* Modo oscuro: portada, promo y categorías con el arte oscuro de MILA */
:root[data-theme="oscuro"] .inicio-hero { background: linear-gradient(180deg, #1E1233 0%, #22143A 60%, #140D20 100%); }
:root[data-theme="oscuro"] .inicio-hero-img {
    background-image: url('../assets/inicio/hero-oscuro.jpg'); aspect-ratio: 533 / 328; opacity: 1; top: calc(56px + env(safe-area-inset-top));
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%), linear-gradient(180deg, transparent 0%, #000 12%, #000 80%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(90deg, transparent 0%, #000 24%), linear-gradient(180deg, transparent 0%, #000 12%, #000 80%, transparent 100%);
    mask-composite: intersect;
}
:root[data-theme="oscuro"] .inicio-promo-img { content: url('../assets/inicio/promo-oscuro.webp'); }
:root[data-theme="oscuro"] .inicio-cat img { aspect-ratio: 120 / 86; object-fit: cover; border-radius: 16px; }
:root[data-theme="oscuro"] .inicio-cat img[src*="cat-unas"] { content: url('../assets/inicio/cat-unas-oscuro.jpg'); }
:root[data-theme="oscuro"] .inicio-cat img[src*="cat-peluqueria"] { content: url('../assets/inicio/cat-peluqueria-oscuro.jpg'); }
:root[data-theme="oscuro"] .inicio-cat img[src*="cat-estetica"] { content: url('../assets/inicio/cat-estetica-oscuro.jpg'); }
:root[data-theme="oscuro"] .inicio-cat img[src*="cat-pestanas"] { content: url('../assets/inicio/cat-pestanas-oscuro.jpg'); }
:root[data-theme="oscuro"] .inicio-cat img[src*="cat-masajes"] { content: url('../assets/inicio/cat-masajes-oscuro.jpg'); }
:root[data-theme="oscuro"] .inicio-cat img[src*="cat-barberia"] { content: url('../assets/inicio/cat-barberia-oscuro.jpg'); }
:root[data-theme="oscuro"] .inicio-cat img[src*="cat-maquillaje"] { content: url('../assets/inicio/cat-maquillaje-oscuro.jpg'); }
:root[data-theme="oscuro"] .inicio-cat img[src*="cat-domicilios"] { content: url('../assets/inicio/cat-domicilios-oscuro.jpg'); }
.inicio-marca .inicio-ubicacion { width: max-content; max-width: calc(100vw - 32px); }
.inicio-marca .inicio-ubicacion #inicio-ubicacion-texto { max-width: 70vw; }

/* ===== Modo oscuro: íconos y textos oscuros escritos a mano pasan a blanco ===== */
:root[data-theme="oscuro"] [style*="color: #2E2450"],
:root[data-theme="oscuro"] [style*="color:#2E2450"],
:root[data-theme="oscuro"] [style*="color: #333"],
:root[data-theme="oscuro"] [style*="color: #000"],
:root[data-theme="oscuro"] [style*="color: black"] { color: #FFFFFF !important; }
:root[data-theme="oscuro"] svg[stroke="#2E2450"], :root[data-theme="oscuro"] svg [stroke="#2E2450"],
:root[data-theme="oscuro"] svg[stroke="#000"], :root[data-theme="oscuro"] svg [stroke="#000"],
:root[data-theme="oscuro"] svg[stroke="black"], :root[data-theme="oscuro"] svg [stroke="black"],
:root[data-theme="oscuro"] svg[stroke="#333"], :root[data-theme="oscuro"] svg [stroke="#333"] { stroke: #FFFFFF; }
:root[data-theme="oscuro"] svg[fill="#2E2450"], :root[data-theme="oscuro"] svg [fill="#2E2450"],
:root[data-theme="oscuro"] svg[fill="#000"], :root[data-theme="oscuro"] svg [fill="#000"],
:root[data-theme="oscuro"] svg[fill="black"], :root[data-theme="oscuro"] svg [fill="black"],
:root[data-theme="oscuro"] svg[fill="#333"], :root[data-theme="oscuro"] svg [fill="#333"] { fill: #FFFFFF; }
:root[data-theme="oscuro"] .menu-item-left svg, :root[data-theme="oscuro"] .menu-item-right,
:root[data-theme="oscuro"] .btn-icon, :root[data-theme="oscuro"] .btn-icon svg,
:root[data-theme="oscuro"] .legal-back, :root[data-theme="oscuro"] .account-header svg { color: #FFFFFF; }
:root[data-theme="oscuro"] .menu-item-left svg { stroke: #FFFFFF; }
/* Íconos de una sola tinta (PNG oscuros) */
:root[data-theme="oscuro"] img.icono-tinta, :root[data-theme="oscuro"] img[src*="flaticon.com/512/1077"] { filter: invert(1) brightness(1.4); }

/* Asistente (burbuja) visible en modo oscuro: lavanda con aro claro */
:root[data-theme="oscuro"] .chat-toggle-btn {
    background: linear-gradient(135deg, #C8B7FE 0%, #E9E1FF 100%);
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 4px rgba(200, 183, 254, 0.18), 0 10px 26px rgba(0, 0, 0, 0.5);
}
.live-service-card[hidden] { display: none !important; }
:root[data-theme="oscuro"] .ff-ver, :root[data-theme="oscuro"] .mila-chat-btn { background: #2A1B3D; color: #C8B7FE; border-color: #49365C; }
/* Solicitudes por revisar (panel profesional): tarjeta en columna */
#ofertas-pro .of-item { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding: 14px 0; }
#ofertas-pro .of-tipo { align-self: flex-start; }
#ofertas-pro .of-refs { width: 100%; }
#ofertas-pro .of-item > .of-botones, #ofertas-pro .of-motivo .of-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#ofertas-pro .of-item > .of-botones .of-chat { grid-column: 1 / -1; }
#ofertas-pro .of-item > .of-botones[hidden] { display: none; }
#ofertas-pro .of-si { background: #4B249B; }
:root[data-theme="oscuro"] #ofertas-pro .of-si { background: #6B35C9; }
/* MILA DEUNA en el Inicio */
.inicio-deuna { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; text-decoration: none; color: #fff; background: radial-gradient(130% 140% at 95% 0%, #6B35C9 0%, #4B249B 45%, #35166F 100%); box-shadow: 0 12px 26px rgba(53, 22, 111, 0.28); }
.inicio-deuna-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; background: #FFF1A6; color: #35166F; display: flex; align-items: center; justify-content: center; }
.inicio-deuna-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.inicio-deuna-txt b { font-size: 0.68rem; font-weight: 900; letter-spacing: 0.14em; color: #FFF1A6; }
.inicio-deuna-txt strong { font-family: var(--fuente-titulos); font-size: 1.08rem; line-height: 1.15; }
.inicio-deuna-txt small { font-size: 0.76rem; opacity: 0.85; }
.inicio-deuna-ir { flex: none; opacity: 0.85; }
:root[data-theme="oscuro"] .inicio-deuna { background: radial-gradient(130% 140% at 95% 0%, #6B35C9 0%, #3D2463 50%, #21152F 100%); border: 1px solid #49365C; }

/* ==========================================================
   Inicio (diseño MILA DEUNA + Reserva normal)
   ========================================================== */
body.pagina-inicio { background: #FAF9FC; }
.ini-cab { padding: calc(12px + env(safe-area-inset-top)) 0 4px; background: linear-gradient(180deg, #F4EFFD 0%, #FAF9FC 100%); }
.ini-cab-fila { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ini-cab .inicio-logo { width: 150px; }
.ini-cab-acciones { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.ini-ubi { background: #F1ECFF; border-radius: 999px; padding: 8px 12px !important; color: var(--mila-texto); font-size: 0.86rem; gap: 6px; max-width: 150px; }
.ini-ubi svg:first-child { color: #4B249B; }
.ini-ubi #inicio-ubicacion-texto { max-width: 92px !important; }
.ini-ubi #inicio-ubicacion-texto small { display: none !important; }
.ini-ubi #inicio-ubicacion-texto b { font-size: 0.86rem !important; font-weight: 600 !important; }
.ini-campana { position: relative; width: 40px; height: 40px; border: 0; background: none; color: var(--mila-texto); display: flex; align-items: center; justify-content: center; cursor: pointer; }
main.inicio { margin-top: 0; }
.ini-buscador { margin-top: 10px; background: #FFFFFF; border: 1px solid #E5DFF2; box-shadow: 0 6px 18px rgba(53, 22, 111, 0.06); }
.ini-bloque { margin-top: 16px; }
.ini-tarjeta { position: relative; display: flex; align-items: stretch; min-height: 188px; border-radius: 22px; overflow: hidden; text-decoration: none; box-shadow: 0 10px 26px rgba(53, 22, 111, 0.1); }
.ini-deuna { background: linear-gradient(110deg, #F4EEFF 0%, #EFE7FF 45%, #F7F1FF 100%); }
.ini-normal { background: linear-gradient(110deg, #FDEFF4 0%, #FBEAF1 45%, #F9E9F2 100%); min-height: 176px; }
.ini-tarjeta-txt { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 0 18px 18px; min-width: 0; }
.ini-tarjeta-arte { width: 48%; object-fit: cover; object-position: left center; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%); mask-image: linear-gradient(90deg, transparent 0%, #000 22%); }
.ini-deuna-marca { display: flex; align-items: center; gap: 6px; }
.ini-rayo { flex: none; filter: drop-shadow(0 4px 6px rgba(245, 184, 46, 0.35)); }
.ini-deuna-marca strong { display: block; font-size: 1.85rem; line-height: 0.95; font-weight: 800; color: #4B249B; letter-spacing: -0.01em; }
.ini-deuna-marca span { display: inline-block; margin-top: 6px; font-size: 0.72rem; font-weight: 600; color: #fff; background: #B8A2F5; padding: 3px 10px; border-radius: 999px; }
.ini-tarjeta-txt p { margin: 14px 0 0; font-size: 1.12rem; line-height: 1.3; color: #4B249B; font-weight: 500; }
.ini-normal-marca { display: flex; align-items: center; gap: 12px; }
.ini-normal-ico { flex: none; width: 56px; height: 56px; border-radius: 16px; background: #F7D6E4; color: #B0306E; display: flex; align-items: center; justify-content: center; }
.ini-normal-marca strong { font-size: 1.7rem; line-height: 1; font-weight: 700; color: #35166F; }
.ini-normal .ini-tarjeta-txt p { color: #35166F; }
.ini-titulo-fila { align-items: center; }
.ini-titulo { margin: 0; font-size: 1.22rem; font-weight: 700; color: #35166F; }
.ini-titulo-fila a { color: #746D86 !important; font-weight: 500; }
.ini-populares { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 12px; }
.ini-populares a { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; color: var(--mila-texto); font-size: 0.76rem; font-weight: 500; text-align: center; line-height: 1.15; }
.ini-populares img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; border-radius: 16px; box-shadow: 0 4px 12px rgba(53, 22, 111, 0.08); }
.pagina-inicio .inicio-promo { margin-top: 12px; }
/* Oscuro */
:root[data-theme="oscuro"] body.pagina-inicio { background: #140D20; }
:root[data-theme="oscuro"] .ini-cab { background: linear-gradient(180deg, #21152F 0%, #140D20 100%); }
:root[data-theme="oscuro"] .ini-ubi { background: #2A1B3D; color: #fff; }
:root[data-theme="oscuro"] .ini-ubi svg:first-child { color: #C8B7FE; }
:root[data-theme="oscuro"] .ini-campana { color: #fff; }
:root[data-theme="oscuro"] .ini-buscador { background: #21152F; border-color: #49365C; }
:root[data-theme="oscuro"] .ini-deuna { background: linear-gradient(110deg, #2A1B3D 0%, #33204D 55%, #3D2463 100%); border: 1px solid #49365C; }
:root[data-theme="oscuro"] .ini-normal { background: linear-gradient(110deg, #2A1B3D 0%, #3A1F3F 60%, #4A2447 100%); border: 1px solid #49365C; }
:root[data-theme="oscuro"] .ini-deuna-marca strong, :root[data-theme="oscuro"] .ini-tarjeta-txt p, :root[data-theme="oscuro"] .ini-normal-marca strong, :root[data-theme="oscuro"] .ini-titulo { color: #fff; }
:root[data-theme="oscuro"] .ini-normal-ico { background: #4A2447; color: #F3A6C7; }
:root[data-theme="oscuro"] .ini-tarjeta-arte { opacity: 0.92; }
:root[data-theme="oscuro"] .ini-populares a { color: #fff; }
:root[data-theme="oscuro"] .ini-titulo-fila a { color: #C9BED8 !important; }
.ini-deuna-marca span { white-space: nowrap; font-size: 0.66rem; }
.ini-cab .inicio-logo { width: 128px; }
.ini-cab-acciones { gap: 4px; }
.ini-ubi { max-width: 138px; padding: 7px 10px !important; }
.ini-campana { width: 36px; }
body.has-bottom-nav .bottom-nav-item span { white-space: nowrap; font-size: 0.62rem; letter-spacing: -0.01em; }
.adm-soporte h2 { margin: 0; }
.adm-hilo { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; max-height: 50vh; overflow-y: auto; }
.adm-msj { background: var(--surface-alt); padding: 10px 12px; border-radius: 12px; max-width: 85%; }
.adm-msj.mila { align-self: flex-end; background: #E9E1FF; }
.adm-msj small { display: block; color: var(--text-muted); font-size: 0.72rem; margin-bottom: 4px; }

/* ---------- MILA instalada como app (PWA) ----------
   viewport-fit=cover: el contenido llega hasta los bordes del iPhone; los bordes con notch se respetan aquí
   y las barras de abajo ya suman env(safe-area-inset-bottom). */
body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}
/* La app va en vertical. Android la bloquea con el manifest; en iPhone (que no permite bloquearla)
   se muestra un aviso si se gira el teléfono con MILA instalada. */
@media (display-mode: standalone) and (orientation: landscape) and (max-height: 500px) {
    body::before {
        content: 'Gira tu teléfono para usar MILA';
        position: fixed;
        inset: 0;
        z-index: 99999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        text-align: center;
        font: 600 1.1rem 'Poppins', 'Outfit', system-ui, sans-serif;
        color: #fff;
        background: #4B249B url('/assets/icons/icon-192.png') no-repeat center calc(50% - 70px) / 72px;
        padding-top: 90px;
    }
}

/* ===== Accesibilidad (WCAG 2.1 AA): foco visible, placeholders y bordes de campos ===== */
:focus-visible {
    outline: 3px solid #6B35C9;
    outline-offset: 2px;
}
.search-bar input:focus-visible,
.header-search-input:focus-visible,
.header-select:focus-visible,
.chat-input-area input:focus-visible,
.search-input-container input:focus-visible,
.mcod-caja input:focus-visible {
    outline: 3px solid #6B35C9;
    outline-offset: 2px;
}
:root[data-theme="oscuro"] :focus-visible,
:root[data-theme="oscuro"] .search-bar input:focus-visible,
:root[data-theme="oscuro"] .header-search-input:focus-visible,
:root[data-theme="oscuro"] .header-select:focus-visible,
:root[data-theme="oscuro"] .chat-input-area input:focus-visible,
:root[data-theme="oscuro"] .search-input-container input:focus-visible,
:root[data-theme="oscuro"] .mcod-caja input:focus-visible {
    outline-color: #C8B7FE;
}
input::placeholder,
textarea::placeholder {
    color: #746D86;
}
:root:not([data-theme="oscuro"]) .form-input,
:root:not([data-theme="oscuro"]) .form-select,
:root:not([data-theme="oscuro"]) .form-textarea {
    border-color: #9B91B0;
}
:root:not([data-theme="oscuro"]) .form-input:focus,
:root:not([data-theme="oscuro"]) .form-select:focus,
:root:not([data-theme="oscuro"]) .form-textarea:focus {
    border-color: #6B35C9;
}

/* Modo oscuro: textos blancos que quedaban sobre lavanda claro (#C8B7FE) pasan a morado institucional */
:root[data-theme="oscuro"] .tracking-header,
:root[data-theme="oscuro"] .pp-serv-reservar,
:root[data-theme="oscuro"] .pp-verificada,
:root[data-theme="oscuro"] .pp-avatar-check,
:root[data-theme="oscuro"] .pp-seguir.activo,
:root[data-theme="oscuro"] .pp-filtros button.activo {
    color: #35166F;
}

/* Modo oscuro: los textos oscurecidos por contraste en modo claro conservan su tono original */
:root[data-theme="oscuro"] .pro-rating { color: #F59E0B; }
:root[data-theme="oscuro"] .pro-location,
:root[data-theme="oscuro"] .close-notif,
:root[data-theme="oscuro"] .empty-notif { color: #999; }
:root[data-theme="oscuro"] .pp-dist-info,
:root[data-theme="oscuro"] .pp-aviso-dist,
:root[data-theme="oscuro"] .dist-fila small,
:root[data-theme="oscuro"] .pp-serv-precio small,
:root[data-theme="oscuro"] .mt-plata i,
:root[data-theme="oscuro"] .mt-largo em,
:root[data-theme="oscuro"] .of-precios s { color: #8C7BA6; }
:root[data-theme="oscuro"] .fav-acciones .borrar,
:root[data-theme="oscuro"] .of-precios small { color: #E0457B; }

/* Perfil promocionado (Promociona tu perfil) */
.chip-destacada { position: absolute; top: 8px; left: 8px; z-index: 2; background: #4B249B; color: #fff; font-size: .68rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; box-shadow: 0 4px 10px rgba(75, 36, 155, .3); }
.chip-destacada.en-linea { position: static; display: inline-block; vertical-align: middle; margin-left: 4px; box-shadow: none; }

/* Perfil que paga publicidad: marco dorado y brillo para que resalte */
.destacada.promocionada, .pro-card.promocionada { position: relative; border: 2.5px solid transparent; background: linear-gradient(var(--surface, #fff), var(--surface, #fff)) padding-box, linear-gradient(135deg, #F5B82E, #F29CC2, #8C6FE6) border-box; box-shadow: 0 10px 26px rgba(245, 184, 46, .28); }
.pro-card.promocionada::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 5px; border-radius: 0 6px 6px 0; background: linear-gradient(#F5B82E, #F29CC2); }
.chip-destacada { background: linear-gradient(90deg, #F5B82E, #F29CC2); color: #2A0A5E; }

/* Disponibilidad en vivo: chip en tarjetas y aviso "ser la siguiente" en el perfil */
.disp-fila-tarjeta { margin: 4px 0 2px; }
.pp-siguiente { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-radius: 16px; padding: 12px 14px; margin: 12px 0 0; font-size: .84rem; line-height: 1.4; }
.pp-siguiente > div { display: grid; gap: 4px; min-width: 0; }
.pp-siguiente .chip-disp { justify-self: start; }
.pp-siguiente strong { font-size: .92rem; color: var(--mila-institucional, #35166F); }
.pp-siguiente span:not(.chip-disp) { color: var(--text-muted); }
.pp-siguiente.ahora { background: #E8F7EE; }
.pp-siguiente.pronto { background: #FFF8D6; border: 1px solid #F5E08A; }
.pp-siguiente.manana { background: #F4F2F8; }
.pp-siguiente-btn { border: 0; border-radius: 999px; background: #4B249B; color: #fff; font: inherit; font-weight: 600; font-size: .86rem; padding: 10px 16px; cursor: pointer; box-shadow: 0 6px 14px rgba(75, 36, 155, .28); white-space: nowrap; }
.pp-siguiente-btn:focus-visible { outline: 3px solid #C8B7FE; outline-offset: 2px; }
:root[data-theme="oscuro"] .pp-siguiente.ahora { background: #16301F; }
:root[data-theme="oscuro"] .pp-siguiente.pronto { background: #3A2E0A; border-color: #5C4A12; }
:root[data-theme="oscuro"] .pp-siguiente.manana { background: #2A2434; }
:root[data-theme="oscuro"] .pp-siguiente strong { color: #fff; }

/* Reseñas verificadas con el código MILA */
.pp-verif { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 2px; padding: 3px 9px; border-radius: 999px; background: #E8F7EE; color: #1E7A45; font-size: .72rem; font-weight: 700; }
.pp-verif-txt { color: #1E7A45; }
:root[data-theme="oscuro"] .pp-verif { background: #16301F; color: #86EFAC; }
:root[data-theme="oscuro"] .pp-verif-txt { color: #86EFAC; }
.cp-estilo { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; border: 1.5px solid #D9CCFA; background: #F6F2FF; color: #4B249B; border-radius: 999px; padding: 5px 11px; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
:root[data-theme="oscuro"] .cp-estilo { background: #2A1B3D; border-color: #49365C; color: #C8B7FE; }

/* Pagos y ganancias: resumen de la semana */
.pp-semana { background: linear-gradient(135deg, #4B249B, #6B35C9); color: #fff; border-radius: 22px; padding: 16px 16px 14px; margin-bottom: 14px; box-shadow: 0 10px 26px rgba(75, 36, 155, .25); }
.pp-semana-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pp-semana-top small { display: block; opacity: .85; font-size: .8rem; }
.pp-semana-top b { font-size: 1.7rem; }
.pp-cambio { font-size: .76rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .18); white-space: nowrap; }
.pp-cambio.baja { background: rgba(255, 200, 200, .25); }
.pp-barras { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 90px; align-items: end; margin: 14px 0 8px; }
.pp-barras div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.pp-barras i { width: 100%; max-width: 26px; min-height: 3px; border-radius: 8px 8px 3px 3px; background: rgba(255, 255, 255, .85); }
.pp-barras span { font-size: .72rem; opacity: .85; }
.pp-semana-datos { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .82rem; opacity: .95; }
