/* Home — design system alineado con directorio oscuro */

*, *::before, *::after {
    box-sizing: border-box;
}

.home-page {
    min-height: 100vh;
    background: #0a0c12;
    color: #f4f5f8;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    margin: 0;
}

.storage-banner {
    background: #7f1d1d;
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.45;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-main {
    position: relative;
    overflow: hidden;
}

.home-bg {
    pointer-events: none;
    position: absolute;
    inset: -20% 0 auto;
    height: 70vh;
    background:
        radial-gradient(ellipse 55% 45% at 15% 25%, rgba(255, 107, 157, 0.22), transparent 70%),
        radial-gradient(ellipse 50% 40% at 85% 15%, rgba(139, 124, 248, 0.18), transparent 65%),
        radial-gradient(ellipse 40% 35% at 50% 60%, rgba(255, 158, 200, 0.08), transparent 70%);
    z-index: 0;
}

.home-main .container {
    position: relative;
    z-index: 1;
}

.home-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.home-page header {
    background: linear-gradient(135deg, #1a1d29 0%, #12141c 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.home-page .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
    flex-wrap: wrap;
}

.home-page .logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
}

.home-page .logo-text {
    background: linear-gradient(135deg, #ff6b9d, #8b7cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-page .logo-emoji {
    font-size: 1.5rem;
}

.home-page nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.home-page .nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.home-page .nav-menu a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
}

.home-page .nav-menu a:hover {
    background: rgba(255, 107, 157, 0.15);
    color: #ff9ec8;
}

.home-page .auth-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.home-page .btn {
    padding: 0.55rem 1.1rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: transform 0.2s, opacity 0.2s;
}

.home-page .btn-primary {
    background: linear-gradient(135deg, #ff6b9d, #8b7cf8);
    color: #fff;
}

.home-page .btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.home-page .btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}

.home-page .mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
}

.home-page .mobile-menu-btn span {
    display: block;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
}

.home-page .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.home-page .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.home-page .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.home-page .user-menu {
    display: none;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.home-page .user-menu.show {
    display: flex;
}

.home-page .user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: #1a1d29;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem 0;
    min-width: 160px;
    z-index: 100;
}

.home-page .user-menu:hover .user-dropdown,
.home-page .user-menu:focus-within .user-dropdown {
    display: block;
}

.home-page .user-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
}

.home-page .user-dropdown a:hover {
    background: rgba(255, 107, 157, 0.12);
}

.home-hero {
    max-width: 440px;
    margin: 0 auto;
    padding: clamp(1.25rem, 4vw, 2.5rem) 0 clamp(2rem, 6vw, 3.5rem);
    text-align: center;
}

@media (min-width: 768px) {
    .home-hero {
        max-width: 480px;
    }
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #ff9ec8;
    margin: 0 0 0.75rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(255, 107, 157, 0.12);
    border: 1px solid rgba(255, 107, 157, 0.25);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.85rem, 6vw, 2.75rem);
    margin: 0 0 0.65rem;
    line-height: 1.15;
    background: linear-gradient(135deg, #ff6b9d, #8b7cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .hero-emoji {
    -webkit-text-fill-color: initial;
    font-size: 1.15em;
    vertical-align: middle;
}

.hero-tagline {
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(0.92rem, 2.8vw, 1.05rem);
    line-height: 1.5;
    margin: 0 auto 1.25rem;
    max-width: 28rem;
}

.hero-search-card {
    text-align: left;
    background: linear-gradient(165deg, rgba(26, 29, 41, 0.92), rgba(18, 20, 28, 0.88));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 1.15rem;
    margin-bottom: 1.25rem;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-field-group {
    margin-bottom: 1rem;
}

.hero-field-group:last-child {
    margin-bottom: 0;
}

.hero-field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.45rem;
}

.hero-city-chips {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
}

.hero-city-chip {
    padding: 0.65rem 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.hero-city-chip:hover,
.hero-city-chip.active {
    background: rgba(255, 107, 157, 0.2);
    border-color: rgba(255, 107, 157, 0.5);
}

.hero-city-chip.active {
    box-shadow: 0 0 0 1px rgba(255, 107, 157, 0.35);
}

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

.hero-location-row input,
.hero-location-row select {
    width: 100%;
    padding: 0.8rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 0.95rem;
    min-height: 48px;
}

.hero-location-row input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.hero-location-row input:focus,
.hero-location-row select:focus,
.hero-city-chip:focus-visible,
.hero-cat-btn:focus-visible {
    outline: 2px solid rgba(255, 107, 157, 0.65);
    outline-offset: 2px;
}

.hero-location-row select option {
    background: #1a1d29;
    color: #fff;
}

.hero-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.hero-cat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.85rem 0.35rem;
    min-height: 72px;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 0.88rem;
    background: linear-gradient(145deg, rgba(255, 107, 157, 0.35), rgba(139, 124, 248, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

#heroSearchMujeres {
    background: linear-gradient(145deg, rgba(255, 107, 157, 0.45), rgba(200, 80, 140, 0.25));
}

#heroSearchHombres {
    background: linear-gradient(145deg, rgba(100, 149, 237, 0.4), rgba(139, 124, 248, 0.28));
}

#heroSearchTrans {
    background: linear-gradient(145deg, rgba(180, 120, 255, 0.4), rgba(255, 107, 157, 0.28));
}

.hero-cat-btn i {
    font-size: 1.35rem;
    opacity: 0.95;
}

.hero-cat-btn:hover,
.hero-cat-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 107, 157, 0.25);
    filter: brightness(1.08);
}

.home-hero-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.home-page .btn-block-sm {
    justify-content: center;
    width: 100%;
    min-height: 44px;
}

.home-reels-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.home-reels-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.65rem 1.1rem;
    border-radius: 999px;
    text-decoration: none;
    color: #fff;
    border: 1px solid rgba(255, 107, 157, 0.45);
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.28), rgba(139, 124, 248, 0.22));
}

.home-reels-link:hover {
    border-color: rgba(255, 107, 157, 0.45);
    color: #ff9ec8;
}

.home-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.home-trust .trust-pill {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.home-trust .trust-pill i {
    color: #ff9ec8;
    margin-right: 0.15rem;
}

.home-about {
    position: relative;
    z-index: 1;
    padding: 3.5rem 0 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(26, 29, 41, 0.6) 0%, #0a0c12 100%);
}

.home-about-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    margin: 0 0 1rem;
    background: linear-gradient(135deg, #ff6b9d, #8b7cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-about-lead {
    max-width: 720px;
    margin: 0 0 2rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(244, 245, 248, 0.88);
}

.home-about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.home-about-card {
    padding: 1.35rem 1.25rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-about-card-highlight {
    border-color: rgba(255, 107, 157, 0.35);
    background: rgba(255, 107, 157, 0.06);
}

.home-about-card i {
    font-size: 1.35rem;
    color: #ff6b9d;
    margin-bottom: 0.75rem;
}

.home-about-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #f4f5f8;
}

.home-about-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: rgba(244, 245, 248, 0.72);
}

.home-about-closing {
    max-width: 640px;
    margin: 0;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    background: rgba(139, 124, 248, 0.1);
    border-left: 3px solid #8b7cf8;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(244, 245, 248, 0.85);
}

.home-page footer {
    background: #12141c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem 0 1.5rem;
}

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

.home-page footer h3 {
    color: #fff;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.home-page footer p,
.home-page footer a,
.home-page footer li {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

.home-page footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.home-page footer li {
    margin-bottom: 0.35rem;
}

.home-page footer a {
    text-decoration: none;
}

.home-page footer a:hover {
    color: #ff9ec8;
}

.home-page .social-links {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.home-page .footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Modales home */
.home-page .modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.home-page .modal.show {
    display: flex;
}

.home-page .modal .modal-content {
    background: #1a1d29;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.home-page .modal h2 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    font-size: 1.35rem;
}

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

.home-page .form-group label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.home-page .form-group input,
.home-page .form-group select {
    width: 100%;
    padding: 0.65rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.home-page .form-toggle {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
}

.home-page .form-toggle a {
    color: #ff9ec8;
}

.home-page .age-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1rem 0;
}

.home-page .modal-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.home-page .modal-btn {
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

.home-page .modal-btn-primary {
    background: linear-gradient(135deg, #ff6b9d, #8b7cf8);
    color: #fff;
}

.home-page .modal-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.home-page body.modal-open {
    overflow: hidden;
}

.error-message,
.success-message {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3000;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    max-width: 90%;
}

.error-message {
    background: rgba(255, 77, 109, 0.95);
    color: #fff;
}

.success-message {
    background: rgba(46, 204, 113, 0.95);
    color: #fff;
}

/* Registro wizard (cuenta + verificación) */
.home-page .modal-content.register-wizard-modal {
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
}

.reg-wizard-progress {
    display: flex;
    gap: 0.35rem;
    margin: 0 0 1rem;
    flex-wrap: wrap;
}

.reg-wizard-progress-item {
    flex: 1;
    min-width: 4.5rem;
    text-align: center;
    font-size: 0.68rem;
    padding: 0.4rem 0.25rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.45);
}

.reg-wizard-progress-item.active {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.35), rgba(139, 124, 248, 0.3));
    color: #fff;
    font-weight: 600;
}

.reg-wizard-progress-item.done {
    color: rgba(125, 255, 168, 0.9);
}

.reg-wizard-step-panel {
    display: none;
}

.reg-wizard-step-panel.active {
    display: block;
}

.reg-wizard-status {
    min-height: 1.25rem;
    font-size: 0.88rem;
    margin: 0.5rem 0;
}

.reg-wizard-status.error {
    color: #ff8a9b;
}

.reg-wizard-status.info {
    color: rgba(255, 255, 255, 0.75);
}

.reg-wizard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.reg-wizard-hint {
    font-size: 0.82rem;
    opacity: 0.8;
    line-height: 1.45;
    margin: 0.35rem 0 0.75rem;
}

.reg-wizard-video-meta {
    font-size: 0.85rem;
    margin-top: 0.35rem;
    min-height: 1.2rem;
}

@media (max-width: 900px) {
    .home-page .mobile-menu-btn {
        display: flex;
        order: 2;
        margin-left: auto;
    }

    .home-page nav {
        display: none;
        width: 100%;
        order: 10;
        flex: 1 1 100%;
    }

    .home-page nav.active {
        display: block;
        padding: 0.5rem 0 1rem;
    }

    .home-page .nav-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .home-page .nav-menu a {
        text-align: center;
        padding: 0.75rem;
    }

    .home-page .auth-buttons {
        display: none;
    }

    .home-page nav.active .auth-buttons {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .home-page nav.active .auth-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 769px) {
    /* En escritorio se usa el desplegable "Cerrar Sesión" */
    .home-page #logoutBtn {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .home-page .header-content {
        flex-wrap: wrap;
        padding: 0.75rem 0;
    }

    .home-page .logo {
        order: 1;
        font-size: 1.25rem;
    }

    /* En móvil solo "Salir": el menú de usuario vacío tapaba los clics */
    .home-page .user-menu.show {
        display: none !important;
    }

    .home-page #logoutBtn {
        order: 3;
        margin-left: auto !important;
        padding: 0.45rem 0.85rem;
        font-size: 0.85rem;
        position: relative;
        z-index: 1001;
        cursor: pointer;
    }

    .home-hero {
        padding: 1rem 0 2rem;
    }

    .hero-search-card {
        padding: 1rem;
        border-radius: 16px;
    }

    .hero-location-row {
        grid-template-columns: 1fr;
    }

    .hero-category-grid {
        gap: 0.4rem;
    }

    .hero-cat-btn {
        min-height: 64px;
        font-size: 0.82rem;
    }

    .home-hero-cta {
        grid-template-columns: 1fr;
    }

    .home-page .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 1.25rem;
    }

    .home-page .footer-content .footer-section:first-child {
        grid-column: 1 / -1;
    }

    .home-page .footer-bottom p {
        font-size: 0.78rem;
        line-height: 1.45;
    }
}

@media (max-width: 380px) {
    .hero-city-chips {
        gap: 0.35rem;
    }

    .hero-city-chip {
        font-size: 0.82rem;
        padding: 0.55rem 0.25rem;
    }

    .hero-cat-btn span {
        font-size: 0.78rem;
    }
}
