/* ===== VARIABLES Y RESET ===== */
:root {
  --navy: #1B2A4A;
  --navy-dark: #0F1D35;
  --navy-light: #2C3E6B;
  --orange: #E8611A;
  --orange-light: #F4853D;
  --orange-glow: rgba(232, 97, 26, 0.15);
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

/* ===== TIPOGRAFÍA ===== */
h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 600; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  width: 32px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 600px;
  margin-top: 12px;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(232, 97, 26, 0.35);
}
.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 97, 26, 0.45);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}
.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.navbar.scrolled {
  padding: 10px 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.95);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img {
  height: 48px;
  width: auto;
}
.nav-logo span {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  line-height: 1.2;
}
.nav-logo span small {
  display: block;
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--gray-400);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray-600);
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--navy);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}
.nav-cta {
  padding: 10px 24px !important;
  font-size: 0.85rem !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
  border-radius: 2px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--white);
  padding-top: 80px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: calc(100vh - 80px);
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-glow);
  color: var(--orange);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.hero-badge svg { width: 16px; height: 16px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--gray-500);
  margin-bottom: 36px;
  max-width: 500px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}
.hero-stat h4 {
  font-size: 2rem;
  color: var(--orange);
  font-weight: 800;
}
.hero-stat p {
  font-size: 0.85rem;
  color: var(--gray-400);
  margin-top: 4px;
}
.hero-visual {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  width: 100%;
  aspect-ratio: 4/3;
}
.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-float-card {
  position: absolute;
  bottom: -20px;
  left: -30px;
  background: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 3;
  animation: floatCard 3s ease-in-out infinite;
}
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-float-card .icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
}
.hero-float-card strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
}
.hero-float-card span {
  font-size: 0.8rem;
  color: var(--gray-400);
}
.hero-shape {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--orange-glow);
  top: -100px;
  right: -100px;
  z-index: 0;
  filter: blur(80px);
}

/* ===== CLIENTES ===== */
.clients {
  padding: 60px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.clients-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 32px;
}
.clients-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.client-item {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--gray-300);
  letter-spacing: 1px;
  transition: var(--transition);
}
.client-item:hover {
  color: var(--navy);
}

/* ===== SOBRE NOSOTROS ===== */
.about {
  padding: 100px 0;
  background: var(--white);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-images {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.about-img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}
.about-img:nth-child(2) { aspect-ratio: 1; }
.about-img:nth-child(3) { aspect-ratio: 1; }
.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about-img:hover img { transform: scale(1.05); }

.about-text p {
  color: var(--gray-500);
  margin-bottom: 20px;
  font-size: 1.05rem;
}
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
.about-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
}
.about-feature svg {
  width: 20px;
  height: 20px;
  color: var(--orange);
  flex-shrink: 0;
}

/* ===== MISIÓN/VISIÓN ===== */
.mission {
  padding: 80px 0;
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.mission::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(232, 97, 26, 0.08);
  filter: blur(60px);
}
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}
.mission-card {
  padding: 48px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}
.mission-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-4px);
}
.mission-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: rgba(232, 97, 26, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--orange);
}
.mission-card h3 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.4rem;
}
.mission-card p {
  color: rgba(255,255,255,0.65);
  line-height: 1.8;
}

/* ===== SERVICIOS ===== */
.services {
  padding: 100px 0;
  background: var(--off-white);
}
.services-header {
  text-align: center;
  margin-bottom: 64px;
}
.services-header .section-subtitle { margin: 12px auto 0; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}
.service-card-img {
  height: 220px;
  overflow: hidden;
  position: relative;
}
.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.08); }
.service-card-img .service-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--orange);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.service-card-body {
  padding: 28px;
}
.service-card-body h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}
.service-card-body p {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== POR QUÉ ELEGIRNOS ===== */
.why-us {
  padding: 100px 0;
  background: var(--white);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.why-card {
  text-align: center;
  padding: 40px 24px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}
.why-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: var(--orange);
}
.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--orange);
  transition: var(--transition);
}
.why-card:hover .why-icon {
  background: var(--orange);
  color: var(--white);
}
.why-card h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.why-card p {
  font-size: 0.88rem;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ===== CONTACTO ===== */
.contact {
  padding: 100px 0;
  background: var(--off-white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { margin-bottom: 16px; }
.contact-info > p {
  color: var(--gray-500);
  margin-bottom: 40px;
  font-size: 1.05rem;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--orange-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--orange);
  flex-shrink: 0;
}
.contact-detail h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.contact-detail p, .contact-detail a {
  color: var(--gray-500);
  font-size: 0.9rem;
}
.contact-detail a:hover { color: var(--orange); }

.contact-form-wrapper {
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-100);
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--gray-700);
  transition: var(--transition);
  background: var(--gray-50);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--orange-glow);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-submit { width: 100%; justify-content: center; font-size: 1rem; padding: 16px; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand img {
  height: 56px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.95);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}
.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}
.footer ul li a:hover {
  color: var(--orange);
  padding-left: 4px;
}
.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* ===== GALERÍA MAQUINARIA ===== */
.gallery-strip {
  padding: 80px 0;
  background: var(--white);
}
.gallery-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
  background: var(--white);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.gallery-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption {
  padding: 14px 18px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-600);
  text-align: center;
}
@media (max-width: 768px) {
  .gallery-row { grid-template-columns: 1fr; }
  .gallery-item img { height: 180px; }
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .hero-stats { gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .mission-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links { 
    display: none; 
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: flex; }
  .hero { min-height: auto; padding: 100px 0 60px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hero-buttons { flex-direction: column; }
  .about-features { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 28px; }
  .mission-card { padding: 32px; }
  .clients-grid { gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .cta-banner h2 { font-size: 1.6rem; }
}

/* ===== CTA BANNER ===== */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(232, 97, 26, 0.1);
  filter: blur(60px);
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(232, 97, 26, 0.08);
  filter: blur(60px);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
}
.cta-banner p {
  color: rgba(255,255,255,0.7);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}
.cta-banner .btn-white {
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.cta-banner .btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(232, 97, 26, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}
.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--orange-light);
  transform: translateY(-3px);
}
