/* --- RESET & LAYOUT --- */
#contacto-background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.hero-contacto {
    min-height: 40vh;
    background: linear-gradient(rgba(2, 12, 27, 0.9), rgba(2, 12, 27, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px; /* Espacio nav */
}

.contacto-container {
    padding: 60px 20px 100px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.contact-form-panel {
    width: 100%;
    max-width: 600px;
    padding: 50px 40px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(10, 20, 35, 0.75);
}

/* --- DECORACIÓN HUD --- */
.hud-corner {
    position: absolute;
    width: 20px; height: 20px;
    border: 2px solid var(--secondary);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 107, 107, 0.2);
}

.top-left { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.top-right { top: -1px; right: -1px; border-left: none; border-bottom: none; }
.bottom-left { bottom: -1px; left: -1px; border-right: none; border-top: none; }
.bottom-right { bottom: -1px; right: -1px; border-left: none; border-top: none; }

/* --- HEADER & GLITCH TEXT --- */
.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* Título Glitch (Se mantiene solo en el título, más sutil) */
.glitch-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    letter-spacing: 2px;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 20, 35, 0.95);
}

.glitch-title::before {
    left: 2px;
    text-shadow: -1px 0 var(--secondary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-title 3s infinite linear alternate-reverse;
}

.glitch-title::after {
    left: -2px;
    text-shadow: -1px 0 var(--primary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-title-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-title {
    0% { clip: rect(10px, 9999px, 80px, 0); }
    20% { clip: rect(90px, 9999px, 10px, 0); }
    100% { clip: rect(45px, 9999px, 60px, 0); }
}

@keyframes glitch-anim-title-2 {
    0% { clip: rect(60px, 9999px, 20px, 0); }
    20% { clip: rect(10px, 9999px, 90px, 0); }
    100% { clip: rect(30px, 9999px, 50px, 0); }
}

/* --- INPUTS --- */
.cyber-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.input-group {
    position: relative;
    width: 100%;
}

.cyber-input {
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    color: white;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    outline: none;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
    border-radius: 0;
}

.cyber-textarea {
    resize: vertical;
    min-height: 100px;
}

.cyber-label {
    position: absolute;
    top: 12px;
    left: 0;
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.cyber-input:focus ~ .cyber-label,
.cyber-input:not(:placeholder-shown) ~ .cyber-label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
}

/* Borde animado inferior */
.input-border-effect {
    position: absolute;
    bottom: 0; left: 0;
    width: 0%; 
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.4s ease;
    z-index: 3;
}

.cyber-input:focus ~ .input-border-effect {
    width: 100%;
}

/* --- BOTÓN CYBER CLEAN (Nuevo Efecto Elegante) --- */
.cyber-button {
    margin-top: 20px;
    position: relative;
    padding: 18px 30px;
    background: transparent; /* Fondo transparente inicial */
    border: 1px solid var(--primary); /* Borde sutil */
    color: var(--primary); /* Texto azul neón */
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Transición suave */
    width: 100%;
    overflow: hidden;
    letter-spacing: 2px; /* Espaciado inicial */
    box-shadow: inset 0 0 0 0 var(--primary); /* Preparación para animación fill */
}

/* Efecto Hover: Llenado suave y Glow */
.cyber-button:hover {
    color: white; /* Texto pasa a blanco */
    box-shadow: inset 400px 0 0 0 var(--primary), 0 0 20px var(--primary-glow); /* Relleno lateral + Brillo externo */
    border-color: var(--primary);
    letter-spacing: 4px; /* Expansión de letras */
    transform: translateY(-2px); /* Pequeña elevación */
}

/* Eliminar elementos extraños */
.btn-content {
    position: relative;
    z-index: 2;
}

/* --- RESPONSIVE FIX --- */
@media (max-width: 768px) {
    .contact-form-panel {
        padding: 40px 20px;
    }
    
    .glitch-title {
        font-size: 1.5rem;
    }

    .cyber-input, .cyber-textarea {
        font-size: 16px; 
    }
}