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

:root {
  /* Colors - Industrial Black & Yellow Theme */
  --primary: #111111; /* Deep Black */
  --primary-light: #222222; /* Charcoal */
  --secondary: #FFC107; /* Industrial Yellow */
  --secondary-hover: #E0A800;
  --accent: #FFCC00;
  --text-dark: #1E2023; /* Dark Gray for text */
  --text-muted: #555555;
  --text-light: #FFFFFF;
  --bg-main: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-yellow: #FFC107;
  --border-color: #E5E5E5;
  
  /* Typography */
  --font-main: 'Rubik', sans-serif;
  --font-headings: 'Unbounded', sans-serif;
  
  /* Shadows */
  --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.12);
  --shadow-yellow: 10px 16px 120px 0px rgba(255, 193, 7, 0.2);
  
  /* Transitions */
  --transition-fast: 0.2s ease-in-out;
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Layout */
  --max-width: 1320px;
  --header-height: 90px;
}

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

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.75;
  overflow-x: hidden;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h1 { font-size: 4rem; letter-spacing: -0.04em; }
h2 { font-size: 3rem; letter-spacing: -0.02em; }
h3 { font-size: 1.75rem; }
p { margin-bottom: 1.5rem; color: var(--text-muted); font-size: 1.1rem; }
a { text-decoration: none; color: inherit; transition: color var(--transition-fast); }
ul { list-style: none; }

/* Highlight Text */
.text-yellow { color: var(--secondary) !important; }

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.section {
  padding: 8rem 0;
}

.section-light { background-color: var(--bg-card); }
.section-dark { background-color: var(--primary); color: var(--text-light); }
.section-dark h2, .section-dark h3, .section-dark p { color: var(--text-light); }
.section-dark p { opacity: 0.9; }

.section-yellow { background-color: var(--bg-yellow); color: var(--primary); }
.section-yellow h2, .section-yellow p { color: var(--primary); }
.section-yellow p { font-weight: 500; }

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-1 { margin-bottom: 1rem; }

/* Top Bar */
.top-bar {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  padding: 0.75rem 0;
  font-weight: 500;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-info {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.top-bar-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-bar i {
  color: var(--secondary);
}

/* Header */
.header {
  background-color: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
  height: 80px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 55px;
  width: auto;
  transition: transform var(--transition-fast);
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--primary);
  font-size: 1rem;
  position: relative;
  padding: 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--secondary);
  transition: width var(--transition-normal);
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

/* Dropdown styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  top: 100%;
  left: 0;
  border-top: 3px solid var(--secondary);
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: var(--primary);
  padding: 1rem 1.5rem;
  text-decoration: none;
  display: block;
  font-weight: 500;
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: var(--bg-main);
  color: var(--secondary);
  padding-left: 2rem;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  background: none;
  border: none;
}

/* Hero Sections */
.hero {
  position: relative;
  padding: 10rem 0;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.95) 0%, rgba(17, 17, 17, 0.7) 100%), url('hero-inicio.jfif') center/cover;
  color: var(--text-light);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 850px;
}

.hero h1 {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  font-size: 4.5rem;
}

.hero h1 .highlight {
  color: var(--secondary);
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.35rem;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease forwards 0.2s;
  opacity: 0;
  max-width: 700px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  animation: fadeInUp 0.8s ease forwards 0.4s;
  opacity: 0;
}

/* Floating Stat Box on Hero (Industrial Style) */
.hero-stat-box {
  position: absolute;
  bottom: -40px;
  right: 5%;
  background: var(--bg-card);
  padding: 3rem;
  border-left: 8px solid var(--secondary);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 3rem;
  z-index: 15;
  animation: fadeInUp 1s ease forwards 0.6s;
  opacity: 0;
}

.stat-item h3 {
  font-size: 3.5rem;
  margin-bottom: 0;
  color: var(--primary);
  line-height: 1;
}

.stat-item p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-headings);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  gap: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--secondary);
  color: var(--primary) !important;
}

.btn-primary:hover {
  background-color: var(--primary);
  color: var(--secondary) !important;
}

.btn-outline {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--secondary);
}

.btn-outline:hover {
  background-color: var(--secondary);
  color: var(--primary);
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-dark:hover {
  background-color: var(--primary);
  color: white;
}

.btn-black {
  background-color: var(--primary);
  color: white !important;
}
.btn-black:hover {
  background-color: var(--secondary);
  color: var(--primary) !important;
}

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

/* Industrial Card Style */
.card {
  background: var(--bg-card);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-color);
  border-bottom: 4px solid transparent;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--secondary);
}

.card-icon {
  width: 70px;
  height: 70px;
  background-color: var(--bg-main);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
  border-radius: 50%;
}

.card:hover .card-icon {
  background-color: var(--secondary);
  color: var(--primary);
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card p {
  font-size: 1.05rem;
  margin-bottom: 0;
}

/* Service Summary specific */
.service-img-card {
  position: relative;
  overflow: hidden;
  height: 400px;
  box-shadow: var(--shadow-sm);
}

.service-img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-img-card:hover img {
  transform: scale(1.1);
}

.service-img-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(17, 17, 17, 0.95) 0%, rgba(17,17,17,0.4) 70%, transparent 100%);
  color: white;
  transition: all var(--transition-normal);
}

.service-img-card:hover .service-img-card-overlay {
  padding-bottom: 3.5rem;
}

.service-img-card-overlay h3 {
  color: white;
  margin-bottom: 0.5rem;
  font-size: 1.75rem;
}

.service-img-card-overlay p {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  margin-bottom: 0;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--border-color);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
  margin-bottom: 3rem;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 24px;
  right: -12px;
  background-color: var(--secondary);
  border: 4px solid var(--bg-card);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left { left: 0; }
.right { left: 50%; }
.right::after { left: -12px; }

.timeline-content {
  padding: 2.5rem;
  background-color: var(--bg-card);
  position: relative;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--secondary);
}

.timeline-year {
  color: var(--primary);
  font-weight: 900;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  display: block;
  font-family: var(--font-headings);
}

/* Badges / Chips */
.brands-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
}

.brand-badge {
  padding: 1.25rem 2.5rem;
  background: white;
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  color: var(--primary);
  font-size: 1.25rem;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  font-family: var(--font-headings);
  text-transform: uppercase;
}

.brand-badge:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--secondary);
  background-color: var(--secondary);
}

/* Forms */
.form-group { margin-bottom: 2rem; }
.form-label { display: block; margin-bottom: 0.75rem; font-weight: 700; color: var(--primary); font-family: var(--font-headings); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.form-control {
  width: 100%;
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--border-color);
  font-family: var(--font-main);
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  background-color: var(--bg-main);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 4px 4px 0px 0px var(--secondary);
  background-color: white;
}
textarea.form-control { resize: vertical; min-height: 150px; }

/* Footer */
.footer {
  background-color: var(--primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 6rem 0 2rem;
  border-top: 5px solid var(--secondary);
}

.footer h4 { color: white; margin-bottom: 2rem; font-size: 1.25rem; text-transform: uppercase; }
.footer-logo { width: 100%; max-width: 280px; height: auto; margin-bottom: 1.5rem; border-radius: 4px; }

.footer-links li { margin-bottom: 1rem; }
.footer-links a { transition: color var(--transition-fast); font-weight: 500; }
.footer-links a:hover { color: var(--secondary); padding-left: 5px; }

.footer-contact li {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.footer-contact i { color: var(--secondary); margin-top: 5px; font-size: 1.2rem; }

.footer-bottom {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

/* CTA Banner */
.cta-banner {
  background: var(--secondary);
  color: var(--primary);
  text-align: center;
  padding: 5rem 3rem;
  margin: 5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.1);
  transform: skewX(-20deg);
}

.cta-banner h2 { color: var(--primary); margin-bottom: 1.5rem; position: relative; z-index: 2;}
.cta-banner p { color: rgba(17, 17, 17, 0.8); margin-bottom: 2.5rem; font-size: 1.25rem; font-weight: 500; position: relative; z-index: 2;}
.cta-banner .btn { background: var(--primary); color: white !important; position: relative; z-index: 2;}
.cta-banner .btn:hover { background: white; color: var(--primary) !important; }

/* Responsive */
@media (max-width: 1200px) {
  .hero h1 { font-size: 3.5rem; }
  .hero-stat-box { position: relative; bottom: 0; right: 0; margin-top: 3rem; flex-direction: column; gap: 1.5rem; }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  .hero { padding: 8rem 0; }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 2rem; }
  
  .mobile-toggle { display: block; }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    flex-direction: column;
    background-color: var(--bg-card);
    width: 100%;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: left var(--transition-normal);
    gap: 1.5rem;
  }
  .nav-menu.active { left: 0; }
  
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 0; }
  .timeline-item::after { left: 19px; }
  .right { left: 0; }
  
  .hero { padding: 6rem 0; }
  .hero h1 { font-size: 2.5rem; }
  .hero-actions { flex-direction: column; }
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  color: white;
}
.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: white;
}
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float svg {
    width: 30px;
    height: 30px;
  }
}

.client-logo-img {
  max-width: 180px;
  max-height: 100px;
  object-fit: contain;
  background-color: white;
  padding: 0.8rem;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.client-logo-img:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
