/* ═══════════════════════════════════════
   OFITEX — Global Stylesheet
   Paleta: Navy #0A2463 · Gold #F5B800
═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=DM+Sans:ital,wght@0,400;0,500;0,600;1,400&display=swap');

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

:root {
  --navy:       #0B192C;
  --navy-dark:  #050C16;
  --navy-mid:   #112A4A;
  --navy-light: #1C4073;
  --gold:       #D4AF37;
  --gold-dark:  #B5952F;
  --gold-light: #E0C15C;
  --gold-pale:  #FDFBF2;
  --white:      #FFFFFF;
  --off-white:  #F7F8FC;
  --gray-50:    #F0F2F8;
  --gray-100:   #E4E8F0;
  --gray-200:   #C8D0E0;
  --gray-400:   #8A94AD;
  --gray-600:   #4A5568;
  --gray-800:   #1A202C;
  --green-wa:   #25D366;
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --shadow-sm:  0 4px 12px rgba(10,36,99,0.06);
  --shadow-md:  0 10px 30px rgba(10,36,99,0.12);
  --shadow-lg:  0 24px 64px rgba(10,36,99,0.18);
  --shadow-premium: 0 32px 80px -12px rgba(10,36,99,0.25), 0 0 0 1px rgba(10,36,99,0.05);
  --transition: 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  --max-w:      1280px;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
}

h1,h2,h3,h4,h5 { font-family: 'Montserrat', sans-serif; line-height: 1.2; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── Scroll Animations ── */
.reveal, .reveal-l, .reveal-r {
  opacity: 0;
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal   { transform: translateY(28px); }
.reveal-l { transform: translateX(-36px); }
.reveal-r { transform: translateX(36px); }
.reveal.vis, .reveal-l.vis, .reveal-r.vis { opacity:1; transform: none; }

/* ── Micro-Interactions ── */
@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37,211,102,0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 15px rgba(37,211,102,0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
@keyframes btn-shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* ── Utilities ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section   { padding: 88px 0; }
.section-sm{ padding: 56px 0; }
.text-center { text-align: center; }

.section-label {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700;
  color: var(--gold-dark); letter-spacing: 2.5px;
  text-transform: uppercase; margin-bottom: 10px;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; color: var(--navy);
  margin-bottom: 16px; letter-spacing: -0.5px;
}
.section-title em { color: var(--gold); font-style: normal; }
.section-title.light { color: var(--white); }
.section-sub {
  font-size: 17px; color: var(--gray-400);
  line-height: 1.75; max-width: 600px;
}
.section-header { margin-bottom: 52px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 28px; border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif; font-weight: 700;
  font-size: 14px; letter-spacing: 0.3px;
  border: none; cursor: pointer; transition: var(--transition);
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-20deg); transition: var(--transition);
}
.btn:hover::after { animation: btn-shine 1s ease; }
.btn-gold  { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover  { background: var(--gold-light); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(245,184,0,0.4); }
.btn-navy  { background: var(--navy); color: var(--white); }
.btn-navy:hover  { background: var(--navy-mid); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.35); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--gray-200); }
.btn-outline:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-sm { padding: 10px 20px; font-size: 13px; }

.btn-primary-hero {
  background: var(--gold); color: var(--navy-dark);
  font-size: 15px; padding: 16px 32px;
  box-shadow: 0 0 24px rgba(245,184,0,0.5);
}
.btn-primary-hero:hover {
  background: var(--gold-light); transform: translateY(-4px); box-shadow: 0 12px 36px rgba(245,184,0,0.7);
}

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(6,24,63,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 70px;
}
.nav-logo { display: flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--gold); display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 23px;
  color: var(--navy-dark); font-style: italic; flex-shrink: 0;
}
.logo-text {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: 22px; color: var(--white); letter-spacing: 3px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  position: relative;
  color: rgba(255,255,255,0.75); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm); transition: var(--transition);
}
.nav-links a:not(.nav-cta):not(.nav-wa)::after {
  content: ''; position: absolute; bottom: 4px; left: 14px; right: 100%; height: 2px;
  background: var(--gold); transition: right 0.3s ease; border-radius: 2px;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); background: rgba(255,255,255,0.09); }
.nav-links a:not(.nav-cta):not(.nav-wa):hover::after, .nav-links a.active:not(.nav-cta):not(.nav-wa)::after { right: 14px; }
.nav-links a.active { color: var(--gold); }
.nav-cta  { background: var(--gold)!important; color: var(--navy-dark)!important; font-weight: 700!important; }
.nav-cta:hover { background: var(--gold-light)!important; }

/* Mobile hamburger */
.nav-mobile-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.nav-mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.nav-mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-mobile-toggle.open span:nth-child(2) { opacity: 0; }
.nav-mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  background: var(--navy-dark); padding: 120px 32px 64px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 480px; height: 480px;
  border: 80px solid rgba(245,184,0,0.06); border-radius: 50%;
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 2; }
.page-hero .section-label { color: var(--gold); }
.page-hero h1 { font-size: clamp(28px,4vw,48px); font-weight: 900; color: var(--white); margin-bottom: 16px; }
.page-hero p  { font-size: 18px; color: rgba(255,255,255,0.65); max-width: 600px; line-height: 1.7; }

/* Breadcrumb */
.breadcrumb {
  background: var(--gray-50); border-bottom: 1px solid var(--gray-100);
  padding: 12px 32px;
}
.breadcrumb nav { max-width: var(--max-w); margin: 0 auto; font-size: 13px; color: var(--gray-400); }
.breadcrumb a { color: var(--navy); font-weight: 500; }
.breadcrumb a:hover { color: var(--gold-dark); }

/* Hero Trust & Certs */
.hero-trust { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); animation: fadeDown 0.8s ease 0.9s both; }
.trust-lbl { display: block; font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 16px; letter-spacing: 1px; text-transform: uppercase; }
.trust-logos { display: flex; gap: 32px; align-items: center; flex-wrap: wrap; opacity: 0.7; }
.trust-logos span { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 18px; color: var(--white); letter-spacing: 1px; }

.hero-certs { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; animation: fadeDown 0.8s ease 0.5s both; }
.hero-cert-badge { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 700; color: var(--white); backdrop-filter: blur(4px); }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.5); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px;
  animation: bounce 2s infinite; z-index: 3;
}
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); } 40% { transform: translateY(-10px) translateX(-50%); } 60% { transform: translateY(-5px) translateX(-50%); } }

/* ── FOOTER ── */
footer {
  background: var(--navy-dark); border-top: 3px solid var(--gold);
  padding: 60px 32px 28px;
}
.footer-top {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 44px; margin-bottom: 44px;
}
.footer-about .logo-text { font-size: 20px; }
.footer-about p { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.75; margin-top: 14px; }
.footer-col h4 {
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700;
  color: var(--gold); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px;
}
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p    { font-size: 13px; color: rgba(255,255,255,0.35); }
.footer-bottom span { font-size: 13px; color: rgba(245,184,0,0.55); font-weight: 600; }

/* ── FLOAT WhatsApp ── */
.float-wa {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; background: var(--green-wa); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 28px rgba(37,211,102,0.45); transition: var(--transition);
  animation: pulse-ring 2s infinite;
}
.float-wa:hover { transform: scale(1.1); box-shadow: 0 10px 36px rgba(37,211,102,0.55); animation: none; }
.float-wa-tip {
  position: absolute; right: 70px; background: var(--gray-800); color: var(--white);
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 8px; white-space: nowrap;
  opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.float-wa:hover .float-wa-tip { opacity: 1; }

/* ── CTA BANNER ── */
.cta-banner { background: var(--navy); padding: 72px 32px; }
.cta-banner-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-banner h2 { font-family: 'Montserrat', sans-serif; font-size: clamp(22px,2.5vw,32px); font-weight: 800; color: var(--white); }
.cta-banner h2 em { color: var(--gold); font-style: normal; }
.cta-banner p  { font-size: 16px; color: rgba(255,255,255,0.6); margin-top: 8px; }
.cta-banner-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Cards genéricas ── */
.card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl); overflow: hidden; transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-premium); transform: translateY(-6px); }

/* ── Tags / Pills ── */
.tag {
  display: inline-block; background: var(--gold); color: var(--navy-dark);
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700;
  padding: 4px 13px; border-radius: 30px; letter-spacing: 0.5px;
}
.tag-navy { background: var(--navy); color: var(--white); }
.tag-gray { background: var(--gray-100); color: var(--gray-600); }

/* ── Toast ── */
#toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--navy); color: var(--white); padding: 16px 28px; border-radius: var(--radius-lg);
  font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 600;
  box-shadow: var(--shadow-lg); z-index: 9999; transition: transform 0.4s ease;
  border-left: 4px solid var(--gold); white-space: nowrap;
}
#toast.show { transform: translateX(-50%) translateY(0); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy-dark); padding: 20px; gap: 6px; border-bottom: 1px solid rgba(255,255,255,0.1); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); }
  .nav-links.open { display: flex; }
  .nav-mobile-toggle { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .cta-banner-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .section { padding: 48px 0; }
  .section-sm { padding: 40px 0; }
  .btn { width: 100%; justify-content: center; }
  .cta-banner-btns .btn { width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 16px; }
}

/* ── CLIENTS CAROUSEL ── */
.clients-carousel {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 40px 0;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}
.clients-carousel::before,
.clients-carousel::after {
  content: ''; position: absolute; top: 0; width: 15vw; height: 100%; z-index: 2;
}
.clients-carousel::before { left: 0; background: linear-gradient(to right, var(--gray-50) 0%, transparent 100%); }
.clients-carousel::after { right: 0; background: linear-gradient(to left, var(--gray-50) 0%, transparent 100%); }
.marquee-container {
  display: flex;
  width: 200%;
}
.marquee {
  display: flex;
  flex: 0 0 50%;
  gap: 64px;
  justify-content: space-around;
  animation: scroll-marquee 25s linear infinite;
  white-space: nowrap;
}
.marquee:hover { animation-play-state: paused; }
.marquee-item {
  font-family: 'Montserrat', sans-serif; font-size: 28px; font-weight: 900;
  color: var(--gray-400); letter-spacing: 2px; text-transform: uppercase;
  transition: var(--transition); opacity: 0.6; padding: 0 20px;
}
.marquee-item:hover { color: var(--navy); opacity: 1; transform: scale(1.05); }
@keyframes scroll-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

/* ── TESTIMONIALS ── */
#testimonials { background: var(--off-white); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.testi-card {
  background: var(--white); border: 1px solid var(--gray-100);
  border-radius: var(--radius-xl); padding: 36px 32px;
  transition: var(--transition); position: relative;
}
.testi-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--gold); }
.testi-quote-icon { position: absolute; top: 24px; right: 24px; opacity: 0.1; color: var(--navy); }
.testi-stars { color: var(--gold); margin-bottom: 18px; font-size: 16px; display: flex; gap: 4px; }
.testi-text { font-size: 15px; color: var(--gray-600); font-style: italic; line-height: 1.7; margin-bottom: 28px; }
.testi-author { display: flex; align-items: center; gap: 16px; }
.testi-avatar {
  width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 18px;
}
.testi-info h4 { font-family: 'Montserrat', sans-serif; font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.testi-info span { font-size: 13px; color: var(--gray-400); font-weight: 500; }
@media (max-width: 1024px) {
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .testi-grid { grid-template-columns: 1fr; }
  .marquee-item { font-size: 22px; gap: 32px; }
}
