/* =========================================================
   LICENCIASSOFTWARE.COM — Institutional Page
   Modern, clean, single-page design
   ========================================================= */

/* --- Reset & Base ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #1a1a2e; background: #fff; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* --- Custom Properties ----------------------------------- */
:root {
  --primary:      #0057A8;
  --primary-dark: #003d7a;
  --primary-soft: #e8f0fe;
  --accent:       #F25022;
  --accent-dark:  #c93e13;
  --sky:          #00A4EF;
  --dark:         #0F172A;
  --mid:          #334155;
  --muted:        #64748B;
  --border:       #E2E8F0;
  --light:        #F8FAFC;
  --white:        #FFFFFF;

  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  20px;

  --shadow:    0 2px 16px rgba(0, 0, 0, .07);
  --shadow-md: 0 6px 30px rgba(0, 0, 0, .09);
  --shadow-lg: 0 16px 56px rgba(0, 0, 0, .12);
}

/* --- Layout Utilities ------------------------------------ */
.container  { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 100px 0; }
.section--alt  { background: var(--light); }
.section--dark {
  background: linear-gradient(135deg, var(--dark) 0%, #0057A8 100%);
}

/* --- Section Header -------------------------------------- */
.section-header { margin-bottom: 56px; max-width: 620px; }
.section-header--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-header--center .section-sub { margin-left: auto; margin-right: auto; }

.section-label {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-label--light { color: var(--sky); }

.section-title {
  font-size: clamp(1.875rem, 4vw, 2.875rem);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.18;
  margin-bottom: 16px;
}
.section-title--light { color: #fff; }

.section-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.7;
}
.section-sub--light { color: rgba(255, 255, 255, .72); }

/* --- Buttons --------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .18s, color .18s, transform .18s, box-shadow .18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0, 87, 168, .28);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(242, 80, 34, .28);
}
.btn-white {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--light);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, .9);
  border: 1.5px solid rgba(255, 255, 255, .35);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .6);
}

/* --- Scroll Fade-in -------------------------------------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 18px 0;
  transition: background .3s, backdrop-filter .3s, box-shadow .3s, padding .3s;
}
.nav.scrolled {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.1875rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
  transition: color .2s;
}
.nav-logo span { color: var(--sky); }
.nav.scrolled .nav-logo { color: var(--dark); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links li a {
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  transition: color .2s;
}
.nav.scrolled .nav-links li a { color: var(--mid); }
.nav-links li a:hover { color: #fff; }
.nav.scrolled .nav-links li a:hover { color: var(--primary); }

.nav-cta a { padding: 9px 18px !important; font-size: .875rem !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 210;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: background .3s, transform .3s, opacity .3s;
}
.nav.scrolled .hamburger span { background: var(--dark); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0F172A 0%, #0057A8 55%, #00A4EF 100%);
  display: flex;
  align-items: center;
  padding-top: 88px;
  position: relative;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 64px 0;
}

/* Hero content */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .92);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero-badge svg { color: var(--sky); flex-shrink: 0; }

.hero-title {
  font-size: clamp(2.125rem, 5vw, 3.625rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.14;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.hero-title em { font-style: normal; color: var(--sky); }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .78);
  margin-bottom: 40px;
  max-width: 520px;
  line-height: 1.72;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, .7);
  font-size: .8125rem;
  font-weight: 500;
}
.trust-item svg { color: var(--sky); flex-shrink: 0; }

/* Hero visual — product cards */
.hero-visual { display: flex; justify-content: center; }

.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.hero-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  padding: 24px 20px;
  backdrop-filter: blur(8px);
  transition: background .2s, transform .25s;
}
.hero-card:hover {
  background: rgba(255, 255, 255, .13);
  transform: translateY(-4px);
}
.hero-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, .12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky);
  margin-bottom: 12px;
}
.hero-card-name {
  color: #fff;
  font-weight: 700;
  font-size: .9375rem;
  margin-bottom: 4px;
}
.hero-card-desc {
  color: rgba(255, 255, 255, .56);
  font-size: .8125rem;
}

/* =========================================================
   PRODUCTS
   ========================================================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 22px;
}
.product-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.product-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--sky));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.product-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}
.product-card:hover::after { transform: scaleX(1); }

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.product-icon--blue   { background: #dbeafe; color: #1d4ed8; }
.product-icon--indigo { background: #e0e7ff; color: #4338ca; }
.product-icon--green  { background: #dcfce7; color: #15803d; }
.product-icon--rose   { background: #ffe4e6; color: #be123c; }
.product-icon--amber  { background: #fef3c7; color: #b45309; }
.product-icon--violet { background: #ede9fe; color: #7c3aed; }
.product-icon--sky    { background: #e0f2fe; color: #0369a1; }
.product-icon--lime   { background: #ecfccb; color: #4d7c0f; }

.product-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.product-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.68;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}
.tag {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--light);
  color: var(--mid);
  letter-spacing: .01em;
}

/* =========================================================
   PROGRAMS
   ========================================================= */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 20px;
}
.program-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: border-color .22s, box-shadow .22s, transform .22s;
}
.program-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(0, 87, 168, .07), var(--shadow);
  transform: translateY(-3px);
}
.program-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--sky));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: #fff;
}
.program-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.program-desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* =========================================================
   BENEFITS
   ========================================================= */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 36px;
}
.benefit {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.benefit-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--sky));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.benefit-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.benefit-desc {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.68;
}

/* =========================================================
   LOCATION (reemplaza cobertura)
   ========================================================= */
.location-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.location-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: background .22s, transform .22s;
}
.location-card:hover {
  background: rgba(255, 255, 255, .14);
  transform: translateY(-3px);
}
.location-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky);
  margin: 0 auto 16px;
}
.location-label {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--sky);
  margin-bottom: 8px;
}
.location-value {
  font-weight: 700;
  color: #fff;
  font-size: 1.0625rem;
  margin-bottom: 6px;
  word-break: break-word;
}
.location-sub {
  font-size: .8125rem;
  color: rgba(255, 255, 255, .58);
  line-height: 1.55;
}

/* =========================================================
   COVERAGE (legacy — mantenido por compatibilidad)
   ========================================================= */
.countries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
}
.country-card {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: background .22s, transform .22s;
}
.country-card:hover {
  background: rgba(255, 255, 255, .15);
  transform: translateY(-3px);
}
.country-flag { font-size: 2.75rem; margin-bottom: 10px; line-height: 1; }
.country-name {
  font-weight: 700;
  color: #fff;
  font-size: .9375rem;
  margin-bottom: 4px;
}
.country-phone { font-size: .8125rem; color: rgba(255, 255, 255, .55); }

.coverage-cta {
  text-align: center;
  margin-top: 56px;
}
.coverage-cta-label {
  color: rgba(255, 255, 255, .65);
  font-size: .9rem;
  margin-bottom: 16px;
}
.coverage-cta-btn {
  font-size: 1.0625rem;
  padding: 16px 40px;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 64px;
  align-items: start;
}

/* Contact info column */
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}
.contact-item-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--sky));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.contact-item-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}
.contact-item-value {
  font-weight: 700;
  color: var(--dark);
  font-size: 1rem;
  word-break: break-all;
}
.contact-item-sub {
  font-size: .8125rem;
  color: var(--primary);
  margin-top: 3px;
}
.contact-promo {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 8px;
}
.contact-promo-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.contact-promo-desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 16px;
}
.contact-promo-btn { width: 100%; justify-content: center; }

/* Contact form */
.contact-form-wrap {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-md);
}
.contact-form-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 7px;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  font-family: inherit;
  color: var(--dark);
  background: var(--light);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 87, 168, .09);
}
.form-input::placeholder { color: #94a3b8; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='https://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}
.form-textarea {
  resize: vertical;
  min-height: 112px;
}
.form-submit {
  width: 100%;
  justify-content: center;
  padding: 15px;
  font-size: 1rem;
  margin-top: 4px;
}
.form-disclaimer {
  font-size: .8125rem;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .58);
  padding: 72px 0 36px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}
.footer-logo span { color: var(--sky); }
.footer-desc {
  font-size: .9rem;
  line-height: 1.75;
  max-width: 300px;
  margin-bottom: 20px;
}
.footer-contact-quick {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  color: rgba(255, 255, 255, .58);
  transition: color .2s;
}
.footer-contact-link:hover { color: #fff; }
.footer-heading {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: 18px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links a {
  font-size: .9rem;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: .8125rem;
}
.footer-bottom a {
  color: rgba(255, 255, 255, .45);
  transition: color .2s;
}
.footer-bottom a:hover { color: #fff; }
.footer-disclaimer { color: rgba(255, 255, 255, .3); max-width: 600px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .hero-card-grid { max-width: 420px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Mobile — 768px */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  /* Mobile nav */
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    font-size: 1.125rem;
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-links.open li a { color: rgba(255, 255, 255, .85); }
  .nav-links.open li a:hover { color: #fff; }
  .nav-cta { margin-left: 0; }

  /* Hero */
  .hero-inner { text-align: center; gap: 40px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-card-grid { grid-template-columns: repeat(2, 1fr); max-width: 360px; }

  /* Sections */
  .section-header { margin-bottom: 40px; }
  .products-grid { grid-template-columns: 1fr; }
  .programs-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Contact */
  .contact-form-wrap { padding: 28px 24px; }
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* Small mobile — 480px */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-card-grid { grid-template-columns: 1fr; max-width: 280px; }
  .hero-title { font-size: 2rem; }
  .countries-grid { grid-template-columns: repeat(2, 1fr); }
  .programs-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
