/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0A122B;
  --teal:   #219096;
  --light-teal: #36E3D9;
  --sky:    #55ACED;
  --white:  #FFFFFF;
  --gray:   #7A7A7A;
  --light:  #E2E9EB;
  --font:   'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

ul { list-style: none; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── HEADER ─── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s;
  border-bottom: 2px solid rgba(255,255,255,0.15);
}

#header.scrolled {
  background: rgba(10, 18, 43, 0.92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo img { height: 52px; display: block; }
.logo-text {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

#mainNav ul {
  display: flex;
  align-items: center;
  gap: 0;
}

#mainNav ul li a {
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 10px 18px;
  display: block;
  transition: color 0.3s;
}

#mainNav ul li a:hover { color: var(--light-teal); }

.btn-login {
  background: var(--teal);
  color: var(--white) !important;
  padding: 10px 22px !important;
  border-radius: 4px;
  margin-left: 8px;
  transition: background 0.3s !important;
}
.btn-login:hover { background: var(--light-teal) !important; color: var(--navy) !important; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('https://auctorysolver.cl/wp-content/uploads/2022/05/HOME-01.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,18,43,0.82) 0%, rgba(33,144,150,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin-left: 10%;
  padding: 8rem 2rem 6rem;
  animation: fadeInLeft 0.9s ease both;
}

.hero-content h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.hero-content p {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255,255,255,0.88);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 14px 36px;
  border-radius: 50px;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover {
  background: var(--light-teal);
  color: var(--navy);
  transform: translateY(-2px);
}

/* ─── APPLICATIONS ─── */
.applications {
  padding: 7rem 0;
  background: var(--white);
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--teal);
  border-bottom: 2px solid var(--teal);
  padding-bottom: 4px;
  margin-bottom: 1.5rem;
}

.applications h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 700;
  color: var(--navy);
  max-width: 700px;
  line-height: 1.3;
  margin-bottom: 4rem;
}

.apps-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.apps-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.apps-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 76%;
  margin-left: auto;
  margin-right: auto;
}

.app-card {
  background: var(--white);
  border: 1px solid rgba(10,18,43,0.1);
  border-radius: 10px;
  padding: 2rem;
  transition: box-shadow 0.3s, transform 0.3s;
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  box-shadow: 0 8px 40px rgba(33,144,150,0.15);
  transform: translateY(-4px);
}

.app-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.app-card h3 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 0.8rem;
  letter-spacing: 0.3px;
}

.app-card p {
  font-size: 14px;
  font-weight: 300;
  color: var(--gray);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 1.2rem;
}

.btn-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.5px;
  transition: color 0.3s;
}
.btn-link:hover { color: var(--navy); }

/* ─── SERVICES ─── */
.services {
  position: relative;
  padding: 7rem 0;
  background-image: url('https://auctorysolver.cl/wp-content/uploads/2022/05/SERVICIOS-_-CARACTERISTICAS-01.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.services-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,18,43,0.88);
}

.services .container { position: relative; z-index: 1; }

.services h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  text-align: center;
  margin-bottom: 4rem;
  letter-spacing: 1px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  border: 1px solid rgba(54, 227, 217, 0.25);
  border-radius: 10px;
  padding: 2rem 2.2rem;
  background: rgba(255,255,255,0.04);
  transition: background 0.3s, border-color 0.3s;
}

.service-card:hover {
  background: rgba(33,144,150,0.15);
  border-color: rgba(54, 227, 217, 0.6);
}

.smr-tag {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
  margin-right: 6px;
  letter-spacing: 0.5px;
}

.service-card h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--light-teal);
  line-height: 1.4;
  margin-bottom: 0.9rem;
  letter-spacing: 0.3px;
}

.service-card p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.btn-link-light {
  font-size: 12px;
  font-weight: 600;
  color: var(--light-teal);
  letter-spacing: 0.5px;
  transition: color 0.3s;
}
.btn-link-light:hover { color: var(--white); }

/* ─── FOOTER ─── */
footer {
  background: var(--teal);
}

.footer-top {
  padding: 4rem 0;
}

.footer-top-inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.footer-contact-info ul { display: flex; flex-direction: column; gap: 1.2rem; }

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--white);
  font-size: 14px;
  font-weight: 400;
}

.footer-contact-info li svg { flex-shrink: 0; margin-top: 2px; }

.footer-contact-info a {
  color: var(--white);
  transition: opacity 0.3s;
}
.footer-contact-info a:hover { opacity: 0.75; }

.footer-cta p {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 1.2rem 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
}

/* ─── Animations ─── */
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .apps-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .apps-grid--2 { max-width: 100%; }
}

@media (max-width: 767px) {
  .menu-toggle { display: flex; }

  #mainNav {
    display: none;
    position: absolute;
    top: 80px; left: 0; right: 0;
    background: rgba(10,18,43,0.97);
    padding: 1rem 0 2rem;
  }
  #mainNav.open { display: block; }
  #mainNav ul { flex-direction: column; gap: 0; }
  #mainNav ul li a { padding: 14px 2rem; font-size: 15px; }
  .btn-login { margin: 12px 2rem 0 !important; border-radius: 6px; text-align: center; }

  .hero-content { margin-left: 0; padding: 7rem 1.5rem 4rem; }

  .apps-grid--3,
  .apps-grid--2 { grid-template-columns: 1fr; max-width: 100%; }

  .services-grid { grid-template-columns: 1fr; }

  .footer-top-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}
