/* =====================================================
   GO Soluciones Industriales · Stylesheet
   Aplicado según Manual de Marca v1.0
   ===================================================== */

/* ===== TOKENS ===== */
:root {
  /* Colores primarios */
  --orange: #F7941D;
  --orange-dark: #D97C0E;
  --carbon: #1C1C1C;
  --white: #FFFFFF;

  /* Colores secundarios */
  --grafito: #2A2A2A;
  --acero: #B0B0B0;
  --gris-plano: #F5F5F5;
  --gris-texto: #666666;
  --border: #e5e5e5;

  /* Texto */
  --text: #333333;
  --text-light: #666666;

  /* UI */
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: 0.25s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, textarea, button { font-family: var(--font); }

/* ===== UTILITIES ===== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-dark { background: var(--carbon); color: var(--white); }
.section-light { background: var(--gris-plano); }

.text-orange { color: var(--orange); }

/* ===== EYEBROWS ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--orange);
}
.eyebrow-orange { color: var(--orange); }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header .eyebrow { justify-content: center; }
.section-header h2 { font-size: clamp(1.875rem, 3.5vw, 2.625rem); font-weight: 800; line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.02em; }
.section-header h2 span { color: var(--orange); }
.section-header p { color: var(--text-light); font-size: 1.0625rem; }
.section-header-light h2 { color: var(--white); }
.section-header-light p { color: rgba(255,255,255,0.7); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  text-align: center;
}
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(247,148,29,0.4); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.btn-icon svg { flex-shrink: 0; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===== HEADER ===== */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
#header.scrolled {
  background: rgba(28,28,28,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05), 0 8px 32px rgba(0,0,0,0.3);
}

.header-inner { display: flex; align-items: center; gap: 32px; height: 78px; }

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 38px; width: auto; }

#nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
#nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}
#nav a:hover { color: var(--orange); }
#nav a::after {
  content: ''; position: absolute; bottom: -6px; left: 0;
  width: 0; height: 2px; background: var(--orange);
  transition: width var(--transition);
}
#nav a:hover::after { width: 100%; }

.header-cta { margin-left: 8px; padding: 11px 22px; font-size: 0.875rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }

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

.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}

.hero::after {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(247,148,29,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 60px,
      rgba(255,255,255,0.015) 60px,
      rgba(255,255,255,0.015) 61px
    );
}

.hero-content { position: relative; z-index: 2; max-width: 760px; padding-top: 80px; }

.hero-content .eyebrow { color: var(--orange); margin-bottom: 20px; }

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 28px;
}
.hero-content h1 span { color: var(--orange); }

.hero-sub {
  color: rgba(255,255,255,0.75);
  font-size: clamp(1rem, 2vw, 1.1875rem);
  max-width: 580px;
  margin-bottom: 40px;
  line-height: 1.65;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.4);
  animation: bounce 2s infinite;
  z-index: 2;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ===== PILARES ===== */
.pillars-section {
  background: var(--white);
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.pillar-item {
  padding: 8px 0;
  border-left: 2px solid var(--orange);
  padding-left: 20px;
}
.pillar-num {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange);
  margin-bottom: 8px;
}
.pillar-item h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--carbon);
  margin-bottom: 6px;
}
.pillar-item p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* ===== SERVICES ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.service-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.service-card:hover {
  border-color: var(--orange);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card-featured {
  border-color: var(--orange);
  background: linear-gradient(180deg, rgba(247,148,29,0.04), var(--white));
}

.service-badge {
  position: absolute;
  top: 20px; right: 20px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 100px;
}

.service-icon {
  width: 56px; height: 56px;
  background: rgba(247,148,29,0.1);
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.service-icon svg { width: 28px; height: 28px; color: var(--orange); stroke: var(--orange); }

.service-card h3 { font-size: 1.0625rem; font-weight: 700; margin-bottom: 10px; color: var(--carbon); }
.service-card p { font-size: 0.9375rem; color: var(--text-light); line-height: 1.65; }

/* ===== MAQUINARIA ===== */
.machines-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.machine-category {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.machine-category::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 0; height: 3px;
  background: var(--orange);
  transition: width var(--transition);
}
.machine-category:hover { border-color: var(--orange); }
.machine-category:hover::before { width: 100%; }

.machine-category-icon {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--orange);
  opacity: 0.5;
  margin-bottom: 12px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.machine-category h3 { font-size: 1.125rem; font-weight: 700; color: var(--white); margin-bottom: 18px; }
.machine-category ul li {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.machine-category ul li:last-child { border-bottom: none; }

.machine-category-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: linear-gradient(135deg, rgba(247,148,29,0.12), rgba(247,148,29,0.04));
  border-color: rgba(247,148,29,0.4);
  gap: 20px;
}
.machine-category-cta p {
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ===== NOSOTROS ===== */
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }

.nosotros-text .eyebrow { margin-bottom: 16px; }
.nosotros-text h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.nosotros-text > p {
  color: var(--text-light);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 40px;
}

.differentials { display: flex; flex-direction: column; gap: 22px; }
.differential { display: flex; gap: 16px; align-items: flex-start; }
.differential-icon {
  width: 28px; height: 28px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.differential strong { display: block; font-size: 0.9375rem; font-weight: 700; color: var(--carbon); margin-bottom: 4px; }
.differential p { font-size: 0.9rem; color: var(--text-light); }

.nosotros-image { border-radius: 16px; overflow: hidden; position: relative; }
.nosotros-image::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 80px; height: 80px;
  background: var(--orange);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.image-placeholder {
  background: linear-gradient(135deg, #e5e5e5, #d0d0d0);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  border: 2px dashed #ccc;
}
.image-placeholder span { color: #999; font-size: 0.875rem; text-align: center; padding: 24px; line-height: 1.5; }

/* ===== CLIENTES ===== */
.clients-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.client-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-light);
  transition: all var(--transition);
}
.client-item:hover {
  border-color: var(--orange);
  color: var(--carbon);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--carbon);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 50%;
  background: radial-gradient(circle at 70% 50%, rgba(247,148,29,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ===== CONTACTO ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: start; }

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-or {
  text-align: center;
  color: var(--gris-texto);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
}
.contact-or::before, .contact-or::after {
  content: '';
  position: absolute; top: 50%;
  width: 25%; height: 1px;
  background: var(--border);
}
.contact-or::before { left: 0; }
.contact-or::after { right: 0; }

.contact-details { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; }
.contact-detail { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 0.9375rem; font-weight: 500; }
.contact-detail svg { color: var(--orange); flex-shrink: 0; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--carbon); }
.form-group input, .form-group textarea {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--orange); }
.form-group input::placeholder, .form-group textarea::placeholder { color: #bbb; }

/* ===== FOOTER ===== */
.footer { background: var(--carbon); color: var(--white); padding: 56px 0 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { height: 40px; width: auto; }
.footer-tagline { color: rgba(255,255,255,0.5); font-size: 0.875rem; }

.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 8px; }
.footer-nav a { color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: color var(--transition); }
.footer-nav a:hover { color: var(--orange); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; }
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 0.8125rem; text-align: center; }

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px;
  width: 60px; height: 60px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  z-index: 99;
  transition: all var(--transition);
}
.whatsapp-float::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  background: rgba(37,211,102,0.4);
  animation: pulse 2s infinite;
  z-index: -1;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.15); opacity: 0; }
}
.whatsapp-float:hover {
  background: #1fb855;
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(37,211,102,0.55);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .machines-grid { grid-template-columns: repeat(2, 1fr); }
  .pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .nosotros-grid { grid-template-columns: 1fr; gap: 48px; }
  .nosotros-image { max-width: 560px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .cta-band-inner { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .cta-band-inner .eyebrow { justify-content: center; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  #nav, .header-cta { display: none; }
  #nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 78px; left: 0; right: 0;
    background: var(--carbon);
    padding: 24px;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  #nav.open a { font-size: 1.0625rem; }
  .hamburger { display: flex; }
  .services-grid, .machines-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 1.625rem; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-nav { gap: 16px; }
  .whatsapp-float { bottom: 20px; right: 20px; }
}

@media (max-width: 480px) {
  .clients-grid { gap: 10px; }
  .client-item { padding: 14px 18px; font-size: 0.875rem; }
  .hero-stats { flex-wrap: wrap; gap: 20px 32px; }
}
