@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Open+Sans:wght@300;400;500;600&family=Yantramanav:wght@400&display=swap');

/* ─── CSS Custom Properties ─────────────────────────────────────── */
:root {
  --blue-primary: #004B6B;
  --blue-dark: #002D44;
  --gold: #D9A441;
  --gold-hover: #c4903a;
  --bg-light: #F4F6F7;
  --text-dark: #333333;
  --white: #FFFFFF;
  --shadow-sm: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
}

/* ─── Base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ─────────────────────────────────────────────────── */
.font-montserrat { font-family: 'Montserrat', sans-serif; }
.font-opensans   { font-family: 'Open Sans', sans-serif; }

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.15;
}

.gold-text { color: var(--gold); }

.home-service-title {
  color: #3c3c3c;
  margin-top: 13px;
  margin-bottom: 9px;
  font-family: 'Yantramanav', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  text-transform: uppercase;
}

.home-service-text {
  color: #a0a0a0;
  font-size: 13px;
  line-height: 1.45;
}

.section-divider {
  width: 56px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 auto;
}

.section-divider.left { margin: 0; }

/* ─── Navigation ─────────────────────────────────────────────────── */
.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ─── Header ─────────────────────────────────────────────────────── */
#main-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

#main-header.scrolled {
  position: fixed;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
  background: rgba(58,58,66,0.92);
}

.call-cta {
  position: relative;
}

.call-cta::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 999px;
  border: 18px solid rgba(217, 164, 65, 0.16);
  z-index: -1;
  opacity: 0;
  animation: callPulse 2.1s ease-out infinite;
}

@keyframes callPulse {
  0% {
    opacity: 0.75;
    transform: scale(0.98);
  }

  70% {
    opacity: 0;
    transform: scale(1.22);
  }

  100% {
    opacity: 0;
    transform: scale(1.22);
  }
}

/* ─── Mobile Menu ────────────────────────────────────────────────── */
#mobile-menu {
  display: none;
  background: rgba(58,58,66,0.96);
  border-top: 1px solid rgba(217,164,65,0.3);
  padding: 1rem 1.5rem 1.5rem;
}

#mobile-menu.open { display: block; }

#mobile-menu .nav-link {
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

#hamburger.open .hamburger-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.open .hamburger-line:nth-child(2) { opacity: 0; }
#hamburger.open .hamburger-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Buttons ────────────────────────────────────────────────────── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--white);
  padding: 13px 32px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.btn-gold:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217,164,65,0.35);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  padding: 13px 32px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid var(--gold);
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217,164,65,0.3);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 13px 32px;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid rgba(255,255,255,0.6);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: white;
  transform: translateY(-2px);
}

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,45,68,0.92) 0%, rgba(0,75,107,0.78) 60%, rgba(0,45,68,0.65) 100%);
}

.hero-internal {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217,164,65,0.18);
  border: 1px solid rgba(217,164,65,0.5);
  color: var(--gold);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

/* ─── Cards ──────────────────────────────────────────────────────── */
.card-service {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-bottom-color 0.35s ease;
  border-bottom: 3px solid transparent;
  padding: 2rem 1.75rem;
}

.card-service:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--gold);
}

.card-service .service-icon {
  width: 52px;
  height: 52px;
  background: rgba(217,164,65,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background 0.3s;
}

.card-service:hover .service-icon {
  background: rgba(217,164,65,0.22);
}

.card-service .service-icon svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
}

.card-benefit {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border-top: 3px solid transparent;
}

.card-benefit:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--gold);
}

/* ─── Stats Section ──────────────────────────────────────────────── */
.stats-section {
  position: relative;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 100%);
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/oficina.jpg') center/cover no-repeat;
  opacity: 0.08;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.02em;
}

/* ─── Mission/Vision Cards ───────────────────────────────────────── */
.mvv-card {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  padding: 2.25rem 2rem;
  border-top: 4px solid var(--gold);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

/* ─── Team Cards ─────────────────────────────────────────────────── */
.team-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

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

.team-card .team-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--gold);
  margin: 2rem auto 1rem;
}

/* ─── Process Steps ──────────────────────────────────────────────── */
.step-card {
  position: relative;
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: white;
  margin: 0 auto 1.25rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(217,164,65,0.4);
}

/* ─── Contact Cards ──────────────────────────────────────────────── */
.contact-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border-bottom: 3px solid transparent;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--gold);
}

.contact-icon-wrap {
  width: 72px;
  height: 72px;
  background: rgba(217,164,65,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.contact-icon-wrap svg {
  width: 32px;
  height: 32px;
  color: var(--gold);
}

/* ─── Office Cards ───────────────────────────────────────────────── */
.office-card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 2rem 1.75rem;
  border-left: 4px solid var(--gold);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

/* ─── Footer ─────────────────────────────────────────────────────── */
#main-footer {
  background: var(--blue-dark);
  color: rgba(255,255,255,0.75);
}

.footer-link {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
  display: inline-block;
  padding: 3px 0;
}

.footer-link:hover { color: var(--gold); }

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}

.social-icon:hover {
  background: var(--gold);
  transform: translateY(-3px);
}

.social-icon svg {
  width: 18px;
  height: 18px;
  color: white;
  fill: currentColor;
}

/* ─── Scroll Animation ───────────────────────────────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Service Detail Rows ────────────────────────────────────────── */
.service-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

.service-detail-row:last-child { border-bottom: none; }

.service-detail-row.reverse { direction: rtl; }
.service-detail-row.reverse > * { direction: ltr; }

.service-detail-icon {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, rgba(217,164,65,0.15), rgba(217,164,65,0.05));
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-detail-icon svg {
  width: 52px;
  height: 52px;
  color: var(--gold);
}

.service-feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.service-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 6px 0;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.service-feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  margin-top: 7px;
}

/* ─── CTA Sections ───────────────────────────────────────────────── */
.cta-section {
  background: var(--blue-dark);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold), rgba(217,164,65,0.4));
}

.cta-section::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 60px solid rgba(217,164,65,0.06);
  pointer-events: none;
}

/* ─── Logo SVG ───────────────────────────────────────────────────── */
.logo-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .service-detail-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-detail-row.reverse { direction: ltr; }
}

@media (max-width: 768px) {
  .hero-section { min-height: 100svh; }
  .stat-number { font-size: 2.25rem; }
  .step-card { padding: 1.5rem 1rem; }
}

/* ─── Map container ──────────────────────────────────────────────── */
.map-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 400px;
  border: 0;
  display: block;
}

/* ─── Floating hero pills ────────────────────────────────────────── */
.hero-pills {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 10;
  width: max-content;
}

.hero-pill {
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-pill:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .hero-pills {
    flex-direction: column;
    width: calc(100% - 2rem);
    bottom: -80px;
  }
}

/* ─── Divider gold ───────────────────────────────────────────────── */
.gold-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem 0;
}

/* ─── Feature check ──────────────────────────────────────────────── */
.feature-check {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 1rem;
}

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: rgba(217,164,65,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.check-icon svg {
  width: 13px;
  height: 13px;
  color: var(--gold);
}

/* ─── Breadcrumb hero internal ───────────────────────────────────── */
.hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1rem;
}

.hero-breadcrumb span { color: var(--gold); }
.hero-breadcrumb a { color: rgba(255,255,255,0.6); text-decoration: none; }
.hero-breadcrumb a:hover { color: var(--gold); }

/* ─── Section padding utility ─────────────────────────────────────── */
.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }

/* ─── Scroll to top ──────────────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(217,164,65,0.5);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
  border: none;
}

#scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#scroll-top svg {
  width: 20px;
  height: 20px;
  color: white;
}

/* ─── Highlight spans ────────────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-blue-dark { color: var(--blue-dark); }
.bg-blue-dark { background: var(--blue-dark); }
.bg-gold { background: var(--gold); }
.bg-light { background: var(--bg-light); }
