/* =========================================================================
   Contenido SEO visible bajo el login.
   Primera pantalla: login centrado (100vh). Scroll muestra contenido rico
   para Google con operadoras soportadas, FAQ y keywords relevantes.
   ========================================================================= */

html { scroll-behavior: smooth; }
body { overflow-x: hidden; overflow-y: auto !important; height: auto !important; min-height: 100vh; }

/* El fondo decorativo (orbes + network) es position: fixed → sigue visible al hacer scroll. */
.bg-decor, .bg-network { position: fixed !important; }

/* Envolvente del login: mantiene la primera pantalla visible sin scroll. */
.login-viewport {
    position: relative;
    min-height: 100vh;
    display: block;
    z-index: 5;
}

/* El login-box sigue siendo absolute, pero al estar en .login-viewport
   se ancla dentro de la primera pantalla, no del body scrollable. */
.login-viewport .login-box,
.login-viewport #register-box-inline,
.login-viewport #verify-box-inline,
.login-viewport #reset-user-box,
.login-viewport #reset-channel-box,
.login-viewport #reset-code-box,
.login-viewport #reset-password-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Indicador sutil para que el usuario sepa que hay contenido abajo */
.login-viewport::after {
    content: '⌄ Conoce todos nuestros servicios';
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    pointer-events: none;
    animation: seoBounce 2.4s ease-in-out infinite;
}
@keyframes seoBounce {
    0%, 100% { transform: translate(-50%, 0); opacity: 0.5; }
    50%      { transform: translate(-50%, 6px); opacity: 0.9; }
}

/* ============================== SECCIÓN SEO ============================== */
.seo-content {
    position: relative;
    z-index: 3;
    background: linear-gradient(180deg, rgba(5, 11, 43, 0.94) 0%, rgba(11, 21, 96, 0.98) 100%);
    color: #e6ebff;
    padding: 70px 24px 40px;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
    width: 100%;
    overflow-x: hidden;
}
.seo-content *,
.seo-content *::before,
.seo-content *::after { box-sizing: border-box; }

.seo-inner {
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
}

.seo-hero {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 10px;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}
.seo-hero h1 {
    font-size: clamp(22px, 4vw, 36px);
    line-height: 1.25;
    margin: 0 0 16px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.3px;
    word-wrap: break-word;
}
.seo-hero h1 span {
    display: inline-block;
    background: linear-gradient(90deg, #4fc3ff, #b388ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #4fc3ff;
}
.seo-sub {
    font-size: 15px;
    line-height: 1.65;
    color: #b9c4ee;
    max-width: 780px;
    margin: 0 auto 22px;
}
.seo-sub strong { color: #fff; }

.seo-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
}
.seo-badge {
    display: inline-block;
    padding: 8px 14px;
    background: rgba(79, 195, 255, 0.12);
    border: 1px solid rgba(79, 195, 255, 0.35);
    border-radius: 20px;
    font-size: 12.5px;
    color: #9be7ff;
    font-weight: 500;
}

.seo-country {
    font-size: clamp(18px, 2.6vw, 24px);
    margin: 50px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.seo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 18px;
}

.seo-card {
    flex: 0 0 240px;          /* ancho fijo, no crece para llenar espacio sobrante */
    max-width: 240px;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s, background 0.2s, box-shadow 0.2s;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.seo-card:hover {
    border-color: rgba(79, 195, 255, 0.55);
    background: rgba(79, 195, 255, 0.06);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.seo-card-img {
    width: 100%;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px;
    box-sizing: border-box;
}
.seo-card-img img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
    transition: transform 0.25s ease;
}
.seo-card:hover .seo-card-img img {
    transform: scale(1.06);
}

.seo-card-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.seo-card-body h3 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #4fc3ff;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.seo-card-body p {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.55;
    color: #c6d0f0;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}
.seo-card-body p strong { color: #fff; }
.seo-card-body ul {
    margin: auto 0 0;
    padding-left: 18px;
    font-size: 12px;
    color: #9ba8d0;
    line-height: 1.7;
}
.seo-card-body ul li { padding: 1px 0; }

/* FAQ */
.seo-faq {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}
.seo-faq details {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px 18px;
    transition: border-color 0.2s;
}
.seo-faq details[open] { border-color: rgba(79, 195, 255, 0.4); }
.seo-faq summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #e6ebff;
    outline: none;
    list-style: none;
    position: relative;
    padding-right: 24px;
}
.seo-faq summary::-webkit-details-marker { display: none; }
.seo-faq summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: -2px;
    font-size: 20px;
    color: #4fc3ff;
    transition: transform 0.2s;
}
.seo-faq details[open] summary::after { content: '−'; }
.seo-faq p {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.6;
    color: #b9c4ee;
}
.seo-faq p strong { color: #fff; }

/* Footer SEO */
.seo-foot {
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: #8793c0;
    font-size: 12.5px;
    line-height: 1.7;
}
.seo-foot strong { color: #fff; }

/* Ajustes responsive */
@media (max-width: 900px) {
    .seo-card { flex: 0 0 220px; max-width: 220px; }
}
@media (max-width: 600px) {
    .seo-content { padding: 50px 14px 30px; }
    .seo-country { margin: 36px 0 14px; font-size: 18px; }
    .seo-grid { gap: 12px; }
    .seo-card { flex: 0 0 calc(50% - 6px); max-width: calc(50% - 6px); }
    .seo-card-img { height: 90px; padding: 10px; }
    .seo-card-body { padding: 12px 12px 14px; }
    .seo-card-body h3 { font-size: 14.5px; }
    .seo-card-body p { font-size: 12px; }
    .seo-card-body ul { font-size: 11.5px; padding-left: 16px; }
    .login-viewport::after { font-size: 10.5px; bottom: 18px; }
}
@media (max-width: 380px) {
    .seo-card { flex: 0 0 100%; max-width: 100%; }
}

/* Ocultar el indicador "scroll para ver más" cuando ya se hizo scroll */
@media (min-height: 720px) {
    body.scrolled .login-viewport::after { opacity: 0; }
}

/* Accesibilidad: menos movimiento */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .login-viewport::after { animation: none; }
}
