/* Estilos globales de ORVITEC */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  fill: white;
  flex-shrink: 0;
}
.white-text{
  color:white !important;
}
/* ==========================================================================
   1. RESET & BASE
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   2. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Tema principal: negro, rojo y grises */
  --white: #18181b;
  --bg-alt: #242428d9;
  --bg-alt-2: #2c2c31;
  --ink: #f7f7f8;
  --ink-soft: #d5d5d8;
  --text-muted: #a7a7ae;
  --text-faint: #74747d;
  --border: #3a3a40;
  --border-strong: #515159;
  --primary: #d71930;
  --primary-dark: #7f101d;
  --primary-light: #35181d;
  --accent: #ff3b4f;
  --accent-soft: #4a1d25;

  /* Cielo estrellado: edita estos valores para cambiar el aspecto del fondo */
  --sky-background: #0d0d0f;
  --sky-canvas-opacity: 0.65;
  --sky-canvas-dark-opacity: 0.4;

  /* Tipografía */
  --font-display: "Poppins", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Radios y sombras */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);

  /* Layout */
  --container: 1200px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2.1 TEMA OSCURO
   ========================================================================== */
[data-theme="light"] {
  --white: #ffffff;
  --bg-alt: #f6f6f7e6;
  --bg-alt-2: #ededf0;
  --ink: #1a1a1d;
  --ink-soft: #34343a;
  --text-muted: #676770;
  --text-faint: #909099;
  --border: #dedee3;
  --border-strong: #c9c9d0;
  --primary: #bf1027;
  --primary-dark: #7f101d;
  --primary-light: #f5dde1;
  --accent: #d71930;
  --accent-soft: #f9d9de;
  --sky-background: #f8f8f9;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.15);
}

:root:not([data-theme="light"]) body {
  background: var(--sky-background);
}

:root:not([data-theme="light"]) .navbar {
  background: rgba(13, 16, 23, 0.7);
}

:root:not([data-theme="light"]) .navbar.scrolled {
  background: rgba(13, 16, 23, 0.72);
}

:root:not([data-theme="light"]) .hero-visual-tag {
  background: rgba(23, 27, 36, 0.9);
}

:root:not([data-theme="light"]) .status-form input {
  background: var(--bg-alt-2);
}

:root:not([data-theme="light"]) #particle-canvas {
  opacity: var(--sky-canvas-dark-opacity);
}

:root:not([data-theme="light"]) footer {
  background: #09090b;
}

body,
.navbar,
.btn,
.service-card,
.mv-card,
.testimonial-card,
.status-box,
.status-form input,
.stats-grid,
footer,
.hero-visual,
.history-visual,
.map-box,
.masonry-item {
  transition:
    background-color 0.4s var(--ease),
    color 0.4s var(--ease),
    border-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}

body {
  font-family: var(--font-display);
  color: var(--ink-soft);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--r-sm);
  z-index: 9999;
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 16px;
}

/* ==========================================================================
   3. UTILIDADES / TIPOGRAFÍA
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 600px;
  margin-bottom: 48px;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 8px;
}

.section-head .eyebrow {
  justify-content: center;
}

.section-head .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

section {
  position: relative;
  padding: 96px 0;
  z-index: 2;
}

.section-alt {
  background: var(--bg-alt);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease),
    color 0.3s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(122, 21, 21, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(122, 21, 21, 0.34);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-3px);
}

.btn-light {
  background: white;
  color: black;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.btn-light:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.gallery-section {
  padding: 70px 0 40px;
}

.gallery-section .section-head {
  margin-bottom: 24px;
}

.gallery-carousel {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.carousel-window {
  overflow: hidden;
  flex: 1;
}

.carousel-track {
  display: flex;
  gap: 8px;
  transition: transform 0.34s var(--ease);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-alt);
  box-shadow: var(--shadow-sm);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  display: block;
}

.gallery-control {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  z-index: 2;
}

.gallery-control .gallery-control-icon {
  width: 22px;
  height: 22px;
  transition: transform 0.25s var(--ease);
  pointer-events: none;
}

.gallery-control:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border-color: var(--accent);
  color: #ffffff;
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 8px 24px rgba(215, 25, 48, 0.4), 0 0 12px rgba(255, 59, 79, 0.3);
}

.gallery-control-prev:hover:not(:disabled) .gallery-control-icon {
  transform: translateX(-3px);
}

.gallery-control-next:hover:not(:disabled) .gallery-control-icon {
  transform: translateX(3px);
}

.gallery-control:active:not(:disabled) {
  transform: translateY(0) scale(0.95);
  box-shadow: 0 2px 8px rgba(215, 25, 48, 0.3);
}

.gallery-control:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.gallery-control:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  border-color: var(--border);
  background: var(--bg-alt);
  color: var(--text-faint);
}

.gallery-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.gallery-more {
  margin-top: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
}

.gallery-more[hidden] {
  display: none;
}

@media (max-width: 900px) {
  .carousel-slide {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 650px) {
  .gallery-carousel {
    gap: 10px;
  }

  .gallery-control {
    width: 40px;
    height: 40px;
  }

  .gallery-control .gallery-control-icon {
    width: 18px;
    height: 18px;
  }

  .carousel-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ==========================================================================
   4. FONDO DE PARTÍCULAS — Cielo estrellado tecnológico
   ========================================================================== */
#particle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: var(--sky-canvas-opacity);
}

/* ==========================================================================
   5. NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition:
    padding 0.35s var(--ease),
    background 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.6);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(11, 38, 71, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  box-shadow: 0 6px 16px rgba(122, 21, 21, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-cta .btn {
  padding: 11px 22px;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  z-index: 1001;
}

.nav-toggle span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 0.3s var(--ease),
    opacity 0.3s var(--ease);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   5.5 THEME SWITCH
   ========================================================================== */
.theme-switch {
  position: relative;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: var(--bg-alt-2);
  border: 1.5px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  padding: 3px;
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease);
  flex-shrink: 0;
}

.theme-switch:hover {
  border-color: var(--accent);
}

.theme-switch-knob {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(11, 38, 71, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 0.68rem;
  transform: translateX(0);
  transition:
    transform 0.35s var(--ease),
    background 0.35s var(--ease);
}

:root:not([data-theme="light"]) .theme-switch-knob {
  transform: translateX(24px);
  background: var(--primary);
  color: var(--white);
}

.theme-switch-knob svg {
  width: 0.8em;
  height: 0.8em;
}

.theme-switch .icon-sun {
  display: block;
}

.theme-switch .icon-moon {
  display: none;
}

:root:not([data-theme="light"]) .theme-switch .icon-sun {
  display: none;
}

:root:not([data-theme="light"]) .theme-switch .icon-moon {
  display: block;
}

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero {
  padding: 168px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 520px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-badge i {
  color: var(--accent);
  font-size: 1rem;
}

.hero-visual {
  position: relative;
  /*aspect-ratio: 4/3.4;*/
  border-radius: var(--r-lg);

  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-alt-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  color: var(--text-faint);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
 /* background-image:
    linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);*/
  background-size: 32px 32px;
  opacity: 0.4;
}

.hero-visual i {
  font-size: 2.6rem;
  position: relative;
  z-index: 1;
}

.hero-visual span {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
}

.hero-visual-tag {
  position: absolute;
  bottom: 18px;
  left: 18px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

/* ==========================================================================
   7. ESTADÍSTICAS
   ========================================================================== */
.stats {
  padding: 0;
  transform: translateY(-46px);
  z-index: 5;
}

.stats-grid {
  background: var(--primary-dark);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.stat-item {
  padding: 38px 20px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: white;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.stat-item i {
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 8px;
  display: block;
}

/* ==========================================================================
   8. HISTORIA / MISIÓN / VISIÓN
   ========================================================================== */
.history {
  /*padding-top: 130px;*/
}

.history-grid {
  display: flex;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.history-visual {
  aspect-ratio: 1/1;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.history-visual i {
  font-size: 3rem;
  color: var(--border-strong);
}

.history-visual .ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
}

.history-visual .ring-1 {
  width: 70%;
  height: 70%;
}

.history-visual .ring-2 {
  width: 45%;
  height: 45%;
}

.history-text p {
  color: var(--text-muted);
  margin-bottom: 18px;
  font-size: 1.02rem;
}

.history-text p:last-child {
  margin-bottom: 0;
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 64px;
}

.mv-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 38px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.mv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.mv-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.mv-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.mv-card p {
  color: var(--text-muted);
}

/* ==========================================================================
   9. SERVICIOS
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--r-md);
  background: var(--primary-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 24px;
  transition: transform 0.4s var(--ease);
}

.service-card:hover .service-icon {
  transform: scale(1.08) rotate(-4deg);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

.service-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.service-list i {
  color: var(--accent);
  font-size: 0.85rem;
}

/* ==========================================================================
   10. PROCESO DE INGENIERÍA (TIMELINE)
   ========================================================================== */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
}

.process-timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-strong);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.process-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.35s var(--ease),
    color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.process-step:hover .process-num {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.08);
}

.process-step h4 {
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.process-step p {
  font-size: 0.86rem;
  color: var(--text-muted);
}

/* ==========================================================================
   11. MARCAS - CARRUSEL INFINITO
   ========================================================================== */
.brands {
  background: var(--primary-dark);
  padding: 70px 0;
  overflow: hidden;
}

.brands .section-head .section-title,
.brands .section-head p {
  color: var(--white);
}

.brands .section-head .eyebrow {
  color: var(--accent-soft);
}

.brands .section-head .eyebrow::before {
  background: var(--accent-soft);
}

.marquee {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  display: flex;
  align-items: center;
  min-height: 105px;
}

.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: scroll-left 15s linear infinite;
}

@keyframes scroll-left {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.brand-chip {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  animation: wave 2s ease-in-out infinite;
}

.brand-chip:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
  border-color: rgba(255, 255, 255, 0.28);
}

.brand-chip .brand-logo {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;

  filter: brightness(0) invert(1);
}

.brand-chip span {
  display: inline-flex;
  align-items: center;
}

.brand-chip i {
  color: var(--accent-soft);
  font-size: 1.1rem;
}

@keyframes wave {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

/* ==========================================================================
   12. CLIENTES - TESTIMONIOS
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: var(--accent);
  margin-bottom: 18px;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--ink-soft);
  margin-bottom: 24px;
  font-size: 0.96rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.author-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.author-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   13. ESTADO DE REPARACIÓN
   ========================================================================== */
.status-box {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.status-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.status-form input {
  flex: 1;
  padding: 15px 18px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  color: var(--ink);
  text-transform: uppercase;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.status-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.status-result {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--r-sm);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 0.9rem;
  display: none;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.status-result.show {
  display: flex;
}

.status-result i {
  font-size: 1.1rem;
  color: var(--accent);
}

.status-result.error {
  background: #3d0f0f;
  color: #ffd1d1;
}

/* Lista de reparaciones para seleccionar (varias coincidencias). */
.status-result.list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.status-list-title {
  margin: 0 0 2px;
  font-weight: 600;
}

.status-card {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.3s var(--ease),
    background 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.status-card:hover,
.status-card:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  outline: none;
}

.status-card-estado {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-top: 8px;
}

.status-card-placa {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.status-card-fecha {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   14. GALERÍA MASONRY
   ========================================================================== */
.masonry {
  columns: 3 220px;
  column-gap: 22px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 22px;
  border-radius: var(--r-md);
  border: 1.5px dashed var(--border-strong);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-faint);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.masonry-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.masonry-item svg {
  font-size: 1.6rem;
}

.masonry-item.h1 {
  height: 115px;
  
}

.masonry-item.h2 {
  height: 280px;
}

.masonry-item.h3 {
  height: 230px;
}

.masonry-item.h4 {
  height: 180px;
}

.masonry-item.h5 {
  height: 260px;
}

/* ==========================================================================
   15. CTA
   ========================================================================== */
.cta {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary) 120%);
  border-radius: var(--r-lg);
  margin: 0 24px;
  padding: 70px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.06), transparent 40%);
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.cta h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  margin-bottom: 16px;
}

.cta p {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 32px;
}

/* ==========================================================================
   16. MAPA
   ========================================================================== */
.contact-card {
  max-width: 900px;
  margin: 28px auto 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.contact-form {
  display: grid;
  gap: 16px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  font: inherit;
  color: var(--ink);
  background: var(--bg-alt);
  transition:
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.contact-form .btn {
  margin-top: 8px;
  border: none;
  cursor: pointer;
  width: fit-content;
}

.form-message {
  min-height: 1.4em;
  margin: .9rem 0 0;
  text-align: center;
  font-size: .92rem;
  color: rgba(255, 255, 255, .9);
}

.form-message.success {
  color: #22c55e;
  font-weight: 600;
}

.form-message.error {
  color: #ffd1d1;
}

/* Preguntas frecuentes */
.faq-list {
  max-width: 820px;
  margin: 40px auto 0;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-weight: 600;
  gap: 16px;
  justify-content: space-between;
  list-style: none;
  padding: 20px 24px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  color: var(--accent);
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  color: var(--text-muted);
  line-height: 1.7;
  padding: 0 24px 20px;
}

@media (max-width: 700px) {
  .contact-card {
    padding: 24px;
  }

  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

.map-box {
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 16/7;
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--border-strong);
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0/40px 40px,
    var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-muted);
  position: relative;
}

.map-pin {
  width: 46px;
  height: 46px;
  border-radius: 50% 50% 50% 0;
  background: var(--primary);
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  margin-bottom: 6px;
}

.map-pin i {
  color: var(--white);
  transform: rotate(90deg);
  font-size: 1.1rem;
}

.map-coords {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   17. FOOTER
   ========================================================================== */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 80px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo {
  color: white;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  max-width: 340px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.footer-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

footer h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  transition:
    color 0.25s var(--ease),
    padding-left 0.25s var(--ease);
}

.footer-links a:hover {
  color: rgb(192, 17, 17);
  padding-left: 4px;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
  margin-bottom: 16px;
  align-items: flex-start;
}

.footer-contact i {
  color: var(--accent);
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   17.5. BOTONES FLOTANTES
   ========================================================================== */
.floating-buttons {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 8px 24px rgba(11, 38, 71, 0.24);
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    opacity 0.3s var(--ease);
  cursor: pointer;
  border: none;
  color: var(--white);
}

.float-btn:hover {
  transform: scale(1.12) translateY(-3px);
  box-shadow: 0 12px 32px rgba(11, 38, 71, 0.32);
}

.float-btn:active {
  transform: scale(1.08) translateY(-1px);
}

.float-btn-whatsapp {
  background: #20ba5a;
}

.float-btn-call {
  background: #134078;
}

.float-btn-top {
  background: #0b2647;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.float-btn-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Tooltip */
.float-btn-tooltip {
  position: absolute;
  right: 68px;
  white-space: nowrap;
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
  font-family: var(--font-display);
}

.float-btn:hover .float-btn-tooltip {
  opacity: 1;
}

@media (max-width: 640px) {
  .floating-buttons {
    right: 16px;
    bottom: 16px;
    gap: 10px;
  }

  .float-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .float-btn-tooltip {
    right: 60px;
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   17.6 MODAL DE IMAGEN
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
  cursor: pointer;
}

.modal-overlay:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

.modal-overlay[hidden] {
  display: flex !important; /* override hidden for smooth transition */
  pointer-events: none;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  cursor: default;
}

.modal-image {
  display: block;
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Botones de navegación anterior/siguiente */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
  line-height: 1;
  z-index: 1;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(1.1);
}

.modal-nav:disabled {
  opacity: 0.25;
  cursor: default;
  transform: translateY(-50%) scale(1);
  background: rgba(255, 255, 255, 0.05);
}

.modal-prev {
  left: -54px;
}

.modal-next {
  right: -54px;
}

@media (max-width: 700px) {
  .modal-prev {
    left: 6px;
  }
  .modal-next {
    right: 6px;
  }
  .modal-nav {
    width: 38px;
    height: 38px;
    font-size: 1.4rem;
  }
}

.carousel-slide img,
.gallery-thumb img {
  cursor: pointer;
}

/* ==========================================================================
   18. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
    max-width: 520px;
    margin: 0 auto;
  }

  .history-grid {
    grid-template-columns: 1fr;
  }

  .history-visual {
    max-width: 380px;
    margin: 0 auto;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-timeline {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 44px;
  }

  .process-timeline::before {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .nav-links,
  .nav-cta .btn-outline {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.mobile-open {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 110px 36px 40px;
    gap: 26px;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.12);
    transform: translateX(0);
    transition: transform 0.4s var(--ease);
  }

  .nav-links {
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mv-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .masonry {
    columns: 2 160px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  section {
    padding: 60px 0;
  }

  .hero {
    padding: 140px 0 70px;
  }
}

@media (max-width: 520px) {
  .status-form {
    flex-direction: column;
  }

  .process-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .masonry {
    columns: 2 130px;
  }

  .cta {
    margin: 0 16px;
    padding: 50px 24px;
  }
}

/* ==========================================================================
   SECCIÓN DE CERTIFICACIONES DORADAS
   ========================================================================== */
.certifications-section {
  position: relative;
  overflow: hidden;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.cert-card {
  position: relative;
  /* aspect-ratio: 1 / 1; */
  width: 100%;
  border-radius: var(--r-md);
  padding: 4px;
  background: linear-gradient(135deg, #d4af37 0%, #ffd700 30%, #996515 60%, #fff8dc 85%, #b8860b 100%);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.4), 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, transparent 0 340deg, #ffd700 360deg);
  opacity: 0.25;
  animation: certRotate 8s linear infinite;
  pointer-events: none;
}

@keyframes certRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cert-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--r-md) - 3px);
  overflow: hidden;
  background: radial-gradient(circle at center, #231b0c 0%, #0d0a04 100%);
  z-index: 1;
}

.cert-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}

.cert-card-badge {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  padding: 12px 10px;
  background: linear-gradient(to top, rgba(15, 12, 5, 0.95) 0%, rgba(15, 12, 5, 0) 100%);
  color: #f7f7f8;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transform: translateY(6px);
  opacity: 0.9;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.cert-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 0 35px rgba(255, 215, 0, 0.7), 0 0 20px rgba(212, 175, 55, 0.85), 0 18px 30px rgba(0, 0, 0, 0.6);
}

.cert-card:hover img {
  transform: scale(1.05);
}

.cert-card:hover .cert-card-badge {
  transform: translateY(0);
  opacity: 1;
  color: #ffd700;
}

@media (max-width: 992px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 520px) {
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}
