/* ============================================================
   AFIPRESA — Rediseño Industrial Minimalista
   Paleta: Blanco · Gris Claro · Rojo
   ============================================================ */

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

/* ── Variables ── */
:root {
  --white: #ffffff;
  --off-white: #f7f7f7;
  --gray-50: #f4f4f4;
  --gray-100: #e8e8e8;
  --gray-200: #d0d0d0;
  --gray-400: #9a9a9a;
  --gray-600: #5a5a5a;
  --gray-800: #2a2a2a;
  --gray-900: #1a1a1a;

  --red: #cc1a1a;
  --red-dark: #a51515;
  --red-light: #e53333;
  --red-glow: rgba(204, 26, 26, 0.12);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.10);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.14);
  --shadow-red: 0 8px 32px rgba(204, 26, 26, 0.18);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 0.25s;
  --medium: 0.45s;

  --nav-h: 72px;
  --section-pad: 6rem 8%;
}

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

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--white);
  color: var(--gray-800);
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--fast) var(--ease);
}

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

/* ── Utility ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8%;
  z-index: 1000;
  transition: box-shadow var(--fast) var(--ease),
    background var(--fast) var(--ease);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255, 255, 255, 0.99);
}

/* Logo */
.logo a,
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
  transition: transform var(--fast) var(--ease);
}

.logo img:hover {
  transform: scale(1.04);
}

/* Nav links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--gray-600);
  padding: 0.3rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width var(--fast) var(--ease);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: transform var(--fast) var(--ease),
    opacity var(--fast) var(--ease);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  background-color: var(--gray-50);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Grid de puntos industriales de fondo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--gray-200) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
}

/* Acento rojo lateral */
.hero::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: var(--red);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 8%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Texto hero */
.hero-text {
  animation: fadeSlideUp 0.9s var(--ease) both;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--red);
  border: 1px solid var(--red);
  padding: 0.35rem 1rem;
  margin-bottom: 1.5rem;
}

.hero-badge::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

.hero h1 span {
  color: var(--red);
}

.hero-desc {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--red);
  color: var(--white);
  padding: 0.85rem 2rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid var(--red);
  transition: background var(--fast) var(--ease),
    transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-red);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  color: var(--gray-800);
  padding: 0.85rem 2rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 2px solid var(--gray-200);
  transition: border-color var(--fast) var(--ease),
    color var(--fast) var(--ease),
    transform var(--fast) var(--ease);
}

.btn-secondary:hover {
  border-color: var(--gray-800);
  color: var(--gray-900);
  transform: translateY(-2px);
}

/* Imagen hero */
.hero-image {
  position: relative;
  animation: fadeSlideUp 0.9s 0.2s var(--ease) both;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -12px;
  right: -12px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--red);
  z-index: 0;
}

.hero-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 420px;
  object-fit: cover;
  filter: grayscale(20%);
}

/* Stats strip */
.hero-stats {
  grid-column: 1 / -1;
  display: flex;
  gap: 0;
  border-top: 1px solid var(--gray-100);
  margin-top: 1rem;
  padding-top: 2rem;
  animation: fadeSlideUp 0.9s 0.4s var(--ease) both;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 0 1rem;
  border-right: 1px solid var(--gray-100);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

/* ============================================================
   SECTION INTRO STRIP
   ============================================================ */
.intro-strip {
  background: var(--red);
  padding: 2.5rem 8%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  overflow: hidden;
  position: relative;
}

.intro-strip::before {
  content: '';
  position: absolute;
  right: -60px;
  top: -60px;
  width: 180px;
  height: 180px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  transform: rotate(45deg);
}

.intro-strip-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-strip-icon svg {
  stroke: var(--white);
  width: 24px;
  height: 24px;
}

.intro-strip p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.5;
  max-width: 900px;
}

/* ============================================================
   SECTION GENERIC STYLES
   ============================================================ */
section {
  position: relative;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--red);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gray-900);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--red);
}

/* ============================================================
   MISSION / VISION (about-section)
   ============================================================ */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  min-height: 480px;
}

.about-section.reverse {
  direction: rtl;
}

.about-section.reverse>* {
  direction: ltr;
}

.about-text {
  padding: 4rem 8%;
  background: var(--white);
}

.about-text h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
  position: relative;
}

.about-text h3::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: var(--red);
  margin-bottom: 1rem;
}

.about-text p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.about-image {
  position: relative;
  overflow: hidden;
  height: 100%;
  min-height: 480px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(20%);
  transition: transform var(--medium) var(--ease),
    filter var(--medium) var(--ease);
}

.about-image:hover img {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.about-image .img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(204, 26, 26, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials {
  padding: var(--section-pad);
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.testimonials-header .section-label {
  justify-content: center;
}

.testimonials-header .section-label::before {
  display: none;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border: 1px solid var(--gray-100);
  border-top: 3px solid var(--red);
  position: relative;
  transition: transform var(--fast) var(--ease),
    box-shadow var(--fast) var(--ease),
    border-top-color var(--fast) var(--ease);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--gray-100);
  font-weight: 800;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1.2rem;
}

.stars span {
  display: block;
  width: 12px;
  height: 12px;
  background: var(--red);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.testimonial-card p {
  font-size: 0.93rem;
  color: var(--gray-600);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-card h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-800);
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section {
  padding: var(--section-pad);
  background: var(--white);
}

.gallery-header {
  margin-bottom: 3rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(25%);
  transition: transform var(--medium) var(--ease),
    filter var(--medium) var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.06);
  filter: grayscale(0%);
}

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(204, 26, 26, 0);
  transition: background var(--fast) var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item .overlay svg {
  opacity: 0;
  stroke: var(--white);
  width: 32px;
  height: 32px;
  transition: opacity var(--fast) var(--ease),
    transform var(--fast) var(--ease);
  transform: scale(0.8);
}

.gallery-item:hover .overlay {
  background: rgba(204, 26, 26, 0.25);
}

.gallery-item:hover .overlay svg {
  opacity: 1;
  transform: scale(1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: var(--shadow-lg);
  animation: zoomIn 0.3s var(--ease);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--fast) var(--ease),
    background var(--fast) var(--ease);
}

.lightbox-close:hover {
  background: var(--red);
  border-color: var(--red);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--gray-900);
  border-top: 4px solid var(--red);
  padding: 5rem 8% 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

.footer-brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  margin-bottom: 1.5rem;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--gray-400);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h4::after {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--red);
  margin-top: 0.5rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.75rem;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: var(--gray-400);
  transition: color var(--fast) var(--ease),
    padding-left var(--fast) var(--ease);
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  stroke: var(--red);
  width: 18px;
  height: 18px;
}

.footer-contact-item a,
.footer-contact-item span {
  font-size: 0.88rem;
  color: var(--gray-400);
  transition: color var(--fast) var(--ease);
}

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

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

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--gray-400);
  letter-spacing: 0.5px;
}

.footer-bottom p span {
  color: var(--red);
}

/* ============================================================
   NOSOTROS PAGE — Hero strip
   ============================================================ */
.page-hero {
  min-height: 36vh;
  padding-top: var(--nav-h);
  background: var(--gray-50);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, var(--gray-200) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
}

.page-hero::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: var(--red);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 3rem 8%;
}

.page-hero h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gray-900);
}

.page-hero h2 span {
  color: var(--red);
}

/* ============================================================
   VALUES / POLICY CARDS
   ============================================================ */
.values-section {
  padding: var(--section-pad);
  background: var(--white);
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.value-card {
  padding: 3rem;
  border: 1px solid var(--gray-100);
  background: var(--white);
  position: relative;
  overflow: hidden;
  transition: box-shadow var(--fast) var(--ease),
    transform var(--fast) var(--ease);
}

.value-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--gray-100);
  transition: background var(--fast) var(--ease);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.value-card:hover::before {
  background: var(--red);
}

.value-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red-glow);
  margin-bottom: 1.5rem;
}

.value-icon svg {
  stroke: var(--red);
  width: 26px;
  height: 26px;
}

.value-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gray-900);
  margin-bottom: 1rem;
}

.value-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* ============================================================
   EQUIPMENT SECTION
   ============================================================ */
.equipment-section {
  padding: var(--section-pad);
  background: var(--gray-50);
}

.equipment-header {
  text-align: center;
  margin-bottom: 4rem;
}

.equipment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.equipment-grid+.equipment-grid {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid var(--gray-100);
}

.equipment-grid.reverse {
  direction: rtl;
}

.equipment-grid.reverse>* {
  direction: ltr;
}

.equipment-image {

  position: relative;
  overflow: visible;

}

.equipment-image::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  width: 100%;
  height: 100%;
  border: 3px solid var(--red);
  z-index: 0;
  transition: transform var(--fast) var(--ease);
}

.equipment-image:hover::before {
  transform: translate(4px, 4px);
}

.equipment-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(10%);
  transition: filter var(--medium) var(--ease);
}

.equipment-image:hover img {
  filter: grayscale(0%);
}

.equipment-text h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.equipment-text h3::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--red);
  margin-bottom: 1rem;
}

.equipment-list {
  list-style: none;
  margin-top: 1.5rem;
}

.equipment-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.equipment-list li::before {
  content: '';
  flex-shrink: 0;
  display: block;
  margin-top: 6px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--red);
  background: var(--red);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s var(--ease),
    transform 0.65s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.65s var(--ease),
    transform 0.65s var(--ease);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.65s var(--ease),
    transform 0.65s var(--ease);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

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

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Tablet ── */
@media (max-width: 1024px) {
  :root {
    --section-pad: 4.5rem 6%;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 6%;
  }

  .hero-image::before {
    display: none;
  }

  .hero-image img {
    height: 320px;
  }

  .hero-stats {
    grid-column: auto;
    flex-wrap: wrap;
  }

  .stat-item {
    flex: 1 1 45%;
    border-bottom: 1px solid var(--gray-100);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }

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

  .about-section.reverse {
    direction: ltr;
  }

  .about-image {
    min-height: 320px;
    order: -1;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

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

  .equipment-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .equipment-grid.reverse {
    direction: ltr;
  }

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

  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 7;
  }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  :root {
    --section-pad: 3.5rem 5%;
    --nav-h: 64px;
  }

  .navbar {
    padding: 0 5%;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    border-bottom: 2px solid var(--gray-100);
    transition: max-height var(--medium) var(--ease);
    z-index: 999;
  }

  .nav-links.open {
    max-height: 400px;
    box-shadow: var(--shadow-md);
  }

  .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--gray-100);
  }

  .nav-links a {
    display: block;
    padding: 1rem 5%;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: var(--gray-800);
  }

  .nav-links a::after {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  main,
  body>main {
    margin-top: var(--nav-h);
  }

  .hero {
    min-height: auto;
    padding-top: 0;
  }

  .hero-inner {
    padding: 3rem 5%;
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-image {
    display: none;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .stat-item {
    flex: 1 1 40%;
  }

  .intro-strip {
    flex-direction: column;
    text-align: center;
    padding: 2rem 5%;
  }

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

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

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

  .gallery-item:first-child {
    grid-column: span 2;
    aspect-ratio: 4 / 3;
  }

  .page-hero-inner {
    padding: 2.5rem 5%;
  }

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

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
    width: 100%;
  }

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

  .gallery-item:first-child {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 1 / 1;
  }

  .stat-item {
    flex: 1 1 100%;
    border-right: none;
  }
}