/* Fotomarket - estilos globales
   Paleta: Azul corporativo + Blanco. Sin verde/amarillo/beige.
   UI compacta, tipografia minima.
*/

:root {
    --fm-primary: #0d6efd;
    --fm-primary-dark: #0a58ca;
    --fm-primary-light: #cfe2ff;
    --fm-white: #ffffff;
    --fm-dark: #1a1a1a;
    --fm-gray-100: #f8f9fa;
    --fm-gray-200: #e9ecef;
    --fm-gray-500: #6c757d;
    --fm-error: #dc3545;

    /* Tema oscuro global (alineado con el index) */
    --fm-bg: #14161b;
    --fm-surface: #1c1f26;
    --fm-surface-2: #232730;
    --fm-surface-3: #2a2f3a;
    --fm-text: #eceff6;
    --fm-muted: #9aa0b2;
    --fm-border: rgba(255, 255, 255, 0.07);
    --fm-border-strong: rgba(255, 255, 255, 0.12);
    --fm-bg-gradient: linear-gradient(180deg, #1c1f26 0%, #14161b 100%);

    /* Botones del sistema: gris semitransparente (reemplaza el azul primario) */
    --fm-btn-bg: rgba(139, 146, 156, 0.5);
    --fm-btn-bg-hover: rgba(139, 146, 156, 0.72);
    --fm-btn-border: rgba(139, 146, 156, 0.6);
    --fm-btn-fg: #eceff6;
    --fm-btn-fg-inverse: #eceff6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9rem;
    color: var(--fm-text);
    background-color: var(--fm-bg);
    background-image: var(--fm-bg-gradient);
    background-attachment: fixed;
    min-height: 100vh;
}

/* ---------- Botones Bootstrap: gris semitransparente (sin azul) ---------- */
.btn-primary {
    background-color: var(--fm-btn-bg);
    border-color: var(--fm-btn-border);
    color: var(--fm-btn-fg);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:first-child:active {
    background-color: var(--fm-btn-bg-hover);
    border-color: var(--fm-btn-border);
    color: var(--fm-btn-fg);
}
.btn-primary:disabled,
.btn-primary.disabled {
    background-color: var(--fm-btn-bg);
    border-color: var(--fm-btn-border);
    color: var(--fm-btn-fg);
}
.btn-outline-primary {
    color: var(--fm-btn-fg);
    border-color: var(--fm-btn-border);
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
    background-color: var(--fm-btn-bg);
    border-color: var(--fm-btn-border);
    color: var(--fm-btn-fg);
}
.btn-link {
    color: var(--fm-muted);
}
.btn-link:hover,
.btn-link:focus {
    color: var(--fm-text);
}

/* Navbar */
.navbar {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}
.navbar-brand {
    font-size: 1.15rem;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--fm-primary) 0%, var(--fm-primary-dark) 100%);
    color: var(--fm-white);
    padding: 3rem 0;
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-weight: 700;
    font-size: 2.2rem;
}

/* Tarjetas de eventos */
.event-card {
    border: 1px solid var(--fm-border);
    border-radius: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s;
    background: var(--fm-surface);
}
.event-card:hover {
    border-color: var(--fm-border-strong);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.event-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--fm-surface-2);
}
.event-card-body {
    padding: 0.75rem;
}
.event-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    color: var(--fm-text);
}
.event-card-meta {
    font-size: 0.75rem;
    color: var(--fm-muted);
}

/* Galeria de fotos */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}
.photo-grid-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 0.375rem;
    background: var(--fm-surface-2);
    cursor: pointer;
}
.photo-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}
.photo-grid-item:hover img {
    transform: scale(1.05);
}
.photo-grid-item .price-badge {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: var(--fm-primary);
    color: var(--fm-white);
    padding: 0.15rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Badges compactos */
.badge {
    font-size: 0.6875rem;
    padding: 0.2rem 0.4rem;
}
.badge-primary { background-color: var(--fm-primary); }

/* Formularios compactos */
.form-control, .form-select {
    font-size: 0.875rem;
}
.form-label {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

/* Indicadores HTMX */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-block; }
.htmx-request.htmx-indicator { display: inline-block; }

/* Spinner pequeno */
.spinner-border-sm {
    width: 0.8rem;
    height: 0.8rem;
    border-width: 0.15em;
}

/* Fade in */
.fade-in { animation: fadeIn 0.3s ease-in-out; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Carrito */
.cart-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--fm-border);
}
.cart-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0.25rem;
}

/* Foto detalle */
.photo-detail-preview {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: var(--fm-surface-2);
}

/* Utilidades */
.text-muted-xs {
    font-size: 0.75rem;
    color: var(--fm-muted);
}

/* Placeholder de portada de evento */
.event-cover-placeholder {
    height: 200px;
    background: var(--fm-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--fm-muted);
    font-weight: 600;
}

/* Placeholder de foto */
.photo-placeholder {
    background: var(--fm-surface-2);
}

/* Ancho maximo para input de busqueda en hero */
.search-hero-input {
    max-width: 400px;
}

/* Impresion */
@media print { .no-print { display: none !important; } }

/* =========================================================
   LANDING PAGE - Tema gris oscuro sobrio y elegante
   Fondo gris profundo, tarjetas elevadas, acentos pastel.
   ========================================================= */

:root {
    --lp-bg: #14161b;
    --lp-surface: #1c1f26;
    --lp-surface-2: #232730;
    --lp-text: #eceff6;
    --lp-muted: #9aa0b2;
    --lp-primary: #6b8cff;
    --lp-primary-dark: #5270e8;
    --lp-border: rgba(255, 255, 255, 0.07);
    --lp-blue-tint: rgba(107, 140, 255, 0.12);
    --lp-lavender-tint: rgba(149, 112, 230, 0.12);
    --lp-peach-tint: rgba(224, 138, 91, 0.12);
    --lp-pink-tint: rgba(217, 107, 154, 0.12);
    --lp-mint-tint: rgba(74, 179, 160, 0.12);
    --lp-sky-tint: rgba(74, 158, 217, 0.12);
}

body.is-landing {
    background-color: var(--lp-bg);
    color: var(--lp-text);
}

.landing {
    color: var(--lp-text);
    /* Rompe el padding de container-fluid para secciones full-bleed */
    margin: -1rem calc(var(--bs-gutter-x, 0.75rem) * -1);
}

.landing-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ---------- NAVBAR (oscura, translucida) ---------- */
.landing-navbar {
    background-color: rgba(20, 22, 27, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--lp-border);
}

.landing-navbar .navbar-brand {
    color: var(--lp-text);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.landing-navbar .navbar-brand:hover {
    color: var(--lp-primary);
}

.landing-navbar .nav-link {
    color: var(--lp-muted);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem;
}

.landing-navbar .nav-link:hover {
    color: var(--lp-primary);
}

.landing-navbar .nav-link--cta {
    background-color: var(--fm-btn-bg);
    color: var(--fm-btn-fg-inverse);
    border-radius: 0.6rem;
    padding: 0.4rem 1.1rem;
}

.landing-navbar .nav-link--cta:hover {
    background-color: var(--fm-btn-bg-hover);
    color: var(--fm-btn-fg-inverse);
}

.landing-navbar .navbar-toggler {
    border-color: var(--lp-border);
}

.landing-navbar .navbar-toggler-icon {
    filter: invert(1);
}

.landing-navbar .dropdown-menu {
    background-color: var(--lp-surface);
    border: 1px solid var(--lp-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.landing-navbar .dropdown-item {
    color: var(--lp-text);
}

.landing-navbar .dropdown-item:hover {
    background-color: var(--lp-blue-tint);
    color: var(--lp-primary);
}

.landing-navbar .dropdown-divider {
    border-color: var(--lp-border);
}

/* ---------- SECCIONES ---------- */
.landing-section {
    padding: 5.5rem 0;
}

.landing-section--alt {
    background-color: var(--lp-surface);
}

.landing-section__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.85rem;
    letter-spacing: -0.025em;
    color: var(--lp-text);
}

.landing-section__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    text-align: center;
    color: var(--lp-muted);
    margin-bottom: 3rem;
    max-width: 55ch;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ---------- HERO ---------- */
.landing-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0f1115;
}

.landing-hero__bg {
    position: absolute;
    inset: 0;
    background-image: url("../img/hero-bg.cb4946986882.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    z-index: 0;
}

.landing-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(20, 22, 27, 0.88) 0%,
        rgba(20, 22, 27, 0.65) 55%,
        rgba(20, 22, 27, 0.45) 100%
    );
    z-index: 1;
}

.landing-hero__content {
    position: relative;
    z-index: 2;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

.landing-hero__title {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.035em;
    margin-bottom: 1.5rem;
    max-width: 15ch;
    color: var(--lp-text);
}

.landing-hero__subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    color: var(--lp-muted);
    margin-bottom: 2.5rem;
    max-width: 48ch;
    line-height: 1.5;
    font-weight: 400;
}

/* ---------- BOTONES ---------- */
.landing-btn {
    display: inline-block;
    padding: 0.9rem 2.1rem;
    border-radius: 0.8rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    border: none;
    cursor: pointer;
}

.landing-btn:hover {
    transform: translateY(-2px);
}

.landing-btn--primary {
    background-color: var(--fm-btn-bg);
    color: var(--fm-btn-fg-inverse);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.landing-btn--primary:hover {
    background-color: var(--fm-btn-bg-hover);
    color: var(--fm-btn-fg-inverse);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
}

.landing-btn--light {
    background-color: var(--lp-surface-2);
    color: var(--lp-text);
    border: 1px solid var(--lp-border);
}

.landing-btn--light:hover {
    background-color: rgba(139, 146, 156, 0.18);
    color: var(--lp-text);
    border-color: var(--fm-btn-border);
}

.landing-btn--block {
    display: block;
    width: 100%;
    text-align: center;
}

/* ---------- STEPS (como funciona) ---------- */
.landing-steps {
    list-style: none;
    max-width: 720px;
    margin: 0 auto;
    padding: 0;
}

.landing-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.2rem;
    align-items: flex-start;
    padding: 1.5rem 1.75rem;
    background: var(--lp-surface);
    border-radius: 1rem;
    border: 1px solid var(--lp-border);
}

.landing-step__num {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--lp-primary);
    min-width: 2.5rem;
    line-height: 1.2;
}

.landing-step__text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--lp-muted);
}

.landing-cta-row {
    text-align: center;
    margin-top: 2.5rem;
}

/* ---------- FEATURES ---------- */
.landing-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.landing-feature {
    padding: 1.75rem;
    border-radius: 1.1rem;
    border: 1px solid var(--lp-border);
    background-color: var(--lp-surface);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(107, 140, 255, 0.3);
}

/* Tintes pastel suaves por tarjeta (sobre fondo oscuro) */
.landing-feature--1 { background-color: var(--lp-blue-tint); }
.landing-feature--2 { background-color: var(--lp-lavender-tint); }
.landing-feature--3 { background-color: var(--lp-peach-tint); }
.landing-feature--4 { background-color: var(--lp-sky-tint); }
.landing-feature--5 { background-color: var(--lp-pink-tint); }
.landing-feature--6 { background-color: var(--lp-mint-tint); }

.landing-feature__icon {
    width: 46px;
    height: 46px;
    border-radius: 0.8rem;
    background-color: var(--lp-surface-2);
    color: var(--lp-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.landing-feature__icon svg {
    width: 22px;
    height: 22px;
}

.landing-feature--2 .landing-feature__icon { color: #8b6bd9; }
.landing-feature--3 .landing-feature__icon { color: #e08a5b; }
.landing-feature--4 .landing-feature__icon { color: #4a9ed9; }
.landing-feature--5 .landing-feature__icon { color: #d96b9a; }
.landing-feature--6 .landing-feature__icon { color: #4ab3a0; }

.landing-feature__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--lp-text);
}

.landing-feature__subtitle {
    font-size: 0.85rem;
    color: var(--lp-primary-dark);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.landing-feature--2 .landing-feature__subtitle { color: #8b6bd9; }
.landing-feature--3 .landing-feature__subtitle { color: #c47645; }
.landing-feature--4 .landing-feature__subtitle { color: #3d84b8; }
.landing-feature--5 .landing-feature__subtitle { color: #c45a85; }
.landing-feature--6 .landing-feature__subtitle { color: #3a9684; }

.landing-feature__desc {
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--lp-muted);
    margin: 0;
}

/* ---------- PRICING ---------- */
.landing-plans {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    max-width: 860px;
    margin: 0 auto;
}

.landing-plan {
    border-radius: 1.4rem;
    padding: 2.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--lp-surface);
    border: 1px solid var(--lp-border);
}

.landing-plan--free {
    background-color: var(--lp-surface);
    color: var(--lp-text);
}

.landing-plan--pro {
    background: linear-gradient(160deg, rgba(107, 140, 255, 0.12) 0%, rgba(149, 112, 230, 0.12) 100%);
    color: var(--lp-text);
    border: 1px solid rgba(107, 140, 255, 0.3);
    box-shadow: 0 16px 50px rgba(107, 140, 255, 0.15);
}

.landing-plan__badge {
    position: absolute;
    top: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--lp-primary);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.32rem 1.1rem;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(107, 140, 255, 0.35);
}

.landing-plan__head {
    margin-bottom: 1.25rem;
}

.landing-plan__name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--lp-text);
}

.landing-plan__tagline {
    font-size: 0.9rem;
    color: var(--lp-muted);
    margin: 0;
}

.landing-plan__price {
    display: flex;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.landing-plan__currency {
    font-size: 1.4rem;
    font-weight: 600;
    margin-right: 0.15rem;
    color: var(--lp-muted);
}

.landing-plan__amount {
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--lp-text);
}

.landing-plan__period {
    font-size: 1rem;
    color: var(--lp-muted);
    margin-left: 0.3rem;
}

.landing-plan__commission {
    font-size: 0.98rem;
    color: var(--lp-muted);
    margin-bottom: 0.5rem;
}

.landing-plan__note {
    font-size: 0.78rem;
    color: var(--lp-muted);
    margin-bottom: 1.5rem;
    line-height: 1.45;
}

.landing-plan__features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex-grow: 1;
}

.landing-plan__features li {
    padding: 0.45rem 0 0.45rem 1.85rem;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.45;
    color: var(--lp-muted);
}

.landing-plan__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: rgba(107, 140, 255, 0.15);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b8cff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: 11px 11px;
    background-repeat: no-repeat;
    background-position: center;
}

.landing-plans__note {
    text-align: center;
    font-size: 0.82rem;
    color: var(--lp-muted);
    margin-top: 2rem;
}

/* ---------- FINAL CTA ---------- */
.landing-cta-final {
    text-align: center;
    background: linear-gradient(180deg, var(--lp-surface) 0%, var(--lp-bg) 100%);
}

/* ---------- FOOTER ---------- */
.landing-footer {
    background-color: var(--lp-surface);
    color: var(--lp-muted);
    padding: 2.5rem 0 2rem;
    border-top: 1px solid var(--lp-border);
}

.landing-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.landing-footer__links a {
    color: var(--lp-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.15s ease;
}

.landing-footer__links a:hover {
    color: var(--lp-primary);
}

.landing-footer__copy {
    text-align: center;
    font-size: 0.82rem;
    color: #a0a6b8;
    margin: 0;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 992px) {
    .landing-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .landing-section {
        padding: 3.5rem 0;
    }
    .landing-features {
        grid-template-columns: 1fr;
    }
    .landing-plans {
        grid-template-columns: 1fr;
    }
    .landing-hero {
        min-height: 78vh;
    }
}

/* ================================================================
   MODAL DE AUTENTICACION (login / signup)
   Paleta pastel consistente con el landing.
   ================================================================ */
.auth-modal .modal-dialog {
    max-width: 460px;
}

.auth-modal__content {
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
    background: var(--fm-surface);
}

.auth-modal__header {
    border: none;
    padding: 1.6rem 1.8rem 0.4rem;
    background: linear-gradient(135deg, var(--fm-surface-2) 0%, var(--fm-surface) 100%);
}

.auth-modal__heading {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--fm-text);
    letter-spacing: -0.02em;
}

.auth-modal__close {
    opacity: 0.5;
    transition: opacity 0.15s ease;
}
.auth-modal__close:hover {
    opacity: 1;
}

.auth-modal__body {
    padding: 1rem 1.8rem 1.8rem;
    background: linear-gradient(180deg, var(--fm-surface-2) 0%, var(--fm-surface) 18%);
}

.auth-modal__loading {
    text-align: center;
    color: var(--fm-muted);
    padding: 2rem 0;
    font-size: 0.95rem;
}

.auth-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--fm-text);
    margin: 0.5rem 0 0.4rem;
    letter-spacing: -0.02em;
}

.auth-modal__subtitle {
    font-size: 0.92rem;
    color: var(--fm-muted);
    margin: 0 0 1.4rem;
}

.auth-modal__switch {
    text-align: center;
    margin-top: 1.3rem;
    font-size: 0.9rem;
    color: var(--fm-muted);
}

.auth-modal__link {
    color: #6b8cff;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}
.auth-modal__link:hover {
    text-decoration: underline;
}

/* ---- formulario ---- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-form__label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fm-muted);
}

.auth-form__field input,
.auth-form__field select,
.auth-form__field textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--fm-border-strong);
    border-radius: 0.7rem;
    font-size: 0.95rem;
    color: var(--fm-text);
    background: var(--fm-surface-2);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.auth-form__field input:focus,
.auth-form__field select:focus,
.auth-form__field textarea:focus {
    outline: none;
    border-color: var(--fm-btn-border);
    box-shadow: 0 0 0 3px rgba(139, 146, 156, 0.18);
}

.auth-form__field input::placeholder {
    color: var(--fm-muted);
}

.auth-form__field-error {
    font-size: 0.78rem;
    color: #e06c75;
}

.auth-form__errors {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.35);
    border-radius: 0.6rem;
    padding: 0.6rem 0.9rem;
    color: #ff8f8f;
    font-size: 0.85rem;
}
.auth-form__errors p {
    margin: 0;
}

.auth-form__remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--fm-muted);
    cursor: pointer;
}
.auth-form__remember input {
    cursor: pointer;
    accent-color: var(--fm-muted);
}

.auth-form__submit {
    width: 100%;
    padding: 0.8rem;
    border: none;
    border-radius: 0.7rem;
    background: var(--fm-btn-bg);
    color: var(--fm-btn-fg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    margin-top: 0.3rem;
}

.auth-form__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.35);
}

.auth-form__submit:active {
    transform: translateY(0);
}

/* ---- acciones del modal de cierre de sesion ---- */
.auth-modal__actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.6rem;
}
.auth-modal__actions .auth-form__submit,
.auth-modal__actions .btn {
    flex: 1;
    width: auto;
    margin-top: 0;
}

/* ---- boton social (Google) ---- */
.auth-social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.auth-social__divider {
    position: relative;
    text-align: center;
    color: var(--fm-muted);
    font-size: 0.8rem;
}
.auth-social__divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--fm-border-strong);
}
.auth-social__divider span {
    position: relative;
    background: var(--fm-surface);
    padding: 0 0.6rem;
}

.auth-social__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--fm-border-strong);
    border-radius: 0.7rem;
    background: var(--fm-surface-2);
    color: var(--fm-text);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-social__btn:hover {
    border-color: rgba(255, 255, 255, 0.24);
    box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.6);
    color: var(--fm-text);
}
.auth-social__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.auth-social__btn--disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.auth-social__btn--disabled:hover {
    border-color: var(--fm-border-strong);
    box-shadow: none;
}

/* ---- paso 2 del alta: cuenta de cobro ---- */
.onboarding-step2__mp {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--fm-border-strong);
    border-radius: 0.9rem;
    background: var(--fm-surface-2);
}
.onboarding-step2__status {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    font-size: 0.9rem;
    color: var(--fm-muted);
}
.onboarding-step2__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e06c75;
    flex-shrink: 0;
}
.onboarding-step2__mp.is-linked .onboarding-step2__status {
    color: var(--fm-text);
}
.onboarding-step2__mp.is-linked .onboarding-step2__dot {
    background: #4caf7d;
}

/* ---- modal de evento: fila de categoria ---- */
.event-modal__category-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.event-modal__category-row select,
.event-modal__category-row input[type="text"] {
    flex: 1;
    min-width: 0;
}

.event-modal__add-category {
    flex-shrink: 0;
    width: 42px;
    border: 1px solid var(--fm-border-strong);
    border-radius: 0.7rem;
    background: var(--fm-surface-2);
    color: var(--fm-muted);
    font-size: 1.3rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    line-height: 1;
}

.event-modal__add-category:hover {
    background: var(--fm-btn-bg);
    border-color: var(--fm-btn-border);
}

.event-modal__confirm-category {
    flex-shrink: 0;
    padding: 0 1rem;
    border: none;
    border-radius: 0.7rem;
    background: var(--fm-btn-bg);
    color: var(--fm-btn-fg);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.event-modal__confirm-category:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.35);
}

.event-modal__new-category {
    margin-top: 0.5rem;
}

@media (max-width: 480px) {
    .auth-form__row {
        grid-template-columns: 1fr;
    }
    .auth-modal__body {
        padding: 1rem 1.2rem 1.4rem;
    }
}

/* Pagina de cierre de la ventana emergente del login social */
.social-popup {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    color: var(--fm-muted);
    font-size: 0.95rem;
}

