@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700&family=Inter:wght@400;500&display=swap');

/* ══════════════════════════════════════════════════
   SOCOM — Design System
   Estética: oscura/neutra + acento teal #00BBA7
   Tipografía: Sora (headings) + Inter (body)
══════════════════════════════════════════════════ */

:root {
  /* Paleta Light Theme */
  --bg: #FFFFFF;
  --bg-2: #F8FAFC;
  --bg-3: #F1F5F9;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --border: rgba(0, 0, 0, 0.08);
  --border-med: rgba(0, 0, 0, 0.15);

  /* Texto */
  --text: #0F172A;
  --text-muted: #475569;
  --text-faint: #64748B;


  /* Acento celeste SOCOM (Logo) */
  --accent: #5AC0E7;
  --accent-dark: #49A8CD;
  --accent-dim: rgba(90, 192, 231, 0.1);
  --accent-glow: rgba(90, 192, 231, 0.25);

  /* Semánticos */
  --danger: #F05252;
  --success: #31C77F;
  --warning: #F59E0B;

  /* Tipografía */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Espaciado */
  --radius: 8px;
  --radius-sm: 5px;
  --radius-lg: 16px;

  /* Transiciones */
  --t: 0.2s ease;
  --t-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--t);
}

a:hover {
  opacity: 0.8;
}

/* ── Tipografía ──────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* ── Botones ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t);
  white-space: nowrap;
}

.btn svg {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--accent);
  /*color: #0F172A;*/
  color:white;
  border-color: var(--accent);
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 0 20px var(--accent-glow);
  opacity: 1;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent-dim);
  opacity: 1;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-med);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-med);
  background: var(--surface);
  opacity: 1;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1rem;
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-accent {
  background: var(--accent-dim);
  color: var(--accent);
}

.badge-surface {
  background: var(--surface-2);
  color: var(--text-muted);
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  opacity: 1;
}

.logo:hover {
  opacity: 0.8;
}

.logo img {
  height: 48px;
  width: auto;
}

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

.nav-link {
  padding: 0.5rem 0.875rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
  opacity: 1;
}

.nav-link:hover {
  color: var(--text);
  background: var(--surface);
}

.nav-link.active {
  color: var(--accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-med);
  color: var(--text-muted);
  padding: 0.45rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color var(--t), border-color var(--t);
}

.menu-toggle:hover {
  color: var(--text);
  border-color: var(--border-med);
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.mobile-nav .nav-link {
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
}

.mobile-overlay.active {
  display: block;
}

/* ── Hero Slider ─────────────────────────────────────────── */
.hero-slider-wrap {
  position: relative;
  width: 100%;
  height: 530px;
  overflow: hidden;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* Efecto Ken Burns ligero */
.slide.active .slide-bg {
  animation: kenBurns 10s linear forwards;
}

@keyframes kenBurns {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.05);
  }
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 15, 18, 0.95) 0%, rgba(13, 15, 18, 0.7) 40%, rgba(13, 15, 18, 0.3) 100%);
  z-index: -1;
}

.slide-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  padding: 0 5%;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.2s;
}

.slide h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.4s;
}

.slide h2 em {
  font-style: normal;
  color: var(--accent);
}

.slide p {
  font-size: 1.15rem;
  color: #F8FAFC;
  margin-bottom: 2.25rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.6s;
}

.slide-actions {
  display: flex;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease 0.8s;
}

/* Activar animaciones al entrar el slide */
.slide.active .slide-badge,
.slide.active h2,
.slide.active p,
.slide.active .slide-actions {
  opacity: 1;
  transform: translateY(0);
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 2rem;
  left: 5%;
  z-index: 10;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border-med);
  cursor: pointer;
  transition: all var(--t);
  border: none;
}

.dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.slider-arrows {
  display: flex;
  gap: 0.5rem;
  margin-left: 1rem;
}

.slider-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-med);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--t);
}

.slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.slider-arrow svg {
  width: 20px;
  height: 20px;
}

/* ── Hero Info (antes era Hero principal) ────────────────── */
.hero-info {
  position: relative;
  padding: 5rem 0 6rem;
  overflow: hidden;
}

.hero-info::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: var(--accent-dim);
  border: 1px solid var(--accent-glow);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.5rem;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

.hero-info h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
}

.hero-info h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

/* Hero visual */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: border-color var(--t), transform var(--t-slow);
}

.hero-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.hero-card:nth-child(1) {
  grid-column: 1 / -1;
}

.hero-card-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero-card-icon svg {
  width: 20px;
  height: 20px;
}

.hero-card h4 {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.hero-card p {
  font-size: 0.8rem;
}

/* ── Section label ───────────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  max-width: 600px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.section-header-text {
  max-width: 560px;
}

/* ── Services ────────────────────────────────────────────── */
.services {
  background: var(--bg-2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: border-color var(--t), transform var(--t-slow);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}

.service-card:hover {
  border-color: var(--border-med);
  transform: translateY(-4px);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

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

.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

/* ── Blog Cards ──────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--t), transform var(--t-slow);
}

.post-card:hover {
  border-color: var(--border-med);
  transform: translateY(-5px);
}

.post-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-3);
  position: relative;
}

.post-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-img img {
  transform: scale(1.04);
}

.post-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
}

.post-card-img-placeholder svg {
  width: 40px;
  height: 40px;
}

.post-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.post-card-meta .badge {
  font-size: 0.7rem;
}

.post-card-date {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.post-card h3 {
  font-size: 1.05rem;
  line-height: 1.4;
}

.post-card h3 a {
  color: var(--text);
}

.post-card h3 a:hover {
  color: var(--accent);
  opacity: 1;
}

.post-card p {
  font-size: 0.875rem;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.read-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  opacity: 1;
}

.read-more:hover {
  gap: 0.5rem;
}

.read-more svg {
  width: 14px;
  height: 14px;
}

.read-time {
  font-size: 0.78rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.read-time svg {
  width: 13px;
  height: 13px;
}

/* ── Blog page ───────────────────────────────────────────── */
.blog-page {
  padding: 3rem 0 5rem;
}

.blog-header {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.filter-btn {
  padding: 0.35rem 0.875rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid var(--border-med);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--t);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  opacity: 1;
}

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.page-btn {
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-med);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
  text-decoration: none;
  transition: all var(--t);
}

.page-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  opacity: 1;
}

.page-btn.current {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  font-weight: 600;
}

.page-btn:disabled,
.page-btn[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
}

/* ── Post article ────────────────────────────────────────── */
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0 5rem;
}

.post-hero-img {
  width: 100%;
  aspect-ratio: 16/6;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.post-hero-placeholder {
  width: 100%;
  aspect-ratio: 16/6;
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
}

.post-hero-placeholder svg {
  width: 48px;
  height: 48px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-faint);
}

.post-meta strong {
  color: var(--text-muted);
}

.post-content {
  line-height: 1.8;
}

.post-content h2 {
  margin: 2.5rem 0 1rem;
  color: var(--text);
}

.post-content h3 {
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.post-content p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.post-content ul,
.post-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content strong {
  color: var(--text);
}

.post-content code {
  background: var(--surface-2);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.88em;
  color: var(--accent);
}

.post-content pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

/* Sidebar */
.post-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.related-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.related-item a {
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
}

.related-item a:hover {
  color: var(--accent);
  opacity: 1;
}

.related-item small {
  display: block;
  color: var(--text-faint);
  font-size: 0.75rem;
  margin-top: 0.2rem;
}

/* ── Servicios page ──────────────────────────────────────── */
.page-hero {
  padding: 5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}

.services-detail {
  padding: 5rem 0;
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 5rem;
}

.service-item:nth-child(even) {
  direction: rtl;
}

.service-item:nth-child(even)>* {
  direction: ltr;
}

.service-item-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4/3;
}

.service-item-visual-icon {
  width: 80px;
  height: 80px;
  background: var(--accent-dim);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.service-item-visual-icon svg {
  width: 40px;
  height: 40px;
}

.service-item-text ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.service-item-text li {
  display: flex;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  align-items: flex-start;
}

.service-item-text li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-top: 0.55rem;
  flex-shrink: 0;
}

/* ── About ───────────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-desc {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}

.team-avatar {
  width: 72px;
  height: 72px;
  background: var(--accent-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin: 0 auto 1rem;
}

.team-avatar svg {
  width: 32px;
  height: 32px;
}

.team-card h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.team-card p {
  font-size: 0.82rem;
}

/* ── Contact ─────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}

.contact-info-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-dim);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 18px;
  height: 18px;
}

/* ── Forms ───────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-control {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border-med);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: border-color var(--t), box-shadow var(--t);
}

.form-control::placeholder {
  color: var(--text-faint);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

textarea.form-control {
  resize: vertical;
  min-height: 130px;
}

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

.alert {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.alert-success {
  background: rgba(49, 199, 127, 0.1);
  border: 1px solid rgba(49, 199, 127, 0.3);
  color: var(--success);
}

.alert-error {
  background: rgba(240, 82, 82, 0.1);
  border: 1px solid rgba(240, 82, 82, 0.3);
  color: var(--danger);
}

/* ── CTA Section ─────────────────────────────────────────── */
.cta-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 5rem 0;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-tagline {
  font-size: 0.875rem;
  margin-top: 0.875rem;
  max-width: 260px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color var(--t);
}

.footer-col ul a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-contact {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer-contact svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex-shrink: 0;
}

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

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer-bottom a {
  color: var(--text-faint);
  font-size: 0.8rem;
}

.footer-bottom a:hover {
  color: var(--accent);
  opacity: 1;
}

/* ══════════════════════════════════════════════════
   ADMIN PANEL
══════════════════════════════════════════════════ */
.admin-body {
  background: var(--bg-2);
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
}

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
}

.admin-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.admin-logo-sub {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-bottom: 2rem;
  padding-left: 1.25rem;
}

.admin-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.6rem 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: color var(--t), background var(--t);
}

.admin-nav-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.admin-nav-link:hover {
  color: var(--text);
  background: var(--surface);
  opacity: 1;
}

.admin-nav-link.active {
  color: var(--accent);
  background: var(--accent-dim);
}

.admin-main {
  flex: 1;
  margin-left: 240px;
  padding: 2rem 2.5rem;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.admin-topbar h1 {
  font-size: 1.5rem;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.admin-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.admin-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.admin-stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.admin-stat-accent {
  color: var(--accent);
}

/* Admin table */
.admin-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.admin-table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
}

.admin-table-header h3 {
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th {
  padding: 0.75rem 1.25rem;
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 0.875rem 1.25rem;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table tbody tr:hover {
  background: var(--bg-3);
}

/* Admin form */
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

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

.admin-form-full {
  grid-column: 1 / -1;
}

/* Status dots */
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.status-dot::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-published::before {
  background: var(--success);
}

.status-draft::before {
  background: var(--text-faint);
}

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

.login-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.login-title {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 0.4rem;
}

.login-sub {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 0.85rem;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .hero {
    padding: 5rem 0 4rem;
  }

  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-sidebar {
    position: static;
  }

  .service-item {
    grid-template-columns: 1fr;
    direction: ltr !important;
  }

  .service-item:nth-child(even) {
    direction: ltr;
  }

  .service-item>* {
    direction: ltr !important;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .admin-sidebar {
    width: 200px;
    min-width: 200px;
  }

  .admin-main {
    margin-left: 200px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3.5rem 0;
  }

  h1 {
    font-size: 2rem;
  }

  /* Header */
  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Admin */
  .admin-sidebar {
    display: none;
  }

  .admin-main {
    margin-left: 0;
    padding: 1.5rem 1rem;
  }

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

@media (max-width: 480px) {
  .btn-lg {
    padding: 0.75rem 1.5rem;
  }

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

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

/* ── Utils ───────────────────────────────────────────────── */
.text-accent {
  color: var(--accent);
}

.text-muted {
  color: var(--text-muted);
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.d-flex {
  display: flex;
}

.gap-1 {
  gap: 0.5rem;
}

/* ── Animations ──────────────────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.fade-up-1 {
  animation-delay: 0.05s;
}

.fade-up-2 {
  animation-delay: 0.15s;
}

.fade-up-3 {
  animation-delay: 0.25s;
}

.fade-up-4 {
  animation-delay: 0.35s;
}