/* --- BASE & TUNNEL ANIMATION --- */
body.contact-page {
    background-color: #050505;
    color: #fff;
    overflow-x: hidden;
    margin: 0;
}

.terminal-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    perspective: 1000px;
    background: #000;
}

.grid-animation {
    position: absolute;
    width: 200%; height: 200%;
    top: -50%; left: -50%;
    background-image: 
        linear-gradient(rgba(138, 1, 0, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 1, 0, 0.15) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: rotateX(60deg);
    animation: tunnelMove 5s linear infinite; /* Un poco más lento para mayor elegancia */
}

@keyframes tunnelMove {
    0% { transform: rotateX(60deg) translateY(0); }
    100% { transform: rotateX(60deg) translateY(60px); }
}

.scanline {
    position: absolute;
    width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 50%, rgba(0,0,0,0.05) 50%);
    background-size: 100% 4px;
    pointer-events: none;
}

/* --- GRID & CONTENT --- */
.contact-main {
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.status-code {
    color: #8A0100;
    font-family: monospace;
    font-weight: bold;
    letter-spacing: 2px;
}

.contact-info h1 {
    font-family: 'Poppins';
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    margin: 25px 0;
}

.contact-info .description {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* OFFICIAL CONTACT & SOCIALS */
.official-contact { margin-bottom: 40px; }
.label { display: block; font-size: 0.7rem; color: #444; font-weight: bold; letter-spacing: 2px; margin-bottom: 10px; }

.email-link {
    font-size: 1.5rem;
    color: #fff;
    text-decoration: none;
    font-family: 'Poppins';
    font-weight: 700;
    transition: 0.3s;
}
.email-link:hover { color: #8A0100; }

.social-uplink { border-top: 1px solid #1a1a1a; padding-top: 40px; }
.social-uplink h3 { font-family: 'Poppins'; font-size: 0.9rem; letter-spacing: 4px; color: #444; margin-bottom: 20px; }
.fast-response { font-size: 0.85rem; color: #888; margin-bottom: 25px; }
.fast-response span { color: #8A0100; font-weight: bold; text-transform: uppercase; }

.social-icons-grid { display: flex; flex-direction: column; gap: 25px; }

.s-icon.ig {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #0a0a0a;
    padding: 18px 25px;
    width: fit-content;
    border: 1px solid #222;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    transition: 0.4s;
}

.s-icon.ig:hover {
    border-color: #8A0100;
    background: #111;
    box-shadow: 0 0 30px rgba(138, 1, 0, 0.2);
}

.s-icon img { width: 28px; }

.other-socials { display: flex; gap: 25px; padding-left: 10px; }
.other-socials img { width: 22px; opacity: 0.4; transition: 0.3s; }
.other-socials img:hover { opacity: 1; transform: translateY(-5px); }

/* --- FORM TERMINAL --- */
.contact-form-container {
    background: rgba(8, 8, 8, 0.95);
    padding: 50px;
    border: 1px solid #1a1a1a;
    border-bottom: 4px solid #8A0100;
    backdrop-filter: blur(15px);
}

.form-header { display: flex; justify-content: space-between; margin-bottom: 40px; border-bottom: 1px solid #222; padding-bottom: 15px; }
.form-title { font-family: monospace; font-size: 0.75rem; color: #444; }
.dot-red { width: 10px; height: 10px; background: #8A0100; border-radius: 50%; box-shadow: 0 0 15px #8A0100; }

.input-group { margin-bottom: 25px; }
.input-group label { display: block; font-size: 0.65rem; color: #666; margin-bottom: 10px; font-weight: bold; letter-spacing: 1px; }

input, select, textarea {
    width: 100%;
    padding: 16px;
    background: #000;
    border: 1px solid #222;
    color: #fff;
    font-family: 'Montserrat';
    outline: none;
    transition: 0.3s;
}

input:focus, textarea:focus { border-color: #8A0100; background: #050505; }

.btn-transmit {
    width: 100%;
    padding: 22px;
    background: #8A0100;
    border: none;
    color: #fff;
    font-family: 'Poppins';
    font-weight: 900;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.4s;
}

.btn-transmit:hover {
    background: #a30000;
    box-shadow: 0 10px 40px rgba(138, 1, 0, 0.3);
}

/* Error States */
.input-group.error input { border-color: #8A0100; }
.error-msg { color: #8A0100; font-size: 0.65rem; font-weight: bold; display: none; margin-top: 8px; }
.input-group.error .error-msg { display: block; }

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
    .contact-grid { gap: 40px; }
}

@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-main { padding-top: 120px; }
    .contact-info { text-align: center; }
    .s-icon.ig { margin: 0 auto; }
    .other-socials { justify-content: center; }
}