/* ============================================
   IMASIC - Complete Redesign
   Design System + Glassmorphism Pill Navbar
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --navy: #0c2340;
  --blue-mid: #1a75bb;
  --cyan: #4fc3f7;
  --white: #ffffff;
  --surface: #f8fafc;
  --surface-dark: #0a1628;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --cta: #1a75bb;
  --cta-hover: #1565a0;
  --success: #10b981;
  --border: rgba(0, 0, 0, 0.06);
  --border-light: rgba(255, 255, 255, 0.1);

  --font-display: 'Inter', sans-serif;
  --font-body: 'Lato', sans-serif;

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 100px;
}

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

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

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--cta);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--cta-hover);
}

ul {
  list-style: none;
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* --- Utility --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 96px 0;
}

.section-padding-lg {
  padding: 120px 0;
}

/* Section headers */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cta);
  margin-bottom: 16px;
}

.section-eyebrow svg {
  width: 16px;
  height: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-title--light {
  color: var(--white);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-subtitle--light {
  color: rgba(255, 255, 255, 0.7);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cta);
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background: var(--cta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 117, 187, 0.25);
  color: var(--white);
}

.btn-primary svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--cta);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1.5px solid var(--cta);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-outline:hover {
  background: var(--cta);
  color: var(--white);
  transform: translateY(-2px);
}

/* --- Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(48px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

.slide-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

/* Stagger */
.stagger-children > * {
  transition-delay: calc(var(--i, 0) * 40ms);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .fade-up, .slide-right, .slide-left {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   NAVBAR — Glassmorphism Pill (Framer-like)
   ============================================ */
.navbar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 32px);
  max-width: 780px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  padding: 0 8px;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
}

.navbar-logo img {
  height: 34px;
  width: auto;
  transition: height 0.3s ease;
}

.navbar-menu {
  display: flex;
  gap: 4px;
  align-items: center;
}

.navbar-menu a {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.navbar-menu a:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

.navbar-menu a.active {
  background: rgba(26, 117, 187, 0.08);
  color: var(--cta);
}

.navbar-cta {
  background: var(--cta) !important;
  color: var(--white) !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
  transition: background 0.2s ease, transform 0.2s ease !important;
}

.navbar-cta:hover {
  background: var(--cta-hover) !important;
  transform: scale(1.03);
  color: var(--white) !important;
}

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

.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--surface-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10, 22, 40, 0.88) 0%,
    rgba(12, 35, 64, 0.78) 50%,
    rgba(26, 117, 187, 0.5) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  padding: 0 24px;
  margin-left: 10%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  backdrop-filter: blur(12px);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--cyan);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-title .highlight {
  color: var(--cyan);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero trust bar */
.hero-trust {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--cyan);
}

.hero-trust-item strong {
  color: var(--white);
  font-weight: 700;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator .line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
}

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

/* ============================================
   TRUST BAR (Logos)
   ============================================ */
.trust-bar {
  background: var(--white);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.trust-bar-label {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.4;
}

.trust-logos span {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

/* ============================================
   QUIENES SOMOS (Light section)
   ============================================ */
.about-section {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 80px;
}

.about-text .section-eyebrow {
  margin-bottom: 12px;
}

.about-text h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about-text blockquote {
  border-left: 3px solid var(--cta);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-primary);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

/* Counters */
.counters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.counter-item {
  text-align: center;
  padding: 32px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.counter-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cta);
  line-height: 1;
  margin-bottom: 8px;
}

.counter-label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ============================================
   SERVICES OVERVIEW (Tabs)
   ============================================ */
.services-overview {
  background: var(--white);
}

.services-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 56px;
}

.services-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.services-tab:hover {
  color: var(--text-primary);
  border-color: rgba(0, 0, 0, 0.12);
}

.services-tab.active {
  background: var(--cta);
  color: var(--white);
  border-color: var(--cta);
}

.services-tab svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   INDUSTRIAL (Dark section)
   ============================================ */
.industrial-section {
  background: var(--surface-dark);
  position: relative;
}

.industrial-section .section-header {
  margin-bottom: 56px;
}

.industrial-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.industrial-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease;
  cursor: default;
}

.industrial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 195, 247, 0.2);
}

.industrial-card-image {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.industrial-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.industrial-card:hover .industrial-card-image img {
  transform: scale(1.05);
}

.industrial-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, var(--surface-dark), transparent);
}

.industrial-card-body {
  padding: 28px;
}

.industrial-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(26, 117, 187, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--cyan);
}

.industrial-card-icon svg {
  width: 22px;
  height: 22px;
}

.industrial-card h3 {
  color: var(--white);
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.industrial-card p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 12px;
}

.industrial-card ul {
  list-style: none;
  padding: 0;
}

.industrial-card ul li {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8125rem;
  padding: 3px 0;
  padding-left: 16px;
  position: relative;
}

.industrial-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
}

/* Full width card variant */
.industrial-card--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.industrial-card--wide .industrial-card-image {
  height: 100%;
  min-height: 260px;
}

.industrial-card--wide .industrial-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ============================================
   EVENTOS (Light section)
   ============================================ */
.eventos-section {
  background: var(--surface);
}

.eventos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.evento-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: default;
}

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

.evento-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(26, 117, 187, 0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--cta);
}

.evento-card-icon svg {
  width: 22px;
  height: 22px;
}

.evento-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.evento-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Galeria */
.galeria {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.galeria-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.galeria-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.galeria-item:hover img {
  transform: scale(1.05);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--cta);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
}

.cta-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
}

.cta-content p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  color: var(--cta);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  color: var(--cta);
}

/* ============================================
   SEDES
   ============================================ */
.sedes-section {
  background: var(--white);
}

.sedes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.sede-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.sede-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(26, 117, 187, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--cta);
}

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

.sede-tag {
  display: inline-block;
  background: rgba(26, 117, 187, 0.08);
  color: var(--cta);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sede-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.sede-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ============================================
   CONTACTO (Dark section)
   ============================================ */
.contacto-section {
  background: var(--surface-dark);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 64px;
  align-items: start;
}

.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234fc3f7' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group select option {
  background: var(--surface-dark);
  color: var(--white);
}

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

.btn-submit {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
}

/* Contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: rgba(26, 117, 187, 0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
}

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

.contact-info-item h4 {
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-info-item p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
  line-height: 1.5;
}

.contact-info-item a {
  color: var(--cyan);
  transition: color 0.2s ease;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #060e1a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-tagline {
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 12px;
}

.footer h5 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8125rem;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(79, 195, 247, 0.08);
}

.footer-social a svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   SCROLL PROGRESS
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--cta);
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .industrial-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .industrial-card--wide {
    grid-column: span 2;
    grid-template-columns: 1fr 1fr;
  }

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

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

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

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

  .galeria {
    gap: 12px;
  }
}

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

  /* Navbar mobile */
  .navbar {
    top: 8px;
    width: calc(100% - 16px);
    border-radius: var(--radius-lg);
  }

  .navbar .container {
    height: 52px;
  }

  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: right 0.35s var(--ease-out);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    padding: 24px;
  }

  .navbar-menu.open {
    right: 0;
  }

  .navbar-menu a {
    font-size: 1rem;
    padding: 12px 24px;
  }

  .hamburger {
    display: flex;
  }

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

  .about-image {
    order: -1;
  }

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

  .industrial-cards {
    grid-template-columns: 1fr;
  }

  .industrial-card--wide {
    grid-column: span 1;
    grid-template-columns: 1fr;
  }

  .industrial-card--wide .industrial-card-image {
    min-height: 200px;
  }

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

  .galeria-item img {
    height: 220px;
  }

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

  .contact-form {
    padding: 28px;
  }

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

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

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

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

  .hero-content {
    margin-left: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-trust-inner {
    gap: 24px;
  }

  .services-tabs {
    flex-wrap: wrap;
  }

  .scroll-indicator {
    display: none;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

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

  .counters {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .counter-item {
    padding: 24px 12px;
  }

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

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

  .galeria-item img {
    height: 200px;
  }

  .hero-trust-inner {
    flex-direction: column;
    gap: 12px;
  }
}

/* --- Loading animation for images --- */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded,
img.loaded {
  opacity: 1;
}
