/* =====================================================================
   ESTILOS ESPECÍFICOS: INSTANCIAS CMS
   ===================================================================== */

/* NAV ESPECÍFICO DE PRODUCTO */
.product-nav { border-bottom: 1px solid var(--glass-border); padding: 15px 0; position: sticky; top: 0; background: rgba(10, 15, 25, 0.6); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); z-index: 100; transform: translateZ(0); will-change: backdrop-filter; }
.product-logo { font-weight: 800; font-size: 24px; color: var(--text-main); display: flex; align-items: center; gap: 8px; }
.product-logo i { color: var(--primary); }
.back-link { font-size: 15px; color: var(--text-muted); font-weight: 600; display: flex; align-items: center; gap: 8px; transition: 0.3s;}
.back-link:hover { color: var(--text-main); transform: translateX(-5px); }

/* Sobrescribimos el botón primary global para adaptarlo al Hero */
.product-btn { padding: 14px 30px !important; font-size: 15px !important; }

/* ESTRUCTURA UNIFICADA ABOVE THE FOLD */
.unified-product { padding: 50px 0 60px; flex-grow: 1; display: flex; align-items: center; position: relative; z-index: 10; }
.product-header { display: flex; align-items: center; gap: 50px; margin-bottom: 50px; }

.hero-text { flex: 1; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; letter-spacing: 1px; margin-bottom: 20px; }
.tag-warning { background: rgba(245, 158, 11, 0.2); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }

.hero-text h1 { font-size: 48px; font-weight: 800; margin: 0 0 20px 0; line-height: 1.1; letter-spacing: -1px; }
.hero-text h1 span { color: var(--warning); } 
.hero-text p { font-size: 16px; color: var(--text-muted); line-height: 1.6; font-weight: 300; max-width: 550px; margin:0;}

/* SERVER RACK VISUAL (Representación de Instancias) */
.hero-visual { flex: 1; display: flex; justify-content: flex-end; perspective: 1000px; }
.server-rack { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 420px; transform: rotateY(-15deg) rotateX(5deg); transform-style: preserve-3d; }

.server-node { background: rgba(20, 25, 35, 0.8); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid var(--glass-border); border-radius: 12px; padding: 25px; display: flex; align-items: center; gap: 20px; position: relative; box-shadow: 0 15px 35px rgba(0,0,0,0.4); transition: 0.4s; transform: translateZ(0); will-change: transform, border-color;}
.server-node:hover { transform: translateZ(20px); border-color: rgba(255,255,255,0.2); }

.server-node.active { border-color: rgba(16, 185, 129, 0.3); box-shadow: 0 15px 35px rgba(16, 185, 129, 0.1); }
.node-icon { font-size: 35px; color: #3b82f6; width: 50px; text-align: center; text-shadow: 0 2px 10px rgba(0,0,0,0.5);}
.node-info { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.node-info strong { font-size: 18px; color: var(--text-main); text-shadow: 0 2px 5px rgba(0,0,0,0.8);}
.node-info span { font-size: 13px; color: var(--text-muted); }

.node-status { width: 12px; height: 12px; border-radius: 50%; position: absolute; right: 25px; top: 50%; transform: translateY(-50%); }
.node-status.green { background: #10b981; box-shadow: 0 0 10px #10b981; animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } }

/* FEATURES COMPACTOS */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; position: relative; z-index: 10;}
.feature-card { background: rgba(20, 25, 35, 0.5); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border: 1px solid var(--glass-border); border-radius: 16px; padding: 25px; transition: 0.4s; transform: translateZ(0); will-change: transform, backdrop-filter;}
.feature-card:hover { transform: translateY(-8px) translateZ(0); border-color: rgba(255,255,255,0.15); box-shadow: 0 15px 35px rgba(0,0,0,0.5); }
.icon-box { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 20px; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); box-shadow: inset 0 0 20px rgba(255,255,255,0.02); }
.icon-box.blue { color: #3b82f6; }
.icon-box.green { color: #10b981; }
.icon-box.purple { color: #8b5cf6; }
.feature-card h3 { font-size: 18px; margin: 0 0 10px 0; font-weight: 700; color: var(--text-main); text-shadow: 0 2px 10px rgba(0,0,0,0.8);}
.feature-card p { color: #e2e8f0; font-size: 14px; line-height: 1.6; margin: 0; font-weight: 300; text-shadow: 0 2px 8px rgba(0,0,0,0.8);}

/* MODALES DE GATEWAY */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 1000; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; transform: translateZ(0);}
.gateway-card { background: rgba(20, 25, 35, 0.85); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 24px; padding: 50px; text-align: center; max-width: 550px; width: 100%; box-shadow: 0 25px 50px rgba(0,0,0,0.5); position: relative; animation: modalIn 0.3s ease-out forwards; transform: translateZ(0);}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

.close-modal { position: absolute; top: 20px; right: 20px; background: transparent; border: none; color: #94a3b8; font-size: 24px; cursor: pointer; transition: 0.3s; }
.close-modal:hover { color: white; transform: rotate(90deg); }

.cms-logo { font-size: 60px; margin-bottom: 20px; }
.gateway-card h2 { margin: 0 0 10px 0; font-size: 26px; font-weight: 800; color: white; text-shadow: 0 2px 10px rgba(0,0,0,0.8);}
.gateway-card p { color: #e2e8f0; font-size: 14px; margin-bottom: 40px; line-height: 1.6; text-shadow: 0 2px 8px rgba(0,0,0,0.8);}

.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.btn-gateway { padding: 20px 15px; border-radius: 16px; font-weight: 600; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: 0.3s; border: 1px solid transparent; font-size: 14px;}
.btn-gateway i { font-size: 28px; }

.btn-front { background: rgba(59, 130, 246, 0.1); color: #3b82f6; border-color: rgba(59, 130, 246, 0.3); }
.btn-front:hover { background: #3b82f6; color: white; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4); }

.btn-back-ps { background: rgba(16, 185, 129, 0.1); color: #10b981; border-color: rgba(16, 185, 129, 0.3); }
.btn-back-ps:hover { background: #10b981; color: white; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4); }

.btn-back-wc { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; border-color: rgba(139, 92, 246, 0.3); }
.btn-back-wc:hover { background: #8b5cf6; color: white; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(139, 92, 246, 0.4); }

.btn-locked { background: rgba(255,255,255,0.02); color: #475569; border-color: rgba(255,255,255,0.05); cursor: not-allowed; }
.btn-locked:hover { transform: none; box-shadow: none; background: rgba(255,255,255,0.02); color: #475569; }

/* RESPONSIVE MÓVIL */
@media (max-width: 992px) {
    .unified-product { padding: 40px 0; display: block; }
    .product-header { flex-direction: column; text-align: center; gap: 40px; }
    .hero-text h1 { font-size: 38px; }
    .hero-text p { margin: 0 auto; }
    .hero-visual { justify-content: center; width: 100%; margin-top: 20px;}
    .server-rack { transform: none; max-width: 100%; }
}
@media (max-width: 768px) { 
    .server-node { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
    .feature-card { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
}
@media (max-width: 600px) { 
    .btn-grid { grid-template-columns: 1fr; } 
    .gateway-card { padding: 40px 20px; } 
}