/* ============================================================
   PERITO INFORMÁTICO — CSS Portfolio
   Estética: Industrial / Técnica / Autoridad judicial
   ============================================================ */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0c0f;
  --bg-2:      #0f1217;
  --bg-3:      #141820;
  --surface:   #1a2030;
  --border:    #252e3d;
  --border-2:  #2d3a4e;

  --text:      #e8ecf2;
  --text-2:    #8b9bb5;
  --text-3:    #556278;

  --accent:    #00d4ff;
  --accent-2:  #0099cc;
  --accent-3:  #004466;
  --gold:      #f5a623;
  --green:     #00e599;
  --red:       #ff4560;

  --ff-display: 'DM Serif Display', Georgia, serif;
  --ff-body:    'Outfit', sans-serif;
  --ff-mono:    'IBM Plex Mono', monospace;

  --radius:    6px;
  --radius-lg: 12px;
  --nav-h:     70px;

  --glow: 0 0 20px rgba(0, 212, 255, 0.15);
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

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

::selection { background: var(--accent); color: var(--bg); }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 12, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

#navbar.scrolled {
  background: rgba(10, 12, 15, 0.97);
  border-bottom-color: var(--border-2);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
}
.nav-logo:hover { color: var(--accent); }
.nav-logo .logo-icon { color: var(--accent); font-size: 1.2rem; }
.nav-logo em { color: var(--accent); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-2);
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }

.nav-links .nav-cta {
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  margin-left: 0.5rem;
}
.nav-links .nav-cta:hover {
  background: var(--text);
  color: var(--bg);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: calc(var(--nav-h) + 4rem) 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.scan-line {
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.4), transparent);
  animation: scan 8s linear infinite;
  opacity: 0.6;
}

@keyframes scan {
  0%   { top: 0; }
  100% { top: 100%; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.hero-title {
  font-family: var(--ff-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  letter-spacing: 0.02em;
}
.btn-primary:hover {
  background: #33ddff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-2);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(0, 212, 255, 0.05);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--ff-mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.stat-label {
  font-size: 0.72rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* TERMINAL */
.hero-visual {
  display: flex;
  justify-content: center;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

.terminal {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow), var(--glow);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.8rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.t-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.t-dot.red    { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green  { background: #28c840; }

.t-title {
  font-family: var(--ff-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  margin-left: 0.5rem;
}

.terminal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.t-line {
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0;
  animation: fadeIn 0.3s forwards;
}
.t-line:nth-child(1)  { animation-delay: 0.3s; }
.t-line:nth-child(2)  { animation-delay: 0.8s; }
.t-line:nth-child(3)  { animation-delay: 1.3s; }
.t-line:nth-child(4)  { animation-delay: 1.8s; }
.t-line:nth-child(5)  { animation-delay: 2.3s; }
.t-line:nth-child(6)  { animation-delay: 2.8s; }

@keyframes fadeIn {
  to { opacity: 1; }
}

.t-prompt { color: var(--accent); margin-right: 0.5rem; }
.t-cmd    { color: var(--text); }
.t-out    { color: var(--text-2); padding-left: 1rem; }
.t-ok     { color: var(--green); font-weight: 500; }

.blink {
  animation: blink 1s infinite, fadeIn 0.3s 2.8s both;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
section {
  padding: 6rem 2rem;
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}
.section-header.left {
  text-align: left;
  margin: 0 0 3rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
}

.section-header h2 {
  font-family: var(--ff-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.section-header h2 em {
  font-style: italic;
  color: var(--accent);
}
.section-header p {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  max-width: 1200px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.service-card:hover::before { opacity: 1; }

.service-card.featured {
  border-color: rgba(0, 212, 255, 0.3);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, var(--bg-2) 50%);
}
.service-card.featured:hover { border-color: var(--accent); box-shadow: var(--glow), var(--shadow); }

.card-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.card-icon svg { width: 100%; height: 100%; }

.card-tag {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--ff-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  letter-spacing: 0.1em;
}

.card-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.service-card h3 {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.card-list li {
  font-size: 0.82rem;
  color: var(--text-2);
  padding-left: 1.2rem;
  position: relative;
}
.card-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
}

.card-link {
  font-family: var(--ff-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  transition: letter-spacing 0.2s;
}
.card-link:hover { letter-spacing: 0.12em; }

/* ============================================================
   METHODOLOGY
   ============================================================ */
.methodology {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.methodology .method-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* Fallback: wrap method-content and method-visual in a flex container */
.methodology > .method-content,
.methodology > .method-visual {
  max-width: 1200px;
  margin: 0 auto;
}

.methodology {
  padding: 6rem 2rem;
}

/* Reset: use inner grid */
.methodology-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2rem;
}

.step::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 42px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.step:last-child::after { display: none; }
.step:last-child { padding-bottom: 0; }

.step-num {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.step-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  padding-top: 0.6rem;
}
.step-content p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.65;
}

/* Method Visual */
.method-visual {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
}

.cert-card {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.cert-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.cert-icon { font-size: 1.5rem; }
.cert-title { font-size: 0.95rem; font-weight: 600; color: var(--text); }
.cert-sub { font-size: 0.78rem; color: var(--text-3); }

.cert-hash {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}
.hash-label {
  font-family: var(--ff-mono);
  font-size: 0.65rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}
.hash-value {
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  color: var(--green);
}

.cert-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cbadge {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.tools-card {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.tools-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.tools-list { display: flex; flex-direction: column; gap: 0.6rem; }
.tool-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-2);
}
.tool-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ============================================================
   CASES
   ============================================================ */
.cases {
  max-width: 1200px;
  margin: 0 auto;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.case-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}
.case-item:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
}

.case-icon { font-size: 2rem; margin-bottom: 1rem; }

.case-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.case-item p {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* We use flex for real layout */
.about {
  padding: 6rem 2rem;
}
.about-content, .about-visual {
  max-width: 600px;
}

/* Use a wrapper */

.about-text {
  font-size: 0.95rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}

.credentials {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.credential {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.cred-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.cred-title { font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 0.2rem; text-transform: uppercase; letter-spacing: 0.06em; }
.cred-text { font-size: 0.82rem; color: var(--text-2); line-height: 1.55; }

.profile-card {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.profile-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--border-2);
  overflow: hidden;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-placeholder { width: 60px; height: 60px; color: var(--text-3); }
.avatar-placeholder svg { width: 100%; height: 100%; }

.profile-name { font-size: 1.1rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.profile-role { font-size: 0.82rem; color: var(--text-2); margin-bottom: 0.25rem; }
.profile-college { font-family: var(--ff-mono); font-size: 0.7rem; color: var(--text-3); margin-bottom: 1.75rem; }

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.pstat { text-align: center; }
.pstat span { display: block; font-family: var(--ff-mono); font-size: 1.3rem; color: var(--accent); font-weight: 500; }
.pstat small { font-size: 0.7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.06em; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-2);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-family: var(--ff-body);
  font-size: 0.9rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

select option { background: var(--bg-2); color: var(--text); }

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--text-2);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--accent);
}
.checkbox-label a { color: var(--accent); }
.checkbox-label a:hover { text-decoration: underline; }

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--ff-body);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  align-self: flex-start;
  letter-spacing: 0.02em;
}
.btn-submit svg { width: 18px; height: 18px; }
.btn-submit:hover {
  background: #33ddff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.form-message {
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  display: none;
}
.form-message.success {
  display: block;
  background: rgba(0, 229, 153, 0.1);
  border: 1px solid rgba(0, 229, 153, 0.3);
  color: var(--green);
}
.form-message.error {
  display: block;
  background: rgba(255, 69, 96, 0.1);
  border: 1px solid rgba(255, 69, 96, 0.3);
  color: var(--red);
}

/* CONTACT INFO */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.info-icon { font-size: 1.2rem; flex-shrink: 0; }
.info-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-3); margin-bottom: 0.25rem; font-weight: 600; }
.info-value { font-size: 0.9rem; color: var(--text); transition: color 0.2s; }
a.info-value:hover { color: var(--accent); }

.urgency-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: rgba(245, 166, 35, 0.06);
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: var(--radius-lg);
  margin-top: 0.5rem;
}
.urgency-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
  flex-shrink: 0;
  margin-top: 5px;
  animation: pulse 1.5s infinite;
}
.urgency-box strong { display: block; font-size: 0.88rem; color: var(--gold); margin-bottom: 0.3rem; }
.urgency-box p { font-size: 0.8rem; color: var(--text-2); line-height: 1.55; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ff-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-brand .footer-logo .logo-icon { color: var(--accent); font-size: 1.2rem; }
.footer-brand .footer-logo em { color: var(--accent); font-style: normal; }
.footer-brand p { font-size: 0.82rem; color: var(--text-3); max-width: 360px; line-height: 1.65; }

.footer-links {
  display: flex;
  gap: 4rem;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-col-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 0.4rem;
}
.footer-col a {
  font-size: 0.83rem;
  color: var(--text-2);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-3);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   LAYOUT CORRECTIONS (About / Methodology use wrapper pattern)
   ============================================================ */
.about {
  padding: 6rem 2rem;
}
.about .about-inner-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.methodology .method-inner-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-badge { justify-content: center; display: inline-flex; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }

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

  .methodology .method-inner-grid,
  .about .about-inner-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .cases-grid { grid-template-columns: repeat(2, 1fr); }

  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-links { flex-wrap: wrap; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 0.25rem;
    z-index: 99;
  }
  .hamburger { display: flex; }

  section { padding: 4rem 1.25rem; }
  .hero { padding: calc(var(--nav-h) + 3rem) 1.25rem 3rem; }

  .form-row { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; text-align: center; }
}
