:root {
  --bg: #121212;
  --surface: #1e1e1e;
  --text: #e0e0e0;
  --muted: #a8b3b8;
  --accent: #57efc9;
  --border: #2a2a2a;
  --radius: 14px;
  --shadow: 0 10px 25px rgba(0,0,0,.35);
}

body {
  margin: 0;
  font-family: system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* NAVBAR */
.nav {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: rgba(18,18,18,.9);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.menu {
  display: flex;
  gap: 10px;
}

.menu__link {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.menu__link:hover {
  color: #fff;
  border: 1px solid var(--accent);
}

.logo {
  text-align: center;
  font-size: 24px;
}

/* HERO */
.hero {
  display: grid;
  place-items: center;
  min-height: 60vh;
  padding: 40px 16px;
  text-align: center;
  background: radial-gradient(circle at center, rgba(87, 239, 201, 0.242), transparent 70%);
}

.hero__title {
  font-size: clamp(24px,5vw,46px);
  font-weight: 800;
  margin: 0 0 12px;
}

.accent {
  color: var(--accent);
}

/* BOTONES */
.btn {
  padding: 12px 18px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn--primary {
  background: var(--accent);
  color: #000;
}

/* SECCIONES */
.wrap {
  padding: 40px 16px;
}

.section__title {
  font-size: clamp(22px,3vw,34px);
  margin: 0 0 20px;
  text-align: center;
}

.grid {
  display: grid;
  gap: 16px;
}

.cats {
  grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
}

.card--cat span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

/* Imagen de servicio */
.servicio-img {
  height: 100px;
  width: 200px;;
  margin-top: 40px;
  margin-bottom: 50px;
  margin-left: 320px;
  text-align: center;
}

.servicio-img img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* CARRUSEL */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track-container {
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.3s ease-in-out;
}

.carousel-slide {
  min-width: 70%;
  box-sizing: border-box;
  text-align: center;
}

.carousel-slide img {
  text-align: center;
  width: 100%;
  max-height: 400px;
  object-fit: fill;
  border-radius: var(--radius);
}

.carousel-slide span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

/* Botones carrusel */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  z-index: 10;
  transition: transform 0.2s ease;
}

.prev:hover, .next:hover {
  transform: translateY(-50%) scale(1.2);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* CONTACTO */
#contacto a {
  color: var(--accent);
  font-weight: bold;
}

#contacto a:hover {
  text-decoration: underline;
}

/* FOOTER */
.footer {
  margin-top: 24px;
  padding: 20px 16px;
  background: #151515;
  border-top: 1px solid var(--border);
  text-align: center;
}

/* BOTÓN VOLVER ARRIBA */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--surface);
  color: #fff;
  border: 1px solid var(--border);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  box-shadow: var(--shadow);
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
}

/* RESPONSIVE */
@media(max-width: 768px){
  .cats {
    grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
  }
  .carousel-slide img {
    max-height: 200px;
  }
  .prev, .next {
    width: 30px;
    height: 30px;
    font-size: 20px;
  }
}

@media(max-width: 480px){
  .hero__title {
    font-size: 28px;
  }
  .wrap {
    padding: 20px 12px;
  }
  .prev, .next {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
}
