
/* =========================================
   VEXIL - DISEÑO PREMIUM RESPONSIVE
========================================= */

:root {
  --fondo: #0B1120;
  --fondo-secundario: #0E1A30;
  --card: #111E34;
  --azul: #2563EB;
  --cian: #38BDF8;
  --cian-brillante: #00E5FF;
  --blanco: #F1F5F9;
  --gris: #94A3B8;
  --borde: rgba(56, 189, 248, .18);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--fondo);
  color: var(--blanco);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", sans-serif;
}

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

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

button, a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cian);
  outline-offset: 4px;
}

/* =========================================
   NAVBAR FLOTANTE
========================================= */

.header {
  position: fixed;
  top: 18px;
  left: 0;
  width: 100%;
  padding: 0 5%;
  z-index: 1000;
}

.navbar {
  max-width: 1350px;
  margin: auto;
  padding: 15px 20px 15px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  background: rgba(7, 15, 32, .82);
  border: 1px solid var(--borde);
  border-radius: 18px;
  backdrop-filter: blur(18px);

  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-icon {
  display: grid;
  place-items: center;

  width: 38px;
  height: 38px;
  border-radius: 10px;

  background: linear-gradient(135deg, #00E5FF, #2563EB);
  color: #06142B;
  font-size: 25px;
  font-weight: 700;

  box-shadow: 0 0 22px rgba(0, 229, 255, .25);
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  flex: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a,
.nav-cta {
  font-size: 14px;
  font-weight: 500;
  transition: color .3s ease, background .3s ease, transform .3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--cian);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 229, 255, .18), rgba(37, 99, 235, .2));
  border: 1px solid rgba(0, 229, 255, .4);
  color: var(--cian-brillante);
  white-space: nowrap;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(0, 229, 255, .26), rgba(37, 99, 235, .28));
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  color: white;
  font-size: 29px;
  cursor: pointer;
}

/* =========================================
   HERO PREMIUM
========================================= */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 170px 7% 125px;

  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;

  background:
    radial-gradient(
      ellipse at 80% 25%,
      rgba(0, 145, 255, .23),
      transparent 48%
    ),
    radial-gradient(
      ellipse at 15% 80%,
      rgba(37, 99, 235, .23),
      transparent 48%
    ),
    linear-gradient(125deg, #050B19, #0B1A36 65%, #071226);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  pointer-events: none;
  z-index: -1;
}

.hero-glow-one {
  width: 420px;
  height: 420px;
  right: -100px;
  top: 5%;
  background: rgba(0, 174, 255, .18);
}

.hero-glow-two {
  width: 380px;
  height: 380px;
  left: -160px;
  bottom: -100px;
  background: rgba(37, 99, 235, .2);
}

.hero-container {
  position: relative;
  z-index: 1;

  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 45px;

  width: 100%;
  max-width: 1400px;
  margin: auto;
}

.hero-content {
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 25px;
  padding: 9px 20px;

  border: 1px solid rgba(0, 229, 255, .65);
  border-radius: 40px;
  background: rgba(0, 229, 255, .05);

  color: var(--cian-brillante);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
}

.hero h1 {
  font-size: clamp(38px, 4.5vw, 72px);
  line-height: 1.09;
  letter-spacing: -2px;
  margin-bottom: 25px;
}

.hero h1 span {
  display: block;
  color: var(--cian-brillante);
  text-shadow: 0 0 35px rgba(0, 229, 255, .22);
}

.hero-content > p {
  max-width: 580px;
  color: #B7C5D9;
  font-size: 17px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 35px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 49px;
  padding: 13px 24px;

  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;

  transition:
    transform .3s ease,
    box-shadow .3s ease,
    background .3s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #00E5FF, #38BDF8);
  color: #061326;
  box-shadow: 0 8px 25px rgba(0, 229, 255, .2);
}

.btn-primary:hover {
  box-shadow: 0 12px 35px rgba(0, 229, 255, .38);
}

.btn-outline {
  border: 1px solid var(--cian);
  color: var(--cian);
  background: rgba(56, 189, 248, .04);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, .13);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 35px;

  color: #C5D5E9;
  font-size: 12px;
}

.hero-features span::first-letter {
  color: var(--cian-brillante);
}

/* IMAGEN PRINCIPAL */

.hero-image {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image::before {
  content: "";
  position: absolute;
  width: 85%;
  height: 70%;
  border-radius: 50%;
  background: rgba(0, 174, 255, .2);
  filter: blur(75px);
  z-index: -1;
}

.hero-image img {
  width: 100%;
  max-width: 720px;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, .2);
  -webkit-mask-image:
    radial-gradient(ellipse, black 48%, transparent 76%);
  mask-image:
    radial-gradient(ellipse, black 48%, transparent 76%);
}

/* ONDA LUMINOSA INFERIOR */

.hero-wave {
  position: absolute;
  left: -10%;
  bottom: 30px;
  width: 120%;
  height: 100px;

  border-top: 2px solid rgba(0, 229, 255, .8);
  border-radius: 50%;

  transform: rotate(-3deg);
  box-shadow: 0 -12px 45px rgba(0, 174, 255, .22);
  pointer-events: none;
}

/* =========================================
   SECCIONES GENERALES
========================================= */

.section {
  width: 100%;
  max-width: 1450px;
  margin: auto;
  padding: 110px 7%;
}

.section-heading {
  max-width: 800px;
  margin: 0 auto 55px;
  text-align: center;
}

.section-label {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--cian);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.section-heading h2 {
  font-size: clamp(30px, 3.5vw, 48px);
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-heading p {
  color: var(--gris);
  font-size: 16px;
}

/* =========================================
   TARJETAS
========================================= */

.cards {
  display: grid;
  gap: 25px;
}

.services-grid {
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
}

.card {
  min-width: 0;
  padding: 35px 28px;

  background:
    linear-gradient(145deg, #13243C, #0D182C);
  border: 1px solid var(--borde);
  border-radius: 20px;

  transition:
    transform .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}

.card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 229, 255, .65);
  box-shadow: 0 15px 40px rgba(0, 174, 255, .13);
}

.card-icon {
  display: grid;
  place-items: center;

  width: 60px;
  height: 60px;
  margin-bottom: 25px;

  background: rgba(0, 229, 255, .09);
  border: 1px solid rgba(0, 229, 255, .25);
  border-radius: 15px;

  color: var(--cian-brillante);
  font-size: 30px;
}

.card h3 {
  font-size: 23px;
  margin-bottom: 14px;
}

.card p {
  color: var(--gris);
  font-size: 15px;
}

/* =========================================
   PORTAFOLIO
========================================= */

.portfolio-section {
  max-width: none;
  background:
    linear-gradient(180deg, #0B1120, #0D1B32, #0B1120);
}

.portfolio-section > .section-heading,
.portfolio-grid {
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-card {
  overflow: hidden;
  padding: 0 0 28px;
}

.portfolio-image {
  height: 220px;
  overflow: hidden;
  background: #162A45;
  margin-bottom: 25px;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.portfolio-card:hover img {
  transform: scale(1.06);
}

.portfolio-card h3,
.portfolio-card p,
.project-status {
  margin-left: 25px;
  margin-right: 25px;
}

.project-status {
  display: inline-block;
  margin-top: 15px;
  color: var(--cian);
  font-size: 12px;
  font-weight: 600;
}

/* =========================================
   PRECIOS
========================================= */

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.price-card > p {
  margin-bottom: 25px;
}

.price-card ul {
  list-style: none;
  margin-bottom: 30px;
  flex: 1;
}

.price-card li {
  color: #C7D5E6;
  padding: 9px 0;
  font-size: 14px;
}

.price-card .btn {
  width: 100%;
}

.price-card.featured {
  border-color: var(--cian);
  box-shadow: 0 0 40px rgba(0, 174, 255, .09);
}

.popular {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 6px 13px;

  border-radius: 20px;
  background: var(--cian);
  color: #061326;

  font-size: 11px;
  font-weight: 800;
}

/* =========================================
   NOSOTROS
========================================= */

.about-section {
  text-align: center;
}

.about-text {
  max-width: 800px;
  margin: auto;
  color: #B7C5D9;
  font-size: 18px;
  line-height: 1.9;
}

/* =========================================
   CONTACTO
========================================= */

.contact-section {
  padding-top: 60px;
  padding-bottom: 110px;
}

.contact-box {
  max-width: 1000px;
  margin: auto;
  padding: 75px 35px;
  text-align: center;

  background:
    radial-gradient(
      ellipse at 50% 0%,
      rgba(0, 174, 255, .19),
      transparent 65%
    ),
    #10203A;

  border: 1px solid rgba(0, 229, 255, .25);
  border-radius: 25px;
}

.contact-box h2 {
  font-size: clamp(30px, 4vw, 45px);
  margin-bottom: 20px;
}

.contact-box p {
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--gris);
}

/* =========================================
   FOOTER DISTRIBUIDO
========================================= */

.footer {
  width: 100%;
  background: #060D19;
  border-top: 1px solid var(--borde);
}

.footer-container {
  max-width: 1350px;
  margin: auto;
  padding: 75px 7%;

  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 45px;
}

.footer-brand h3 {
  color: var(--cian);
  font-size: 30px;
  margin-bottom: 15px;
}

.footer-brand p,
.footer-contact p {
  color: var(--gris);
  font-size: 14px;
}

.footer h4 {
  margin-bottom: 20px;
  font-size: 17px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-links a {
  margin-bottom: 12px;
  color: var(--gris);
  font-size: 14px;
  transition: color .3s;
}

.footer-links a:hover {
  color: var(--cian);
}

.footer-bottom {
  padding: 23px 6%;
  border-top: 1px solid var(--borde);
  color: var(--gris);
  text-align: center;
  font-size: 13px;
}

/* =========================================
   WHATSAPP FLOTANTE
========================================= */

.whatsapp-float {
  position: fixed;
  right: 25px;
  bottom: 25px;
  z-index: 2000;

  width: 62px;
  height: 62px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #25D366;
  color: white;
  border-radius: 50%;

  box-shadow: 0 8px 30px rgba(37, 211, 102, .35);
  transition: transform .3s, box-shadow .3s;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.07);
  box-shadow: 0 12px 35px rgba(37, 211, 102, .5);
}

/* =========================================
   ANIMACIONES SCROLL
========================================= */

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

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

/* =========================================
   RESPONSIVE - TABLET
========================================= */

@media (max-width: 1000px) {
  .hero-container {
    gap: 25px;
  }

  .hero h1 {
    font-size: clamp(36px, 4.5vw, 54px);
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 5%;
    width: 90%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 15px;

    background: rgba(13, 27, 48, .98);
    border: 1px solid var(--borde);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .4);
  }

  .nav-panel.active {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 12px 15px;
    border-radius: 10px;
  }

  .nav-links a:hover,
  .nav-links a:focus-visible {
    background: rgba(56, 189, 248, .08);
  }

  .nav-cta {
    width: 100%;
    min-height: 48px;
  }

  .hero {
    padding: 150px 6% 110px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 45px;
  }

  .hero-content > p {
    margin: auto;
  }

  .hero-buttons,
  .hero-features {
    justify-content: center;
  }

  .hero-image img {
    max-width: 650px;
  }

  .portfolio-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section {
    padding: 85px 6%;
  }
}

/* =========================================
   RESPONSIVE - CELULAR
========================================= */

@media (max-width: 600px) {
  .header {
    top: 10px;
    padding: 0 4%;
  }

  .navbar {
    padding: 12px 17px;
  }

  .logo {
    font-size: 22px;
  }

  .logo-icon {
    width: 33px;
    height: 33px;
    font-size: 22px;
  }

  .hero {
    min-height: auto;
    padding: 125px 6% 85px;
  }

  .hero-container {
    gap: 35px;
  }

  .hero h1 {
    font-size: clamp(34px, 9vw, 45px);
    letter-spacing: -1px;
  }

  .hero-content > p {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .hero-features {
    gap: 10px;
    font-size: 11px;
  }

  .hero-wave {
    bottom: 15px;
    height: 45px;
  }

  .section {
    padding: 70px 6%;
  }

  .section-heading {
    margin-bottom: 35px;
  }

  .services-grid,
  .portfolio-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 28px 23px;
  }

  .portfolio-card {
    padding: 0 0 28px;
  }

  .portfolio-image {
    height: 210px;
  }

  .contact-box {
    padding: 50px 22px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 35px;
    padding: 55px 7%;
  }

  .whatsapp-float {
    right: 18px;
    bottom: 18px;
    width: 55px;
    height: 55px;
  }
}

/* =========================================
   ACCESIBILIDAD
========================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card,
  .btn,
  .whatsapp-float,
  .portfolio-image img {
    transition: none;
  }
}


/* LOGO VEXIL EN NAVBAR */

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

@media (max-width: 600px) {
  .logo-img {
    width: 125px;
  }
}


/* =====================================
   SERVICIOS PREMIUM VEXIL
===================================== */

.services-section {
  position: relative;
}

.service-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;

  min-height: 300px;

  background: linear-gradient(
    145deg,
    #142740,
    #0B1629
  );

  border: 1px solid rgba(56, 189, 248, 0.18);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;

  width: 100%;
  height: 2px;

  background: linear-gradient(
    90deg,
    transparent,
    #00E5FF,
    transparent
  );

  transition: left 0.5s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  border-color: rgba(0, 229, 255, 0.65);
  box-shadow: 0 15px 45px rgba(0, 174, 255, 0.16);
}

.service-card .card-icon {
  width: 64px;
  height: 64px;
}

.service-card .card-icon svg {
  width: 30px;
  height: 30px;
  stroke: #38BDF8;
  stroke-width: 1.8;
}

.service-card h3 {
  margin-bottom: 14px;
}

.service-card p {
  margin-bottom: 25px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  margin-top: auto;

  color: #38BDF8;
  font-size: 14px;
  font-weight: 600;

  transition: gap 0.3s ease, color 0.3s ease;
}

.service-link:hover {
  gap: 16px;
  color: #00E5FF;
}

.service-link:focus-visible {
  outline: 2px solid #38BDF8;
  outline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  .service-card::before,
  .service-link {
    transition: none;
  }
}


/* =====================================
   PORTAFOLIO PREMIUM VEXIL
===================================== */

.portfolio-card {
  position: relative;
  background: #101D32;
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  overflow: hidden;
}

.portfolio-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.portfolio-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(11, 17, 32, 0.65),
    transparent 65%
  );
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.portfolio-card:hover {
  border-color: #38BDF8;
  box-shadow: 0 18px 45px rgba(0, 174, 255, 0.15);
}

.portfolio-card h3 {
  color: #F1F5F9;
  font-size: 24px;
}

.portfolio-card p {
  color: #94A3B8;
}

.project-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.1);
  color: #38BDF8;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 600px) {
  .portfolio-image {
    height: 220px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-image img {
    transition: none;
  }
}


/* BOTONES DEL PORTAFOLIO */

.btn-demo {
  display: flex;
  align-items: center;
  justify-content: center;

  margin: 22px 25px 0;
  padding: 12px 20px;

  border: 1px solid #38BDF8;
  border-radius: 10px;

  color: #38BDF8;
  font-size: 14px;
  font-weight: 600;

  transition: all 0.3s ease;
}

.btn-demo:hover {
  background: #38BDF8;
  color: #061326;
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .btn-demo {
    transition: none;
  }
}
