/* ============================================================
   KRASH HUB — Cinematic Contact Redesign (v2)
   ============================================================ */

:root {
    --dark-pure: #000;
    --dark-surface: #0b0d10;
    --glass-bg: rgba(15, 15, 20, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-light: rgba(255, 255, 255, 0.15);
    --ka-accent: #FFCC00;
    --ka-accent-glow: rgba(255, 204, 0, 0.5);
    --ka-radius: 16px;
    --ka-blur: 20px;
    --font-main: 'Sora', sans-serif;
}

/* ─── Global Noise Texture ─── */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.03;
    z-index: 9999;
    pointer-events: none;
}

/* ─── Cinematic Hero ─── */
.contact-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/contact_cinematic_bg.png') center/cover no-repeat;
    overflow: hidden;
    padding: 120px 0 80px;
}

.contact-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, #000 90%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-syncopate);
    font-weight: 700;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    letter-spacing: -3px;
    text-transform: uppercase;
    line-height: 0.9;
    color: #fff;
}

.hero-sub {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 20px auto 0;
}

/* ─── Layout: Asymmetric Grid ─── */
.cinematic-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
}

/* ─── AURA SERVICE SELECTOR (PILLS) ─── */
.aura-service-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.aura-pill {
    cursor: pointer;
    position: relative;
    user-select: none;
    flex-grow: 1; /* Para que ocupen el ancho de forma liquida */
}

/* Ocultar el input nativo pero mantenerlo accesible para tabs/focus */
.aura-pill input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pill-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px 20px;
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.pill-content i {
    font-size: 1.2rem;
    opacity: 0.7;
    transition: all 0.3s;
}

/* Hover State */
.aura-pill:hover .pill-content {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

/* Selected State */
.aura-pill input[type="radio"]:checked + .pill-content {
    background: rgba(255, 204, 0, 0.08); /* Yellow Aura */
    border-color: var(--ka-accent);
    color: var(--ka-accent);
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.15), inset 0 0 10px rgba(255, 204, 0, 0.05);
}

.aura-pill input[type="radio"]:checked + .pill-content i {
    opacity: 1;
    color: var(--ka-accent);
    transform: scale(1.1);
}

/* Focus para accesibilidad de teclado */
.aura-pill input[type="radio"]:focus-visible + .pill-content {
    outline: 2px solid var(--ka-accent);
    outline-offset: 2px;
}

/* ─── Cinematic Form ─── */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-top-color: var(--glass-border-light);
    padding: 60px;
    border-radius: var(--glass-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.input-luxury-group {
    position: relative;
    margin-bottom: 35px;
}

.input-luxury {
    width: 100%;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: 8px !important;
    padding: 15px 15px !important;
    color: #fff !important;
    font-size: 1rem !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.input-luxury:focus {
    outline: none !important;
    border-color: var(--accent-neon) !important;
    background: rgba(255, 204, 0, 0.05) !important;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.1);
}

.input-luxury:focus ~ .label-luxury,
.input-luxury:not(:placeholder-shown) ~ .label-luxury {
    top: -10px;
    left: 10px;
    font-size: 0.65rem;
    color: var(--accent-neon);
    background: #000;
    padding: 0 5px;
}

/* ─── AURA INFO CARDS (COLUMNA DERECHA) ─── */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.aura-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
}

.aura-info-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 204, 0, 0.05); /* Soft aura bg */
    border: 1px solid rgba(255, 204, 0, 0.2);
    color: var(--ka-accent);
    font-size: 1.5rem;
}

.info-data h6 {
    font-family: var(--font-main);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ka-accent);
    margin-bottom: 4px;
    font-weight: 700;
}

.info-data p {
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 2px 0;
}

.info-data span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ─── CINEMATIC MAP CON CUSTOM PIN ─── */
.aura-map-container {
    position: relative;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    height: 250px;
    background: #000;
}

.map-overlay-link {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: rgba(0,0,0,0.1); /* Ligero oscurecimiento interactivo */
    transition: background 0.3s;
}

.aura-map-container:hover .map-overlay-link {
    background: rgba(0,0,0,0.4);
}

/* Custom Glass Pin Central */
.custom-glass-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--ka-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(255, 204, 0, 0.2);
    transition: all 0.3s ease;
    pointer-events: none; /* Deja pasar el click al label de maps */
}

/* Pico del pin de mapa (triángulo inferior) */
.custom-glass-pin::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 8px 0;
    border-style: solid;
    border-color: var(--ka-accent) transparent transparent transparent;
}

.pin-logo {
    width: 25px;
    height: auto;
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255,204,0,0.5)); /* Forza a volverlo blanco con aura */
}

/* Pulso animado del pin */
.pin-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--ka-accent);
    animation: pinPulse 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes pinPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; border-width: 0; }
}

.aura-map-container:hover .custom-glass-pin {
    transform: translate(-50%, -60%);
    box-shadow: 0 15px 40px rgba(0,0,0,0.9), 0 0 30px rgba(255, 204, 0, 0.4);
}

/* Social icons aura */
.social-aura {
    color: rgba(255,255,255,0.4);
    transition: all 0.3s;
}
.social-aura:hover {
    color: var(--ka-accent);
    text-shadow: 0 0 15px var(--ka-accent);
    transform: translateY(-3px);
}

/* ─── Mobile ─── */
@media (max-width: 992px) {
    .cinematic-grid { grid-template-columns: 1fr; gap: 40px; }
    .glass-container { padding: 30px; }
    .hero-title { font-size: 3rem; }
}
