:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --bg: #f8fafc;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --radius: 22px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  width: 100%;
  display: block;
}

section {
  width: 100%;
}

.section {
  padding: 100px 8%;
}

.section-tag,
.tag {
  display: inline-block;
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.section-header {
  max-width: 700px;
  margin: 0 auto 55px;
  text-align: center;
}

.section-header h2,
.about-content h2,
.contact-info h2,
.banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--secondary);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-header p,
.about-content p,
.contact-info p,
.banner p {
  color: var(--muted);
}

/* HEADER */

.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(14px);
  z-index: 1000;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  transition: 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.navbar {
  width: 100%;
  padding: 18px 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--secondary);
}

.logo span {
  color: var(--primary);
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: 0.3s;
}

.nav-menu a:hover {
  color: var(--primary);
}

.nav-btn {
  background: var(--secondary);
  color: var(--white);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: 0.3s;
}

.nav-btn:hover {
  background: var(--primary);
}

.menu-toggle {
  display: none;
  border: none;
  background: var(--secondary);
  color: var(--white);
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
}

/* HERO */

.hero {
  min-height: 100vh;
  padding: 150px 8% 80px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  color: var(--secondary);
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-content p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn.primary {
  background: var(--primary);
  color: var(--white);
}

.btn.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.btn.secondary {
  background: var(--white);
  color: var(--secondary);
  border: 1px solid var(--border);
}

.btn.secondary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.hero-image {
  position: relative;
}

.hero-image img {
  height: 620px;
  object-fit: cover;
  border-radius: 35px;
  box-shadow: var(--shadow);
}

.hero-image::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  background: var(--primary);
  border-radius: 50%;
  top: -35px;
  right: -35px;
  z-index: -1;
  opacity: 0.18;
}

/* STATS */

.stats {
  padding: 35px 8%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.stat {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.stat h3 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 6px;
}

.stat p {
  color: var(--muted);
  font-weight: 600;
}

/* ABOUT */

.about {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 70px;
  align-items: center;
}

.about-image img {
  height: 560px;
  object-fit: cover;
  border-radius: 35px;
  box-shadow: var(--shadow);
}

.about-content p {
  margin-bottom: 18px;
}

.about-list {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.about-list div {
  background: var(--white);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.about-list strong {
  color: var(--secondary);
}

.about-list p {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* SERVICES */

.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: var(--bg);
  padding: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  background: var(--white);
}

.icon {
  width: 58px;
  height: 58px;
  background: rgba(37, 99, 235, 0.09);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 22px;
}

.service-card h3 {
  color: var(--secondary);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--muted);
}

/* PROCESS */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.process-card span {
  display: inline-block;
  color: var(--primary);
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.process-card h3 {
  color: var(--secondary);
  margin-bottom: 10px;
}

.process-card p {
  color: var(--muted);
}

/* BANNER */

.banner {
  margin: 40px 8%;
  padding: 60px;
  border-radius: 35px;
  background:
    linear-gradient(rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.86)),
    url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 35px;
}

.banner h2 {
  color: var(--white);
}

.banner p {
  color: #cbd5e1;
  max-width: 620px;
}

/* CONTACT */

.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 55px;
  align-items: start;
}

.contact-box {
  margin-top: 20px;
  background: var(--white);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
}

.contact-box strong {
  color: var(--secondary);
}

.contact-box p {
  margin-top: 4px;
}

.contact-form {
  background: var(--white);
  padding: 38px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 18px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.contact-form textarea {
  height: 150px;
  resize: none;
}

.contact-form button {
  width: 100%;
}

.form-message {
  margin-top: 16px;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
}

/* FOOTER */

.footer {
  background: var(--secondary);
  color: var(--white);
  padding: 60px 8% 25px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 35px;
  align-items: flex-start;
  flex-wrap: wrap;
  padding-bottom: 35px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo {
  color: var(--white);
}

.footer-content p {
  max-width: 460px;
  color: #cbd5e1;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #cbd5e1;
  transition: 0.3s;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 25px;
  color: #94a3b8;
  font-size: 0.9rem;
  text-align: center;
}

/* ANIMACIONES */

.service-card,
.process-card,
.stat,
.about-image,
.about-content,
.contact-info,
.contact-form {
  opacity: 0;
  transform: translateY(25px);
  transition: 0.7s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .hero,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 130px;
  }

  .hero-image img,
  .about-image img {
    height: 450px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .nav-menu {
    position: fixed;
    top: 81px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 81px);
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 35px;
    gap: 24px;
    box-shadow: var(--shadow);
    transition: 0.3s;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    padding: 120px 6% 60px;
  }

  .section {
    padding: 75px 6%;
  }

  .stats,
  .services-grid,
  .process-grid,
  .about-list {
    grid-template-columns: 1fr;
  }

  .hero-image img,
  .about-image img {
    height: 360px;
  }

  .banner {
    margin: 30px 6%;
    padding: 40px 28px;
  }

  .contact-form {
    padding: 26px;
  }

  .footer-content {
    flex-direction: column;
  }
}

@media (max-width: 450px) {
  .hero-content h1 {
    letter-spacing: -1px;
  }

  .btn {
    width: 100%;
  }

  .hero-buttons {
    width: 100%;
  }

  .stat,
  .service-card,
  .process-card {
    padding: 24px;
  }
}
/* Ajustes finales de compatibilidad responsive */
body {
  overflow-x: hidden;
}

.banner {
  width: auto;
}

@media (max-width: 760px) {
  .nav-menu {
    right: 0;
    transform: translateX(110%);
    visibility: hidden;
    pointer-events: none;
  }

  .nav-menu.active {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }
}

@media (max-width: 760px) {
  .nav-menu {
    display: none;
    transform: none;
  }

  .nav-menu.active {
    display: flex;
  }
}
