:root {
  --steel-blue: #4682B4;
  --steel-blue-dark: #356494; /* un tono más oscuro para hover */
  --steel-blue-light: #6a9acb; /* tono más claro para fondos y hover */
  --accent-orange: #ff7f50; /* coral suave para acentos */
  --gray-light: #f5f7fa;
  --gray-muted: #6c757d;
  --white: #ffffff;
  --bg: #f9fbff;
  --card-bg: #ffffff;
  --font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: #222;
  font-family: var(--font-family);
  line-height: 1.6;
}

header {
  background: var(--steel-blue);
  color: var(--white);
  padding: 20px 24px;
  box-shadow: 0 4px 8px rgba(70, 130, 180, 0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 1px;
  user-select: none;
}

.logo img {
  height: 42px;
  filter: drop-shadow(0 0 2px rgba(255,255,255,0.6));
}

nav ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent-orange);
  transition: width 0.3s ease;
}

nav a:hover,
nav a:focus {
  color: var(--accent-orange);
}

nav a:hover::after,
nav a:focus::after {
  width: 100%;
}

.cta {
  background: var(--accent-orange);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(255, 127, 80, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  white-space: nowrap;
}

.cta:hover,
.cta:focus {
  background: #e76b4a;
  box-shadow: 0 6px 16px rgba(231, 107, 74, 0.6);
}

main.container {
  padding: 48px 0 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: 2.75rem;
  margin: 0 0 16px;
  color: var(--steel-blue-dark);
  line-height: 1.2;
}

.hero p {
  color: var(--gray-muted);
  font-size: 1.125rem;
  margin-bottom: 28px;
}

.buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.buttons .card {
  background: var(--gray-light);
  color: var(--steel-blue-dark);
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(70, 130, 180, 0.1);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.buttons .card:hover,
.buttons .card:focus {
  background: var(--steel-blue-light);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(106, 154, 203, 0.4);
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(70, 130, 180, 0.08);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 12px 32px rgba(70, 130, 180, 0.15);
}

.hero-visual {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(70, 130, 180, 0.12);
}

.hero-visual video {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  filter: drop-shadow(0 4px 8px rgba(70, 130, 180, 0.2));
}

.video-controls {
  display: flex;
  align-items: center;
  background-color: rgba(70, 130, 180, 0.75);
  padding: 12px 16px;
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  user-select: none;
}

.hero-visual:hover .video-controls,
.video-controls:focus-within {
  opacity: 1;
}

.play-pause,
.fullscreen {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.play-pause:hover,
.fullscreen:hover,
.play-pause:focus,
.fullscreen:focus {
  color: var(--accent-orange);
  outline: none;
}

.progress-bar {
  flex-grow: 1;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  margin: 0 12px;
  position: relative;
  cursor: pointer;
}

.progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background-color: var(--accent-orange);
  border-radius: 4px;
  transition: width 0.1s linear;
}

.time {
  color: var(--white);
  font-size: 0.75rem;
  min-width: 48px;
  text-align: center;
  user-select: none;
}

.volume {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.volume-slider {
  width: 70px;
  cursor: pointer;
  border-radius: 6px;
}

h2 {
  color: var(--steel-blue-dark);
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 12px;
  border-bottom: 3px solid var(--accent-orange);
  display: inline-block;
  padding-bottom: 6px;
}

#servicios p,
#contacto p,
#clientes p {
  color: var(--gray-muted);
  font-size: 1rem;
  margin-bottom: 16px;
}

.process {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.step {
  flex: 1 1 220px;
  background: var(--gray-light);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 4px 12px rgba(70, 130, 180, 0.1);
  transition: background-color 0.3s ease;
  cursor: default;
}

.step:hover,
.step:focus-within {
  background-color: var(--steel-blue-light);
  color: var(--white);
  box-shadow: 0 8px 24px rgba(106, 154, 203, 0.3);
}

.step > div:first-child {
  font-weight: 700;
  font-size: 1.1rem;
}

.step > div:last-child {
  font-size: 0.9rem;
  color: var(--gray-muted);
  margin-top: 6px;
}

.clients {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 16px;
}

.client-logo {
  width: 140px;
  height: 56px;
  background: var(--white);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-muted);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(70, 130, 180, 0.05);
  transition: box-shadow 0.3s ease;
  user-select: none;
}

.client-logo:hover {
  box-shadow: 0 8px 24px rgba(70, 130, 180, 0.15);
}

.card strong {
  font-weight: 700;
  font-size: 1.1rem;
}

.card p {
  margin-top: 8px;
  color: var(--gray-muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  margin-top: 24px;
}

form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--gray-muted);
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: var(--font-family);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--steel-blue);
  outline: none;
  box-shadow: 0 0 8px rgba(70, 130, 180, 0.3);
}

button[type=submit] {
  background: var(--steel-blue);
  color: var(--white);
  padding: 14px 22px;
  border-radius: 30px;
  border: none;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(70, 130, 180, 0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  margin-top: 12px;
  width: 100%;
}

button[type=submit]:hover,
button[type=submit]:focus {
  background: var(--steel-blue-dark);
  box-shadow: 0 8px 24px rgba(53, 100, 148, 0.6);
  outline: none;
}

footer {
  background: var(--steel-blue-dark);
  color: var(--gray-light);
  padding: 28px 24px;
  font-size: 0.9rem;
  user-select: none;
}

footer a {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

footer a:hover,
footer a:focus {
  color: var(--white);
  text-decoration: underline;
}

footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.marquee {
  overflow: hidden;
  position: relative;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(70, 130, 180, 0.1);
  padding: 14px 0;
  margin: 40px 0;
}

.marquee-content {
  display: flex;
  animation: scroll 25s linear infinite;
  gap: 20px;
}

.marquee-content img {
  height: 160px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(70, 130, 180, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.marquee-content img:hover,
.marquee-content img:focus {
  transform: scale(1.05);
  outline: none;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Responsive */

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .contact {
    grid-template-columns: 1fr;
  }
  .process {
    flex-direction: column;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  nav ul {
    display: none;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .buttons {
    flex-direction: column;
  }
  .buttons .card,
  .cta {
    width: 100%;
    text-align: center;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
}