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

:root {
  --bg: #0b0f14;
  --bg-soft: #121821;
  --card: #161d27;
  --card-2: #1b2430;
  --text: #f5f7fa;
  --muted: #b8c2cc;
  --blue: #1e90ff;
  --blue-dark: #0f5db8;
  --yellow: #f5c542;
  --yellow-dark: #c99b1f;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #0b0f14 0%, #101722 100%);
  color: var(--text);
  line-height: 1.6;
}

/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 8%;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header.scrolled {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  height: 70px;
  width: auto;
  max-width: 240px;
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.98rem;
  transition: 0.3s ease;
}

.nav a:hover,
.nav a.activo {
  color: var(--yellow);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.8rem;
  line-height: 1;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
}

/* BANNER */
.banner {
  min-height: 92vh;
  padding: 90px 8%;
  display: flex;
  align-items: center;
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(30, 144, 255, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(245, 197, 66, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(11, 15, 20, 0.92), rgba(11, 15, 20, 0.98));
}

.banner-content {
  max-width: 820px;
  position: relative;
  z-index: 2;
}

.tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--yellow);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}

.banner h1 {
  font-size: 3.2rem;
  line-height: 1.1;
  margin-bottom: 18px;
  max-width: 950px;
}

.banner-text {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 760px;
  margin-bottom: 0;
}

.banner .investment-message {
  margin: 20px 0 30px;
  max-width: 680px;
  color: var(--yellow);
  font-weight: 700;
  font-size: 1.05rem;
}

.banner-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.banner-points span {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* BOTONES */
.botones {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn,
.btn-wsp,
#sistemas .card a {
  display: inline-block;
  text-decoration: none;
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 700;
  transition: 0.3s ease;
}

.btn {
  background: var(--yellow);
  color: #111;
}

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

.btn-wsp {
  background: var(--blue);
  color: white;
}

.btn-wsp:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

/* SECTIONS */
section {
  padding: 90px 8%;
}

section h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  text-align: center;
}

section > p {
  text-align: center;
  color: var(--muted);
  max-width: 820px;
  margin: 0 auto 35px;
}

/* GRID GENERAL */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 35px;
}

/* SERVICIOS */
#servicios .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

#servicios .card:hover {
  transform: translateY(-6px);
}

#servicios .card h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

#servicios .card p {
  color: var(--muted);
  margin-bottom: 14px;
}

#servicios .card ul {
  padding-left: 18px;
  color: var(--text);
}

#servicios .card li {
  margin-bottom: 8px;
  color: var(--muted);
}

/* CLIENTES */
#clientes {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#clientes .card {
  background: linear-gradient(180deg, rgba(30, 144, 255, 0.08), rgba(245, 197, 66, 0.04));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

#clientes .card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 197, 66, 0.35);
}

/* VENTAJAS */
#ventajas .card {
  background: linear-gradient(180deg, rgba(30, 144, 255, 0.08), rgba(245, 197, 66, 0.04));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 22px;
  text-align: center;
  font-weight: 700;
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

#ventajas .card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 197, 66, 0.35);
}

/* SISTEMAS */
#sistemas .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  text-align: center;
}

.system-card {
  cursor: pointer;
}

#sistemas .card:hover,
.system-card:hover {
  transform: translateY(-8px);
}

.system-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(180deg, rgba(30, 144, 255, 0.14), rgba(245, 197, 66, 0.08));
  border: 1px solid var(--border);
}

#sistemas .card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

#sistemas .card p {
  color: var(--muted);
  margin-bottom: 20px;
}

#sistemas .card a {
  margin-top: auto;
  background: transparent;
  color: var(--yellow);
  border: 2px solid var(--yellow);
  text-align: center;
}

#sistemas .card a:hover {
  background: var(--yellow);
  color: #111;
}

/* PROYECTOS */
#proyectos {
  background: linear-gradient(180deg, rgba(30, 144, 255, 0.04), rgba(245, 197, 66, 0.03));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.project-cards {
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 197, 66, 0.3);
}

.featured-project {
  background: linear-gradient(180deg, rgba(30, 144, 255, 0.12), rgba(245, 197, 66, 0.06));
}

.project-label {
  width: fit-content;
  background: rgba(245, 197, 66, 0.14);
  color: var(--yellow);
  border: 1px solid rgba(245, 197, 66, 0.35);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.project-label.private {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  border-color: var(--border);
}

.project-card h3 {
  font-size: 1.28rem;
  margin-bottom: 12px;
}

.project-card p {
  color: var(--muted);
  margin-bottom: 16px;
}

.project-card ul {
  padding-left: 18px;
  color: var(--muted);
  margin-bottom: 22px;
}

.project-card li {
  margin-bottom: 8px;
}

.project-link,
.project-status {
  margin-top: auto;
  display: inline-block;
  text-decoration: none;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 700;
  text-align: center;
}

.project-link {
  background: var(--yellow);
  color: #111;
}

.project-link:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
}

.project-status {
  color: var(--yellow);
  border: 2px solid var(--yellow);
}

/* PRECIO */
#precio {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.price-box {
  max-width: 1150px;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.price-item {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: left;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.price-featured {
  background: linear-gradient(180deg, rgba(30, 144, 255, 0.14), rgba(245, 197, 66, 0.08));
  border-color: rgba(245, 197, 66, 0.25);
}

.price-item strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.12rem;
  color: var(--yellow);
}

.price-main {
  display: block;
  color: var(--text);
  font-size: 1.55rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.price-item p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 16px;
}

.price-item ul {
  padding-left: 18px;
  color: var(--muted);
  margin-bottom: 18px;
}

.price-item li {
  margin-bottom: 8px;
}

.price-item small {
  display: block;
  color: var(--yellow);
  margin-top: auto;
  font-size: 0.88rem;
  line-height: 1.5;
}

.hosting-note {
  max-width: 920px;
  margin: 28px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(245, 197, 66, 0.22);
  border-radius: var(--radius);
  background: rgba(245, 197, 66, 0.07);
  color: var(--muted);
  font-size: 0.98rem;
}

/* CONTACTO */
#contacto {
  text-align: center;
}

#contacto p {
  margin-bottom: 24px;
  color: var(--muted);
}

/* FLOATING WHATSAPP */
.floating-wsp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: var(--shadow);
  z-index: 1200;
  transition: 0.3s ease;
}

.floating-wsp:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

/* FICHAS TÉCNICAS */
.ficha-banner {
  min-height: 60vh;
}

.ficha-section {
  padding: 80px 8%;
}

.ficha-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 16px;
}

.ficha-section > p {
  text-align: center;
  color: var(--muted);
  max-width: 820px;
  margin: 0 auto 35px;
}

.ficha-section .card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  text-align: center;
}

.ficha-section .card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.ficha-section .card p {
  color: var(--muted);
}

.ficha-section .investment-message {
  text-align: center;
  max-width: 820px;
  margin: 10px auto 28px;
  color: var(--yellow);
  font-weight: 700;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 24px 8%;
  color: var(--muted);
  font-size: 0.95rem;
}

/* RESPONSIVE TABLET */
@media (max-width: 992px) {
  .cards,
  .price-box,
  .project-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .banner h1 {
    font-size: 2.6rem;
  }

  .header {
    padding: 14px 5%;
  }

  section,
  .ficha-section {
    padding: 80px 5%;
  }

  .banner {
    padding: 80px 5%;
  }

  .logo img {
    height: 62px;
    max-width: 210px;
  }
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
  .header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 10px 6%;
  }

  .logo img {
    height: 58px;
    max-width: 190px;
    object-fit: contain;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(11, 15, 20, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 10px 6%;
  }

  .nav.nav-open {
    display: flex;
  }

  .nav a {
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    text-align: left;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .banner {
    min-height: 82vh;
    text-align: center;
    justify-content: center;
    padding: 70px 6% 60px;
  }

  .banner-content {
    max-width: 100%;
  }

  .tag {
    font-size: 0.82rem;
    padding: 7px 12px;
  }

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

  .banner-text {
    font-size: 1rem;
  }

  .banner .investment-message {
    margin: 18px auto 28px;
  }

  .botones {
    justify-content: center;
  }

  .btn,
  .btn-wsp,
  #sistemas .card a {
    width: 100%;
    max-width: 290px;
    text-align: center;
  }

  .banner-points {
    display: none;
  }

  .cards,
  .price-box,
  .project-cards {
    grid-template-columns: 1fr;
  }

  section h2,
  .ficha-section h2 {
    font-size: 1.8rem;
  }

  section,
  .ficha-section {
    padding: 70px 6%;
  }

  .price-item {
    text-align: center;
  }

  .price-item ul,
  .project-card ul,
  #servicios .card ul {
    text-align: left;
  }

  .project-card {
    padding: 24px 20px;
  }

  .floating-wsp {
    right: 14px;
    bottom: 14px;
    padding: 12px 16px;
  }
}

@media (max-width: 420px) {
  .logo img {
    height: 54px;
    max-width: 175px;
  }

  .menu-toggle {
    font-size: 1.6rem;
    padding: 7px 10px;
  }

  .banner h1 {
    font-size: 1.85rem;
  }

  .floating-wsp {
    font-size: 0.9rem;
  }
}