@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* HSL Color Palette */
  --bg-navy-deep: hsl(220, 58%, 6%);
  --bg-navy-base: hsl(220, 50%, 8%);
  --bg-navy-card: hsla(220, 45%, 12%, 0.6);
  --bg-navy-card-hover: hsla(220, 45%, 15%, 0.75);
  --bg-gold-base: hsl(43, 65%, 49%);
  --bg-gold-light: hsl(43, 85%, 60%);
  --bg-gold-dark: hsl(43, 65%, 35%);
  --bg-white-soft: hsla(0, 0%, 100%, 0.03);
  
  --text-primary: hsl(0, 0%, 100%);
  --text-secondary: hsl(218, 15%, 75%);
  --text-muted: hsl(218, 12%, 55%);
  --text-gold: hsl(43, 85%, 65%);
  
  --border-gold-soft: hsla(43, 65%, 49%, 0.18);
  --border-white-soft: hsla(0, 0%, 100%, 0.08);
  --border-white-glow: hsla(0, 0%, 100%, 0.15);
  
  --shadow-premium: 0 15px 35px hsla(220, 58%, 2%, 0.5);
  --shadow-glow: 0 0 25px hsla(43, 65%, 49%, 0.25);
  
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-gold-base) var(--bg-navy-deep);
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-navy-deep);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-navy-deep);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-gold-base);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--bg-gold-light);
}

/* Typography & Layout Utilities */
h1, h2, h3, h4 {
  letter-spacing: -0.02em;
}

section {
  position: relative;
  padding: 120px 8% 100px;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Section Header */
.section-header {
  margin-bottom: 60px;
  max-width: 650px;
}

.label-container {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.label-line {
  width: 32px;
  height: 1px;
  background-color: var(--bg-gold-base);
}

.label-text {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-gold);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 300;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(135deg, var(--bg-gold-base) 0%, var(--bg-gold-dark) 100%);
  color: var(--bg-navy-deep);
  border: none;
  box-shadow: 0 4px 15px rgba(184, 137, 42, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--bg-gold-light) 0%, var(--bg-gold-base) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 137, 42, 0.35), var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-white-soft);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  border-color: var(--text-gold);
  color: var(--text-gold);
  background: rgba(184, 137, 42, 0.05);
  transform: translateY(-2px);
}

/* Glassmorphism Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 8%;
  transition: var(--transition-normal);
  border-bottom: 1px solid transparent;
}

nav.scrolled {
  background: rgba(11, 19, 41, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-white-soft);
  box-shadow: var(--shadow-premium);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: var(--transition-normal);
}

nav.scrolled .nav-inner {
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--bg-gold-base), var(--bg-gold-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 10px rgba(184, 137, 42, 0.25);
  overflow: hidden;
}

.nav-logo-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1.5px;
}

.nav-logo-text span {
  color: var(--text-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-gold);
}

.nav-erp {
  background: rgba(184, 137, 42, 0.1);
  border: 1px solid var(--border-gold-soft);
  color: var(--text-gold) !important;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600 !important;
}

.nav-erp:hover {
  background: rgba(184, 137, 42, 0.2) !important;
  border-color: var(--bg-gold-base);
  box-shadow: var(--shadow-glow);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  font-size: 26px;
}

/* Mobile Nav Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: rgba(11, 19, 41, 0.95);
  backdrop-filter: blur(25px);
  padding: 30px 8%;
  z-index: 999;
  border-bottom: 1px solid var(--border-white-soft);
  box-shadow: var(--shadow-premium);
}

.mobile-menu.open {
  display: block;
  animation: slideDown 0.3s ease forwards;
}

.mobile-menu a {
  display: block;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-white-soft);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition-fast);
}

.mobile-menu a:hover {
  color: var(--text-gold);
  padding-left: 8px;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 19, 41, 0.96) 0%, rgba(11, 19, 41, 0.8) 50%, rgba(11, 19, 41, 0.93) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-eyebrow {
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--text-gold);
  font-weight: 400;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
  font-weight: 300;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.hero-stats {
  display: flex;
  gap: 50px;
}

.hero-stat {
  border-left: 2px solid var(--bg-gold-base);
  padding-left: 20px;
}

.stat-val {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-gold);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 6px;
  font-weight: 500;
}

/* Marquee strip */
.marquee-strip {
  background: linear-gradient(90deg, var(--bg-gold-dark) 0%, var(--bg-gold-base) 50%, var(--bg-gold-dark) 100%);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  z-index: 5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.marquee-inner {
  display: flex;
  white-space: nowrap;
  animation: marquee 25s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 40px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--bg-navy-deep);
}

.marquee-dot {
  width: 6px;
  height: 6px;
  background-color: var(--bg-navy-deep);
  border-radius: 50%;
  opacity: 0.6;
}

/* Services Section */
#servicios {
  background-color: var(--bg-navy-base);
}

.services-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: flex-end;
  margin-bottom: 70px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.svc-card {
  background: var(--bg-navy-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-white-soft);
  border-radius: 14px;
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-premium);
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--bg-gold-base), var(--bg-gold-light));
  opacity: 0;
  transition: var(--transition-fast);
}

.svc-card:hover {
  transform: translateY(-6px);
  background: var(--bg-navy-card-hover);
  border-color: var(--border-gold-soft);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(184, 137, 42, 0.05);
}

.svc-card:hover::before {
  opacity: 1;
}

.svc-icon-wrapper {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-white-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--text-gold);
  margin-bottom: 28px;
  transition: var(--transition-fast);
}

.svc-card:hover .svc-icon-wrapper {
  background: rgba(184, 137, 42, 0.1);
  border-color: var(--border-gold-soft);
  transform: scale(1.05);
}

.svc-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 14px;
}

.svc-card p {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
}

.svc-number {
  position: absolute;
  top: 24px;
  right: 28px;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.02);
  line-height: 1;
  transition: var(--transition-normal);
}

.svc-card:hover .svc-number {
  color: rgba(184, 137, 42, 0.08);
}

/* Machinery Section */
#maquinaria {
  background-color: var(--bg-navy-deep);
}

.maq-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.maq-info {
  max-width: 500px;
}

.maq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.maq-card {
  background: var(--bg-navy-card);
  border: 1px solid var(--border-white-soft);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: var(--transition-normal);
}

.maq-card:hover {
  background: var(--bg-navy-card-hover);
  border-color: var(--border-gold-soft);
  transform: translateY(-3px);
}

.maq-icon {
  width: 42px;
  height: 42px;
  background: rgba(184, 137, 42, 0.08);
  border: 1px solid var(--border-gold-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-gold);
  flex-shrink: 0;
}

.maq-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.maq-card p {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 300;
}

/* About Us Section (Nosotros) */
#nosotros {
  background-color: hsl(40, 20%, 97%);
  color: hsl(220, 25%, 20%);
}

#nosotros .section-title {
  background: linear-gradient(135deg, hsl(220, 45%, 15%) 30%, hsl(220, 25%, 35%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#nosotros .section-desc {
  color: hsl(220, 15%, 45%);
}

.nosotros-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}

.nosotros-story p {
  font-size: 15px;
  line-height: 1.8;
  color: hsl(220, 15%, 35%);
  margin-bottom: 20px;
  font-weight: 300;
}

.nosotros-story strong {
  font-weight: 600;
  color: hsl(220, 45%, 15%);
}

/* Org Chart Structure */
.org-chart {
  background: #fff;
  border: 1px solid hsl(220, 20%, 90%);
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  margin-top: 40px;
}

.org-heading {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--bg-gold-base);
  margin-bottom: 24px;
  text-align: center;
}

.org-nodes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.org-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.org-node {
  background: var(--bg-navy-deep);
  color: #fff;
  border-radius: 8px;
  padding: 10px 16px;
  text-align: center;
  flex: 1;
  max-width: 180px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.org-node.ceo {
  max-width: 240px;
  background: linear-gradient(135deg, var(--bg-navy-deep), var(--bg-navy-base));
  border: 1px solid var(--border-gold-soft);
}

.org-role {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-gold);
  margin-bottom: 3px;
  font-weight: 600;
}

.org-name {
  font-size: 12px;
  font-weight: 500;
}

.org-line {
  width: 1px;
  height: 16px;
  background-color: var(--bg-gold-base);
  opacity: 0.5;
}

.mv-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mv-card {
  background: #fff;
  border-left: 4px solid var(--bg-gold-base);
  border-radius: 0 12px 12px 0;
  padding: 24px 28px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.02);
  transition: var(--transition-fast);
}

.mv-card:hover {
  transform: translateX(4px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.mv-card h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--bg-gold-base);
  margin-bottom: 8px;
}

.mv-card p {
  font-size: 14px;
  line-height: 1.65;
  color: hsl(220, 15%, 35%);
  font-weight: 300;
}

.slogan-text {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 600;
  font-style: italic;
  color: var(--bg-navy-deep) !important;
}

/* Legal Section */
#legal {
  background-color: #fff;
  color: hsl(220, 25%, 20%);
}

#legal .section-title {
  background: linear-gradient(135deg, hsl(220, 45%, 15%) 30%, hsl(220, 25%, 35%) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#legal .section-desc {
  color: hsl(220, 15%, 45%);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.legal-card {
  border: 1px solid hsl(220, 20%, 90%);
  background-color: hsl(0, 0%, 100%);
  border-radius: 12px;
  padding: 30px 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: var(--transition-normal);
}

.legal-card:hover {
  border-color: var(--bg-gold-base);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  transform: translateY(-4px);
}

.legal-icon-wrapper {
  width: 48px;
  height: 48px;
  background: var(--bg-navy-deep);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  flex-shrink: 0;
}

.legal-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--bg-navy-deep);
  margin-bottom: 6px;
}

.legal-card p {
  font-size: 13px;
  line-height: 1.6;
  color: hsl(220, 15%, 40%);
  margin-bottom: 12px;
  font-weight: 300;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.status-badge.vigente {
  background-color: hsl(140, 70%, 95%);
  color: hsl(140, 70%, 25%);
}

/* Gallery Section (Mosaico) */
#galeria {
  background-color: var(--bg-navy-base);
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, 260px);
  gap: 16px;
}

.gal-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-navy-deep);
  border: 1px solid var(--border-white-soft);
  transition: var(--transition-normal);
  cursor: pointer;
}

.gal-item:hover {
  transform: scale(1.02);
  border-color: var(--border-gold-soft);
}

.gal-item.lg {
  grid-column: 1 / 7;
  grid-row: 1 / 3;
}

.gal-item.md-1 {
  grid-column: 7 / 13;
  grid-row: 1 / 2;
}

.gal-item.sm-1 {
  grid-column: 7 / 10;
  grid-row: 2 / 3;
}

.gal-item.sm-2 {
  grid-column: 10 / 13;
  grid-row: 2 / 3;
}

.gal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gal-item:hover .gal-img {
  transform: scale(1.06);
}

.gal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 19, 41, 0.9) 0%, rgba(11, 19, 41, 0.3) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: var(--transition-fast);
}

.gal-item:hover .gal-overlay {
  opacity: 1;
}

.gal-label-text {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transform: translateY(10px);
  transition: var(--transition-normal);
}

.gal-item:hover .gal-label-text {
  transform: translateY(0);
}

/* Contact & ERP Portal */
#contacto {
  background-color: var(--bg-navy-deep);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact-card {
  display: flex;
  gap: 20px;
}

.contact-icon-wrapper {
  width: 50px;
  height: 50px;
  border: 1px solid var(--border-white-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-gold);
  background-color: var(--bg-white-soft);
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-gold);
  margin-bottom: 6px;
}

.contact-details p {
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.6;
}

.contact-details a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.contact-details a:hover {
  color: var(--text-gold);
}

/* ERP Portal Card */
.erp-card {
  background: radial-gradient(circle at 100% 0%, hsla(43, 65%, 49%, 0.08) 0%, transparent 50%), var(--bg-navy-card);
  backdrop-filter: blur(15px);
  border: 1px solid var(--border-gold-soft);
  border-radius: 18px;
  padding: 50px 40px;
  text-align: center;
  box-shadow: var(--shadow-premium), var(--shadow-glow);
}

.erp-card-icon {
  width: 70px;
  height: 70px;
  background: rgba(184, 137, 42, 0.1);
  border: 1px solid var(--bg-gold-base);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 28px;
  color: var(--text-gold);
  box-shadow: var(--shadow-glow);
}

.erp-card h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.erp-card p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
  font-weight: 300;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.erp-card-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 18px;
  font-weight: 400;
}

/* Footer */
footer {
  background-color: var(--bg-navy-base);
  border-top: 1px solid var(--border-white-soft);
  padding: 60px 8% 40px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-logo-brand {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1.5px;
}

.footer-logo-brand span {
  color: var(--text-gold);
}

.footer-slogan {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition-fast);
}

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

.footer-divider {
  height: 1px;
  background-color: var(--border-white-soft);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 10px;
}

/* Floating Actions */
.floats-container {
  position: fixed;
  bottom: 30px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-left {
  left: 30px;
}

.float-right {
  right: 30px;
}

.wa-bubble {
  width: 56px;
  height: 56px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  text-decoration: none;
  font-size: 26px;
  transition: var(--transition-fast);
  color: #fff;
}

.wa-bubble:hover {
  transform: scale(1.08) rotate(5deg);
}

.wa-tooltip {
  position: absolute;
  left: 68px;
  background: rgba(11, 19, 41, 0.95);
  border: 1px solid var(--border-white-soft);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-premium);
}

.wa-wrapper:hover .wa-tooltip {
  opacity: 1;
}

.job-bubble-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--bg-gold-base), var(--bg-gold-light));
  color: var(--bg-navy-deep);
  padding: 14px 24px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(184, 137, 42, 0.4);
  border: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: var(--transition-fast);
  animation: pulse-job 3s infinite;
}

.job-bubble-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(184, 137, 42, 0.6);
}

/* Animations */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-job {
  0%, 100% { box-shadow: 0 4px 15px rgba(184, 137, 42, 0.3); }
  50% { box-shadow: 0 4px 28px rgba(184, 137, 42, 0.65); }
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 41, 0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
  animation: slideDown 0.3s ease forwards;
}

.modal-container {
  background: #fff;
  color: hsl(220, 25%, 15%);
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-header {
  background: linear-gradient(135deg, var(--bg-navy-deep), var(--bg-navy-base));
  padding: 30px 30px 24px;
  color: #fff;
}

.modal-header h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 6px;
}

.modal-header p {
  font-size: 13px;
  color: var(--text-secondary);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 30px;
}

.offer-infobox {
  background: hsl(40, 20%, 97%);
  border-left: 4px solid var(--bg-gold-base);
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 24px;
  font-size: 13.5px;
  color: hsl(220, 15%, 30%);
  line-height: 1.7;
}

.offer-infobox h4 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--bg-gold-base);
  margin-bottom: 10px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 600;
  color: hsl(220, 25%, 25%);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid hsl(220, 20%, 85%);
  border-radius: 8px;
  font-size: 13.5px;
  font-family: var(--font-body);
  color: hsl(220, 25%, 15%);
  background-color: #fff;
  transition: var(--transition-fast);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--bg-gold-base);
  box-shadow: 0 0 0 3px hsla(43, 65%, 49%, 0.15);
}

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

.req-tag {
  display: inline-block;
  background-color: hsl(40, 60%, 93%);
  color: hsl(40, 60%, 30%);
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  letter-spacing: 0.5px;
}

.btn-submit {
  background: linear-gradient(135deg, var(--bg-gold-base), var(--bg-gold-dark));
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(184, 137, 42, 0.2);
}

.btn-submit:hover {
  opacity: 0.95;
  box-shadow: 0 6px 16px rgba(184, 137, 42, 0.35);
}

.submit-success-box {
  display: none;
  text-align: center;
  padding: 24px;
  background-color: hsl(140, 70%, 96%);
  border: 1px solid hsl(140, 70%, 80%);
  border-radius: 10px;
  color: hsl(140, 70%, 20%);
}

.submit-success-box h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.submit-success-box p {
  font-size: 13.5px;
}

/* Intersection Observer Animations (Reveal on Scroll) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

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

/* Responsive Breakpoints */
@media (max-width: 990px) {
  nav {
    padding: 0 5%;
  }
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  section {
    padding: 90px 6% 80px;
  }
  .services-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .maq-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .nosotros-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .gallery-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .gal-item {
    grid-column: auto !important;
    grid-row: auto !important;
    height: 240px;
  }
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding-top: 40px;
  }
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  .maq-grid {
    grid-template-columns: 1fr;
  }
  .org-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .org-node {
    max-width: 100%;
  }
  .footer-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-links {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
