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

:root {
  --red: #CC0000;
  --red-hover: #A30000;
  --dark: #1A1A1A;
  --white: #FFFFFF;
  --bg-light: #F7F7F7;
  --gray: #666666;
  --text: #333333;
  --border: #E0E0E0;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

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

/* ======== HEADER ======== */

header {
  background: var(--dark);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--white);
}

.logo img {
  height: 70px;
  width: auto;
}

.logo span {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

nav {
  display: flex;
  gap: 8px;
}

nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

nav a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
}

/* ======== HERO ======== */

.hero {
  padding: 250px 0 200px;
  text-align: center;
  background: #1a1a1a;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(204,0,0,0.04);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(204,0,0,0.03);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  animation: pan 20s ease-in-out infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0,0,0,0.5);
}

@keyframes pan {
  0%   { transform: scale(1.15) translateX(2%); }
  100% { transform: scale(1.15) translateX(-2%); }
}

.hero-badge {
  display: inline-block;
  background: rgba(204,0,0,0.1);
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 18px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -1px;
  line-height: 1.2;
}

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

.hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  padding: 14px 44px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.25s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
}

/* ======== SERVICES ======== */

#servicios {
  padding: 50px 0;
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -0.5px;
}

.section-header .overline {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

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

.servicio-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  transition: transform 0.2s, box-shadow 0.2s;
}

.servicio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.servicio-icon {
  width: 52px;
  height: 52px;
  background: var(--red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.servicio-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--white);
}

.servicio-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.servicio-card p {
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ======== CLIENTS ======== */

#clientes {
  padding: 100px 0;
  background: var(--bg-light);
}

.clientes-wrapper {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(
    to right,
    transparent 0%, black 8%, black 92%, transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%, black 8%, black 92%, transparent 100%
  );
}

.clientes-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.clientes-track:hover {
  animation-play-state: paused;
}

.clientes-track img {
  width: 170px;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  opacity: 1;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.clientes-track img:hover {
  opacity: 1;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ======== CONTACT ======== */

#contacto {
  padding: 100px 0;
  background: var(--white);
}

.contact-wrapper {
  max-width: 580px;
  margin: 0 auto;
}

.contact-info {
  text-align: center;
  margin-bottom: 40px;
}

.contact-info p {
  color: var(--gray);
  font-size: 1rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

form .row {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 10px;
}

form input,
form textarea {
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
}

form input:focus,
form textarea:focus {
  border-color: var(--red);
}

form textarea {
  min-height: 140px;
  resize: vertical;
}

form button {
  background: var(--red);
  color: var(--white);
  padding: 16px 40px;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s;
}

form button:hover {
  background: var(--red-hover);
}

/* ======== FOOTER ======== */

footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 32px 0;
  font-size: 0.88rem;
  position: relative;
}

/* ======== RESPONSIVE ======== */

@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    height: auto;
    padding: 14px 24px;
    gap: 10px;
  }

  nav {
    gap: 4px;
  }

  nav a {
    font-size: 0.82rem;
    padding: 6px 12px;
  }

  .hero {
    padding: 80px 0 70px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
  }

  #servicios,
  #clientes,
  #contacto {
    padding: 70px 0;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }
}

@media (max-width: 480px) {
  .clientes-track {
    gap: 32px;
  }

  .clientes-track img {
    width: 110px;
    max-height: 60px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .btn-primary {
    padding: 12px 32px;
    font-size: 0.9rem;
  }

  .servicio-card {
    padding: 28px 22px;
  }
}
