/* ===========================
   TOKENS
   =========================== */
:root {
  --blue:        #1D4ED8;
  --blue-dark:   #1E3A8A;
  --blue-navy:   #0C1A54;
  --blue-mid:    #2563EB;
  --blue-light:  #3B82F6;
  --blue-pale:   #EFF6FF;
  --blue-pale2:  #DBEAFE;

  --white:       #FFFFFF;
  --off-white:   #F8FAFF;
  --text:        #0F172A;
  --text-muted:  #64748B;
  --border:      rgba(29, 78, 216, 0.14);

  --font: 'Poppins', system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===========================
   RESET
   =========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a   { text-decoration: none; color: inherit; }

/* ===========================
   SCROLL ANIMATIONS
   =========================== */
.animate-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.animate-in.visible { opacity: 1; transform: translateY(0); }

/* ===========================
   WHATSAPP FLOTANTE
   =========================== */
.wsp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.wsp-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.5);
}
.wsp-btn img { width: 30px; height: 30px; object-fit: contain; }

/* ===========================
   NAV
   =========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 24px 60px;
  background: linear-gradient(to bottom, rgba(12, 26, 84, 0.9), transparent);
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav--solid {
  background: var(--white);
  padding: 16px 60px;
  box-shadow: 0 1px 0 var(--border), 0 4px 24px rgba(0,0,0,0.07);
}
.nav--solid .nav-tagline { color: var(--blue); }
.nav--solid .nav-logo    { color: var(--blue-dark); }
.nav--solid .nav-cta     { color: var(--blue); border-color: var(--blue); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-tagline {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  transition: color 0.4s;
}
.nav-logo {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--white);
  transition: color 0.4s;
}
.nav-cta {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1.5px solid rgba(255,255,255,0.6);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
}
.nav-cta:hover { color: var(--blue-pale); border-color: var(--blue-pale); }
.nav--solid .nav-cta:hover { color: var(--blue-dark); border-color: var(--blue-dark); }

/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.00); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    130deg,
    rgba(12, 26, 84, 0.9) 0%,
    rgba(29, 78, 216, 0.65) 60%,
    rgba(12, 26, 84, 0.55) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px;
  max-width: 680px;
  animation: heroFadeUp 1.2s var(--ease-out) 0.2s both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.eyebrow-line {
  display: block;
  width: 40px; height: 1.5px;
  background: rgba(255,255,255,0.55);
  animation: lineExpand 1s var(--ease-out) 0.7s both;
}
@keyframes lineExpand {
  from { width: 0; opacity: 0; }
  to   { width: 40px; opacity: 1; }
}
.eyebrow-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.hero-title {
  font-size: clamp(44px, 6.5vw, 80px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-title span {
  display: block;
  font-weight: 300;
  color: #BFDBFE;
}
.hero-sub {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
  margin-bottom: 44px;
  max-width: 420px;
}

/* ===========================
   BUTTONS
   =========================== */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--white);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-hero:hover {
  background: var(--blue-pale);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--white);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.btn-white:hover {
  background: var(--blue-pale);
  transform: translateY(-2px);
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--blue);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

/* ===========================
   HERO SCROLL HINT
   =========================== */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  right: 56px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero-scroll-hint span {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl;
}
.scroll-line {
  width: 1.5px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { transform: scaleY(1); opacity: 0.6; }
  50%      { transform: scaleY(0.4); opacity: 0.2; }
}

/* ===========================
   SECTION SHARED
   =========================== */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.15;
}
.section-line {
  width: 48px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin: 0 auto;
}

/* ===========================
   STATS
   =========================== */
.stats {
  background: var(--blue);
  padding: 80px 60px;
}
.stats-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.stat-number {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.25);
  flex-shrink: 0;
}

/* ===========================
   SERVICES
   =========================== */
.services {
  padding: 120px 60px;
  background: var(--off-white);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 44px 36px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(29, 78, 216, 0.1);
  border-color: rgba(29, 78, 216, 0.35);
}
.service-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--blue);
  transition: background 0.3s var(--ease);
}
.service-icon svg {
  width: 26px;
  height: 26px;
}
.service-card:hover .service-icon {
  background: var(--blue);
  color: var(--white);
}
.service-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ===========================
   GALLERY
   =========================== */
.gallery {
  padding: 120px 0;
  background: var(--white);
  overflow: hidden;
}
.gallery .section-header {
  padding: 0 60px;
}
.gallery-track {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.gallery-slider {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: galleryScroll 42s linear infinite;
}
.gallery-slider:hover { animation-play-state: paused; }
@keyframes galleryScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.gallery-item {
  width: 280px;
  height: 280px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover img { transform: scale(1.07); }

/* ===========================
   TESTIMONIALS
   =========================== */
.testimonials {
  padding: 120px 0;
  background: var(--blue-pale);
  overflow: hidden;
}
.testimonials .section-header { padding: 0 60px; }
.testimonials-track {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.testimonials-slider {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: testimonialScroll 36s linear infinite;
}
.testimonials-slider:hover { animation-play-state: paused; }
@keyframes testimonialScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.testimonial-card {
  width: 300px;
  flex-shrink: 0;
  padding: 36px 32px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(29, 78, 216, 0.06);
}
.stars {
  color: #FBBF24;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}
.testimonial-card p {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 20px;
}
.testimonial-author {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.05em;
}

/* ===========================
   CONTACT
   =========================== */
.contact {
  padding: 120px 60px;
  background: var(--blue-navy);
}
.contact-inner {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.contact-title {
  font-size: clamp(28px, 3.8vw, 48px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.contact-desc {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  line-height: 1.7;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-item {
  display: flex;
  align-items: center;
  gap: 18px;
}
.contact-icon-wrap {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon-wrap img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.contact-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #93C5FD;
  margin-bottom: 4px;
}
.contact-value {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
}
.contact-link { transition: color 0.3s; }
.contact-link:hover { color: #93C5FD; }

/* ===========================
   FOOTER
   =========================== */
.footer {
  padding: 32px 60px;
  background: #070F2E;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: #93C5FD;
}
.footer-copy {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
}

/* ===========================
   RESPONSIVE — TABLET
   =========================== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 56px; }
}

/* ===========================
   RESPONSIVE — MOBILE
   =========================== */
@media (max-width: 768px) {
  .nav, .nav--solid { padding: 18px 24px; }
  .hero-content     { padding: 0 24px; }
  .hero-scroll-hint { display: none; }
  .stats            { padding: 64px 24px; }
  .stats-inner      { flex-direction: column; gap: 40px; }
  .stat-divider     { width: 60px; height: 1px; }
  .services         { padding: 80px 24px; }
  .services-grid    { grid-template-columns: 1fr; gap: 16px; }
  .service-card     { padding: 36px 28px; }
  .gallery          { padding: 80px 0; }
  .testimonials     { padding: 80px 0; }
  .gallery .section-header,
  .testimonials .section-header { padding: 0 24px; }
  .gallery-item     { width: 220px; height: 220px; }
  .testimonial-card { width: 260px; }
  .contact          { padding: 80px 24px; }
  .footer           { padding: 28px 24px; }
  .footer-inner     { flex-direction: column; gap: 10px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 38px; }
  .stat-number { font-size: 36px; }
}
