/* RESET & VARS */
.sbh-pro-wrapper {
    --bg-base: #030712; 
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #cbd5e1;
    --accent-blue: #3b82f6;
    --accent-green: #22c55e;
    
    width: 100vw; position: relative; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
    background-color: var(--bg-base); 
    
    /* dvh se adapta dinámicamente a las barras móviles */
    min-height: 100dvh; 
    padding: 30px 16px 15px; 
    
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main); overflow-x: hidden; box-sizing: border-box;
    display: flex; flex-direction: column;
}

.sbh-pro-wrapper * { box-sizing: border-box; }

/* AMBIENT GLOWS */
.sbh-glow {
    position: absolute; width: 60vw; height: 60vw; filter: blur(120px); opacity: 0.4; z-index: 0; pointer-events: none;
}
.sbh-glow-orange { background: #FF8A00; top: -10%; left: -20%; }
.sbh-glow-red { background: #E63946; bottom: -10%; right: -20%; }

.sbh-pro-container {
    position: relative; z-index: 1; max-width: 900px; width: 100%; margin: 0 auto;
    display: flex; flex-direction: column; 
    gap: 28px; 
    flex-grow: 1;
}

/* HEADER GLOBAL */
.sbh-header-flex {
    display: flex; justify-content: center; align-items: center; 
    margin-bottom: 20px; /* 🔥 AJUSTE: Más espacio debajo del logo y redes */
}
.sbh-logo-group {
    display: flex; align-items: center; gap: 15px; position: relative;
}

/* 🔥 AJUSTE: Logo de Serex más prominente en móvil (de 80px a 100px) */
.sbh-top-logo-img { max-height: 100px; max-width: 100%; filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5)); }
.sbh-top-title { font-size: 32px; font-weight: 900; margin: 0; }

.sbh-ig-icon-top {
    width: 36px; height: 36px; padding: 8px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.sbh-ig-icon-top svg { width: 100%; height: 100%; }
.sbh-ig-icon-top:hover { transform: scale(1.1); border-color: rgba(255,255,255,0.3); }

/* GRID RESPONSIVO */
.sbh-brands-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 800px) { .sbh-brands-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; } }

/* CARDS GLASSMORPHISM */
.sbh-pro-card {
    background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 20px;
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), inset 0 2px 0 rgba(255,255,255,0.05);
}
.sbh-card-inner { padding: 20px; height: 100%; display: flex; flex-direction: column; align-items: center; }
.sbh-logo-wrap { height: 55px; display: flex; align-items: center; margin-bottom: 20px; }
.sbh-img-fluid { max-height: 100%; max-width: 100%; object-fit: contain; }

/* ACCIONES */
.sbh-action-grid-3 {
    width: 100%; display: grid;
    grid-template-columns: 1fr 1fr 44px;
    gap: 8px; margin-top: auto;
}

.sbh-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 6px; border-radius: 12px; font-size: 13px; font-weight: 700;
    text-decoration: none; border: none; cursor: pointer; transition: all 0.3s ease;
}
.sbh-btn svg { width: 16px !important; height: 16px !important; flex-shrink: 0; display: block;}
.sbh-btn span { display: inline-block; white-space: nowrap;}

.sbh-btn-glass { 
    background: rgba(255, 255, 255, 0.08); 
    color: #fff; 
    border: 1px solid rgba(255,255,255,0.15); 
}
.sbh-btn-glass:hover { 
    background: rgba(255, 255, 255, 0.15); 
    border-color: rgba(255,255,255,0.3); 
    transform: translateY(-2px);
}

.sbh-btn-wa { 
    background: linear-gradient(135deg, #25d366 0%, #128c4b 100%); 
    color: #ffffff !important; 
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4); 
    animation: sbhPulseCTA 2s infinite; 
}
.sbh-btn-wa svg { color: #ffffff; }
.sbh-btn-wa:hover { 
    transform: translateY(-2px) scale(1.02); 
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.6); 
    animation: none; 
}

@keyframes sbhPulseCTA {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); } 
    70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); } 
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.sbh-btn-ig-only {
    padding: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center; border-radius: 12px;
    transition: all 0.3s ease;
}
.sbh-btn-ig-only svg { width: 22px !important; height: 22px !important; }
.sbh-btn-ig-only:hover { 
    background: rgba(255,255,255,0.15); 
    border-color: rgba(255,255,255,0.3); 
    transform: translateY(-2px);
}

/* CTA */
.sbh-cta-area { text-align: center; margin-top: 5px; }
.sbh-btn-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3); border-radius: 14px;}
.sbh-btn-large { padding: 16px 30px; font-size: 15px; min-width: 300px; display: inline-flex; justify-content: center; }

/* FIRMA */
.sbh-footer-dev {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.5px;
    margin-top: auto;
    padding-top: 15px;
    text-transform: uppercase;
}

/* MODAL */
.sbh-pro-modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background: rgba(2, 6, 23, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.sbh-modal-box { background: #0f172a; border: 1px solid rgba(255,255,255,0.15); border-radius: 24px; padding: 40px; width: 90%; max-width: 450px; margin: 10vh auto; position: relative; box-shadow: 0 30px 60px rgba(0,0,0,0.8); }
.sbh-close-btn { position: absolute; top: 20px; right: 25px; font-size: 32px; color: var(--text-muted); cursor: pointer; transition: 0.2s; }
.sbh-close-btn:hover { color: #fff; }
.sbh-modal-box h3 { margin: 0 0 10px 0; font-size: 26px; color: #fff; font-weight: 800;}
.sbh-modal-box p { color: var(--text-muted); font-size: 15px; margin-bottom: 25px; }

.sbh-input-group { margin-bottom: 16px; }
.sbh-input-group input {
    width: 100%; padding: 18px 20px; border-radius: 16px;
    background: rgba(255, 255, 255, 0.05); border: 2px solid rgba(255, 255, 255, 0.1);
    color: #ffffff; font-size: 16px; font-weight: 500; transition: 0.3s;
}
.sbh-input-group input::placeholder { color: #94a3b8; font-weight: 400; }
.sbh-input-group input:focus { outline: none; border-color: var(--accent-blue); background: rgba(37,99,235,0.1); box-shadow: 0 0 0 4px rgba(37,99,235,0.2); }
.sbh-btn-block { width: 100%; margin-top: 15px; padding: 18px; font-size: 16px; }
.sbh-response { margin-top: 15px; font-size: 15px; text-align: center; font-weight: 600;}

/* ESCRITORIO / PC */
@media (min-width: 800px) {
    .sbh-pro-wrapper { padding: 60px 24px 20px; min-height: 100vh; }
    .sbh-pro-container { gap: 40px; }
    .sbh-top-logo-img { max-height: 120px; } 
    .sbh-top-title { font-size: 42px; letter-spacing: 2px; }
    .sbh-ig-icon-top { width: 44px; height: 44px; padding: 10px; border-radius: 12px; }
    
    .sbh-brands-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .sbh-pro-card { border-radius: 24px; }
    .sbh-card-inner { padding: 30px; }
    .sbh-logo-wrap { height: 90px; margin-bottom: 25px; }
    
    .sbh-action-grid-3 { gap: 10px; grid-template-columns: 1fr 1fr 50px;}
    .sbh-btn { padding: 14px 10px; border-radius: 12px; font-size: 14px; }
    .sbh-btn svg { width: 18px !important; height: 18px !important; }
    .sbh-btn-ig-only { padding: 12px; }
    .sbh-btn-ig-only svg { width: 24px !important; height: 24px !important; }
    
    .sbh-cta-area { margin-top: 20px; }
    .sbh-btn-large { padding: 20px 40px; font-size: 16px; min-width: 300px; }
    .sbh-footer-dev { font-size: 12px; padding-top: 30px; }
}