@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=Space+Mono:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    background-color: #050505;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* --- EFECTO CCTV Y SCANLINES --- */
.scanlines {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 100;
}

.cctv-ui {
    position: absolute;
    bottom: 30px; 
    left: 30px;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem; /* Tamaño reducido en general */
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 2px;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rec-dot {
    width: 8px; /* Reducido en proporción */
    height: 8px;
    background-color: #ff0000;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* --- INSTAGRAM ANCLADO --- */
.ig-link {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 5px;
    font-weight: 700;
    z-index: 50;
    transition: color 0.3s ease;
}

.ig-link:hover { color: #fff; }

/* --- CONTENEDOR PRINCIPAL --- */
.content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}

/* --- TITULAR APILADO --- */
.title {
    font-size: 8vw;
    font-weight: 900;
    line-height: 0.9;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: -3px;
    margin-bottom: 70px; 
    color: #fff;
    text-shadow: 2px 0px 5px rgba(255,255,255,0.2);
}

/* --- FORMULARIO (LÍNEA INVISIBLE) --- */
.email-form {
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 35px;
}

.email-input {
    width: 100%;
    padding: 10px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2); 
    color: #fff;
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    font-family: 'Inter', sans-serif;
    border-radius: 0;
    transition: border-bottom-color 0.3s ease;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 4px;
    font-size: 0.8rem;
    font-weight: 400;
}

.email-input:focus {
    border-bottom: 1px solid #fff; 
}

/* --- BOTÓN TEXTUAL --- */
.submit-text-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.4);
    border: none;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.3s ease, transform 0.3s ease;
}

.submit-text-btn:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* --- ESTRUCTURA DE ÉXITO --- */
.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px; 
    width: 100%;
}

.success-message {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.success-message p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.back-btn {
    text-decoration: none;
    display: inline-block;
}

/* --- ADAPTACIÓN ESTRICTA PARA MÓVILES --- */
@media (max-width: 600px) {
    .title {
        font-size: 7vw; /* Seguro matemático contra cortes */
        letter-spacing: 0px;
        margin-bottom: 50px;
    }
    .email-form { 
        max-width: 85vw; 
    }
    .cctv-ui { 
        bottom: 20px; 
        left: 20px; 
        font-size: 0.5rem; /* Letra ultra pequeña en el móvil */
        gap: 6px;
    }
    .rec-dot {
        width: 6px; /* Punto rojo al mínimo */
        height: 6px;
    }
    .ig-link { 
        top: 20px; 
    }
}

/* --- ADAPTACIÓN ESTRICTA PARA MÓVILES --- */
@media (max-width: 600px) {
    .title {
        font-size: 3.5rem; /* Ajuste matemático para que no desborde en el teléfono */
        letter-spacing: -1px;
        margin-bottom: 50px;
    }
    .email-form {
        max-width: 85vw;
    }
}