:root {
  font-family: Inter, system-ui, sans-serif;
  color: #f8fafc;
  background: #020617;
  --bg: #000000;
  --text: #ffffff;
  --muted: #cccccc;
  --primary: #ff0000;
  --primary-dark: #cc0000;
  --surface: rgba(0, 0, 0, 0.92);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(255, 0, 0, 0.18), transparent 25%),
    radial-gradient(circle at bottom right, rgba(204, 0, 0, 0.18), transparent 20%),
    #000000;
  color: var(--text);
}

img,
svg {
  max-width: 100%;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem 1.5rem 6rem;
  overflow: hidden;
  background-image: linear-gradient(180deg, rgba(2, 6, 23, 0.86), rgba(2, 6, 23, 0.5) 40%, rgba(2, 6, 23, 0.86)),
    url('oficina.png');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 0, 0, 0.24), transparent 22%),
    radial-gradient(circle at 85% 15%, rgba(204, 0, 0, 0.18), transparent 18%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.52) 40%, rgba(2, 6, 23, 0.82));
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 6rem;
}

.hero-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 3rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  background: rgba(2, 6, 23, 0.95);
  z-index: 1000;
  padding: 1rem 1.5rem;
}

.hero-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-nav a {
  color: rgba(248, 250, 252, 0.88);
  font-size: 0.98rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  transition: color 0.2s ease, transform 0.2s ease;
}

.hero-nav a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.hero-nav a:hover {
  color: #ffffff;
}

.brand {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.cta-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.5rem;
  background: var(--primary);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 3rem;
  height: 3rem;
  text-align: center;
  line-height: 2rem;
  transition: background 0.3s ease;
  animation: blink 2s infinite;
}

.cta-button:hover {
  background: var(--primary-dark);
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0.5;
  }
}

.header-logo-wrap {
  margin-bottom: 1.5rem;
}

.header-logo {
  width: min(360px, 100%);
  height: auto;
  display: block;
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 1.2rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 5.25rem);
  line-height: 1.03;
}

p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.85rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #cc0000);
  color: #fff;
  box-shadow: 0 22px 55px rgba(255, 0, 0, 0.28);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.98;
}

.hero-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
  justify-content: center;
}

.hero-content h1 {
  margin: 0 auto;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-top: 0.8rem;
}

.hero-content .eyebrow {
  margin-bottom: 1.4rem;
  letter-spacing: 0.28em;
}

.hero-details span {
  color: var(--muted);
  font-size: 0.9rem;
}

.section {
  padding: 5rem 0;
}

.section-label {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 2.5vw, 2.75rem);
  line-height: 1.1;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

article {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

article:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 0, 0, 0.4);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.32);
}

article h3 {
  margin-top: 0;
}

.about .split {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1.4fr 0.9fr;
}

.about ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.about li {
  color: var(--muted);
}

.card {
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
}

.logo-only-card {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
  padding: 0;
}

.logo-section {
  text-align: center;
  width: 100%;
}

.brand-logo {
  width: min(320px, 100%);
  height: auto;
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
}

.card ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.card li {
  color: var(--muted);
  position: relative;
  padding-left: 1.5rem;
}

.card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.stats {
  background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), rgba(204, 0, 0, 0.08));
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-item span {
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.gallery {
  padding: 5rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 15, 40, 0.15);
  transition: transform 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.05);
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.testimonials-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  position: relative;
}

.carousel-track {
  overflow: hidden;
  width: 100%;
}

.carousel-track .testimonial {
  display: none;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.98);
  border-radius: 1.5rem;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
  min-height: 220px;
}

.carousel-track .testimonial.active {
  display: block;
}

.testimonial p {
  color: #e2e8f0;
  line-height: 1.9;
  font-size: 1.05rem;
}

.testimonial strong {
  display: block;
  margin-top: 1.5rem;
  color: #cbd5e1;
}

.carousel-control {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.carousel-control:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.12);
}

.testimonials-grid {
  display: none;
}

.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.1fr 0.9fr;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.9rem;
}

.contact-list strong {
  display: inline-block;
  width: 130px;
}

form {
  display: grid;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.94);
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

button[type="submit"] {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  background: var(--primary-dark);
}

.form-response {
  margin: 0;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

footer {
  padding: 1.75rem 0 2.5rem;
  background: rgba(0, 0, 0, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

footer nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

footer a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s ease;
}

footer a:hover {
  color: #ffffff;
}

@media (max-width: 860px) {
  .about .split,
  .contact-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .hero-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 5rem 1rem;
  }

  .hero-content,
  .card,
  article,
  form {
    padding: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-details {
    gap: 0.95rem;
  }

  .carousel-control {
    width: 60px;
    height: 60px;
    font-size: 2rem;
  }
}

.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 1000;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.whatsapp-button svg {
  width: 28px;
  height: 28px;
}
