/* =============================================
   UBES Academy — Servicios & Desarrollo
   styles.css
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Syne:wght@700;800;900&display=swap');

:root {
  --primary-dark:  #162097;
  --primary-light: #2b3bf7;
  --accent:        #11b88d;
  --accent-light:  #13d4a3;
  --dark:          #0d1554;
  --light-bg:      #eef1ff;
  --text:          #162240;
  --muted:         #5a6a99;
  --border:        #c8d0f0;
  --white:         #ffffff;
  --font-main:     'Nunito', sans-serif;
  --font-display:  'Syne', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-main); color: var(--text); background: #fff; overflow-x: hidden; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 90px;
  box-shadow: 0 2px 16px rgba(22,32,151,0.08);
  border-bottom: 2px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 52px; }
.nav-logo span { font-family: var(--font-display); font-size: 1rem; font-weight: 800; color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-back { color: var(--primary-dark); text-decoration: none; font-weight: 700; font-size: 0.88rem; padding: 8px 18px; border-radius: 20px; border: 2px solid var(--border); transition: all 0.2s; }
.nav-back:hover { background: var(--light-bg); border-color: var(--primary-light); }
.btn-cotizar-nav { background: var(--accent); color: #fff; text-decoration: none; font-weight: 800; padding: 10px 22px; border-radius: 20px; font-size: 0.9rem; transition: all 0.2s; border: none; cursor: pointer; font-family: var(--font-main); }
.btn-cotizar-nav:hover { background: var(--accent-light); transform: scale(1.04); }

/* ── HERO ── */
.hero {
  padding-top: 90px;
  background: linear-gradient(135deg, #0d1554 0%, #162097 55%, #1e2db0 100%);
  min-height: 55vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 15% 50%, rgba(17,184,141,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 85% 30%, rgba(43,59,247,0.2) 0%, transparent 60%);
}
/* Grid pattern overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 60px 24px; max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(17,184,141,0.15); border: 1px solid rgba(17,184,141,0.4);
  color: var(--accent-light); font-size: 0.78rem; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; padding: 6px 18px;
  border-radius: 100px; margin-bottom: 24px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900; color: #fff; line-height: 1.1;
  margin-bottom: 18px; letter-spacing: -1px;
}
.hero h1 em { color: var(--accent-light); font-style: normal; }
.hero p { color: rgba(255,255,255,0.78); font-size: 1.05rem; line-height: 1.75; max-width: 580px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--accent); color: #fff; padding: 14px 34px;
  border-radius: 100px; font-size: 1rem; font-weight: 800;
  text-decoration: none; border: none; cursor: pointer; font-family: var(--font-main);
  transition: all 0.25s; box-shadow: 0 8px 24px rgba(17,184,141,0.4); display: inline-block;
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-secondary {
  background: rgba(255,255,255,0.12); color: #fff; padding: 14px 34px;
  border-radius: 100px; font-size: 1rem; font-weight: 800;
  text-decoration: none; border: 2px solid rgba(255,255,255,0.3);
  transition: all 0.25s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ── SECCIÓN SERVICIOS ── */
.services-section { padding: 80px 40px; background: #fff; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.slabel {
  display: inline-block; font-size: 0.78rem; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; color: var(--accent);
  background: rgba(17,184,141,0.1); padding: 5px 16px; border-radius: 100px; margin-bottom: 16px;
}
.stitle { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; color: var(--dark); line-height: 1.2; margin-bottom: 14px; }
.stitle em { color: var(--accent); font-style: normal; }
.ssub { color: var(--muted); font-size: 1rem; line-height: 1.75; max-width: 600px; margin: 0 auto; }

/* ── GRID DE SERVICIOS ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.service-card {
  border-radius: 20px; border: 2px solid var(--border);
  background: #fff; overflow: hidden;
  transition: all 0.3s; display: flex; flex-direction: column;
  position: relative;
}
.service-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(22,32,151,0.12);
}

.service-card-header {
  height: 200px;
  position: relative; overflow: hidden;
}
.service-card-header img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.service-card:hover .service-card-header img {
  transform: scale(1.05);
}
.service-card-header .overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; padding: 16px;
}
.h-web   .overlay { background: linear-gradient(to top, rgba(13,21,84,0.75) 0%, rgba(43,59,247,0.25) 100%); }
.h-movil .overlay { background: linear-gradient(to top, rgba(22,32,151,0.75) 0%, rgba(76,110,245,0.2) 100%); }
.h-desk  .overlay { background: linear-gradient(to top, rgba(13,21,84,0.75) 0%, rgba(22,32,151,0.2) 100%); }
.h-coach .overlay { background: linear-gradient(to top, rgba(74,0,128,0.75) 0%, rgba(155,89,182,0.2) 100%); }
.h-mant  .overlay { background: linear-gradient(to top, rgba(26,26,46,0.8) 0%, rgba(74,74,138,0.2) 100%); }
.h-auto  .overlay { background: linear-gradient(to top, rgba(10,54,34,0.78) 0%, rgba(17,184,141,0.2) 100%); }
.h-aseso .overlay { background: linear-gradient(to top, rgba(22,32,151,0.75) 0%, rgba(10,143,108,0.2) 100%); }

.service-card-header .card-label {
  font-size: 0.75rem; font-weight: 800; color: rgba(255,255,255,0.9);
  letter-spacing: 1.5px; text-transform: uppercase;
  background: rgba(0,0,0,0.3); padding: 4px 12px; border-radius: 100px;
  backdrop-filter: blur(4px);
}

.service-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.service-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800;
  padding: 3px 10px; border-radius: 100px; margin-bottom: 10px;
  background: var(--light-bg); color: var(--muted);
}
.service-card h3 { font-size: 1.1rem; font-weight: 900; color: var(--dark); margin-bottom: 10px; line-height: 1.3; }
.service-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; flex: 1; margin-bottom: 20px; }
.service-highlights { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.service-highlights span {
  font-size: 0.76rem; font-weight: 700; padding: 4px 10px;
  border-radius: 100px; background: var(--light-bg); color: var(--primary-dark);
}
.btn-service {
  display: block; width: 100%; padding: 12px;
  border-radius: 100px; font-size: 0.92rem; font-weight: 800;
  text-align: center; cursor: pointer; border: 2px solid var(--primary-dark);
  color: var(--primary-dark); background: transparent;
  transition: all 0.25s; font-family: var(--font-main);
}
.btn-service:hover { background: var(--primary-dark); color: #fff; }
.btn-service.accent { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(17,184,141,0.35); }
.btn-service.accent:hover { background: var(--accent-light); border-color: var(--accent-light); }

/* ── WHATSAPP FLOTANTE ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 9000;
  display: flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff; text-decoration: none;
  padding: 14px 22px; border-radius: 100px;
  font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 8px 28px rgba(37,211,102,0.45);
  transition: all 0.25s; animation: waPulse 3s ease-in-out infinite;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 14px 35px rgba(37,211,102,0.55); }
.wa-float svg { width: 24px; height: 24px; flex-shrink: 0; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 28px rgba(37,211,102,0.45); }
  50%       { box-shadow: 0 8px 28px rgba(37,211,102,0.7), 0 0 0 8px rgba(37,211,102,0.1); }
}

/* ── SOFTWARE PREVIEW ── */
.software-preview {
  background: linear-gradient(135deg, var(--dark), var(--primary-dark));
  padding: 72px 40px; text-align: center;
}
.software-preview h2 { font-family: var(--font-display); font-size: clamp(1.8rem,4vw,2.4rem); font-weight: 900; color: #fff; margin-bottom: 14px; }
.software-preview p { color: rgba(255,255,255,0.72); font-size: 1rem; max-width: 520px; margin: 0 auto 32px; line-height: 1.7; }
.btn-software {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.12); border: 2px solid rgba(255,255,255,0.3);
  color: #fff; text-decoration: none; padding: 14px 32px;
  border-radius: 100px; font-weight: 800; font-size: 1rem;
  transition: all 0.25s;
}
.btn-software:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ── MODAL COTIZACIÓN ── */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(13,21,84,0.85); z-index: 9998;
  align-items: center; justify-content: center;
  padding: 16px; backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: #fff; border-radius: 24px; width: 100%;
  max-width: 620px; max-height: 90vh; overflow-y: auto;
  position: relative; box-shadow: 0 32px 80px rgba(13,21,84,0.5);
  animation: popIn 0.3s ease both;
}
@keyframes popIn { from { opacity: 0; transform: scale(0.93) translateY(16px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-head {
  background: linear-gradient(135deg, #0d1554, #162097);
  padding: 32px 36px 24px; border-radius: 24px 24px 0 0;
}
.modal-badge-tag {
  display: inline-block; background: rgba(17,184,141,0.2);
  color: #11b88d; font-size: 0.75rem; font-weight: 800;
  padding: 4px 14px; border-radius: 20px; margin-bottom: 10px;
  border: 1px solid rgba(17,184,141,0.4);
}
.modal-head h2 { font-size: 1.4rem; font-weight: 900; color: #fff; margin-bottom: 6px; }
.modal-head p { color: rgba(255,255,255,0.72); font-size: 0.9rem; line-height: 1.6; }
.modal-close {
  position: absolute; top: 14px; right: 18px;
  background: rgba(255,255,255,0.15); border: none; width: 32px; height: 32px;
  border-radius: 50%; font-size: 1.1rem; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.25); }
.modal-body { padding: 28px 36px 32px; }
.fgroup { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.fgroup label { font-size: 0.82rem; font-weight: 800; color: var(--text); }
.fgroup input, .fgroup select, .fgroup textarea {
  padding: 11px 14px; border: 2px solid var(--border);
  border-radius: 12px; font-family: var(--font-main);
  font-size: 0.92rem; color: var(--text); outline: none;
  transition: border-color 0.2s; background: #fff;
}
.fgroup input:focus, .fgroup select:focus, .fgroup textarea:focus { border-color: var(--primary-light); }
.fgroup textarea { resize: vertical; }
.frow { display: flex; gap: 14px; }
.frow .fgroup { flex: 1; min-width: 0; }
.fsubmit {
  width: 100%; padding: 14px; background: var(--primary-dark);
  color: #fff; border: none; border-radius: 100px;
  font-family: var(--font-main); font-size: 1rem; font-weight: 900;
  cursor: pointer; transition: all 0.25s; margin-top: 8px;
}
.fsubmit:hover { background: var(--primary-light); transform: translateY(-2px); }
.fsubmit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.form-msg { padding: 12px 16px; border-radius: 12px; font-size: 0.9rem; font-weight: 700; margin-top: 12px; }
.fnote { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 12px; }

/* ── FOOTER ── */
.footer-mini { background: var(--dark); padding: 24px 40px; text-align: center; }
.footer-mini p { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-mini a { color: var(--accent-light); text-decoration: none; font-weight: 700; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .nav-logo span { display: none; }
  .services-section { padding: 60px 16px; }
  .software-preview { padding: 52px 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .modal-body { padding: 20px; }
  .modal-head { padding: 24px 20px 20px; }
  .frow { flex-direction: column; gap: 0; }
  .wa-float span { display: none; }
  .wa-float { padding: 14px; border-radius: 50%; }
}
