:root {
  --bg: #0A0F1C;
  --surface: rgba(13, 19, 35, 0.92);
  --surface-strong: rgba(13, 19, 35, 0.98);
  --text: #F2F2F2;
  --muted: #A0A3BD;
  --primary: #6D5CFF;
  --primary-strong: #8A7CFF;
  --accent: #8A7CFF;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 32px 90px rgba(61, 47, 145, 0.28);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: radial-gradient(circle at top left, rgba(109, 92, 255, 0.16), transparent 20%),
    radial-gradient(circle at bottom right, rgba(138, 124, 255, 0.14), transparent 18%),
    linear-gradient(180deg, #0A0F1C 0%, #0A0F1C 100%);
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
a {
  font: inherit;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: rgba(13, 19, 38, 0.88);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.brand,
.footer__brand {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--text);
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.brand__icon {
  display: inline-flex;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  align-items: center;
  justify-content: center;
  background: rgba(109, 92, 255, 0.16);
  border: 1px solid rgba(109, 92, 255, 0.16);
}

.brand__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand__name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav {
  display: flex;
}

.nav__list {
  list-style: none;
  display: flex;
  gap: 1.8rem;
  margin: 0;
  padding: 0;
}

.nav__list a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav__list a:hover,
.nav__list a:focus {
  color: var(--text);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.85rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 16px 40px rgba(109, 92, 255, 0.28), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  box-shadow: 0 22px 50px rgba(109, 92, 255, 0.35), 0 0 35px rgba(109, 92, 255, 0.22);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(109, 92, 255, 0.22), rgba(138, 124, 255, 0.18));
  color: #F2F2F2;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(109, 92, 255, 0.35), rgba(138, 124, 255, 0.28));
  box-shadow: 0 20px 45px rgba(109, 92, 255, 0.18);
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  gap: 6px;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  place-items: center;
  padding: 5.5rem 0 3rem;
  position: relative;
  overflow: hidden;
  background-color: #0A0F1C;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 15, 28, 0.82), rgba(13, 19, 38, 0.32) 35%, rgba(10, 15, 28, 0.92));
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -180px;
  top: 20%;
  background: radial-gradient(circle, rgba(109, 92, 255, 0.24), transparent 60%);
  filter: blur(36px);
  z-index: 0;
}

.hero .hero-shape {
  position: absolute;
  left: -10%;
  top: 35%;
  width: 420px;
  height: 420px;
  background: linear-gradient(135deg, rgba(109, 92, 255, 0.18), rgba(138, 124, 255, 0.05));
  border-radius: 52% 48% 60% 40%;
  transform: rotate(-12deg);
  filter: blur(16px);
  z-index: 0;
}

.hero-bg,
.hero-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.hero-bg {
  background: radial-gradient(circle at top left, rgba(109, 92, 255, 0.20), transparent 18%),
    radial-gradient(circle at bottom right, rgba(138, 124, 255, 0.18), transparent 20%);
}

.hero-glow {
  background: linear-gradient(45deg, rgba(109, 92, 255, 0.18), transparent 35%, rgba(138, 124, 255, 0.12));
  mix-blend-mode: screen;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
  width: min(1120px, calc(100% - 2rem));
}

.hero__left {
  max-width: 720px;
  width: min(720px, 92vw);
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;   
  gap: 0.5rem;
  margin-bottom: 1.2rem;
  color: var(--primary);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 2.5rem;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  background: rgba(109, 92, 255, 0.24);
  border-radius: 50%;
}

.hero h1 {
  font-size: clamp(3.8rem, 5.5vw, 5.4rem);
  line-height: 1.02;
  margin: 0 0 1.3rem;
  color: #fff;
  letter-spacing: -0.04em;
  text-transform: none;
}

.hero p {
  color: rgba(242, 242, 242, 0.88);
  max-width: 48rem;
  font-size: 1.08rem;
  line-height: 1.85;
  margin-bottom: 2rem;
}

@keyframes heroBannerFloat {
  0%, 100% {
    background-position: center 42%;
  }
  50% {
    background-position: center 52%;
  }
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__cards {
  display: grid;
  gap: 1.2rem;
}

.hero-card {
  padding: 1.8rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.hero-card--accent {
  border-color: rgba(106, 85, 255, 0.45);
  background: rgba(106, 85, 255, 0.18);
}

.hero__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  height: fit-content;
}

.hero__logo img {
  width: 320px;
  height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(109, 92, 255, 0.24));
}

.hero__logo-text {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats {
  padding: 3rem 0 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 2rem;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: rgba(109, 92, 255, 0.35);
}

.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(109, 92, 255, 0.15);
  color: var(--primary);
  font-size: 1.25rem;
}

.stat-number {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fff;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  animation: fadeIn 0.45s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.section__header {
  text-align: center;
  padding-top: 4rem;
}

.section__header h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin: 0.6rem auto 0;
  max-width: 760px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  padding: 3rem 0 4rem;
}

.service-card {
  padding: 2.2rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(109, 92, 255, 0.08) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(109, 92, 255, 0.35);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 32px 85px rgba(0, 0, 0, 0.22);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 1.4rem;
  background: rgba(109, 92, 255, 0.16);
  border-radius: 20px;
  font-size: 1.9rem;
  color: var(--primary);
}

.service-card h3 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.service-card p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 0.96rem;
}

.why-us {
  padding: 3rem 0;
}

.why-us__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.why-us__content p {
  color: var(--muted);
  line-height: 1.9;
  max-width: 42rem;
}

.why-us__list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 2.5rem;
  display: grid;
  gap: 1rem;
}

.why-us__list li {
  color: var(--text);
  line-height: 1.8;
}

.why-us__list strong {
  color: var(--primary);
}

.why-us__visual {
  position: relative;
}

.glass-card {
  padding: 2rem;
  border-radius: 34px;
  background: rgba(16, 25, 47, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.24);
}

.glass-card h3 {
  margin: 0 0 1rem;
}

.tags {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tags span {
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: rgba(106, 85, 255, 0.12);
  color: var(--accent);
  font-size: 0.92rem;
}

.portfolio {
  padding-bottom: 4rem;
}

.portfolio__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2rem;
}

.filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--text);
  border-color: var(--primary);
  background: rgba(106, 85, 255, 0.16);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  min-height: 320px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}

.portfolio-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 22, 0.36);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover::before {
  opacity: 1;
}

.portfolio-card__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.45s ease;
}

.portfolio-card:hover .portfolio-card__image {
  transform: scale(1.08);
}

.portfolio-card__info {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 1.7rem;
  background: linear-gradient(180deg, transparent 0%, rgba(7, 10, 22, 0.96) 95%);
}

.portfolio-card h3,
.portfolio-card p {
  margin: 0;
}

.portfolio-card p {
  color: #A0A3BD;
  margin-top: 0.55rem;
}

.portfolio-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 50;
}

.portfolio-modal.active {
  display: flex;
}

.portfolio-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 20, 0.92);
}

.portfolio-modal__content {
  position: relative;
  max-width: 940px;
  width: 100%;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(7, 11, 22, 0.98);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.35rem;
  cursor: pointer;
}

.modal-details {
  padding: 2.2rem;
}

.portfolio-modal__content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details h3 {
  margin-top: 0;
}

.modal-details p {
  color: var(--muted);
  line-height: 1.9;
  margin: 1rem 0 1.8rem;
}

.about {
  padding: 4rem 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.about__text p {
  color: var(--muted);
  line-height: 1.9;
}

.about__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

.about__cards div {
  padding: 1.8rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.about__cards div:hover {
  transform: translateY(-6px);
  border-color: rgba(109, 92, 255, 0.35);
  background: rgba(109, 92, 255, 0.08);
}

.about__cards h3 {
  margin-bottom: 0.8rem;
}

.about__image {
  min-height: 520px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(109, 92, 255, 0.35), rgba(138, 124, 255, 0.12)),
    url('Imagenes/logo_individual.png') center/cover no-repeat;
}

.testimonials {
  padding: 3rem 0;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.testimonial-card {
  padding: 1.8rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
}

.testimonial-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.85;
}

.contact {
  padding: 4rem 0 6rem;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: start;
  padding-top: 2rem;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 2.3rem;
  border-radius: 34px;
  background: rgba(15, 20, 38, 0.92);
  border: 1px solid rgba(109, 92, 255, 0.16);
  box-shadow: 0 32px 85px rgba(0, 0, 0, 0.18);
}

.form-group {
  display: grid;
  gap: 0.8rem;
}

.form-group label {
  font-weight: 600;
  color: #F2F2F2;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 1rem 1.25rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: rgba(109, 92, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(109, 92, 255, 0.16);
}

.btn-primary[type="submit"] {
  width: fit-content;
}

.form-group--full {
  grid-column: span 2;
}

.form-status {
  color: var(--accent);
  min-height: 1.4rem;
}

.contact-info {
  display: grid;
  gap: 1rem;
}

.contact-card {
  padding: 1.8rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-card h3,
.contact-card h4 {
  margin: 0 0 0.75rem;
}

.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 30;
  background: linear-gradient(135deg, #25d366, #1eb945);
  color: #fff;
  border-radius: 999px;
  padding: 0.95rem 1.3rem;
  text-decoration: none;
  box-shadow: 0 20px 45px rgba(37, 211, 102, 0.28);
  font-weight: 700;
}

.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer p {
  margin: 0;
  color: var(--muted);
}

.footer__links,
.footer__socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__links a,
.footer__socials a {
  color: var(--muted);
  text-decoration: none;
}

.footer__socials a:hover,
.footer__links a:hover {
  color: var(--text);
}

@media (max-width: 980px) {
  .hero__content,
  .why-us__grid,
  .about__grid,
  .contact__grid,
  .portfolio__grid,
  .services__grid,
  .stats__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  .hero__content {
    gap: 2rem;
  }

  .nav__list {
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .header__inner {
    flex-wrap: wrap;
  }

  .nav {
    position: absolute;
    inset: 80px 1.5rem auto 1.5rem;
    background: rgba(4, 6, 13, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 1rem 1.2rem;
    display: none;
  }

  .nav.active {
    display: block;
  }

  .nav__list {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero__cards {
    grid-template-columns: 1fr;
  }

  .service-card,
  .testimonial-card,
  .contact-card,
  .hero-card,
  .about__cards div {
    border-radius: 24px;
  }

  .portfolio-modal__content {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .form-group--full {
    grid-column: unset;
  }
}

@media (max-width: 560px) {
  .header__actions {
    width: 100%;
    justify-content: space-between;
  }

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

  .contact__bottom {
    flex-direction: column;
  }
}
