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

:root {
  --background: 210 20% 98%;
  --foreground: 213 40% 16%;
  --card: 0 0% 100%;
  --primary: 213 60% 25%;
  --primary-foreground: 0 0% 100%;
  --secondary: 207 44% 49%;
  --secondary-foreground: 0 0% 100%;
  --muted: 210 20% 95%;
  --muted-foreground: 213 15% 46%;
  --accent: 207 80% 88%;
  --accent-foreground: 213 60% 25%;
  --border: 214 20% 88%;
  --ice: 207 80% 88%;
  --radius: 0.5rem;
  --container: min(1400px, 100% - 4rem);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: 'Open Sans', sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.2;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  width: var(--container);
  margin-inline: auto;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Header */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: hsl(var(--card) / 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--border));
  box-shadow: 0 1px 3px hsl(213 40% 16% / 0.06);
}

.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 0; gap: 1rem;
}

.site-header .logo img { height: 3rem; width: auto; }

.main-nav { display: none; gap: 2rem; }
.main-nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
  transition: color 0.2s;
}
.main-nav a:hover { color: hsl(var(--secondary)); }

.lang-switcher { display: none; gap: 0.5rem; }
.lang-switcher button {
  width: 2.5rem; height: 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.5; transition: opacity 0.2s, transform 0.2s;
}
.lang-switcher button:hover { opacity: 1; transform: scale(1.1); }
.lang-switcher button.active { opacity: 1; }

.menu-toggle {
  display: flex; color: hsl(var(--foreground));
  padding: 0.25rem;
}

.mobile-nav {
  display: none;
  background: hsl(var(--card));
  border-top: 1px solid hsl(var(--border));
  padding: 1rem 0;
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 0.75rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8125rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.mobile-nav a:hover { background: hsl(var(--muted)); }
.mobile-nav .lang-switcher {
  display: flex; padding: 0.75rem 2rem;
  border-top: 1px solid hsl(var(--border)); margin-top: 0.5rem;
}

@media (min-width: 768px) {
  .main-nav, .lang-switcher { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}
.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}
.btn-secondary:hover {
  background: hsl(var(--secondary) / 0.9);
  box-shadow: 0 10px 25px hsl(207 44% 49% / 0.3);
}

/* Section titles */
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: hsl(var(--primary));
  text-align: center;
  margin-bottom: 1rem;
}
.section-title.light { color: hsl(var(--primary-foreground)); }
.section-subtitle {
  text-align: center;
  color: hsl(var(--muted-foreground));
  max-width: 42rem;
  margin: 0 auto 4rem;
}
.section-subtitle.light { color: hsl(var(--primary-foreground) / 0.7); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.8), hsl(var(--primary) / 0.5), transparent);
}
.hero .container {
  position: relative; z-index: 1;
  padding-block: 8rem 4rem;
}
.hero-grid {
  display: grid; gap: 3rem; align-items: center;
}
.hero-logo { height: 5rem; width: auto; filter: brightness(0) invert(1); margin-bottom: 2rem; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  color: hsl(var(--primary-foreground));
  margin-bottom: 1.5rem;
}
.hero h1 .highlight { color: hsl(var(--ice)); }
.hero-desc {
  font-size: 1.125rem;
  color: hsl(var(--primary-foreground) / 0.8);
  max-width: 32rem;
  margin-bottom: 2rem;
}
.hero-services-box {
  display: none;
  background: hsl(var(--primary) / 0.6);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid hsl(var(--primary-foreground) / 0.1);
  animation: fadeIn 0.8s ease-out 0.3s both;
}
.hero-services-box h2 {
  font-size: 1.25rem; font-weight: 700;
  color: hsl(var(--primary-foreground));
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.hero-services-box li {
  display: flex; align-items: center; gap: 0.75rem;
  color: hsl(var(--primary-foreground) / 0.9);
  margin-bottom: 1rem;
}
.hero-services-box li::before {
  content: '';
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: hsl(var(--ice));
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr 1fr; }
  .hero-services-box { display: block; }
  .hero-content { animation: fadeInUp 0.8s ease-out; }
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: hsl(0 0% 0% / 0.8);
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: hsl(var(--card));
  border-radius: 0.5rem;
  max-width: 48rem; width: 100%;
  max-height: 85vh; overflow-y: auto;
  padding: 1.5rem 2rem;
  box-shadow: 0 25px 50px hsl(0 0% 0% / 0.25);
  animation: fadeInUp 0.3s ease-out;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.5rem; gap: 1rem;
}
.modal-header h2 {
  font-size: 1.5rem; color: hsl(var(--primary));
}
.modal-close {
  width: 2rem; height: 2rem;
  border-radius: 0.25rem;
  color: hsl(var(--muted-foreground));
  font-size: 1.5rem; line-height: 1;
}
.modal-close:hover { background: hsl(var(--muted)); }
.modal p { margin-bottom: 1rem; color: hsl(var(--foreground) / 0.9); line-height: 1.7; }

/* About */
.about { padding: 6rem 0; background: hsl(var(--card)); }
.about-intro { max-width: 48rem; margin: 0 auto 4rem; text-align: center; }
.about-intro p { font-size: 1.125rem; color: hsl(var(--muted-foreground)); }
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
@media (min-width: 768px) { .sectors-grid { grid-template-columns: repeat(3, 1fr); } }

.sector-card {
  background: hsl(var(--muted));
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}
.sector-card:hover {
  background: hsl(var(--primary));
  box-shadow: 0 10px 30px hsl(var(--primary) / 0.25);
  transform: translateY(-2px);
}
.sector-card svg {
  width: 2.5rem; height: 2.5rem;
  margin: 0 auto 1rem;
  color: hsl(var(--secondary));
  transition: color 0.3s;
}
.sector-card:hover svg { color: hsl(var(--primary-foreground)); }
.sector-card span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.sector-card:hover span { color: hsl(var(--primary-foreground)); }

/* Services */
.services { padding: 6rem 0; background: hsl(var(--primary)); }
.services-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); } }

.service-card {
  background: hsl(var(--primary-foreground) / 0.05);
  border: 1px solid hsl(var(--primary-foreground) / 0.1);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s;
}
.service-card:hover {
  background: hsl(var(--primary-foreground) / 0.1);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px hsl(0 0% 0% / 0.2);
}
.service-card .thumb {
  height: 10rem; overflow: hidden;
}
.service-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.service-card:hover .thumb img { transform: scale(1.05); }
.service-card .body { padding: 1.5rem; }
.service-card svg {
  width: 2.5rem; height: 2.5rem;
  color: hsl(var(--ice));
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.125rem; font-weight: 700;
  color: hsl(var(--primary-foreground));
  margin-bottom: 0.75rem;
}
.service-card p {
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.7);
  line-height: 1.6;
}

/* Clients */
.clients { padding: 6rem 0; background: hsl(var(--card)); }
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) { .clients-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { .clients-grid { grid-template-columns: repeat(6, 1fr); } }

.client-card {
  background: hsl(var(--muted));
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  padding: 1rem;
  height: 5rem;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.client-card:hover {
  background: hsl(var(--accent) / 0.5);
  box-shadow: 0 4px 12px hsl(213 40% 16% / 0.08);
}
.client-card span {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.625rem; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: hsl(var(--muted-foreground));
  text-align: center;
  line-height: 1.3;
}

/* Strengths */
.strengths { padding: 6rem 0; background: hsl(var(--muted)); }
.strengths-top {
  display: grid; gap: 4rem; align-items: center;
  margin-bottom: 6rem;
  min-width: 0;
}
.strengths-top > * { min-width: 0; }
@media (min-width: 1024px) {
  .strengths-top { grid-template-columns: 1fr 1fr; }
}
.strength-item {
  display: flex; gap: 1.25rem;
  margin-bottom: 2rem;
}
.strength-icon {
  flex-shrink: 0;
  width: 3.5rem; height: 3.5rem;
  background: hsl(var(--primary));
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}
.strength-icon svg { width: 1.75rem; height: 1.75rem; color: hsl(var(--primary-foreground)); }
.strength-item h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.25rem; }
.strength-item p { color: hsl(var(--muted-foreground)); }
.strengths-image {
  display: block;
  width: 100%;
  max-width: min(28rem, 100%);
  height: auto;
  margin: 0 auto;
  border-radius: 1rem;
  box-shadow: 0 25px 50px hsl(213 40% 16% / 0.15);
  object-fit: cover;
}
.benefits-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: hsl(var(--primary));
  text-align: center;
  margin-bottom: 3rem;
}
.benefits-grid {
  display: grid; gap: 2rem;
}
@media (min-width: 768px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }
.benefit-card {
  background: hsl(var(--card));
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 4px 20px hsl(213 40% 16% / 0.06);
  border-top: 4px solid hsl(var(--secondary));
  transition: box-shadow 0.3s;
}
.benefit-card:hover { box-shadow: 0 10px 30px hsl(213 40% 16% / 0.1); }
.benefit-card svg { width: 2.5rem; height: 2.5rem; color: hsl(var(--secondary)); margin-bottom: 1rem; }
.benefit-card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }
.benefit-card p { color: hsl(var(--muted-foreground)); font-size: 0.9375rem; }

/* LinkedIn */
.linkedin { padding: 5rem 0; background: hsl(var(--muted)); }
.linkedin-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: hsl(var(--secondary));
  font-family: 'Montserrat', sans-serif;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: 0.875rem;
  margin-bottom: 1rem;
}
.linkedin-grid {
  display: grid; gap: 1.5rem;
  max-width: 64rem; margin: 0 auto;
}
@media (min-width: 768px) { .linkedin-grid { grid-template-columns: repeat(2, 1fr); } }
.linkedin-card {
  background: hsl(var(--card));
  border-radius: 0.5rem;
  border: 1px solid hsl(var(--border));
  box-shadow: 0 4px 12px hsl(213 40% 16% / 0.06);
  overflow: hidden;
}
.linkedin-card iframe { width: 100%; border: 0; display: block; }
.linkedin-cta { text-align: center; margin-top: 3rem; }

/* Contact */
.contact { padding: 6rem 0; background: hsl(var(--primary)); text-align: center; }
.contact-grid {
  display: grid; gap: 2rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(3, 1fr); } }
.contact-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.contact-icon {
  width: 3.5rem; height: 3.5rem;
  background: hsl(var(--primary-foreground) / 0.1);
  border-radius: 0.75rem;
  display: flex; align-items: center; justify-content: center;
}
.contact-icon svg { width: 1.5rem; height: 1.5rem; color: hsl(var(--ice)); }
.contact-item span, .contact-item a {
  font-size: 0.875rem;
  color: hsl(var(--primary-foreground) / 0.8);
}
.contact-item a:hover { color: hsl(var(--ice)); }

/* Footer */
.site-footer {
  background: hsl(var(--foreground));
  padding: 2rem 0;
  text-align: center;
}
.site-footer p {
  font-size: 0.875rem;
  color: hsl(var(--background) / 0.5);
}

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-weight: 600;
  border-radius: 0 0 0.25rem 0;
}
.skip-link:focus {
  left: 0;
}

body.modal-open { overflow: hidden; }

/* Lead form & modals */
.modal-overlay[hidden] { display: none !important; }
.modal-lead { max-width: 28rem; padding: 1.5rem; }
.lead-modal-subtitle {
  font-size: 0.9375rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.lead-form .form-group { margin-bottom: 1rem; }
.lead-form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: hsl(var(--foreground));
}
.lead-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: 0.5rem;
  font-size: 1rem;
  background: hsl(var(--card));
  color: hsl(var(--foreground));
  min-height: 3rem;
}
.lead-form input:focus {
  outline: 2px solid hsl(var(--secondary));
  outline-offset: 2px;
  border-color: hsl(var(--secondary));
}
.form-error {
  color: hsl(0 70% 45%);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.btn-block { width: 100%; display: block; text-align: center; }
.btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* Contact links */
.contact-link {
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: center;
  width: 100%;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.contact-link:hover span,
.contact-link:focus-visible span { color: hsl(var(--ice)); }
.contact-link:focus-visible {
  outline: 2px solid hsl(var(--ice));
  outline-offset: 4px;
  border-radius: 0.25rem;
}

/* WhatsApp float */
.whatsapp-float {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 90;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px hsl(142 70% 35% / 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 28px hsl(142 70% 35% / 0.5);
}
.whatsapp-float:focus-visible {
  outline: 3px solid hsl(var(--primary));
  outline-offset: 3px;
}

/* LinkedIn responsive embed */
.linkedin-card iframe {
  min-height: 280px;
  height: min(600px, 70vh);
}

/* ========== MOBILE ========== */
@media (max-width: 767px) {
  :root {
    --container: min(1400px, 100% - 1.5rem);
    --header-h: 64px;
  }

  .site-header .logo img { height: 2.5rem; }
  .site-header .inner { padding: 0.5rem 0; }

  .hero { min-height: 100svh; }
  .hero .container { padding-block: 3.5rem 2.5rem; }
  .hero-logo { height: 3.25rem; margin-bottom: 1.25rem; }
  .hero h1 {
    font-size: clamp(1.625rem, 7.5vw, 2.25rem);
    margin-bottom: 1rem;
  }
  .hero h1 .highlight { display: block; margin-top: 0.25rem; }
  .hero-desc { font-size: 1rem; margin-bottom: 1.5rem; }
  .hero .btn { width: 100%; max-width: 100%; }

  .about, .services, .clients, .strengths, .linkedin, .contact {
    padding: 3.5rem 0;
  }
  .section-subtitle { margin-bottom: 2rem; font-size: 0.9375rem; }
  .strengths-top { margin-bottom: 3rem; gap: 2rem; }

  .sectors-grid { gap: 1rem; }
  .sector-card { padding: 1.25rem 0.75rem; }
  .sector-card span { font-size: 0.625rem; }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .client-card { height: 4.5rem; padding: 0.5rem; }
  .client-card span { font-size: 0.5625rem; }

  .service-card .body { padding: 1.25rem; }
  .service-card h3 { font-size: 1rem; }

  .benefit-card { padding: 1.5rem; }

  .linkedin .container > div:first-child { margin-bottom: 2rem !important; }
  .linkedin-card iframe { height: min(420px, 65vh); }
  .linkedin-cta .btn { width: 100%; max-width: 100%; }

  .contact-grid { gap: 1.25rem; }
  .contact-item span,
  .contact-item a { font-size: 0.8125rem; word-break: break-word; }
  #quote-cta { width: 100%; max-width: 100%; padding-left: 1rem; padding-right: 1rem; }

  .modal {
    max-height: min(92vh, 92dvh);
    padding: 1.25rem;
    margin: 0.5rem;
    width: calc(100% - 1rem);
  }
  .modal-header h2 { font-size: 1.25rem; }
  .modal-lead { max-width: 100%; }

  .whatsapp-float {
    width: 3.5rem;
    height: 3.5rem;
    bottom: max(0.875rem, env(safe-area-inset-bottom));
    right: max(0.875rem, env(safe-area-inset-right));
  }

  .lang-switcher button {
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
  .menu-toggle {
    min-width: 2.75rem;
    min-height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-nav a {
    min-height: 2.75rem;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 380px) {
  .clients-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 1.5rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
