/* =====================
   BASE
===================== */
:root {
  --blue: #6fd3ff;
  --bg-dark: #0a1533;
  --glass: rgba(10,20,40,.6);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  color: white;
  background:
    radial-gradient(circle at 50% 40%, rgba(5,48,74,.25), transparent 60%),
    radial-gradient(ellipse at center, #000 0%, var(--bg-dark) 100%);
}

/* =====================
   NAV — MOBILE FIRST
===================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: 64px;
  backdrop-filter: blur(12px);
  z-index: 10;
}

.nav-inner {
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* nombre */
.nav-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  opacity: .7;

  text-decoration: none;
  color: white;

  cursor: pointer;
  transition: opacity .3s ease;
}

.nav-name:hover {
  opacity: 1;
}

/* NAV LINKS ocultos en mobile */
.nav-links {
  display: none;
}

/* CTA oculto en mobile */
.nav-cta {
  display: none;
}
@media (min-width: 992px) {

  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex;
    gap: 32px;
  }

  .nav-links a {
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .6;
    text-decoration: none;
    transition: opacity .3s ease;
  }

  .nav-links a:hover {
    opacity: 1;
  }
}
/* =====================
   NAV LINKS — DESKTOP
===================== */

.nav-links a {
  color: white;
  text-decoration: none;

  font-family: 'Space Grotesk', sans-serif;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;

  opacity: .7;
  position: relative;
  transition: opacity .3s ease;
}

.nav-links a:hover {
  opacity: 1;
}

/* underline sutil */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 1px;
  background: rgba(160,220,255,.8);
  opacity: 0;
  transform: scaleX(0);
  transition: opacity .3s ease, transform .3s ease;
}

.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

/* =====================
   HAMBURGER
===================== */
.hamburger {
  width: 28px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: white;
  transition: .3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px,5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px,-5px);
}

/* =====================
   SIDE MENU
===================== */
.side-menu {
  position: fixed;
  inset: 0;
  background: rgba(5,10,25,.9);
  backdrop-filter: blur(20px);
  transform: translateX(-100%);
  transition: transform .4s ease;
  z-index: 9;
}

.side-menu.active {
  transform: translateX(0);
}

.side-menu nav {
  padding: 100px 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.side-menu a {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  text-decoration: none;
  color: white;
}

.menu-cta {
  margin-top: 48px;
  padding: 18px;
  text-align: center;

  border-radius: 18px;

  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;

  text-decoration: none;
  color: white;

  background:
    radial-gradient(circle at top left, rgba(255,255,255,.35), transparent 40%),
    linear-gradient(135deg, #4fc3ff, #1e6bd6);

  box-shadow:
    0 10px 30px rgba(79,195,255,.45),
    inset 0 0 0 1px rgba(255,255,255,.35);

  transition: transform .25s ease, box-shadow .25s ease;
}
.menu-cta:active {
  transform: scale(.97);
  box-shadow:
    0 6px 20px rgba(79,195,255,.4),
    inset 0 0 0 1px rgba(255,255,255,.5);
}
/* =====================
   SIDE MENU LINKS
===================== */

.side-menu nav a {
  color: white;
  text-decoration: none;

  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;

  opacity: .8;
  transition: opacity .3s ease;
}

.side-menu nav a:hover {
  opacity: 1;
}

/* =====================
   HERO — P5
===================== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  background: #0a0c12;
  pointer-events: none;
}

/* el canvas ocupa TODO el hero */
#p5-hero {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
}

#p5-hero canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* texto encima del canvas */
.hero-title {
  position: relative;
  z-index: 2;
  color: white;
  padding: 0 20px;

  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;

  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4rem);
}

.hero-title span {
  font-size: 0.6em;
  opacity: 0.6;
}
/* =====================
   DESKTOP ENHANCEMENTS
===================== */
@media (min-width: 1024px) {

  .nav {
    height: 80px;
  }

  .nav-inner {
    max-width: 1200px;
    margin: auto;
  }

  .nav-cta {
    display: inline-flex;
    padding: 12px 28px;
    border-radius: 14px;
    border: 1px solid rgba(120,200,255,.6);
    color: var(--blue);
    text-decoration: none;
    font-family: 'Sora', sans-serif;
    letter-spacing: .08em;
    transition: .4s;
  }

  .nav-cta:hover {
    background: linear-gradient(135deg,#4fc3ff,#1e6bd6);
    color: white;
    box-shadow: 0 0 25px rgba(120,200,255,.5);
  }

  .side-menu {
    display: none;
  }

  .hamburger {
    display: none;
  }
}
/* =====================
ABOUT — CARD LAYOUT
===================== */

.about {
max-width: 1100px;
margin: 120px auto;
padding: 48px;

display: grid;
grid-template-columns: 360px 1fr;
gap: 64px;
align-items: start;

background: rgba(18, 20, 28, 0.85);
border-radius: 28px;

box-shadow:
0 40px 100px rgba(0,0,0,.45),
inset 0 0 0 1px rgba(255,255,255,.06);

backdrop-filter: blur(10px);
}

/* =====================
IMAGE
===================== */

.about-media img {
width: 100%;
height: 100%;
object-fit:cover;

border-radius: 20px;

box-shadow:
0 20px 60px rgba(0,0,0,.35);
}

/* =====================
TEXT CONTENT
===================== */

.about-content h2 {
font-family: 'Space Grotesk', sans-serif;
font-size: 2rem;
margin-bottom: 2px;
}

.about-text {
font-family: 'Inter', sans-serif;
font-size: 1rem;
line-height: 1.75;
opacity: .8;
margin-bottom: 18px;
}

.about-text.lead {
font-family: 'Space Grotesk', sans-serif;
font-size: 1.2rem;
opacity: .95;
}

/* =====================
CANVAS DECORATION
===================== */

.about-canvas {
width: 100%;
height: 120px;
margin-top: 32px;
opacity: .35;
}

/* =====================
MOBILE
===================== */

@media (max-width: 900px) {

.about {
grid-template-columns: 1fr;
padding: 36px;
gap: 32px;
}

.about-media img {
max-height: 420px;
}

}
/* =========================
   PROJECTS SECTION
========================= */

.projects{
  max-width:1100px;
  margin:auto;
  padding:80px 20px;
}

.projects-title{
  font-size:0.9rem;
  letter-spacing:0.15em;
  text-transform:uppercase;
  opacity:0.6;
  margin-bottom:60px;
}


/* =========================
   PROJECTS LAYOUT
========================= */

.projects-track{

  display:grid;
  grid-template-columns:1fr;
  gap:40px;

}


/* =========================
   DESKTOP
========================= */

@media (min-width:900px){

  .projects-track{

    grid-template-columns:1fr 1fr;

  }

}


/* =========================
   PROJECT CARD
========================= */

.project{

  background:rgba(255,255,255,0.03);
  border-radius:20px;

  padding:28px;

  transition:0.3s;
}

.project:hover{
  transform:translateY(-6px);
}


/* =========================
   IMAGE
========================= */

.project-media{

  margin:20px 0;

  border-radius:14px;
  overflow:hidden;

}

.project-media img{

  width:100%;
  display:block;

}


/* =========================
   TEXT
========================= */

.project-tag{

  font-size:0.7rem;
  letter-spacing:0.15em;
  text-transform:uppercase;

  opacity:0.6;

}

.project-title{

  font-size:1.8rem;
  margin:10px 0 16px;

}

.project-description{

  line-height:1.5;
  opacity:0.75;

}

.project-link{

  display:inline-block;

  margin-top:18px;

  font-size:0.8rem;
  letter-spacing:0.12em;
  text-transform:uppercase;

  text-decoration:none;

}
.services-cta {
  display: flex;
  justify-content: center;
  margin-top: 4rem;
  margin-bottom: 2rem;
}

.primary-button {
 margin-top: 48px;
  padding: 18px;
  text-align: center;

  border-radius: 18px;

  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  letter-spacing: .08em;
  text-transform: uppercase;

  text-decoration: none;
  color: white;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.35), transparent 40%),
    linear-gradient(135deg, #4fc3ff, #1e6bd6);
  box-shadow:
    0 10px 30px rgba(79,195,255,.45),
    inset 0 0 0 1px rgba(255,255,255,.35);

  transition: transform .25s ease, box-shadow .25s ease;
}

.primary-button:hover {
  transform: scale(.97);
  box-shadow:
    0 6px 20px rgba(79,195,255,.4),
    inset 0 0 0 1px rgba(255,255,255,.5);
}
/* =====================
   SECTION DIVIDER — BASE
===================== */
.section-divider {
  width: 100%;
  max-width: 720px;
  height: 1px;
  margin: 40px auto;
  background: rgba(160,220,255,0.25);
  position: relative;
}

.section-divider::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 64px;
  height: 3px;
  transform: translateX(-50%);
  background: rgba(160,220,255,0.6);
  filter: blur(6px);
}


@media (max-width: 600px) {
  .section-divider {
    margin: 28px auto;
  }
}
/* =====================
   SERVICES — MOBILE FIRST
===================== */

.services {
  padding: 96px 20px 40px; /* top | sides | bottom */
  max-width: 720px;
  margin: auto;
}

.services-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .9rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .6;
  margin-bottom: 64px;
}

.services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-item {
  margin-bottom: 64px;
}

.service-item:last-child {
  margin-bottom: 0;
}

.service-item h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.service-item p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  opacity: .75;
  max-width: 520px;
}
.service-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 22px;

  font-family: 'Space Grotesk', sans-serif;
  font-size: .9rem;
  letter-spacing: .04em;

  color: white;
  text-decoration: none;

  background: linear-gradient(
    135deg,
    #4fd1ff,
    #6a7cff
  );

  border-radius: 999px;

  transition: 
    transform .25s ease,
    box-shadow .25s ease;
}

.service-cta:hover {
  transform: translateY(-2px);

  box-shadow:
    0 10px 30px rgba(90,120,255,.35);
}
/* =====================
   FAQ — MOBILE FIRST
===================== */
.faq {
  padding: 40px 20px 96px; /* top | sides | bottom */
  max-width: 720px;
  margin: auto;
}


.faq-eyebrow {
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: 24px;
}

.faq-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  line-height: 1.3;
  margin-bottom: 64px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  border-bottom: 1px solid rgba(255,255,255,.15);
  padding-bottom: 16px;
}

/* QUESTION BUTTON */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 0;
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

/* ICON */
.faq-icon {
  font-size: 1.4rem;
  opacity: .6;
  transition: transform .4s ease, opacity .3s ease;
}

/* ANSWER */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .6s ease, opacity .4s ease;
}

.faq-answer p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: .75;
  max-width: 520px;
  padding-bottom: 16px;
}

/* OPEN STATE */
.faq-item.open .faq-answer {
  max-height: 300px;
  opacity: 1;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  opacity: 1;
}
/* FAQ link — más discreto */
.nav-links .nav-faq {
  font-size: .75rem;
  letter-spacing: .12em;
  opacity: .45;
}

/* hover apenas perceptible */
.nav-links .nav-faq:hover {
  opacity: .75;
}

/* sin underline glow */
.nav-links .nav-faq::after {
  display: none;
}
/* FAQ link — más discreto */
.nav-links .nav-faq {
  font-size: .75rem;
  letter-spacing: .12em;
  opacity: .45;
}

/* hover apenas perceptible */
.nav-links .nav-faq:hover {
  opacity: .75;
}

/* sin underline glow */
.nav-links .nav-faq::after {
  display: none;
}
/* =====================
   ABOUT — IMAGE
===================== */

.about-media {
  width: 100%;
  max-width: 280px;
  margin: 0 auto 48px;
}

.about-media img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
filter: saturate(.9) contrast(1.05);
  box-shadow:
    0 20px 60px rgba(0,0,0,.35),
    inset 0 0 0 1px rgba(255,255,255,.15);
}


/* =====================
   CONTACT — TEXTUAL
===================== */

.contact {
  padding: 96px 20px 120px;
  max-width: 720px;
  margin: auto;
}

.contact-eyebrow {
  font-size: .85rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: 24px;
}

.contact-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  margin-bottom: 24px;
}

.contact-text {
  font-size: 1rem;
  line-height: 1.6;
  opacity: .7;
  max-width: 520px;
  margin-bottom: 48px;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  margin-bottom: 32px;
}

.contact-label {
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .5;
  margin-bottom: 4px;
}

.contact-list a {
  font-size: 1.05rem;
  text-decoration: none;
  color: white;
  opacity: .85;
  transition: opacity .3s ease;
}

.contact-list a:hover {
  opacity: 1;
}
.contact-icons {
  margin-top: 40px;

  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.contact-icons a {
  width: 56px;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.4rem;

  color: white;
  text-decoration: none;

  border-radius: 14px;

  background: rgba(255,255,255,0.05);

  transition:
    transform .25s ease,
    background .25s ease,
    box-shadow .25s ease;
}

.contact-icons a:hover {

  transform: translateY(-3px);

  background: linear-gradient(
    135deg,
    #4fd1ff,
    #6a7cff
  );

  box-shadow:
    0 10px 30px rgba(80,120,255,.35);
}
/* =====================
   WHATSAPP FLOAT — ICON
===================== */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;

  width: 52px;
  height: 52px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(25, 25, 25, 0.6);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(160,220,255,.35);

  opacity: .85;
  transition: opacity .3s ease, transform .3s ease;
}

.whatsapp-float svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: white;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.whatsapp-float:hover {
  opacity: 1;
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .whatsapp-float {
    width: 48px;
    height: 48px;
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-float svg {
    width: 20px;
    height: 20px;
  }
}
/* =====================
   BACK TO TOP — EDITORIAL
===================== */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 96px;

  background: none;
  border: none;
  padding: 0;

  font-family: 'Space Grotesk', sans-serif;
  font-size: .65rem;
  opacity: .4;
  letter-spacing: .28em;
  text-transform: uppercase;

  color: rgba(255,255,255,.6);
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);

  transition:
    opacity .4s ease,
    transform .4s ease,
    color .3s ease;

  z-index: 98;
}

.back-to-top::before {
  content: "↟";
  display: block;
  font-size: 1.2rem;
  margin-bottom: 4px;
  opacity: .5;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  color: rgba(160,220,255,.9);
}
/* =====================
   SITE FOOTER — MOBILE FIRST
===================== */
.site-footer {
  width: 100%;
  padding: 20px 16px;
  background: #000;

  display: flex;
  justify-content: center;
  align-items: center;
}

.site-footer p {
  margin: 0;
  text-align: center;

  font-family: 'Inter', sans-serif;
  font-size: .55rem;
  letter-spacing: .12em;
  text-transform: uppercase;

  color: rgba(255,255,255,.55);
}

.site-footer span {
  display: block;
  margin-top: 6px;

  color: rgba(255,255,255,.85);
  font-weight: 500;
}

/* DESKTOP */
@media (min-width: 768px) {
  .site-footer {
    padding: 32px 24px;
  }

  .site-footer p {
    font-size: .75rem;
    letter-spacing: .08em;
  }

  .site-footer span {
    display: inline;
    margin-top: 0;
    margin-left: 6px;
  }
}

/* =====================
   MODAL — MOBILE FIRST
===================== */

.modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}

.modal.active {
  display: block;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,10,25,.85);
  backdrop-filter: blur(20px);
}


.modal-content {
  position: relative;
  z-index: 1;

  max-height: 100vh;          /* 👈 límite de viewport */
  overflow-y: auto;           /* 👈 SCROLL INTERNO */
  -webkit-overflow-scrolling: touch;

  padding: 96px 20px 32px;
  background: rgba(10,15,30,.95);

  margin: auto;
}

/* HEADER */
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;

  background: none;
  border: none;
  color: white;
  font-size: 1.4rem;
  opacity: .6;
  cursor: pointer;
}

.modal-tag {
  font-size: .75rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .5;
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.8rem;
  margin: 12px 0 24px;
}

/* MEDIA */
.modal-video {
  margin: 32px 0 48px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}

.modal-video video {
  width: 100%;
  height: auto;
  display: block;
  background: black;
}


/* TEXT */
.modal-text {
  font-size: 1rem;
  line-height: 1.6;
  opacity: .75;
  max-width: 520px;
}

/* CTA */
.modal-cta {
  display: inline-block;
  margin-top: 32px;

  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;

  color: white;
  border-bottom: 1px solid rgba(255,255,255,.4);
}
@media (min-width: 768px) {
  .modal-content {
    max-width: 880px;
    border-radius: 24px;
    margin: 64px auto;
    max-height: calc(100vh - 128px);
  }

  .modal-title {
    font-size: 2.2rem;
  }
  .modal-video {
    margin: 24px -20px 40px; /* rompe márgenes sutil */
    border-radius: 0;
  }
}
