/*
 * Portada de acceso (account/login.html): hero con Google o código por correo, testimonios y comunidad.
 * Antes vivía en un <style> dentro de la plantilla.
 */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    background: #000;
    color: #f5f5f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Hero Section ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 1.5rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.brand {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #10b981;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.1s forwards;
}

.hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin: 0 0 1rem;
    max-width: 700px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    color: #86868b;
    max-width: 500px;
    line-height: 1.5;
    margin: 0 auto 3rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
}

.login-section {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
}

.login-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #86868b;
    margin-bottom: 1rem;
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 2.5rem;
    border-radius: 980px;
    background: #f5f5f7;
    color: #1d1d1f;
    border: none;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-google:hover {
    background: #fff;
    transform: scale(1.02);
    color: #1d1d1f;
    text-decoration: none;
}

.btn-google:active {
    transform: scale(0.98);
}

.btn-google svg {
    flex-shrink: 0;
}

/* ── Section shared ── */
.section {
    padding: 6rem 1.5rem;
    text-align: center;
}

.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #10b981;
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 auto 3rem;
    max-width: 600px;
}

/* ── Testimonials Carousel ── */
.testimonials-section {
    background: #000;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.testimonial-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 2rem 1.5rem;
    scrollbar-width: none;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-track::-webkit-scrollbar { display: none; }

.testimonial-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    background: #111;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    padding: 2rem;
    text-align: left;
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

.testimonial-stars {
    color: #10b981;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #d1d1d6;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f5f5f7;
}

.testimonial-role {
    font-size: 0.75rem;
    color: #86868b;
}

/* ── Clients Carousel ── */
.clients-section {
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.clients-track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 2rem 1.5rem;
    scrollbar-width: none;
    max-width: 1200px;
    margin: 0 auto;
}

.clients-track::-webkit-scrollbar { display: none; }

.client-card {
    flex: 0 0 280px;
    scroll-snap-align: start;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/5;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s;
}

.client-card:hover {
    transform: translateY(-4px);
}

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

.client-card .client-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.client-overlay .client-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f5f5f7;
}

.client-overlay .client-handle {
    font-size: 0.75rem;
    color: #86868b;
}

/* ── Footer ── */
.login-footer {
    text-align: center;
    padding: 3rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.login-footer p {
    font-size: 0.75rem;
    color: #48484a;
    margin: 0;
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */

/* Tablets */
@media (max-width: 768px) {
    .hero { min-height: 100svh; padding: 3rem 1.25rem; }
    .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
    .hero-subtitle { margin-bottom: 2.5rem; }
    .section { padding: 4rem 1rem; }
    .section-title { margin-bottom: 2rem; }
    .testimonial-track { padding: 0 1rem 1rem; gap: 1rem; }
    .testimonial-card { flex: 0 0 300px; padding: 1.5rem; border-radius: 16px; }
    .clients-track { padding: 0 1rem 1rem; gap: 1rem; }
    .client-card { flex: 0 0 220px; border-radius: 16px; }
}

/* Phones */
@media (max-width: 480px) {
    .hero {
        min-height: 100svh;
        padding: 2.5rem 1rem;
        justify-content: center;
    }

    .brand { margin-bottom: 1.5rem; font-size: 0.7rem; }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -0.03em;
        line-height: 1.1;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .login-label { font-size: 0.65rem; margin-bottom: 0.75rem; }

    .btn-google {
        padding: 0.85rem 2rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
    }

    .section { padding: 3rem 0.75rem; }
    .section-label { font-size: 0.65rem; }
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .testimonial-track {
        padding: 0 0.75rem 1rem;
        gap: 0.75rem;
    }

    .testimonial-card {
        flex: 0 0 calc(100vw - 3rem);
        padding: 1.25rem;
        border-radius: 14px;
    }

    .testimonial-text { font-size: 0.9rem; margin-bottom: 1rem; }
    .testimonial-stars { font-size: 0.8rem; margin-bottom: 0.75rem; }

    .clients-track {
        padding: 0 0.75rem 1rem;
        gap: 0.75rem;
    }

    .client-card {
        flex: 0 0 calc(65vw);
        border-radius: 14px;
    }

    .client-card i { font-size: 2.25rem !important; }

    .client-overlay { padding: 1rem; }
    .client-overlay .client-name { font-size: 0.85rem; }
    .client-overlay .client-handle { font-size: 0.7rem; }

    .login-footer { padding: 2rem 1rem; }
    .login-footer p { font-size: 0.7rem; }
}

/* Very small phones */
@media (max-width: 360px) {
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 0.9rem; }
    .testimonial-card { flex: 0 0 calc(100vw - 2.5rem); }
    .client-card { flex: 0 0 calc(70vw); }
}

/* ── Entrada con código por correo ── */
.login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    max-width: 320px;
    margin: 1.5rem auto 1rem;
    color: #86868b;
    font-size: 0.75rem;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.login-email-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.login-email-form input {
    flex: 1;
    min-width: 0;
    padding: 0.8rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 980px;
    background: rgba(255, 255, 255, 0.06);
    color: #f5f5f7;
    font-family: inherit;
    font-size: 0.95rem;
}

.login-email-form input::placeholder { color: #6e6e73; }
.login-email-form input:focus { outline: none; border-color: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25); }

.btn-code {
    flex-shrink: 0;
    padding: 0.8rem 1.3rem;
    border: none;
    border-radius: 980px;
    background: #10b981;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-code:hover { background: #059669; }

.login-hint {
    max-width: 380px;
    margin: 0.85rem auto 0;
    color: #86868b;
    font-size: 0.8rem;
    line-height: 1.5;
}

.login-hint a { color: #6ee7b7; font-weight: 600; text-decoration: none; }
.login-hint a:hover { text-decoration: underline; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .login-email-form { flex-direction: column; max-width: 300px; }
    .btn-code { width: 100%; }
}

/* ── Portadas de la comunidad (antes con estilos en línea) ── */
.client-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.client-cover i { color: rgba(255, 255, 255, 0.3); font-size: 3rem; }
.client-cover.is-green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.client-cover.is-indigo { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); }
.client-cover.is-amber { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.client-cover.is-pink { background: linear-gradient(135deg, #ec4899 0%, #db2777 100%); }
.client-cover.is-teal { background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%); }
