/* Tipografías Modernas */
body { margin: 0; font-family: 'Inter', sans-serif; background: #000000; color: #fff; }
h1, h2, h3 { font-family: 'Montserrat', sans-serif; letter-spacing: -0.5px; }

/* -------------------------------------------
   HEADER USUARIO (Transparente)
------------------------------------------- */
.user-header {
    position: fixed; top: 0; left: 0; right: 0; padding: 15px 30px;
    background: transparent;
    display: flex; justify-content: flex-end; z-index: 500;
    border: none;
}
.user-profile { display: flex; align-items: center; gap: 15px; }
.user-avatar { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #00b259; }
.user-info { display: flex; flex-direction: column; }
.user-name { font-weight: 600; font-size: 0.95rem; }
.user-email { font-size: 0.8rem; color: #9ab0c4; }
.logout-btn {
    background: transparent; border: 1px solid #ff4d4d; color: #ff4d4d;
    padding: 8px 15px; border-radius: 20px; cursor: pointer; font-weight: 600; transition: 0.3s;
}
.logout-btn:hover { background: #ff4d4d; color: #fff; }

/* -------------------------------------------
   CARRUSEL DE FONDO Y HERO
------------------------------------------- */
.bg-slideshow { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1; background: #000; }
.slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background-size: cover; background-position: center; opacity: 0;
  animation: fade 15s infinite; transform: scale(1.05);
}
.slide::after { content: ''; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.65); }
.slide-1 { background-image: url('images/fondo-1.jpg'); animation-delay: 0s; }
.slide-2 { background-image: url('images/fondo-2.jpg'); animation-delay: 5s; }
.slide-3 { background-image: url('images/fondo-3.jpg'); animation-delay: 10s; }

@keyframes fade {
  0% { opacity: 0; transform: scale(1.05); }
  10% { opacity: 1; transform: scale(1.03); }
  33% { opacity: 1; transform: scale(1.0); }
  43% { opacity: 0; transform: scale(0.98); }
  100% { opacity: 0; transform: scale(1.05); }
}

.hero { height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-content { padding: 20px; max-width: 800px; animation: fadeIn 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.logo { max-width: 280px; margin-bottom: 15px; filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.6)); }
.hero-content h1 { font-size: 2.5rem; margin-bottom: 10px; text-shadow: 0px 4px 15px rgba(0,0,0,0.8); }
.hero-content p { font-size: 1.1rem; color: #e0e6ed; font-weight: 300; text-shadow: 0px 2px 10px rgba(0,0,0,0.8); }
.btn {
  background: #00b259; padding: 16px 35px; border-radius: 50px; color: #ffffff;
  text-decoration: none; font-weight: 600; display: inline-block; margin-top: 35px;
  transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(0, 178, 89, 0.2);
}
.btn:hover { transform: translateY(-4px); box-shadow: 0 12px 25px rgba(0, 178, 89, 0.4); background: #00d369; }

/* -------------------------------------------
   SECCIÓN SOFTWARE Y MODAL
------------------------------------------- */
.software { display: flex; flex-wrap: wrap; justify-content: center; gap: 35px; padding: 100px 10%; background: #000000; }
.card {
  background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.08); border-top: 4px solid #00b259;
  padding: 45px 30px; border-radius: 18px; cursor: pointer; text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); display: flex; flex-direction: column;
  align-items: center; justify-content: space-between; width: 260px;
}
.card:hover {
  transform: translateY(-12px) scale(1.02); background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 40px rgba(0, 178, 89, 0.15); border-color: rgba(0, 178, 89, 0.5);
}
.card-icon { font-size: 45px; margin-bottom: 20px; }
.card h3 { margin: 0 0 10px 0; font-size: 1.4rem; color: #ffffff; }
.card p { margin: 0 0 20px 0; font-size: 0.95rem; color: #9ab0c4; line-height: 1.5; }
.card-link { font-size: 0.9rem; font-weight: 700; color: #00b259; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s ease; }
.card:hover .card-link { color: #ffffff; }

.modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,.9); backdrop-filter:blur(10px); align-items:center; justify-content:center; z-index: 1000; }
.modal-content { background:#0a121d; width:90%; max-width:1000px; border-radius:20px; padding:35px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 30px 60px rgba(0,0,0,0.8); }
.modal-grid { display:grid; grid-template-columns:350px 1fr; gap:40px; align-items: center; }
.modal-img { width:100%; border-radius:12px; box-shadow: 0 10px 20px rgba(0,0,0,0.5); background:#111; min-height:200px; }
.close { float:right; font-size:36px; cursor:pointer; color:#888; transition: color 0.3s; }
.close:hover { color: #00b259; }
.portal { background:#00b259; color:#ffffff; padding:12px 25px; border-radius:30px; text-decoration:none; font-weight:bold; display: inline-block; margin-top: 20px; transition: all 0.3s ease; }
.portal:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,178,89,0.3); }

/* -------------------------------------------
   RESPONSIVO
------------------------------------------- */
@media(max-width:900px){
  .modal-grid { grid-template-columns:1fr; gap: 20px; }
  .software { padding: 50px 5%; }
  .user-header { flex-direction: column; align-items: flex-end; padding: 10px; }
  .user-info { display: none; }
}