:root {
  --navy: #11284A;
  --navy-dark: #0B1C35;
  --cyan: #00B3DE;
  --cyan-light: #22C8EF;
  --cyan-pale: rgba(0, 179, 222, 0.12);
  --white: #FFFFFF;
  --off-white: #F4F8FB;
  --text: #2B3A4E;
  --muted: #64748B;
  --shadow: 0 12px 34px rgba(17, 40, 74, 0.10);
  --shadow-hover: 0 22px 48px rgba(17, 40, 74, 0.18);
  --radius: 18px;
  --font: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
}

svg.ic {
  width: 24px;
  height: 24px;
}

svg.ic-sm {
  width: 17px;
  height: 17px;
}

.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}

.accent {
  color: var(--cyan);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

section[id] {
  scroll-margin-top: 84px;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(11, 28, 53, 0.7), transparent);
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.header.scrolled {
  background: rgba(17, 40, 74, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.brand-logo {
  height: 46px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  color: var(--white);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 9px 15px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-link.nav-cta {
  background: var(--cyan);
  color: var(--navy);
  margin-left: 10px;
  box-shadow: 0 6px 18px rgba(0, 179, 222, 0.35);
}

.nav-link.nav-cta:hover {
  background: var(--cyan-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 130px 0 70px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 58%, #16405F 100%);
  overflow: hidden;
  color: var(--white);
}

.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
}

.orb-a {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(0, 179, 222, 0.5), transparent 70%);
  top: -120px;
  left: -80px;
  animation: drift 14s ease-in-out infinite alternate;
}

.orb-b {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(0, 150, 200, 0.42), transparent 70%);
  bottom: -100px;
  right: -60px;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

.orb-c {
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  top: 38%;
  right: 18%;
  animation: drift 22s ease-in-out infinite alternate;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(40px, -34px) scale(1.12);
  }
}

.hero-content {
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-logo {
  height: 92px;
  width: auto;
  margin-bottom: 24px;
  animation: fadeDrop 0.9s ease both;
}

@keyframes fadeDrop {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(0, 179, 222, 0.14);
  border: 1px solid rgba(0, 179, 222, 0.45);
  color: var(--cyan-light);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.4px;
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 24px;
  animation: fadeUp 0.9s 0.1s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.3rem);
  line-height: 1.16;
  font-weight: 800;
  max-width: 880px;
  margin-bottom: 20px;
  animation: fadeUp 0.9s 0.2s ease both;
}

.hero-desc {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.86);
  max-width: 720px;
  margin-bottom: 32px;
  animation: fadeUp 0.9s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.9s 0.4s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-accent {
  background: var(--cyan);
  color: var(--navy);
  box-shadow: 0 10px 26px rgba(0, 179, 222, 0.4);
}

.btn-accent:hover {
  background: var(--cyan-light);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(0, 179, 222, 0.5);
}

.btn-ghost {
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
}

.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-3px);
}

.btn-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.4);
  white-space: nowrap;
}

.btn-wa:hover {
  background: #2ee06f;
  transform: translateY(-3px);
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 46px;
  animation: fadeUp 0.9s 0.5s ease both;
}

.hero-chips span {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 16px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

/* ---------- Sections ---------- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--off-white);
}

.section-dark {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
}

.section-dark h2 {
  color: var(--white);
}

.section-contact {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: var(--white);
}

.section-contact .section-tag {
  color: var(--cyan-light);
  border-color: rgba(0, 179, 222, 0.45);
}

.section-contact .section-head p {
  color: rgba(255, 255, 255, 0.85);
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 54px;
}

.section-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2.2px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--cyan);
  background: var(--cyan-pale);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.06rem;
}

/* ---------- Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

.card {
  background: var(--white);
  border: 1px solid #E7EDF3;
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.card-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  background: var(--cyan-pale);
  border-radius: 14px;
  margin-bottom: 18px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card-link {
  display: block;
}

.link-more {
  display: inline-block;
  margin-top: 14px;
  color: var(--cyan);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- Trámites ---------- */
.tramites-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tramite {
  background: var(--white);
  border: 1px solid #E7EDF3;
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}

.tramite::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.tramite:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 179, 222, 0.5);
}

.tramite:hover::before {
  opacity: 1;
}

.tramite-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--cyan-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.tramite-icon svg {
  width: 26px;
  height: 26px;
}

.tramite-body {
  flex: 1;
}

.chip {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #0E7C9C;
  background: rgba(0, 179, 222, 0.12);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.tramite-body h3 {
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tramite-body p {
  color: var(--muted);
  font-size: 0.92rem;
}

.badge-b {
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--off-white);
  border: 1px solid #DDE6EF;
  border-radius: 999px;
  padding: 5px 12px;
}

.tramites-footer {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Proceso / steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.step {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 34px 24px 26px;
  text-align: center;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, background 0.25s ease;
}

.step:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.1);
}

.step-num {
  position: absolute;
  top: 16px;
  left: 18px;
  font-size: 2.1rem;
  font-weight: 800;
  color: rgba(0, 179, 222, 0.35);
  line-height: 1;
}

.step-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--cyan);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(0, 179, 222, 0.45);
}

.step-icon svg {
  width: 28px;
  height: 28px;
}

.step h3 {
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--cyan) 0%, var(--cyan-light) 100%);
  padding: 60px 0;
  color: var(--navy);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-inner h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.cta-inner p {
  font-size: 1.02rem;
  color: rgba(11, 28, 53, 0.85);
  max-width: 640px;
}

.cta-inner .btn-wa {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(11, 28, 53, 0.35);
}

.cta-inner .btn-wa:hover {
  background: var(--navy-dark);
}

/* ---------- EPP ---------- */
.epp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.epp-card {
  border-left: 4px solid var(--cyan);
}

.epp-card h3 {
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.epp-card ul li {
  position: relative;
  padding: 8px 0 8px 22px;
  color: var(--text);
  font-size: 0.94rem;
}

.epp-card ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 17px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--cyan);
}

.note {
  margin-top: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  gap: 22px;
}

.section-contact .contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.section-contact .contact-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.section-contact .contact-card h3 {
  color: var(--white);
}

.section-contact .contact-card p {
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Políticas ---------- */
.section-policies {
  background: var(--off-white);
}

.policy-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 30px 28px;
}

.policy-card > svg {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  color: var(--navy);
  background: var(--cyan-pale);
  padding: 10px;
  border-radius: 12px;
  box-sizing: content-box;
}

.policy-body h3 {
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.policy-body p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-logo {
  height: 44px;
  width: auto;
  margin-bottom: 16px;
}

.footer h3 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer a,
.footer p {
  display: block;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 8px;
}

.footer a:hover {
  color: var(--cyan-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.5);
  z-index: 90;
  transition: transform 0.2s ease;
  animation: fadeUp 0.8s 0.8s ease both;
}

.wa-float:hover {
  transform: scale(1.1);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .tramites-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

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

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

  .steps {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy);
    padding: 16px 6%;
    gap: 4px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-link.nav-cta {
    margin-left: 0;
    text-align: center;
    margin-top: 6px;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 520px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

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