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

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #f8f9fa;
}

/* Colores principales */
:root {
  --primary: #2c3e50;    /* Azul oscuro elegante */
  --secondary: #e67e22;  /* Naranja cálido */
  --accent: #27ae60;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --gray: #7f8c8d;
}

/* Header / Navbar */

{  /* ← Completado aquí */
  width: 100%;
  top: 0;
  left: 0;
  background: white;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: all 0.3s;
}

header.scrolled {
  background: rgba(255,255,255,0.98);
  padding: 10px 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  margin: 0 auto;
  padding: 20px 40px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.logo span {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  gap: 35px;
  list-style: none;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

.btn-primary {
  background: var(--secondary);
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: #d35400;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230,126,34,0.3);
}

.btn-secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

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

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 700px;
  background-image: url('jpeg'); /* ← ¡Cambia esto por tu imagen real! ej: 'images/hero-auto-paint.jpg' */
  background-size: 50% 100%;
  background-repeat: repeat-x;
  background-position: center;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

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

.hero h1 {
  font-size: 3.8rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
}

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

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Sección Servicios */
.services {
  padding: 120px 40px;
  background: white;
}

.section-title {
  text-align: center;
  margin-bottom: 80px;
}

.section-title h2 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1300px;
  margin: 0 auto;
}

.service-card {
  background: #f9f9f9;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 5px 25px rgba(0,0,0,0.08);
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.service-content {
  padding: 35px 30px;
  text-align: center;
}

.service-content h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.service-content p {
  color: var(--gray);
}

/* CTA Final */
.cta {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 120px 40px;
}

.cta h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.cta p {
  font-size: 1.3rem;
  max-width: 800px;
  margin: 0 auto 40px;
  opacity: 0.9;
}

/* Footer */
footer {
  background: #1a252f;
  color: #bdc3c7;
  padding: 80px 40px 40px;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.footer-links a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s;
}

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

/* MEDIA QUERIES - RESPONSIVE */
@media (max-width: 1024px) {
  nav {
    padding: 15px 30px;
  }
  .hero h1 {
    font-size: 3.2rem;
  }
  .hero p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 15px 20px;
  }
  .nav-links {
    flex-direction: column;
    gap: 15px;
    margin: 15px 0;
  }
  .hero {
    height: 90vh;
    min-height: 600px;
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }
  .hero h1 {
    font-size: 2.6rem;
  }
  .hero p {
    font-size: 1.1rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .services {
    padding: 80px 20px;
  }
  .section-title h2 {
    font-size: 2.4rem;
  }
  .cta {
    padding: 80px 20px;
  }
  .cta h2 {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  .hero {
    height: 85vh;
    min-height: 550px;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}