:root {
  --navy:   #1A2E5A;
  --blue:   #0066CC;
  --blue2:  #005BB5;
  --light-blue: #E8F2FC;
  --sky:    #4A90D9;
  --white:  #FFFFFF;
  --gray-bg:#F4F6F9;
  --gray:   #6B7A99;
  --text:   #1A2E5A;
  --border: #D8E4F0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.6;
}

/* ─── NAVBAR ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--blue);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between; height: 72px;
}
.nav-logo {
  display: flex; flex-direction: row; align-items: center;
  gap: 0.6rem; text-decoration: none; height: 72px; padding: 8px 0;
}
.nav-logo img { height: 100%; width: auto; filter: brightness(0) invert(1); }
.nav-logo-sub {
  font-size: 0.68rem; font-weight: 700; color: #7BB8E8;
  letter-spacing: 0.16em; text-transform: uppercase; text-align: left; line-height: 1.3;
}
.nav-links { display: flex; gap: 0; list-style: none; align-items: center; height: 100%; }
.nav-links a {
  font-size: 0.88rem; font-weight: 600; color: rgba(255,255,255,0.85);
  text-decoration: none; padding: 0 1.2rem; height: 72px;
  display: flex; align-items: center;
  border-bottom: 3px solid transparent; margin-bottom: -3px;
  transition: color 0.2s, border-color 0.2s; letter-spacing: 0.01em;
}
.nav-links a:hover { color: white; border-bottom-color: var(--sky); }
.nav-cta {
  background: var(--blue) !important; color: white !important;
  padding: 0.6rem 1.4rem !important; height: auto !important;
  border-radius: 4px; border-bottom: none !important;
  margin-left: 1rem; transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--blue2) !important; border-bottom: none !important; }

/* ─── HERO ─── */
.hero {
  margin-top: 72px;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero.webp');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10, 20, 50, 0.88) 0%,
    rgba(10, 20, 50, 0.75) 45%,
    rgba(10, 20, 50, 0.25) 100%
  );
}
.hero-wave {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 64px;
  background: var(--white);
  clip-path: ellipse(60% 100% at 50% 100%);
  z-index: 2;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto; padding: 5rem 2rem 6rem;
  display: grid; grid-template-columns: 1fr 420px;
  gap: 4rem; align-items: center;
  position: relative; z-index: 1;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 1.2rem;
}
.hero-eyebrow::before {
  content: ''; width: 24px; height: 2px;
  background: var(--sky); display: inline-block;
}
.hero h1 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; color: white; line-height: 1.15;
  letter-spacing: -0.01em; margin-bottom: 1.2rem;
}
.hero h1 em { font-style: normal; color: var(--sky); }
.hero p {
  font-size: 1.05rem; color: rgba(255,255,255,0.78);
  line-height: 1.75; margin-bottom: 2rem; font-weight: 300; max-width: 480px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: var(--blue); color: white;
  padding: 0.85rem 1.8rem; border-radius: 4px;
  font-weight: 700; font-size: 0.92rem; text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  display: inline-flex; align-items: center; gap: 0.4rem; letter-spacing: 0.02em;
}
.btn-primary:hover { background: var(--blue2); transform: translateY(-1px); }

.btn-secondary {
  background: transparent; color: white;
  padding: 0.85rem 1.8rem; border-radius: 4px;
  font-weight: 600; font-size: 0.92rem; text-decoration: none;
  transition: all 0.2s; border: 2px solid rgba(255,255,255,0.45);
  display: inline-flex; align-items: center; gap: 0.4rem;
}
.btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.08); }

/* ─── HERO CARDS ─── */
.hero-cards { display: flex; flex-direction: column; gap: 0.9rem; }
.hero-card {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
  border-left: 3px solid var(--sky);
  backdrop-filter: blur(8px);
  border-radius: 6px; padding: 1rem 1.2rem;
  display: flex; align-items: center; gap: 1rem;
}
.hero-card-icon { font-size: 1.4rem; flex-shrink: 0; width: 40px; text-align: center; }
.hero-card-text strong {
  display: block; font-size: 0.88rem; font-weight: 700;
  color: white; margin-bottom: 0.1rem;
}
.hero-card-text span { font-size: 0.78rem; color: rgba(255,255,255,0.55); }

/* ─── SECTIONS ─── */
.section { padding: 5rem 2rem; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-gray { background: var(--gray-bg); }
.section-navy { background: var(--navy); color: white; }
.section-header { margin-bottom: 3.5rem; }
.section-header.center { text-align: center; }

.eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: 0.8rem; display: block;
}
.section-navy .eyebrow { color: var(--sky); }

h2 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 700; color: var(--navy);
  line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 1rem;
}
.section-navy h2 { color: white; }

.section-desc {
  font-size: 1rem; color: var(--gray);
  max-width: 560px; line-height: 1.75; font-weight: 300;
}
.section-header.center .section-desc { margin: 0 auto; }
.section-navy .section-desc { color: rgba(255,255,255,0.65); }

.divider { width: 48px; height: 3px; background: var(--blue); margin-top: 1rem; }
.section-header.center .divider { margin: 1rem auto 0; }

/* ─── SERVICES GRID ─── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; justify-items: center; }
.services-grid .service-card:last-child:nth-child(3n+1) { grid-column: 2; }
.service-card-empty { visibility: hidden; border: none !important; box-shadow: none !important; pointer-events: none; }
.service-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 8px; padding: 1.8rem;
  transition: box-shadow 0.25s, transform 0.2s;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--blue); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.service-card-empty { border: none; background: transparent; pointer-events: none; box-shadow: none; }
.service-card-empty::before { display: none; }
.service-card:hover { box-shadow: 0 8px 32px rgba(26,46,90,0.12); transform: translateY(-3px); }
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 {
  font-family: 'Source Serif 4', serif; font-size: 1.05rem;
  font-weight: 700; color: var(--navy); margin-bottom: 0.6rem; line-height: 1.3;
}
.service-card p { font-size: 0.88rem; color: var(--gray); line-height: 1.65; margin-bottom: 1rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  font-size: 0.7rem; padding: 0.2rem 0.6rem; border-radius: 3px;
  background: var(--light-blue); color: var(--blue);
  font-weight: 600; letter-spacing: 0.02em;
}
.service-img img { transition: transform 0.4s ease; }
.service-card:hover .service-img img { transform: scale(1.04); }

/* ─── WHY ─── */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.why-list { display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; }
.why-item { display: flex; align-items: flex-start; gap: 1rem; }
.why-check {
  width: 24px; height: 24px; background: var(--blue); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px; color: white; font-size: 0.7rem; font-weight: 700;
}
.why-item-text strong { display: block; font-size: 0.95rem; font-weight: 700; color: var(--navy); margin-bottom: 0.2rem; }
.why-item-text span { font-size: 0.85rem; color: var(--gray); line-height: 1.6; }

/* ─── STATS ─── */
.stats-bar { background: var(--blue); padding: 2.5rem 2rem; }
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem; text-align: center;
}
.stat-num {
  font-family: 'Source Serif 4', serif; font-size: 2.4rem;
  font-weight: 700; color: white; display: block;
  line-height: 1; margin-bottom: 0.3rem;
}
.stat-label { font-size: 0.8rem; color: rgba(255,255,255,0.75); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }

/* ─── SECTORS ─── */
.sectors-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.sector-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px; padding: 1.8rem 1.2rem; text-align: center;
  transition: background 0.25s, transform 0.2s;
}
.sector-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-3px); }
.sector-icon { font-size: 2rem; display: block; margin-bottom: 0.8rem; }
.sector-card h4 { font-weight: 700; font-size: 0.9rem; color: white; margin-bottom: 0.4rem; }
.sector-card p { font-size: 0.78rem; color: rgba(255,255,255,0.5); line-height: 1.5; }

/* ─── CONTACT ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem; align-items: stretch; }
.contact-info h3 {
  font-family: 'Source Serif 4', serif; font-size: 1.3rem;
  font-weight: 700; color: var(--navy); margin-bottom: 0.8rem;
}
.contact-info p { color: var(--gray); font-size: 0.92rem; line-height: 1.75; margin-bottom: 1.8rem; }
.contact-detail {
  display: flex; align-items: center; gap: 0.8rem;
  margin-bottom: 0.9rem; font-size: 0.9rem; color: var(--navy);
}
.contact-detail-icon {
  width: 36px; height: 36px; background: var(--light-blue);
  border-radius: 8px; display: flex; align-items: center;
  justify-content: center; font-size: 0.9rem; flex-shrink: 0; color: var(--blue);
}
.contact-form-col { display: flex; flex-direction: column; }
.contact-form-col .contact-iframe { flex: 1; min-height: 500px; }

/* ─── SUCCURSALES ─── */
.branches-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
.branch-card { background: var(--light-blue); border-radius: 10px; padding: 1.1rem; border-top: 3px solid var(--sky); }
.branch-card.siege { border-top-color: var(--blue); }
.branch-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.branch-icon {
  width: 28px; height: 28px; border-radius: 6px; background: var(--sky);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; flex-shrink: 0;
}
.branch-card.siege .branch-icon { background: var(--blue); }
.branch-card strong { font-size: 0.85rem; color: var(--navy); }
.branch-badge { margin-left: auto; font-size: 0.65rem; background: var(--blue); color: white; padding: 2px 7px; border-radius: 20px; font-weight: 700; }
.branch-card address { font-style: normal; font-size: 0.78rem; color: #444; line-height: 1.4; margin-bottom: 0.4rem; }
.branch-card a { font-size: 0.78rem; color: var(--blue); text-decoration: none; font-weight: 600; }
.branch-card a:hover { text-decoration: underline; }
.branch-sep { border: none; border-top: 1px solid var(--border); margin: 0.5rem 0; }

/* ─── FOOTER ─── */
footer { background: var(--navy); border-top: 3px solid var(--blue); padding: 2.5rem 2rem; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer-logo { display: flex; flex-direction: row; align-items: center; gap: 0.5rem; }
.footer-logo img { height: 44px; width: auto; filter: brightness(0) invert(1); }
.footer-logo-sub { font-size: 0.55rem; font-weight: 700; color: #7BB8E8; letter-spacing: 0.14em; text-transform: uppercase; text-align: left; line-height: 1.3; }
footer p { font-size: 0.78rem; color: rgba(255,255,255,0.4); }
.footer-links { display: flex; gap: 2rem; list-style: none; }
.footer-links a { font-size: 0.78rem; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--sky); }

/* ─── FAQ ─── */
.faq-filters {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  justify-content: center; margin-bottom: 2.5rem;
}
.faq-filter {
  background: var(--gray-bg); border: 1px solid var(--border);
  border-radius: 20px; padding: 0.45rem 1rem;
  font-size: 0.78rem; font-weight: 600; color: var(--gray);
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.faq-filter:hover { border-color: var(--blue); color: var(--blue); }
.faq-filter.active { background: var(--blue); color: white; border-color: var(--blue); }

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: 0.6rem;
  overflow: hidden; transition: box-shadow 0.2s;
}
.faq-item:hover { box-shadow: 0 4px 16px rgba(26,46,90,0.08); }
.faq-item.hidden { display: none; }

.faq-question {
  width: 100%; background: none; border: none;
  padding: 1.1rem 1.4rem; text-align: left;
  font-size: 0.92rem; font-weight: 600; color: var(--navy);
  cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; transition: background 0.2s;
}
.faq-question:hover { background: var(--gray-bg); }
.faq-question::after {
  content: '+'; font-size: 1.3rem; font-weight: 300;
  color: var(--blue); flex-shrink: 0;
  transition: transform 0.3s;
}
.faq-item.open .faq-question::after { content: '−'; transform: rotate(180deg); }
.faq-item.open .faq-question { background: var(--light-blue); color: var(--blue); }

.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.4rem;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.4rem 1.2rem;
}
.faq-answer p {
  font-size: 0.88rem; color: var(--gray);
  line-height: 1.7; padding-top: 0.5rem;
}

/* ─── PARTENAIRES ─── */
.partners-grid {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 2.5rem 3rem; padding: 1rem 0;
}
.partner-logo {
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
  opacity: 0.65; transition: opacity 0.3s;
}
.partner-logo:hover { opacity: 1; }
.partner-logo img { height: 48px; width: auto; object-fit: contain; filter: grayscale(100%); transition: filter 0.3s; }
.partner-lg img { height: 28px; }
.partner-logo:hover img { filter: grayscale(0%); }
.partner-sub { font-size: 0.65rem; color: var(--gray); font-weight: 600; }

/* ─── ANIMATIONS ─── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.55s ease, transform 0.55s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ─── HAMBURGER MENU ─── */
.nav-hamburger {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem; margin-left: auto;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: white; margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─── RESPONSIVE TABLET ─── */
@media (max-width: 960px) {
  .nav-hamburger { display: block; }
  .nav-links {
    display: none; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    bottom: auto; height: auto;
    background: #1A2E5A; border-bottom: 3px solid var(--blue);
    padding: 1rem 0;
    z-index: 9999;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    height: auto; padding: 0.9rem 2rem;
    border-bottom: none; margin-bottom: 0;
    color: white;
  }
  .nav-cta { margin: 0.5rem 2rem !important; text-align: center; justify-content: center; }

  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-cards { display: grid; grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .sectors-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .branches-grid { grid-template-columns: 1fr; }

  /* Support section inline grid fix */
  .support-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .support-img { height: 260px !important; }
}

/* ─── RESPONSIVE MOBILE ─── */
@media (max-width: 600px) {
  .nav-inner { padding: 0 1rem; height: 60px; }
  .nav-logo img { height: 100%; }
  .nav-logo { height: 60px; padding: 6px 0; }
  .nav-links { top: 60px; }

  .hero { margin-top: 60px; min-height: auto; }
  .hero-inner { padding: 3rem 1.2rem 4rem; gap: 2rem; }
  .hero h1 { font-size: 1.65rem; }
  .hero p { font-size: 0.92rem; margin-bottom: 1.5rem; }
  .hero-eyebrow { font-size: 0.65rem; margin-bottom: 0.8rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { width: 100%; justify-content: center; text-align: center; }
  .hero-cards { grid-template-columns: 1fr; gap: 0.6rem; }
  .hero-card { padding: 0.8rem 1rem; }

  .stats-bar { padding: 1.5rem 1rem; }
  .stats-inner { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
  .stat-num { font-size: 1.6rem; }
  .stat-label { font-size: 0.65rem; }

  .section { padding: 3rem 1.2rem; }
  .section-header { margin-bottom: 2rem; }
  h2 { font-size: 1.4rem; }

  .services-grid { grid-template-columns: 1fr; gap: 1.2rem; }
  .service-card { padding: 1.2rem; }

  .sectors-grid { grid-template-columns: 1fr 1fr; gap: 0.8rem; }
  .sector-card { padding: 1.2rem 0.8rem; }
  .sector-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
  .sector-card h4 { font-size: 0.8rem; }
  .sector-card p { font-size: 0.72rem; }

  .why-grid { gap: 2rem; }
  .why-visual-img { height: 200px !important; }
  .why-promise { padding: 1.3rem !important; }
  .why-promise-sectors { gap: 1rem !important; }

  .support-grid { gap: 1.5rem !important; }
  .support-img { height: 200px !important; }
  .download-buttons { flex-direction: column !important; }
  .download-buttons a { width: 100%; justify-content: center; }

  .cta-band { padding: 3rem 1.2rem !important; }

  .contact-grid { gap: 2rem; }
  .contact-form-header { flex-wrap: wrap; gap: 0.5rem; padding: 0.8rem 1rem !important; }
  .contact-form-header .ms-badge { display: none; }
  .contact-iframe { height: 600px !important; }

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

  footer { padding: 1.5rem 1.2rem; }
  .footer-links { gap: 1rem; }
}
