/* ==========================================================================
   ESTILOS GLOBALES HEREDADOS DE TU INDEX
   ========================================================================== */
:root {
    --neon-cyan: #00F2FF;
    --tgenix-blue: #3a96ff; 
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(0, 242, 255, 0.2);
    --modal-bg: rgba(10, 15, 20, 0.95);
}

body {
    background: #080a0c url('fondo.png') no-repeat center center fixed;
    background-size: cover;
    color: white;
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
    /* Protección nativa de selección de texto */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: absolute;
    width: 84%;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.8rem;
    text-decoration: none;
    color: white;
    letter-spacing: -1.5px;
}
.logo img { width: 45px; margin-right: 10px; }
.logo span.blue-letter { color: var(--tgenix-blue); }
.logo span.white-dash { color: white; margin-left: -4px; margin-right: -4px; }

nav {
    display: flex;
    gap: 25px;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 35px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}
nav a { text-decoration: none; color: #94a3b8; font-size: 0.95rem; transition: 0.3s; }
nav a:hover, nav a.active { color: white; }

.btn-contact {
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    padding: 12px 28px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
    transition: 0.3s;
}

/* ==========================================================================
   ESTILOS EXCLUSIVOS DEL FORMULARIO DE CONTACTO
   ========================================================================== */
.contact-section {
    text-align: center;
    padding: 160px 20px 80px 20px;
    box-sizing: border-box;
}

.contact-section h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.contact-section p {
    color: #94a3b8;
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.contact-container {
    max-width: 550px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 20px;
    text-align: left;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.05);
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--neon-cyan);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: rgba(10, 15, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    box-sizing: border-box;
    transition: 0.3s;
    /* PERMITIR QUE EL CLIENTE ESCRIBA Y SELECCIONE SU PROPIO TEXTO */
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.2);
}

.btn-submit {
    background: linear-gradient(90deg, #0072ff, #00c6ff);
    padding: 14px;
    border: none;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 198, 255, 0.3);
    transition: 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 198, 255, 0.5);
}

/* ==========================================================================
   OPTIMIZACIÓN RESPONSIVA PARA DISPOSITIVOS MÓVILES (384px)
   ========================================================================== */
@media (max-width: 768px) {
    header {
        padding: 15px 5%;
        width: 90%;
    }
    nav {
        display: none; /* Ocultamos barra de navegación simple para no saturar */
    }
    .contact-section h1 {
        font-size: 2.2rem;
    }
    .contact-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding-top: 120px;
    }
    .contact-container {
        padding: 25px 20px;
    }
    .logo {
        font-size: 1.4rem;
    }
    .logo img {
        width: 35px;
    }
    .btn-contact {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   ESTILO DE BOTÓN DE REGRESO (VISIBLE EN TODAS LAS PANTALLAS)
   ========================================================================== */
.btn-back-home {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    padding: 10px 24px;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: 0.3s;
    display: inline-block; /* Visible siempre */
}

.btn-back-home:hover {
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
}

/* ==========================================================================
   OPTIMIZACIÓN RESPONSIVA (384px)
   ========================================================================== */
@media (max-width: 768px) {
    header {
        padding: 15px 5%;
        width: 90%;
    }
    
    /* Nos aseguramos de que no pinte ninguna hamburguesa residual del script global */
    .menu-toggle { 
        display: none !important; 
    }

    .contact-section h1 {
        font-size: 2.2rem;
    }
    .contact-section p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding-top: 130px;
    }
    .contact-container {
        padding: 25px 20px;
    }
    .logo {
        font-size: 1.3rem;
    }
    .logo img {
        width: 35px;
    }
    .btn-back-home {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}

/* ==========================================================================
   ESTILO PARA EL ENLACE INLINE DE WHATSAPP CON ICONO
   ========================================================================== */
.btn-wa-inline {
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px dashed var(--neon-cyan);
    transition: all 0.3s ease;
    /* Flexbox para alinear el SVG perfectamente con las letras */
    display: inline-flex;
    align-items: center;
    gap: 6px; 
}

.btn-wa-inline:hover {
    color: #25D366; /* Verde WhatsApp */
    border-bottom: 1px solid #25D366;
    text-shadow: 0 0 8px rgba(37, 211, 102, 0.4);
}

/* Control del tamaño y comportamiento del icono SVG */
.wa-icon {
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.3s ease;
}

.btn-wa-inline:hover .wa-icon {
    transform: scale(1.1); /* Efecto sutil de crecimiento al pasar el cursor */
}