/* ============================================================
   INTECMO — style.css
   Tema claro · Paleta oficial: Rojo #DC143C + Negro + Blanco
   Tipografía: Barlow Condensed (display) + Inter (body)
   ============================================================ */

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

:root {
  --red:         #DC143C;
  --red-dark:    #B01030;
  --red-dim:     rgba(220,20,60,0.06);
  --red-dim-2:   rgba(220,20,60,0.1);
  --accent:      var(--red); /* alias de compatibilidad */

  --bg:          #FFFFFF;
  --bg-alt:      #F7F7F7;
  --surface:     #FAFAFA;
  --surface2:    #F0F0F0;

  --text:        #111111;
  --text-body:   #333333;
  --text-muted:  #6B6B6B;

  --border:      rgba(0,0,0,0.1);
  --border-red:  rgba(220,20,60,0.28);

  --radius:      3px;
  --font-disp:   'Barlow Condensed', sans-serif;
  --font-body:   'Inter', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── CONTAINER ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── ICON BADGES (reemplazan emojis) ── */
.icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--red-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.icon-badge svg { width: 24px; height: 24px; }

.icon-badge--sm {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
}

.icon-badge--sm svg { width: 20px; height: 20px; }

/* ── NAV ── */
.nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 96px;
}

.logo {
  display: flex;
  align-items: center;
  height: 100%;
  line-height: 0;
}

.logo-img {
  height: 62px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
}

.footer-brand .logo {
  height: auto;
  margin-bottom: 16px;
}

.footer-brand .logo-img {
  height: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }

.btn-nav {
  padding: 8px 20px;
  background: var(--red);
  color: #FFFFFF !important;
  border-radius: var(--radius);
  font-weight: 600 !important;
  transition: background 0.2s;
}

.btn-nav:hover { background: var(--red-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 30%, rgba(220,20,60,0.05) 0%, transparent 65%);
}

/* Hero con foto de fondo */
.hero--photo {
  background-image:
    linear-gradient(180deg, rgba(6,8,12,0.62) 0%, rgba(6,8,12,0.82) 100%),
    url('images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
}

.hero--photo::before {
  background: radial-gradient(ellipse 60% 50% at 75% 30%, rgba(220,20,60,0.22) 0%, transparent 65%);
}

.hero--photo .hero-eyebrow { color: #FFFFFF; border-color: rgba(255,255,255,0.35); }
.hero--photo .hero-title { color: #FFFFFF; }
.hero--photo .hero-sub { color: rgba(255,255,255,0.85); }
.hero--photo .hero-ctas .btn-ghost { border-color: rgba(255,255,255,0.4); color: #FFFFFF; }
.hero--photo .hero-ctas .btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #FFFFFF; }
.hero--photo .stat-label { color: rgba(255,255,255,0.65); }
.hero--photo .stat-divider { background: rgba(255,255,255,0.25); }

/* Firma: línea de comisionamiento animada en rojo */
.hero-line {
  position: absolute;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  animation: commission 2.4s ease-out forwards;
  width: 0;
}

@keyframes commission {
  0%   { width: 0;    opacity: 0; }
  10%  { opacity: 1; }
  80%  { width: 100%; opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

.hero-inner { position: relative; max-width: 820px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  padding: 4px 12px;
  border: 1px solid var(--border-red);
  border-radius: 2px;
}

.hero-title {
  font-family: var(--font-disp);
  font-size: clamp(42px, 7vw, 82px);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
  color: var(--text);
}

.hero-title .accent { color: var(--red); }

.hero-sub {
  font-size: 18px;
  color: var(--text-body);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }

.stat-num {
  font-family: var(--font-disp);
  font-size: 28px;
  font-weight: 700;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--red);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid rgba(0,0,0,0.18);
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius);
  transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--red);
  background: var(--red-dim);
}

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 40px; font-size: 17px; }

/* ── SECTIONS ── */
.section { padding: 96px 0; }

.section--dark {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--mid {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--cta {
  background: linear-gradient(135deg, #FFF6F8 0%, #FFFFFF 100%);
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 680px;
  margin-bottom: 56px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.section-header h2 {
  font-family: var(--font-disp);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}

.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── SOLUTIONS GRID ── */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.sol-card {
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  background: var(--bg);
  transition: background 0.2s;
  border-left: 3px solid transparent;
}

.sol-card:hover {
  background: var(--surface);
  border-left-color: var(--red);
}

.sol-card--accent {
  border-left-color: var(--red);
  background: var(--red-dim);
}

.sol-card h3 {
  font-family: var(--font-disp);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--text);
}

.sol-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.sol-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.02em;
}

/* ── FRAMEWORKS ── */
.fw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.fw-card {
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  transition: border-color 0.2s, background 0.2s;
}

.fw-card:hover {
  border-color: var(--border-red);
  background: var(--red-dim);
}

.fw-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.fw-card h3 {
  font-family: var(--font-disp);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  line-height: 1.2;
}

.fw-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.fw-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
}

.fw-link:hover { text-decoration: underline; }

/* ── SECTORS (íconos vectoriales limpios) ── */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.sector-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 32px 20px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.2s;
  background: var(--bg);
}

.sector-item:hover {
  border-color: var(--red);
  color: var(--text);
  background: var(--red-dim);
  transform: translateY(-2px);
}

/* ── CASES ── */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.case-card {
  padding: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  border-left: 3px solid var(--red);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.case-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.case-body {
  padding: 28px 32px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.case-body .case-tag { margin-bottom: 14px; }
.case-body p { flex: 1; }

.case-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.case-card h3 {
  font-family: var(--font-disp);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.25;
  color: var(--text);
}

.case-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.case-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.case-card--cta {
  padding: 36px;
  background: var(--red-dim);
  border-left-color: var(--red);
  border-color: var(--border-red);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.case-card--cta h3 { margin-bottom: 0; }

.cases-note {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

/* ── DIFERENCIADOR ── */
.diff-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.diff-text h2 {
  font-family: var(--font-disp);
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

.diff-text p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.diff-text .btn-ghost { margin-top: 8px; }

.diff-list { display: flex; flex-direction: column; gap: 28px; }

.diff-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.diff-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--red);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.diff-check svg { width: 14px; height: 14px; }

.diff-item strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.diff-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── RESOURCES ── */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.resource-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
}

.resource-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.resource-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.35;
  color: var(--text);
}

.resource-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.resource-soon {
  font-size: 12px;
  color: var(--red);
  font-weight: 600;
}

.resource-card--lead {
  border-color: var(--border-red);
  background: var(--red-dim);
}

/* ── FINAL CTA ── */
.final-cta {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.final-cta h2 {
  font-family: var(--font-disp);
  font-size: clamp(28px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}

.final-cta p {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.cta-contact-info {
  margin-top: 24px;
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  color: var(--text-muted);
}

.cta-contact-info a {
  color: var(--red);
  transition: opacity 0.2s;
}

.cta-contact-info a:hover { opacity: 0.75; }

/* ── FOOTER ── */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
}

.footer-brand .logo { font-size: 20px; margin-bottom: 16px; display: block; }

.footer-brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 8px;
}

.footer-addr { font-size: 12px !important; }

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ── CONTACT / ABOUT PAGE HERO ── */
.page-hero {
  padding: 140px 0 80px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: var(--font-disp);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--text);
}

.page-hero p {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 560px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  padding: 80px 0;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-disp);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
}

.contact-item strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-item a, .contact-item span {
  font-size: 16px;
  color: var(--text);
  transition: color 0.2s;
}

.contact-item a:hover { color: var(--red); }

/* ── FORM ── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

input, select, textarea {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  -webkit-appearance: none;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

select option { background: #FFFFFF; }

input:focus, select:focus, textarea:focus {
  border-color: var(--red);
  background: var(--red-dim);
}

textarea { min-height: 140px; resize: vertical; }

input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 0.7; }

.form-submit .btn-primary {
  width: 100%;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: -8px;
}

/* ── ABOUT PAGE ── */
/* ── ABOUT PAGE ── */
.about-photo {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-photo img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

.about-photo figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 28px;
  background: linear-gradient(0deg, rgba(0,0,0,0.68) 0%, transparent 100%);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 500;
}

.about-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px 0;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.about-mission h2 {
  font-family: var(--font-disp);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text);
}

.about-mission p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.value-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  border-top: 3px solid var(--red);
  background: var(--bg);
}

.value-card h3 {
  font-family: var(--font-disp);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.value-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

.about-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.about-num-item {
  padding: 40px 32px;
  background: var(--bg);
  text-align: center;
}

.about-num-item .num {
  font-family: var(--font-disp);
  font-size: 48px;
  font-weight: 800;
  color: var(--red);
  display: block;
  margin-bottom: 8px;
}

.about-num-item span:last-child {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── SOLUTIONS DETAIL PAGE ── */
.sol-detail {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

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

.sol-detail-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.sol-detail h2 {
  font-family: var(--font-disp);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text);
}

.sol-detail .problem {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.sol-benefits {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sol-benefit {
  padding: 20px 24px;
  background: var(--red-dim);
  border: 1px solid var(--border);
  border-left: 3px solid var(--red);
  border-radius: var(--radius);
}

.sol-benefit strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.sol-benefit p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.sol-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tech-tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
}

/* ── FORM SUCCESS ── */
#formSuccess {
  display: none;
  padding: 32px;
  background: var(--red-dim);
  border: 1px solid var(--border-red);
  border-radius: 6px;
  text-align: center;
}

.success-icon {
  width: 48px;
  height: 48px;
  background: var(--red);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.success-icon svg { width: 24px; height: 24px; }

#formSuccess h3 {
  font-family: var(--font-disp);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

#formSuccess p { font-size: 15px; color: var(--text-muted); }

/* ── RESPONSIVE ── */

/* Safety net: nothing should ever cause horizontal scroll */
html, body { overflow-x: hidden; width: 100%; }

@media (max-width: 900px) {
  .diff-wrap,
  .contact-wrap,
  .about-mission,
  .sol-detail-inner { grid-template-columns: 1fr; gap: 40px; }

  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .about-numbers { grid-template-columns: repeat(2, 1fr); }
  .fw-grid,
  .cases-grid,
  .resources-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }

  .nav-links {
    display: none;
    position: fixed;
    top: 96px; left: 0; right: 0;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  }

  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; z-index: 101; }
  .btn-nav { align-self: flex-start; }

  .hero { padding: 100px 0 56px; min-height: auto; }
  .hero-title { font-size: 34px; margin-bottom: 20px; }
  .hero-sub { font-size: 16px; margin-bottom: 32px; }
  .hero-ctas { gap: 12px; }
  .hero-stats { gap: 20px; row-gap: 16px; }
  .stat-divider { display: none; }

  .page-hero { padding: 108px 0 56px; }
  .page-hero h1 { font-size: 34px; }

  .section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }
  .section-header h2 { font-size: 28px; }

  .form-row { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; gap: 24px; }
  .about-numbers { grid-template-columns: repeat(2, 1fr); }
  .about-num-item { padding: 28px 16px; }
  .about-num-item .num { font-size: 34px; }

  .solutions-grid,
  .fw-grid,
  .cases-grid,
  .resources-grid,
  .about-values { grid-template-columns: 1fr; }

  .sol-detail { padding: 56px 0; }
  .sol-tech-tags { gap: 6px; }

  .sectors-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .sector-item { padding: 24px 14px; gap: 10px; }

  .case-thumb { height: 140px; }
  .case-body { padding: 22px 24px 26px; }

  .about-photo img { height: 220px; }
  .logo-img { height: 28px; }

  /* Buttons: never wider than the viewport, text wraps instead of overflowing */
  .btn-primary, .btn-ghost {
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
  }
  .btn-lg { padding: 16px 24px; font-size: 15px; width: 100%; text-align: center; }
  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost { width: 100%; text-align: center; }

  .final-cta h2 { font-size: 28px; }
  .cta-contact-info { flex-direction: column; gap: 6px; }
  .cta-contact-info span { display: none; }
}

@media (max-width: 400px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 30px; }
  .about-numbers { grid-template-columns: 1fr; }
  .stat { min-width: 100%; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-line { animation: none; width: 100%; opacity: 0.2; }
  * { transition: none !important; }
}
