/* =========================
   BASE / GLOBAL
========================= */
* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  min-width: 320px;
  font-family: "Inter", system-ui, sans-serif;
  color: #ffffff;

  background-image: url("https://i.giphy.com/QKWb49EBsGpDXdwt41.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* =========================
   HEADER / NAVBAR
========================= */
.header {
  width: 100%;
  overflow: hidden;
}

.header-top {
  width: calc(100% - 48px);
  min-height: 90px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 40px;
  margin: 24px auto;
  border-radius: 24px;
}

.header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo {
  height: 56px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  flex-wrap: wrap;
  min-width: 0;
}

.header-nav a {
  color: #0a1a4a;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  position: relative;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.header-nav a:hover {
  opacity: 0.75;
}

.header-nav a.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: #2c4f7c;
}

/* =========================
   HERO
========================= */
.hero {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 24px 120px;
}

.hero-content {
  max-width: 760px;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  margin: 0 0 20px;
  line-height: 1.05;
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
  max-width: 680px;
  opacity: 0.92;
  margin: 0 0 32px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hero-actions a:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #ffffff;
  color: #0a1a4a;
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
}

/* =========================
   SERVICIOS
========================= */
.services {
  width: 100%;
  background: #ffffff;
  color: #1a1a1a;
  padding: 100px 20px;
  overflow: hidden;
}

.services-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
}

.services-header h2 {
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: 0.15em;
  color: #b5b5b5;
  margin: 0;
}

.services-line {
  display: block;
  width: 60px;
  height: 4px;
  background: #b7cde6;
  margin: 16px auto 0;
}

.services-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.service-card {
  width: 100%;
  min-width: 0;
  background: #f7f7f7;
  padding: 24px;
  border-radius: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
}

.service-card img {
  width: 100%;
  max-width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 14px;
}

.service-card h3 {
  font-size: 20px;
  margin: 0 0 12px;
  color: #2c4f7c;
  overflow-wrap: break-word;
}

.service-card p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin: 0;
  overflow-wrap: break-word;
}

/* =========================
   NOSOTROS
========================= */
.about {
  width: 100%;
  padding: 120px 24px;
  color: #ffffff;
  overflow: hidden;
}

.about-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.about-header {
  text-align: center;
  margin-bottom: 48px;
}

.about-header h2 {
  font-size: clamp(26px, 4vw, 34px);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.about-line {
  display: block;
  width: 60px;
  height: 3px;
  background: rgba(255, 255, 255, 0.6);
  margin: 0 auto;
}

.about-content {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.about-content p {
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.7;
  opacity: 0.92;
  margin: 0 0 24px;
}

/* =========================
   FOOTER
========================= */
.site-footer {
  width: 100%;
  background: #ffffff;
  color: #1a1a1a;
  padding: 80px 24px 32px;
  overflow: hidden;
}

.footer-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer-brand img {
  height: 48px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  max-width: 420px;
  margin: 0;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #2c4f7c;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: #1a1a1a;
  text-decoration: none;
  margin-bottom: 10px;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-contact p {
  font-size: 14px;
  margin: 0 0 10px;
  color: #555;
}

.footer-bottom {
  border-top: 1px solid #e5e5e5;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
  color: #777;
}

/* =========================
   ANIMACIÓN
========================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   TABLET
========================= */
@media (max-width: 900px) {
  .header-top {
    width: calc(100% - 32px);
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    margin: 16px auto;
  }

  .header-nav {
    justify-content: center;
    gap: 18px;
  }

  .hero {
    padding: 80px 24px 100px;
    text-align: center;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .services {
    padding: 80px 18px;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 600px) {
  body {
    background-attachment: scroll;
  }

  .header-top {
    width: calc(100% - 24px);
    margin: 12px auto;
    border-radius: 18px;
    padding: 20px 16px;
    gap: 18px;
  }

  .brand-logo {
    height: 46px;
  }

  .header-nav {
    width: 100%;
    justify-content: center;
    gap: 10px;
  }

  .header-nav a {
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 999px;
    background: #f3f6fb;
  }

  .header-nav a.active::after {
    display: none;
  }

  .hero {
    padding: 64px 18px 84px;
  }

  .hero h1 {
    font-size: clamp(34px, 12vw, 46px);
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions a {
    width: 100%;
  }

  .services {
    padding: 64px 16px;
  }

  .services-header {
    margin-bottom: 42px;
  }

  .services-header h2 {
    letter-spacing: 0.1em;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-card {
    padding: 20px;
  }

  .service-card img {
    height: 180px;
  }

  .about {
    padding: 80px 18px;
  }

  .about-header {
    margin-bottom: 36px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .footer-brand img {
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================
   MOBILE MUY PEQUEÑO
========================= */
@media (max-width: 380px) {
  .header-nav a {
    font-size: 12px;
    padding: 7px 8px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .service-card img {
    height: 160px;
  }
}