/* Pantuflas Software — tema oscuro moderno */
:root {
  --bg: #0b0f17;
  --panel: #131a26;
  --line: rgba(255, 255, 255, .08);
  --text: #e9eef6;
  --muted: #9aa4b8;
  --c1: #4cc9f0;
  --c2: #7fd8f7;
  --grad: linear-gradient(115deg, var(--c1), var(--c2));
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif
}

img {
  max-width: 100%
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px
}

/* Barra superior */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 23, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line)
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  letter-spacing: .4px
}

.brand b {
  color: var(--c1);
  font-weight: 800
}

.topbar nav {
  display: flex;
  gap: 14px
}

.topbar nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: .95rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color .2s, background .2s
}

.topbar nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, .07)
}

/* Carrusel hero */
.hero {
  position: relative;
  height: min(68vh, 540px);
  min-height: 340px;
  overflow: hidden;
  border-bottom: 1px solid var(--line)
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .9s ease
}

.slide.active {
  opacity: 1;
  z-index: 1
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 23, .05) 0%, rgba(11, 15, 23, .78) 100%)
}

.caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 26px 42px
}

.caption h2 {
  margin: 0 0 6px;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  color: var(--c1)
}

.caption p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(19, 25, 38, .72);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background .2s
}

.carousel-btn:hover {
  background: rgba(76, 201, 240, .25)
}

.prev {
  left: 18px
}

.next {
  right: 18px
}

/* Franja intro */
.intro {
  padding: 34px 0 10px
}

.intro h1 {
  margin: 0;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  color: var(--c1)
}

.intro p {
  margin: 8px 0 0;
  color: var(--muted)
}

/* Productos */
.products {
  padding: 40px 0 52px
}

.products h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 26px;
  font-size: 1.5rem;
  color: var(--c1)
}

.products h2::after {
  content: "";
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: var(--c1)
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(76, 201, 240, .55);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .45)
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block
}

.card img[src="images/cyber.jpg"] {
  object-position: center bottom
}

.card img[src="images/dds.jpg"] {
  object-position: left
}

.card img[src="images/theredhour.jpg"] {
  object-position: left
}

.card img[src="images/fantastic.jpg"] {
  object-position: left
}

.card-body {
  padding: 16px 18px
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.3
}

.card h3 a {
  color: var(--c1);
  text-decoration: none
}

.card h3 a:hover {
  text-decoration: underline
}

.card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.5
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: .9rem;
  text-decoration: none;
  transition: filter .2s, background .2s, color .2s, border-color .2s
}

.btn.primary {
  background: var(--c1);
  color: #0b0f17;
  font-weight: 600
}

.btn.primary:hover {
  filter: brightness(1.15)
}

.btn.ghost {
  border: 1px solid rgba(255, 255, 255, .28);
  color: var(--text)
}

.btn.ghost:hover {
  border-color: var(--c1);
  color: var(--c1)
}

/* Pie */
footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: .9rem
}

@media (max-width:640px) {
  .topbar nav {
    gap: 8px
  }

  .caption {
    padding: 20px 22px
  }

  .grid {
    grid-template-columns: 1fr
  }

  .carousel-btn {
    width: 38px;
    height: 38px
  }
}