/* ===== FONT IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ===== VARIABLES ===== */
:root {
    /* Aire lateral compartido por nav, contenido y footer: el ancho lo
       pone la ventana, no un contenedor centrado */
    --page-gutter: clamp(1rem, 3vw, 3rem);
    --bg-primary: #f6f3ef;
    --bg-secondary: #efeae4;
    --bg-card: #ffffff;
    --bg-elevated: #faf8f5;
    --accent-magenta: #7c3a5e;
    --accent-magenta-hover: #63304c;
    --accent-orange: #b8860b;
    --accent-orange-hover: #9a7209;
    --accent-cyan: #7c3a5e;
    --accent-soft-bg: #f7ecf1;
    --accent-soft-border: #e8d2dd;
    --accent-outline: #d6b8c6;
    --text-light: #2e2a27;
    --text-muted: #6b6560;
    --text-subtle: #8c857d;
    --text-dark: #1c1917;
    --border-dark: #e7e1da;
    --border-input: #e0d9d1;
    /* El acento del rediseno es plano: las variables se mantienen definidas
       para el CSS existente, pero ya no producen degradados. */
    --gradient-accent: var(--accent-magenta);
    --gradient-orange: var(--accent-orange);
    --gradient-bg: var(--bg-primary);
    --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-strong: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 4px 16px rgba(124, 58, 94, 0.12);
    --font-display: 'Archivo', system-ui, sans-serif;
    --font-body: 'Archivo', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* §0d: este gris queda reservado al placeholder de un input vacio.
   Nunca para una hora, un label ni una ubicacion (eso es contenido real). */
::placeholder {
    color: #a8a099;
    opacity: 1;
}

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

/* ===== BODY ===== */
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    min-height: 100vh;
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== HEADINGS ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--bg-card);
    padding: 0 var(--page-gutter);
    border-bottom: 1px solid var(--border-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-content {
    width: 100%;
    max-width: none;
    margin: 0;
    min-height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 36px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.language-selector select {
    background: transparent;
    color: var(--text-light);
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    padding: 0.3rem;
    font-family: var(--font-body);
}

.language-selector select option {
    background: var(--bg-card);
    color: var(--text-light);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.navbar-premium-btn {
    border: 1px solid var(--accent-outline);
    color: var(--accent-magenta);
    background: transparent;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.navbar-premium-btn:hover {
    background: var(--accent-soft-bg);
    border-color: var(--accent-magenta);
}

.navbar-avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--accent-magenta);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--accent-magenta);
}

.login-prompt {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-right: 0.3rem;
}

.quick-login {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.quick-login input {
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    font-size: 0.85rem;
    background: var(--bg-elevated);
    color: var(--text-light);
    width: 130px;
    font-family: var(--font-body);
}

.quick-login input::placeholder {
    color: var(--text-muted);
}

.quick-login-btn {
    padding: 0.5rem 1.5rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(124, 58, 94, 0.15);
    font-family: var(--font-body);
}

.quick-login-btn:hover {
    background: var(--accent-magenta-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-1px);
}

.navbar-right .forgot-password-link {
    color: var(--text-muted);
    font-size: 0.75rem;
    text-decoration: none;
    white-space: nowrap;
}

.navbar-right .forgot-password-link:hover {
    color: var(--accent-magenta);
    text-decoration: underline;
}

.help-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: 2px solid var(--accent-magenta);
    color: var(--accent-magenta);
    font-weight: bold;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.help-btn:hover {
    background: var(--accent-magenta);
    color: white;
    box-shadow: var(--shadow-glow);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-magenta);
    text-decoration: none;
    letter-spacing: 1px;
    font-family: var(--font-display);
}


/* ===== HERO SECTION ===== */
/* ===== BIENVENIDA: BARRA SUPERIOR ===== */
.landing-topbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 8px var(--page-gutter);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-dark);
    box-sizing: border-box;
}

.landing-topbar-logo {
    display: inline-flex;
    align-items: center;
}

/* El logo nunca lleva filter: pierde el magenta de la marca */
.landing-topbar img {
    height: 28px;
    width: auto;
    filter: none;
}

.landing-topbar-btn {
    padding: 9px 18px;
    border: 1px solid var(--accent-outline);
    border-radius: 999px;
    color: var(--accent-magenta);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    white-space: nowrap;
}

/* Titulo y bajada del panel de registro (solo movil) */
.registration-lead,
.registration-title,
.registration-signin {
    display: none;
}

.hero {
    position: relative;
    background: var(--bg-card);
    /* Las animaciones de entrada desplazan 28px en X: sin esto, en movil
       el hero se sale de la pantalla mientras dura la animacion */
    overflow-x: clip;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 var(--page-gutter) 2rem;
    box-sizing: border-box;
}

/* ===== FILTER BAR ===== */
.filter-bar {
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.filter-buttons {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-dark);
    background: var(--bg-elevated);
    color: var(--text-light);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-accent);
    border-color: var(--accent-magenta);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ===== PROFILES GRID ===== */
.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* ===== PROFILE CARD ===== */
.profile-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    position: relative;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
    border-color: rgba(124, 58, 94, 0.2);
}

.profile-card:hover::before {
    opacity: 1;
}

.profile-header {
    background: var(--bg-elevated);
    color: var(--text-light);
    padding: 1rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-dark);
}

.profile-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 94, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.profile-type {
    font-size: 0.85rem;
    color: var(--accent-magenta);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

.profile-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-light);
}

.profile-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.profile-body {
    padding: 1rem;
    position: relative;
    background: var(--bg-card);
}

.profile-body::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(124, 58, 94, 0.03) 0%, transparent 70%);
    border-radius: 0 0 0 100%;
}

.profile-description {
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    line-height: 1.5;
    font-family: var(--font-body);
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.profile-media {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
    color: var(--accent-magenta);
    font-family: var(--font-body);
}

.view-profile-btn {
    width: 100%;
    padding: 0.6rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    text-align: center;
    box-shadow: 0 2px 8px rgba(124, 58, 94, 0.12);
    position: relative;
    z-index: 1;
}

.view-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    background: var(--accent-magenta-hover);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-soft);
}

.empty-state h2 {
    color: var(--accent-magenta);
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.empty-state p {
    color: var(--text-muted);
    font-family: var(--font-body);
}

/* ===== LOGIN/REGISTER PAGES ===== */
.auth-container {
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: var(--shadow-strong);
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    border: 1px solid var(--border-dark);
    backdrop-filter: blur(10px);
}

.auth-header {
    background: var(--bg-elevated);
    color: var(--text-light);
    padding: 1.5rem 1rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-dark);
}

.auth-header::after {
    content: none;
}

.auth-header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    position: relative;
    z-index: 1;
    color: var(--accent-magenta);
}

.auth-header p {
    color: var(--text-muted);
    font-family: var(--font-body);
    position: relative;
    z-index: 1;
    font-size: 0.85rem;
}

.auth-body {
    padding: 1.2rem;
    background: var(--bg-card);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--text-light);
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-dark);
    background: var(--bg-elevated);
    color: var(--text-light);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-magenta);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(124, 58, 94, 0.08);
}

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

.alert {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.field-error {
    display: block;
    color: #dc2626;
    font-size: 0.77rem;
    margin-top: 0.28rem;
    margin-bottom: 0.1rem;
    font-weight: 500;
    line-height: 1.35;
}

.input-invalid,
input.input-invalid,
select.input-invalid,
textarea.input-invalid {
    border-color: #dc2626 !important;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 0.7rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(124, 58, 94, 0.12);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    background: var(--accent-magenta-hover);
}

.auth-footer {
    text-align: center;
    padding: 0 1.2rem 1.2rem;
    font-family: var(--font-body);
    background: var(--bg-card);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-footer a {
    color: var(--accent-magenta);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.auth-footer a:hover {
    color: var(--accent-magenta-hover);
    text-decoration: underline;
}

.back-link {
    display: block;
    text-align: center;
    margin-top: 1.2rem;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--accent-magenta);
    text-decoration: underline;
}

/* ===== GALLERY SECTION ===== */
.gallery-section {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

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

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    aspect-ratio: 4/3;
    border: 1px solid var(--border-dark);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    box-shadow: var(--shadow-strong);
    transform: translateY(-5px);
    border-color: rgba(124, 58, 94, 0.2);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(28, 25, 23, 0.85) 0%, transparent 100%);
    padding: 1.5rem;
    color: white;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #ffffff;
}

.gallery-overlay p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .quick-login {
        flex-wrap: wrap;
        justify-content: center;
    }

    .quick-login input {
        width: 100%;
        max-width: 200px;
    }

    .profiles-grid {
        grid-template-columns: 1fr;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== GLEEDEN-STYLE REGISTRATION ===== */
.hero-registration {
    display: grid;
    grid-template-columns: 1fr 460px;
    align-items: stretch;
    min-height: 640px;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Tarjeta de registro: blanca, pegada al borde derecho */
.registration-card {
    background: var(--bg-card);
    border-radius: 0;
    padding: 32px 34px;
    box-shadow: none;
    border: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.registration-logo {
    margin-bottom: 22px;
}

/* En escritorio el logo vive en la barra superior */
.registration-logo img {
    display: none;
}

.registration-logo h2 {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--accent-magenta);
    margin-bottom: 0.2rem;
    font-family: var(--font-display);
}

.registration-logo p {
    color: var(--text-light);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.25;
}

.registration-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 14px;
}

.registration-form .form-row {
    margin-bottom: 0;
}

.registration-form .form-row.full-width {
    grid-column: 1 / -1;
}

.registration-form label {
    display: block;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    margin-bottom: 7px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.registration-form input,
.registration-form select {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--border-input);
    background: var(--bg-elevated);
    color: var(--text-light);
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.registration-form input::placeholder {
    color: var(--text-subtle);
}

.registration-form input:focus,
.registration-form select:focus {
    outline: none;
    border-color: var(--accent-magenta);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(124, 58, 94, 0.08);
}

.registration-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238c857d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 2rem;
}

.registration-form select option {
    background: var(--bg-card);
    color: var(--text-light);
}

.registration-submit {
    width: 100%;
    padding: 16px;
    background: var(--accent-magenta);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 16px;
    box-shadow: none;
}

.registration-submit:hover {
    background: var(--accent-magenta-hover);
}

/* Banner de los primeros 500 usuarios */
.promo-banner {
    background: var(--accent-soft-bg);
    border: 1px solid var(--accent-soft-border);
    border-radius: 8px;
    padding: 14px 16px;
    margin-top: 18px;
}

.promo-banner-title {
    color: var(--accent-magenta);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 6px;
}

.promo-banner-validity {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.registration-terms {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
    line-height: 1.55;
}

.registration-terms a {
    color: var(--accent-magenta);
    text-decoration: underline;
    font-weight: 500;
}

/* ===== REGISTRATION CARD ENTRANCE ANIMATION ===== */
.registration-card {
    animation: cardSlideIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

/* ===== HERO TAGLINE ===== */
.hero-tagline {
    order: -1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px 60px;
    color: white;
    overflow: hidden;
    background: url('/images/hero-bg.jpg') center center / cover no-repeat;
    animation: taglineSlideIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

.hero-tagline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(46, 42, 39, 0.72), rgba(46, 42, 39, 0.45) 45%, rgba(124, 58, 94, 0.6));
}

.hero-tagline > * {
    position: relative;
    z-index: 1;
}

@keyframes taglineSlideIn {
    from {
        opacity: 0;
        transform: translateX(28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-tagline-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 26px;
    font-weight: 400;
}

.hero-tagline-h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 56px);
    font-weight: 600;
    line-height: 1.08;
    margin-bottom: 24px;
    color: #ffffff;
    letter-spacing: -0.03em;
    max-width: 620px;
}

.hero-tagline-h1 em {
    font-style: italic;
    font-weight: 400;
    color: #ffffff;
}

.hero-tagline-desc {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.55;
    margin-bottom: 0;
    font-family: var(--font-body);
    font-weight: 400;
    max-width: 620px;
}

.hero-tagline-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 48px;
}

.hero-tagline-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    font-family: var(--font-body);
    font-weight: 400;
}

/* Check en circulo translucido */
.hero-tagline-feature-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.hero-tagline-feature-dot::before {
    content: '\2713';
    font-size: 12px;
    color: #ffffff;
    line-height: 1;
}


/* Responsive adjustments for registration */
@media (max-width: 900px) {
    .landing-topbar {
        display: flex;
    }

    /* La barra reemplaza al logo invertido sobre la foto */
    .index-navbar {
        display: none;
    }

    .hero-registration {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    /* Hero de 300px: la foto se ve y el texto de abajo mantiene contraste */
    .hero-tagline {
        min-height: 300px;
        padding: 24px 22px;
        justify-content: flex-end;
    }

    .hero-tagline::before {
        background: linear-gradient(170deg, rgba(46, 42, 39, 0.5), rgba(46, 42, 39, 0.15) 35%, rgba(46, 42, 39, 0.88));
    }

    .hero-tagline-h1 {
        font-size: 30px;
        margin-bottom: 0;
    }

    .hero-tagline-eyebrow {
        margin-bottom: 14px;
    }

    .hero-tagline-desc,
    .hero-tagline-features {
        display: none;
    }

    /* Panel blanco a sangre: los campos quedan lo mas anchos posible */
    .registration-card {
        max-width: none;
        margin: 0;
        padding: 20px 22px 32px;
        border-top: 1px solid var(--border-dark);
    }

    .registration-logo {
        display: none;
    }

    .registration-lead {
        display: block;
        font-size: 14px;
        color: var(--text-muted);
        line-height: 1.55;
        margin-bottom: 18px;
    }

    .registration-title {
        display: block;
        font-size: 18px;
        font-weight: 600;
        letter-spacing: -0.02em;
        color: var(--text-light);
        margin-bottom: 16px;
    }

    .registration-signin {
        display: block;
        text-align: center;
        font-size: 14px;
        color: var(--text-muted);
        margin-top: 16px;
    }

    .registration-signin a {
        color: var(--accent-magenta);
        font-weight: 700;
        text-decoration: none;
        letter-spacing: 0.04em;
    }

    /* Sin labels: cada input se explica con su placeholder */
    .registration-form label {
        display: none;
    }

    .registration-form input,
    .registration-form select {
        min-height: 44px;
        padding: 13px 14px;
        border-radius: 10px;
        font-size: 14px;
    }
}

@media (max-width: 600px) {
    /* Una columna, salvo tipo de perfil + edad que comparten fila */
    .registration-form .form-row {
        grid-column: 1 / -1;
    }

    .registration-form .form-row.form-row-half {
        grid-column: span 1;
    }

    .registration-card {
        padding: 24px 18px;
    }

    .hero-tagline {
        min-height: 300px;
        padding: 24px 20px;
    }
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background: var(--bg-primary);
}

.dashboard-sidebar {
    width: 220px;
    background: var(--bg-card);
    padding: 1rem;
    box-shadow: 1px 0 4px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 40px;
    height: calc(100vh - 40px);
    overflow-y: auto;
    border-right: 1px solid var(--border-dark);
}

.dashboard-main,
.page-main {
    flex: 1;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 2rem var(--page-gutter);
    box-sizing: border-box;
}

/* Profile Card in Sidebar */
.sidebar-profile {
    background: var(--bg-elevated);
    border-radius: 10px;
    padding: 0.8rem;
    text-align: center;
    margin-bottom: 1rem;
    border: 1px solid var(--border-dark);
}

.sidebar-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-accent);
    margin: 0 auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    box-shadow: 0 2px 8px rgba(124, 58, 94, 0.15);
}

.online-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: #16a34a;
    border: 3px solid var(--bg-card);
    border-radius: 50%;
}

.sidebar-username {
    color: var(--text-light);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.sidebar-info {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.3rem;
}

.sidebar-location {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.edit-profile-btn {
    width: 100%;
    padding: 0.5rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 8px rgba(124, 58, 94, 0.12);
}

.edit-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* Sidebar Search */
.sidebar-search {
    margin-bottom: 1rem;
}

.sidebar-search h3 {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-filters {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.search-filters select,
.search-filters input {
    width: 100%;
    padding: 0.4rem 0.5rem;
    background: #ffffff;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    font-size: 0.8rem;
    color: var(--text-light);
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.search-filters select:focus,
.search-filters input:focus {
    border-color: var(--accent-magenta);
    outline: none;
    box-shadow: 0 0 0 3px rgba(124, 58, 94, 0.08);
}

.search-filters select option {
    background: var(--bg-card);
    color: var(--text-light);
}

.search-confirm-btn {
    width: 100%;
    padding: 0.4rem;
    background: var(--bg-elevated);
    color: var(--text-light);
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.3rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-family: var(--font-body);
}

.search-confirm-btn:hover {
    background: var(--accent-magenta);
    border-color: var(--accent-magenta);
    color: white;
    box-shadow: var(--shadow-glow);
}

/* Dashboard Top Bar */
.topbar-nav {
    display: flex;
    align-items: center;
    gap: 26px;
}

.topbar-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    font-family: var(--font-body);
}

.topbar-link:hover {
    color: var(--text-light);
}

.topbar-link.active {
    color: var(--text-light);
    border-bottom-color: var(--accent-magenta);
}

/* En escritorio los links son solo texto; los iconos quedan para la barra movil */
.topbar-link .nav-icon {
    display: none;
}

.topbar-icon {
    font-size: 0.9rem;
}

/* SVG nav icons */
.nav-icon {
    width: 20px;
    height: 20px;
    color: #6b6560;
    flex-shrink: 0;
}

.topbar-link.active .nav-icon {
    color: var(--accent-magenta);
}

.mobile-nav-link:hover .nav-icon,
.mobile-nav-link.active .nav-icon {
    color: var(--accent-magenta);
}

/* Profile Carousel Section */
/* El fondo crema hace de lienzo: la seccion ya no es una caja blanca */
.profile-carousel-section {
    margin-bottom: 32px;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 14px;
}

.carousel-title {
    font-size: 22px;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.carousel-icon {
    font-size: 14px;
    color: var(--accent-magenta);
    line-height: 1;
}

.carousel-nav {
    display: flex;
    gap: 0.5rem;
}

.carousel-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background: var(--gradient-accent);
    color: white;
    border-color: var(--accent-magenta);
    box-shadow: var(--shadow-glow);
}

.see-all-link {
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.see-all-link:hover {
    color: var(--accent-magenta);
}

/* Profile Carousel */
.profile-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
}

.carousel-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.carousel-profile-card:hover {
    border-color: var(--accent-outline);
}

.carousel-profile-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #e8e3dc;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-subtle);
    font-size: 2rem;
    font-weight: 600;
}

.carousel-profile-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Punto de "en linea": arriba a la izquierda */
.online-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 9px;
    height: 9px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
    z-index: 2;
}

.carousel-profile-info {
    padding: 12px 13px 14px;
    background: var(--bg-card);
}

.carousel-profile-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 3px;
}

.carousel-profile-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 7px;
}

.carousel-profile-location {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Empty State for Carousel */
.carousel-empty {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
}

.carousel-empty-icon {
    font-size: 30px;
    line-height: 1;
    margin-bottom: 14px;
    color: var(--accent-outline);
}

.carousel-empty h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 6px;
}

.carousel-empty p {
    font-size: 14px;
    margin-bottom: 20px;
}

.empty-state-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 24px;
    background: var(--accent-magenta);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    cursor: pointer;
}

.empty-state-btn:hover {
    background: var(--accent-magenta-hover);
}

/* Quitar de favoritos: arriba a la izquierda. A la derecha vive el badge
   de verificado y se pisaban; estas tarjetas no llevan punto de "en linea". */
.favorite-remove {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
}

.favorite-remove button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--border-dark);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1;
}

.favorite-remove button:hover {
    color: var(--accent-magenta);
    border-color: var(--accent-outline);
}

/* Responsive Dashboard */
@media (max-width: 1024px) {
    .dashboard-wrapper {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        height: auto;
        position: relative;
        top: 0;
    }

    .topbar-nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .profile-carousel {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .carousel-title {
        font-size: 18px;
    }

    .carousel-profile-name {
        font-size: 14px;
    }

    .carousel-profile-meta {
        font-size: 12px;
    }

    /* El resumen de busqueda se trunca en vez de empujar al boton */
    .search-criteria-summary {
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .search-criteria-value {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

}

/* ===== MI PERFIL ICON/TEXT ===== */
.mi-perfil-icon {
    display: none;
}

.mi-perfil-text {
    display: inline-block;
}

/* ===== NAVBAR LOGO (mobile only, index page) ===== */
.navbar-logo-mobile {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

/* ===== NAVBAR LOGO (always visible, internal pages) ===== */
.navbar-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.navbar-logo img {
    height: 34px;
    width: auto;
}

/* ===== MOBILE HERO LOGO (above forms) ===== */
/* ===== MOBILE LOGIN CARD ===== */
.mobile-login-card {
    display: none;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-dark);
}

.mobile-login-header {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
    text-align: center;
}

.mobile-login-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.mobile-login-form input {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-dark);
    background: #ffffff;
    color: var(--text-light);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.mobile-login-form input::placeholder {
    color: var(--text-muted);
}

.mobile-login-form button {
    width: 100%;
    padding: 0.8rem;
    background: var(--accent-magenta);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.mobile-login-form button:hover {
    background: var(--accent-magenta-hover);
}

/* ===== HAMBURGER MENU ===== */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 1001;
}

.hamburger-menu span {
    width: 20px;
    height: 1.8px;
    background: var(--text-muted);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 1002;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.08);
    border-right: 1px solid var(--border-dark);
}

.mobile-nav-drawer.active {
    left: 0;
}

.mobile-nav-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-dark);
    background: var(--bg-elevated);
}

.mobile-nav-header h2 {
    color: var(--accent-magenta);
    font-size: 1.2rem;
    margin: 0;
    font-family: var(--font-display);
}

.mobile-nav-links {
    padding: 0.8rem 0;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--bg-elevated);
    border-left-color: var(--accent-magenta);
    color: var(--accent-magenta);
}

.mobile-nav-link .icon {
    font-size: 1rem;
}

.mobile-nav-footer {
    padding: 0.8rem;
    border-top: 1px solid var(--border-dark);
    background: var(--bg-elevated);
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== CHAT STYLES ===== */
.chat-section {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    max-height: 600px;
    border: 1px solid var(--border-dark);
}

.chat-header {
    background: var(--bg-card);
    color: var(--text-light);
    padding: 18px 22px;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid var(--border-dark);
}

.chat-messages-area {
    flex: 1;
    padding: 20px 22px;
    overflow-y: auto;
    background: var(--bg-elevated);
    min-height: 300px;
    max-height: 400px;
    display: flex;
    flex-direction: column;
}

/* Ancla el hilo abajo sin el recorte de justify-content:flex-end */
.chat-messages-area > *:first-child {
    margin-top: auto;
}

.chat-message {
    margin-bottom: 14px;
    display: flex;
    animation: fadeIn 0.3s ease;
}

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

.chat-message.sent {
    justify-content: flex-end;
}

.chat-message-bubble {
    max-width: min(70%, 62ch);
    padding: 11px 15px;
    border-radius: 14px;
    word-wrap: break-word;
    box-shadow: none;
    font-size: 14px;
    line-height: 1.5;
}

.chat-message.received .chat-message-bubble {
    background: var(--bg-card);
    color: var(--text-light);
    border: 1px solid var(--border-dark);
    border-bottom-left-radius: 4px;
}

.chat-message.sent .chat-message-bubble {
    background: var(--accent-magenta);
    color: white;
    border: 1px solid var(--accent-magenta);
    border-bottom-right-radius: 4px;
}

.chat-message-time {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    opacity: 0.65;
    margin-top: 6px;
    display: block;
}

.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 16px 18px;
    border-top: 1px solid var(--border-dark);
    background: var(--bg-card);
}

.chat-input {
    flex: 1;
    padding: 12px 18px;
    border: 1px solid var(--border-input);
    border-radius: 999px;
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: var(--bg-elevated);
    color: var(--text-light);
}

.chat-input::placeholder {
    color: var(--text-subtle);
}

.chat-input:focus {
    outline: none;
    border-color: var(--accent-magenta);
    box-shadow: 0 0 0 3px rgba(124, 58, 94, 0.08);
}

.chat-send-btn {
    padding: 12px 26px;
    background: var(--accent-magenta);
    color: white;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
    box-shadow: none;
    font-family: var(--font-body);
}

.chat-send-btn:hover {
    background: var(--accent-magenta-hover);
}

.chat-empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
}

.chat-empty-state .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.search-sheet-header {
    display: none;
}

/* En movil el panel deja de ser un desplegable en linea y pasa a hoja
   completa. El toggle sigue siendo el mismo (display none/block). */
@media (max-width: 900px) {
    .search-panel-content {
        position: fixed;
        inset: 0;
        z-index: 1100;
        margin: 0;
        border: none;
        border-radius: 0;
        background: var(--bg-card);
        overflow-y: auto;
        padding: 0 var(--page-gutter) 96px;
    }

    .search-sheet-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        position: sticky;
        top: 0;
        z-index: 1;
        margin: 0 calc(var(--page-gutter) * -1);
        padding: 16px var(--page-gutter);
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-dark);
        font-size: 17px;
        font-weight: 600;
        letter-spacing: -0.02em;
        color: var(--text-light);
    }

    .search-sheet-close {
        width: 44px;
        height: 44px;
        margin-right: -10px;
        border: none;
        background: transparent;
        color: var(--text-muted);
        font-size: 16px;
        cursor: pointer;
    }

    .search-grid {
        margin-bottom: 4px;
    }

    .search-grid-3 {
        grid-template-columns: 1fr;
    }

    /* Edad desde / Edad hasta comparten fila; estado y orden a lo ancho */
    .search-grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .search-grid-4 > .search-field:nth-child(3),
    .search-grid-4 > .search-field:nth-child(4) {
        grid-column: 1 / -1;
    }

    .search-actions-row {
        border-top: none;
        padding-top: 4px;
    }

    /* Barra fija al pie de la hoja: Limpiar 1fr, Buscar 2fr */
    .search-buttons {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 10px;
        padding: 12px var(--page-gutter);
        background: var(--bg-card);
        border-top: 1px solid var(--border-dark);
    }

    .search-btn-clear {
        border: 1px solid var(--border-input);
        border-radius: 8px;
        text-align: center;
        min-height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .search-btn-submit {
        min-height: 46px;
    }
}

/* ===== PROFILE DETAIL ===== */
.profile-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    padding: 28px 32px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 28px;
    background: var(--accent-magenta) center center / cover no-repeat;
}

.profile-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(46, 42, 39, 0.82) 0%, rgba(46, 42, 39, 0.35) 55%, rgba(46, 42, 39, 0.15) 100%);
}

.profile-hero-back {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
}

.profile-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.profile-hero-kicker {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.profile-hero-name {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #ffffff;
    line-height: 1.05;
    margin-bottom: 8px;
}

.profile-hero-meta {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.86);
}

.profile-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.profile-action-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 22px;
    background: var(--accent-magenta);
    color: #fff;
    border: 1px solid var(--accent-magenta);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    font-family: var(--font-body);
}

.profile-action-primary:hover {
    background: var(--accent-magenta-hover);
}

.profile-action-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 22px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
}

.profile-action-secondary.is-active {
    color: var(--accent-magenta);
}

/* Grilla contenido / ficha */
.profile-detail-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}

.profile-detail-content {
    order: 1;
    min-width: 0;
}

.profile-detail-sidebar {
    order: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 88px;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 24px;
}

.profile-detail-sidebar .profile-card {
    margin-bottom: 0;
}

.profile-card-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.profile-card-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-light);
}

.profile-card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.profile-media-count {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    white-space: nowrap;
}

.profile-about {
    color: var(--text-muted);
    line-height: 1.65;
    font-size: 15px;
    max-width: 70ch;
}

.profile-card-note {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

/* Ficha */
.profile-facts {
    display: flex;
    flex-direction: column;
}

.profile-fact {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #f0ebe4;
}

.profile-fact:last-child {
    border-bottom: none;
}

.profile-fact dt {
    font-size: 14px;
    color: var(--text-muted);
}

.profile-fact dd {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    text-align: right;
}

.profile-boost-btn {
    padding: 7px 14px;
    background: transparent;
    border: 1px solid var(--accent-outline);
    color: var(--accent-magenta);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
}

/* Visitas */
.profile-visitors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.profile-visitor {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 5px;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
}

.profile-visitor:hover {
    border-color: var(--accent-outline);
}

.profile-visitor-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.profile-visitor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-visitor-avatar.is-initial {
    background: var(--accent-magenta);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

/* Medios */
.media-section {
    color: var(--text-light);
}

.media-block + .media-block {
    margin-top: 16px;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.media-grid-video {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.media-item {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
    background: var(--bg-elevated);
}

.media-thumb {
    aspect-ratio: 1;
    overflow: hidden;
}

.media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

/* ===== VISOR DE FOTOS ===== */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: min(100%, 1000px);
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.lightbox-nav,
.lightbox-close {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    cursor: pointer;
    line-height: 1;
    border-radius: 999px;
    transition: background 0.2s ease;
}

.lightbox-nav:hover,
.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 20px;
}

.lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    font-size: 18px;
}

.lightbox-counter {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
}

@media (max-width: 768px) {
    .lightbox-overlay {
        gap: 6px;
        padding: 12px;
    }

    .lightbox-nav {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .lightbox-image {
        max-height: 75vh;
    }
}

.media-item video {
    width: 100%;
    display: block;
}

.media-likes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px;
    background: var(--bg-card);
    font-size: 12px;
    color: var(--text-muted);
}

.media-likes button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    padding: 0;
    line-height: 1;
}

.media-empty {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 14px;
}

/* Paywall */
.premium-paywall {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--accent-soft-bg);
    border: 1px solid var(--accent-soft-border);
    border-radius: 12px;
    padding: 20px 22px;
    margin-top: 16px;
}

.premium-paywall h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 5px;
}

.premium-paywall p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 44ch;
}

.profile-plans-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 10px 20px;
    background: var(--accent-magenta);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    flex-shrink: 0;
}

.profile-plans-btn:hover {
    background: var(--accent-magenta-hover);
}

.chat-locked {
    padding: 18px;
    text-align: center;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-dark);
}

.chat-locked p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 10px;
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 900px) {
    .profile-hero {
        min-height: 300px;
        border-radius: 0;
        margin: -2rem calc(var(--page-gutter) * -1) 20px;
        padding: 24px 22px;
    }

    .profile-hero-name {
        font-size: 30px;
    }

    .profile-hero-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-hero-actions {
        width: 100%;
    }

    .profile-action-primary,
    .profile-action-secondary {
        flex: 1;
    }

    .profile-detail-sidebar {
        position: static;
    }

    .media-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .media-grid-video {
        grid-template-columns: 1fr;
    }

    /* Mi perfil: avatar al lado del nombre, no centrado */
    .account-identity {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 14px;
        text-align: left;
    }

    .account-identity-text {
        flex: 1;
        min-width: 0;
    }

    .account-avatar {
        width: 64px;
        height: 64px;
        margin: 0;
        flex-shrink: 0;
        font-size: 24px;
    }

    .account-identity-name {
        margin-bottom: 2px;
    }

    .account-identity-meta {
        margin-bottom: 0;
    }

    .account-public-link {
        flex-basis: 100%;
        width: 100%;
        margin-top: 2px;
    }

    /* Pestanas como fila scrolleable */
    .account-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .account-tabs::-webkit-scrollbar {
        display: none;
    }

    .account-submit {
        width: 100%;
    }
}

/* ===== SEARCH PANEL ===== */
.search-panel {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.search-panel-header {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    border: 1px solid var(--border-dark);
    transition: border-color 0.2s ease;
}

.search-panel-header:hover {
    border-color: var(--accent-outline);
}

.search-panel-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.search-criteria-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    min-width: 0;
}

.search-criteria-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    line-height: 1;
}

.search-criteria-value {
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.2;
}

/* Criterios activos como chips */
.search-chips {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--accent-soft-bg);
    border: 1px solid var(--accent-soft-border);
    color: var(--accent-magenta);
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.search-toggle-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 999px;
    background: var(--bg-secondary);
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.search-toggle-btn:hover {
    background: var(--accent-soft-bg);
    color: var(--accent-magenta);
}

.search-toggle-icon {
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.search-panel-content {
    display: none;
    background: var(--bg-card);
    border-radius: 0 0 12px 12px;
    padding: 22px 18px 18px;
    border: 1px solid var(--border-dark);
    border-top: none;
    margin-top: -12px;
}

.search-grid {
    display: grid;
    gap: 18px 20px;
    margin-bottom: 20px;
}

.search-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.search-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.search-field label {
    display: block;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    margin-bottom: 8px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 11px 13px;
    border-radius: 8px;
    border: 1px solid var(--border-input);
    background: var(--bg-elevated);
    color: var(--text-light);
    font-size: 14px;
    font-family: var(--font-body);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.search-field input::placeholder {
    color: var(--text-subtle);
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: var(--accent-magenta);
    box-shadow: 0 0 0 3px rgba(124, 58, 94, 0.06);
}

.search-field select option {
    background: var(--bg-card);
    color: var(--text-light);
}

.search-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid var(--border-dark);
}

.search-checkboxes {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Los checkboxes son chips seleccionables */
.search-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    user-select: none;
    border: 1px solid var(--border-input);
    border-radius: 999px;
    padding: 8px 15px;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.search-checkbox:hover {
    border-color: var(--accent-outline);
    color: var(--text-light);
}

.search-checkbox input {
    display: none;
}

.search-checkbox-mark {
    width: 0;
    height: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: width 0.15s ease;
}

.search-checkbox-mark::after {
    content: '\2713';
    font-size: 12px;
    line-height: 1;
}

.search-checkbox input:checked + .search-checkbox-mark {
    width: 12px;
}

.search-checkbox:has(input:checked) {
    background: var(--accent-soft-bg);
    border-color: var(--accent-soft-border);
    color: var(--accent-magenta);
}

.search-note {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 190px;
    line-height: 1.4;
}

.search-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-btn-clear {
    padding: 11px 16px;
    background: transparent;
    color: var(--text-muted);
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.search-btn-clear:hover {
    color: var(--text-light);
}

.search-btn-submit {
    padding: 11px 26px;
    background: var(--accent-magenta);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
    font-family: var(--font-body);
}

.search-btn-submit:hover {
    background: var(--accent-magenta-hover);
}

/* ===== RESPONSIVE UPDATES ===== */
@media (max-width: 768px) {
    /* Show hamburger menu */
    .hamburger-menu {
        display: flex;
    }

    /* Hide desktop navigation items */
    .navbar-right .quick-login,
    .navbar-right .login-prompt,
    .navbar-right .forgot-password-link,
    .navbar-left .language-selector {
        display: none;
    }

    /* Navbar adjustments - hamburger menu to the left */
    .navbar {
        padding: 0 14px;
    }

    .navbar-content {
        min-height: 56px;
        gap: 12px;
    }

    .navbar-left {
        gap: 10px;
    }

    .navbar-logo img {
        height: 28px;
    }

    .navbar-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    .navbar-left {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
    }

    .navbar-right {
        flex: 0 0 auto;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    /* Hide "Mi Perfil" text on mobile, show icon */
    .mi-perfil-text {
        display: none !important;
    }

    .mi-perfil-icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: var(--bg-elevated);
        border-radius: 50%;
        font-size: 1.1rem;
        text-decoration: none;
        border: 1px solid var(--border-dark);
    }

    /* En movil los links viven en la barra inferior; el boton Premium se
       queda, mas chico, al lado del avatar */
    .topbar-nav {
        display: none;
    }

    .navbar-premium-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .navbar-logout-btn {
        display: none;
    }

    /* Search form responsive */
    .search-grid-3 {
        grid-template-columns: 1fr 1fr;
    }

    .search-grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .search-panel-content {
        padding: 1rem;
    }

    .search-panel-header {
        padding: 0.8rem 1rem;
    }

    .search-actions-row {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .search-buttons {
        justify-content: stretch;
    }

    .search-btn-clear,
    .search-btn-submit {
        flex: 1;
        text-align: center;
    }

    .registration-card {
        width: 100%;
    }

    /* Dashboard responsive */
    .dashboard-main,
    .page-main {
        padding: 1.2rem var(--page-gutter);
    }

    /* Chat responsive */
    .chat-section {
        max-height: 500px;
    }

    .chat-messages-area {
        max-height: 300px;
    }

    .chat-message-bubble {
        max-width: 85%;
    }

    .chat-input-area {
        padding: 12px 14px;
    }

    .chat-send-btn {
        padding: 12px 20px;
    }

    .carousel-header {
        gap: 12px;
    }
}

@media (max-width: 480px) {

    .navbar {
        padding: 0.6rem 0.8rem;
    }

    .registration-logo h2 {
        font-size: 2rem;
    }

    .chat-message-bubble {
        max-width: 90%;
        padding: 0.8rem 1rem;
    }
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-card);
    border-top: 1px solid var(--border-dark);
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-bottom-link {
    flex: 1;
    min-width: 44px;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 2px;
    text-decoration: none;
    color: var(--text-muted);
    position: relative;
}

.mobile-bottom-link .nav-icon {
    width: 22px;
    height: 22px;
    color: currentColor;
}

.mobile-bottom-link span {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mobile-bottom-link.active {
    color: var(--accent-magenta);
}

.mobile-bottom-badge {
    position: absolute;
    top: 6px;
    left: 50%;
    margin-left: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 16px;
    min-width: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--accent-magenta);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* Espacio para que la barra fija no tape el contenido, solo en las
       paginas que la tienen (las de pago y conversacion no la usan) */
    body:has(.mobile-bottom-nav) {
        padding-bottom: 76px;
    }
}

/* ===== NAV FRAGMENT CLASSES ===== */
.nav-badge {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 1rem;
    background: var(--accent-magenta);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

.topbar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-magenta);
    color: white;
    font-size: 11px;
    font-weight: 600;
    height: 18px;
    min-width: 18px;
    padding: 0 5px;
    border-radius: 999px;
}

.mobile-logout-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(124, 58, 94, 0.12);
    font-family: var(--font-body);
}

.navbar-logout-btn {
    color: var(--text-subtle);
    text-decoration: none;
    padding: 4px 2px;
    background: transparent;
    border: none;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    font-family: var(--font-body);
}

.navbar-logout-btn:hover {
    color: var(--accent-magenta);
}

.navbar-panel-link {
    color: var(--accent-magenta);
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid var(--accent-outline);
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
}

/* ===== POPUP DE PROMO (index) ===== */
.promo-popup {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 9999;
    max-width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    animation: slideInLeft 0.4s ease-out;
}

.promo-popup-head {
    background: var(--accent-soft-bg);
    border-bottom: 1px solid var(--accent-soft-border);
    padding: 16px 18px;
    position: relative;
}

.promo-popup-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-subtle);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
}

.promo-popup-title {
    color: var(--accent-magenta);
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    padding-right: 16px;
}

.promo-popup-body {
    padding: 16px 18px;
}

.promo-popup-text {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0 0 12px;
    line-height: 1.55;
}

.promo-popup-bar {
    background: var(--bg-secondary);
    border-radius: 999px;
    height: 5px;
    overflow: hidden;
}

.promo-popup-bar > div {
    background: var(--accent-magenta);
    height: 100%;
    border-radius: 999px;
}

.promo-popup-cta {
    display: block;
    margin-top: 14px;
    padding: 11px;
    background: var(--accent-magenta);
    color: white;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.promo-popup-cta:hover {
    background: var(--accent-magenta-hover);
}

/* ===== MI PERFIL + CUENTA ===== */
.account-tabs {
    display: flex;
    align-items: center;
    gap: 26px;
    border-bottom: 1px solid var(--border-dark);
    margin-bottom: 28px;
}

.account-tab {
    padding: 0 0 12px;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.account-tab:hover {
    color: var(--text-light);
}

.account-tab.active {
    color: var(--text-light);
    border-bottom-color: var(--accent-magenta);
}

.account-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 24px;
    align-items: start;
}

.account-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 88px;
}

.account-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

.account-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 22px 24px;
}

.account-identity {
    text-align: center;
}

.account-avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--accent-magenta);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 600;
}

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

.account-identity-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-light);
    margin-bottom: 4px;
}

.account-identity-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.account-public-link {
    display: block;
    padding: 10px;
    border: 1px solid var(--accent-outline);
    border-radius: 8px;
    color: var(--accent-magenta);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.account-public-link:hover {
    background: var(--accent-soft-bg);
}

.account-card-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.account-section-title {
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-light);
    margin-bottom: 6px;
}

.account-section-note {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 18px;
    max-width: 70ch;
}

.account-subtitle {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-light);
    margin: 20px 0 12px;
}

.account-subtitle span {
    color: var(--text-subtle);
    font-weight: 400;
}

.account-section-foot {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f0ebe4;
    max-width: 70ch;
}

.account-fact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #f0ebe4;
    font-size: 14px;
    color: var(--text-muted);
}

.account-fact:last-child {
    border-bottom: none;
}

.account-fact > span:last-child,
.account-fact strong {
    color: var(--text-light);
    font-weight: 500;
    text-align: right;
}

.account-state-ok {
    color: #16a34a !important;
    font-weight: 600 !important;
}

.account-state-on {
    color: var(--accent-magenta) !important;
}

.account-locked {
    color: var(--text-subtle) !important;
    font-weight: 400 !important;
}

/* Formularios */
.account-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    margin-top: 16px;
}

.account-form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.account-field.is-full {
    grid-column: 1 / -1;
}

.account-field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.account-field input,
.account-field select,
.account-field textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border-input);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text-light);
    font-size: 14px;
    font-family: var(--font-body);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-field textarea {
    resize: vertical;
    min-height: 96px;
}

.account-field input::placeholder,
.account-field textarea::placeholder {
    color: var(--text-subtle);
}

.account-field input:focus,
.account-field select:focus,
.account-field textarea:focus {
    outline: none;
    border-color: var(--accent-magenta);
    box-shadow: 0 0 0 3px rgba(124, 58, 94, 0.07);
}

.account-form-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.account-submit {
    min-height: 44px;
    padding: 12px 24px;
    background: var(--accent-magenta);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s ease;
}

.account-submit:hover {
    background: var(--accent-magenta-hover);
}

.account-form-note {
    font-size: 13px;
    color: var(--text-subtle);
}

.account-toggle-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--accent-outline);
    color: var(--accent-magenta);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
}

.account-toggle-btn:hover {
    background: var(--accent-soft-bg);
}

/* Zona de peligro: sin rojos ni bordes gruesos */
.account-danger-note {
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid #f0ebe4;
    font-size: 13px;
    color: var(--text-subtle);
}

/* Mensajes de exito / error */
.form-flash {
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid;
}

.form-flash.is-ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.form-flash.is-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

/* Gestion de fotos y videos */
.media-manage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.media-manage-grid-video {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.media-upload-cell {
    position: relative;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    padding: 12px;
    border: 1px dashed var(--accent-outline);
    background: var(--accent-soft-bg);
    border-radius: 10px;
    text-align: center;
}

/* Toda la celda es el area clickeable: el input nativo dibuja un
   "Choose File / No file chosen" que no se puede estilar y se corta en
   pantallas chicas, asi que se oculta y se muestra el nombre del archivo. */
.media-upload-drop {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

.media-manage-grid-video .media-upload-cell {
    aspect-ratio: 16 / 10;
}

.media-upload-plus {
    font-size: 20px;
    line-height: 1;
    color: var(--accent-magenta);
}

.media-upload-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-magenta);
}

.media-upload-hint {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* Vista previa de la imagen elegida: reemplaza al "+" dentro de la celda */
.media-upload-preview {
    max-width: 100%;
    max-height: 96px;
    border-radius: 8px;
    object-fit: cover;
}

.media-upload-cell.has-preview .media-upload-plus,
.media-upload-cell.has-preview .media-upload-title,
.media-upload-cell.has-preview .media-upload-hint {
    display: none;
}

/* Oculto pero enfocable y enviado con el formulario */
.media-upload-cell input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.media-upload-file {
    max-width: 100%;
    font-size: 12px;
    color: var(--accent-magenta);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.media-upload-cell.has-file .media-upload-file {
    text-decoration: none;
    direction: rtl;
    text-align: center;
}

.media-upload-cell.has-file {
    border-style: solid;
}

.media-upload-btn {
    margin-top: 10px;
    flex-shrink: 0;
    padding: 7px 14px;
    background: var(--accent-magenta);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
}

.media-manage-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
    background: var(--bg-elevated);
}

.media-manage-item.is-video {
    aspect-ratio: auto;
}

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

.media-manage-item video {
    width: 100%;
    display: block;
}

.media-state {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 4px;
}

.media-state.is-pending {
    color: var(--accent-magenta);
}

.media-manage-item.is-video .media-state {
    position: static;
}

.media-video-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-card);
}

.media-video-delete {
    padding: 4px 10px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--border-input);
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    font-family: var(--font-body);
}

.media-delete {
    position: absolute;
    top: 6px;
    right: 6px;
}

.media-delete button {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.media-delete button:hover {
    color: #dc2626;
}

@media (max-width: 900px) {
    .account-layout {
        grid-template-columns: 1fr;
    }

    .account-sidebar {
        position: static;
    }

    .account-form-grid,
    .account-form-grid-3 {
        grid-template-columns: 1fr;
    }

    .media-manage-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .media-manage-grid-video {
        grid-template-columns: 1fr;
    }

    /* En movil el dropzone toma la fila entera y deja de ser cuadrado:
       asi el nombre del archivo y el boton entran sin apretarse */
    .media-upload-cell {
        grid-column: 1 / -1;
        aspect-ratio: auto;
        padding: 18px;
    }

    .media-manage-grid-video .media-upload-cell {
        aspect-ratio: auto;
    }

    .account-tabs {
        gap: 18px;
        overflow-x: auto;
    }
}

/* ===== PREMIUM ===== */
.premium-page {
    margin-top: 8px;
}

/* CTA fijo al pie, solo en movil */
.premium-cta-fixed {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 76px;
    z-index: 900;
    width: 100%;
    padding: 15px var(--page-gutter);
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-dark);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: not-allowed;
}

/* El avatar y el texto van uno al lado del otro en movil */
.account-identity-text {
    min-width: 0;
}

.premium-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.premium-hero-copy {
    max-width: 70ch;
}

.premium-hero-title {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-light);
    margin-bottom: 10px;
}

.premium-hero-sub {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.premium-soon {
    background: var(--accent-soft-bg);
    border: 1px solid var(--accent-soft-border);
    border-radius: 12px;
    padding: 18px 20px;
    max-width: 380px;
}

.premium-soon h2 {
    font-size: 15px;
    font-weight: 600;
    color: var(--accent-magenta);
    margin-bottom: 6px;
}

.premium-soon p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Planes en una fila de tarjetas iguales */
.premium-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin-bottom: 28px;
}

.premium-plan {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
}

.premium-plan.is-featured {
    border-color: var(--accent-outline);
}

.premium-plan-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.premium-plan-head h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
}

.premium-plan-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-magenta);
    background: var(--accent-soft-bg);
    border: 1px solid var(--accent-soft-border);
    border-radius: 999px;
    padding: 4px 10px;
    white-space: nowrap;
}

.premium-plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 5px;
}

.premium-plan-amount {
    font-size: 38px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text-light);
    line-height: 1;
}

.premium-plan-period {
    font-size: 14px;
    color: var(--text-muted);
}

.premium-plan-total {
    font-size: 13px;
    color: var(--text-subtle);
    margin-bottom: 20px;
}

.premium-plan-btn {
    width: 100%;
    margin-top: auto;
    padding: 13px;
    background: var(--bg-elevated);
    color: var(--text-subtle);
    border: 1px solid var(--border-input);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: not-allowed;
}

/* Beneficios */
.premium-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    align-items: start;
}

.premium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 22px 24px;
}

.premium-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.premium-card-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 6px;
}

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

.premium-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0ebe4;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.5;
}

.premium-list li > span:last-child {
    max-width: 70ch;
}

.premium-list li:last-child {
    border-bottom: none;
}

.premium-list.is-compact li {
    font-size: 13px;
    padding: 10px 0;
}

.premium-check {
    color: var(--accent-magenta);
    font-size: 13px;
    line-height: 1.5;
    flex-shrink: 0;
}

.premium-note {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Estado premium activo */
.premium-active-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 24px;
}

.premium-active-title {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-light);
    margin-bottom: 5px;
}

.premium-active-note {
    font-size: 14px;
    color: var(--text-muted);
}

.premium-active-state,
.premium-state-ok {
    color: #16a34a;
    font-weight: 600;
    font-size: 14px;
}

.premium-fact {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 0;
    border-bottom: 1px solid #f0ebe4;
    font-size: 14px;
    color: var(--text-muted);
}

.premium-fact:last-child {
    border-bottom: none;
}

@media (max-width: 900px) {
    /* Los 3 planes en una fila de tarjetas angostas */
    .premium-plans {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    /* min-width:0 deja que las columnas bajen del ancho del contenido: sin
       esto el tag "POPULAR - -20%" con nowrap estiraba su columna y la
       grilla se salia de la pantalla */
    .premium-plan {
        min-width: 0;
        padding: 14px 10px;
    }

    .premium-plan-head {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 8px;
    }

    .premium-plan-head h3 {
        font-size: 15px;
    }

    .premium-plan-tag {
        font-size: 11px;
        padding: 3px 7px;
        letter-spacing: 0.02em;
        white-space: normal;
        max-width: 100%;
    }

    .premium-plan-amount {
        font-size: 24px;
    }

    .premium-plan-period {
        font-size: 11px;
    }

    /* El total no entra en una tarjeta de ~115px */
    .premium-plan-total {
        display: none;
    }

    /* Un solo CTA fijo al pie en vez de uno por tarjeta */
    .premium-plan-btn {
        display: none;
    }

    .premium-cta-fixed {
        display: block;
    }

    .premium-benefits-grid {
        grid-template-columns: 1fr;
    }

    .premium-hero-title {
        font-size: 28px;
    }

    .premium-soon {
        max-width: none;
    }
}

/* ===== SITE FOOTER ===== */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-dark);
    margin-top: 2rem;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 160px 1fr;
    gap: 2.5rem 3rem;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 3rem var(--page-gutter) 2rem;
    align-items: start;
    box-sizing: border-box;
}

/* Brand column */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.footer-logo-link {
    display: inline-block;
    width: fit-content;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 260px;
    font-family: var(--font-body);
}

.footer-age-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid var(--accent-outline);
    color: var(--accent-magenta);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
}

/* Generic footer column */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-col-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.83rem;
    font-family: var(--font-body);
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--accent-magenta);
}

/* Contact form column */
.footer-contact-desc {
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.5rem;
    max-width: 60ch;
}

.footer-contact-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.footer-contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 520px;
}

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

.footer-contact-form input,
.footer-contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-input);
    border-radius: 8px;
    background: var(--bg-elevated);
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.83rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.footer-contact-form input::placeholder,
.footer-contact-form textarea::placeholder {
    color: var(--text-muted);
}

.footer-contact-form input:focus,
.footer-contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-magenta);
    box-shadow: 0 0 0 3px rgba(124, 58, 94, 0.07);
}

.footer-contact-form textarea {
    height: 90px;
    resize: vertical;
}

.footer-contact-btn {
    align-self: flex-start;
    padding: 9px 18px;
    background: transparent;
    color: var(--accent-magenta);
    border: 1px solid var(--accent-outline);
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.footer-contact-btn:hover {
    background: var(--accent-soft-bg);
}

.footer-contact-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding: 1rem var(--page-gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-body);
    flex-wrap: wrap;
    gap: 0.3rem;
}

/* Footer responsive */
@media (max-width: 900px) {
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-contact-col {
        grid-column: 1 / -1;
    }
    .footer-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-inner {
        grid-template-columns: 1fr;
        padding: 2rem var(--page-gutter) 1.5rem;
        gap: 1.8rem;
    }
    .footer-form-row {
        grid-template-columns: 1fr;
    }
    .footer-contact-col {
        grid-column: auto;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding: 0.8rem var(--page-gutter);
    }
    .footer-contact-btn {
        align-self: stretch;
        text-align: center;
    }
}

/* ===== POLICY MODAL ===== */
.policy-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    backdrop-filter: blur(3px);
}

.policy-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.policy-modal {
    background: var(--bg-card);
    border-radius: 14px;
    width: 92%;
    max-width: 640px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.policy-modal-close {
    position: absolute;
    top: 0.8rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

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

.policy-lang-toggle {
    display: flex;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.policy-lang-btn {
    padding: 0.3rem 0.9rem;
    border: 1px solid var(--border-dark);
    background: var(--bg-elevated);
    color: var(--text-muted);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s ease;
}

.policy-lang-btn.active {
    background: var(--accent-magenta);
    color: white;
    border-color: var(--accent-magenta);
}

.policy-section h2 {
    font-size: 1.3rem;
    color: var(--accent-magenta);
    margin-bottom: 0.8rem;
    font-family: var(--font-display);
}

.policy-section h3 {
    font-size: 1rem;
    color: var(--text-dark);
    margin: 1rem 0 0.4rem;
    font-family: var(--font-display);
}

.policy-section p {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.policy-section ul {
    margin: 0.4rem 0 0.8rem 1.4rem;
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.65;
    font-family: var(--font-body);
}

.policy-section li {
    margin-bottom: 0.3rem;
}

@media (max-width: 600px) {
    .policy-modal {
        width: 96%;
        padding: 1.2rem;
        max-height: 85vh;
    }
}

/* ===== PROFILE DETAIL & PREMIUM RESPONSIVE ===== */
@media (max-width: 900px) {
    .profile-detail-grid,
    .premium-page-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== MOBILE INDEX PAGE ===== */
@media (max-width: 768px) {
    /* El acceso de usuarios existentes vive al pie, no arriba del registro */
    .mobile-login-card {
        display: block;
        width: auto;
        margin: 0 22px 28px;
    }

    .mobile-login-forgot {
        display: block;
        text-align: center;
        margin-top: 8px;
        color: var(--text-muted);
        font-size: 13px;
        text-decoration: none;
    }

    /* Hero adjustments */
    .hero {
        padding: 0;
        min-height: auto;
    }

    /* Formulario compacto */
    .registration-form .form-grid {
        gap: 12px;
    }

    .registration-form input,
    .registration-form select {
        padding: 12px;
        font-size: 15px;
    }

    .registration-submit {
        padding: 15px;
    }
}

/* ===== PREMIUM FEATURES ===== */

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 0.3rem;
    letter-spacing: 0.3px;
}

/* Verificado: arriba a la derecha */
.verified-badge-card {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.94);
    color: var(--accent-magenta);
    font-size: 11px;
    font-weight: 600;
    border-radius: 999px;
    z-index: 2;
}

.boost-active-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(255, 255, 255, 0.94);
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 999px;
    z-index: 2;
}

.premium-blur-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.blurred-profiles {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

.premium-blur-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(246, 243, 239, 0.7);
    backdrop-filter: blur(2px);
    z-index: 10;
    text-align: center;
    padding: 2rem;
    gap: 1rem;
}

.premium-blur-overlay h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin: 0;
}

.premium-blur-overlay p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.read-receipt {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    opacity: 0.65;
    display: block;
    text-align: right;
    margin-top: 2px;
}

/* Filtros premium: se ven, pero estan cerrados (el candado va en el label) */
.locked-filter {
    cursor: not-allowed;
    pointer-events: none;
    color: var(--text-subtle);
    border: 1px dashed var(--accent-outline) !important;
    background: var(--accent-soft-bg) !important;
}

.locked-filter-wrapper {
    position: relative;
}

/* ===== PREMIUM UPSELL MODAL ===== */

.premium-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.premium-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.premium-modal-box {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.premium-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-elevated);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s;
}

.premium-modal-close:hover {
    background: var(--bg-secondary);
}

.premium-modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.premium-modal-crown {
    font-size: 2.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.premium-modal-header h2 {
    color: var(--text-light);
    font-size: 1.6rem;
    margin: 0 0 0.4rem;
}

.premium-modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.premium-modal-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: grid;
    gap: 0.6rem;
}

.premium-modal-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    background: var(--bg-elevated);
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.pmb-icon {
    font-size: 1rem;
    flex-shrink: 0;
    width: 1.4rem;
    text-align: center;
}

.premium-modal-cta {
    display: block;
    width: 100%;
    padding: 0.9rem;
    background: var(--gradient-accent);
    color: white;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(124, 58, 94, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}

.premium-modal-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(124, 58, 94, 0.35);
}

.premium-modal-note {
    text-align: center;
    color: var(--accent-magenta);
    font-size: 0.82rem;
    font-weight: 600;
    margin: 0.9rem 0 0;
}

@media (max-width: 480px) {
    .premium-modal-box {
        padding: 1.5rem;
    }
}
