/* =========================================
   CONFIGURACIÓN BASE
   ========================================= */
body {
    background-color: #111316; /* Dark Depth */
    color: #8D99AE;
    font-family: 'Poppins', sans-serif;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.5px;
}

.text-highlight {
    color: var(--bx-brand);
    text-shadow: 0 0 15px rgba(255, 31, 46, 0.4);
}

.contact-wrapper {
    margin-top: -85px; /* Detrás del navbar transparente */
    padding-top: 100px;
}

/* =========================================
   1. HEADER
   ========================================= */
.contact-header {
    padding: 60px 0 40px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(40, 167, 69, 0.1); /* Verde sutil */
    color: #28a745;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.pulse-dot {
    width: 8px; height: 8px;
    background: #28a745;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(40, 167, 69, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    70% { box-shadow: 0 0 0 6px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

/* =========================================
   2. TARJETAS DE CONTACTO (Izquierda)
   ========================================= */
.info-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #1a1d21;
    border: 1px solid rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    transform: translateX(10px);
    border-color: rgba(255,255,255,0.2);
    background: #202328;
}

.active-card {
    background: linear-gradient(135deg, #1a1d21 0%, #250b0e 100%);
    border-color: rgba(255, 31, 46, 0.3);
}

.active-card:hover {
    border-color: var(--bx-brand);
    box-shadow: 0 0 20px rgba(255, 31, 46, 0.1);
}

.icon-box {
    width: 50px; height: 50px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    color: var(--bx-white);
    transition: 0.3s;
}

.active-card .icon-box {
    background: var(--bx-brand);
    color: white;
}

.card-details { flex-grow: 1; }

.label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.value {
    color: white;
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
}

.sub-text {
    font-size: 0.8rem;
    color: #6c757d;
}

.arrow-action {
    color: var(--bx-brand);
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.3s;
}

.contact-card:hover .arrow-action {
    opacity: 1;
    transform: translateX(0);
}

/* Redes Sociales */
.social-grid {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 45px; height: 45px;
    background: #1a1d21;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.social-btn:hover {
    background: var(--bx-brand);
    border-color: var(--bx-brand);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 31, 46, 0.4);
}

/* =========================================
   3. FORMULARIO CYBER (Derecha)
   ========================================= */
.form-wrapper {
    background: #1a1d21;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

/* Input Styles */
.input-group-cyber {
    position: relative;
    margin-bottom: 5px;
}

.input-group-cyber input,
.input-group-cyber textarea,
.form-select-cyber {
    width: 100%;
    background: #111316; /* Fondo más oscuro que el wrapper */
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 15px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}

.input-group-cyber textarea { resize: none; }

.input-group-cyber label {
    position: absolute;
    left: 15px;
    top: 15px;
    color: #6c757d;
    font-size: 0.95rem;
    pointer-events: none;
    transition: 0.3s;
    background: transparent;
}

/* Animación del Label (Floating Label) */
.input-group-cyber input:focus ~ label,
.input-group-cyber input:not(:placeholder-shown) ~ label,
.input-group-cyber textarea:focus ~ label,
.input-group-cyber textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 10px;
    font-size: 0.75rem;
    color: var(--bx-brand);
    background: #1a1d21; /* Match wrapper bg to hide line */
    padding: 0 5px;
}

.input-group-cyber input:focus,
.input-group-cyber textarea:focus,
.form-select-cyber:focus {
    border-color: var(--bx-brand);
    box-shadow: 0 0 0 4px rgba(255, 31, 46, 0.1);
}

.btn-submit-neon {
    background: var(--bx-brand);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit-neon:hover {
    background: #d6001c;
    box-shadow: 0 0 20px rgba(255, 31, 46, 0.4);
    transform: translateY(-2px);
}

/* =========================================
   4. MAPA (Dark Mode Filter)
   ========================================= */
.map-section {
    position: relative;
    height: 450px;
    width: 100%;
    margin-top: 50px;
    overflow: hidden;
}

/* Invertimos colores para que el mapa se vea oscuro */
.map-section iframe {
    filter: grayscale(100%) invert(92%) contrast(83%);
    border: none;
}

/* Tarjeta flotante sobre el mapa */
.map-overlay-info {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a1d21;
    padding: 20px 40px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 10;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 768px) {
    .map-overlay-info {
        width: 90%;
        border-radius: 12px;
    }
}