:root{
  --bg:#09090b;
  --text:#f5f7fb;
  --muted:#a7adbb;
  --card:#11131a;
  --line:#262b36;
  --brand1:#8b5cf6;
  --brand2:#3b82f6;
  --shadow:0 18px 50px rgba(0,0,0,.28);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
  margin:0;
  color:var(--text);
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;

  background:
    radial-gradient(circle at 20% 20%, rgba(139,92,246,.35), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(59,130,246,.25), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(236,72,153,.15), transparent 50%),
    linear-gradient(180deg, #020617 0%, #05070d 100%);
}

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

.container{
  max-width:1120px;
  margin:auto;
  padding:0 16px;
}

/* HEADER */
header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(9,9,11,.82);
  backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(255,255,255,.06);
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:14px 0;
  flex-wrap:wrap;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size:18px;
  text-decoration:none;
}

.brand small{
  display:block;
  font-size:12px;
  color:var(--muted);
  font-weight:600;
}

.brand-logo{
  width:46px;
  height:46px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
}

.lang{
  display:flex;
  gap:8px;
}

.lang a{
  width:34px;
  height:34px;
  border-radius:10px;
  background:rgba(255,255,255,.04);
  display:flex;
  align-items:center;
  justify-content:center;
  transition:.2s ease;
}

.lang a.active{
  outline:2px solid var(--brand2);
  background:rgba(59,130,246,.12);
}

.lang img{
  width:22px;
  height:22px;
  border-radius:50%;
}

.menu{
  display:flex;
  gap:10px;
}

.menu a{
  padding:8px 12px;
  border-radius:12px;
  text-decoration:none;
}

.menu a:hover{
  background:rgba(255,255,255,.06);
}

/* HERO */
.hero{
  padding:70px 0;
}

.hero-box{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
}

.hero h1{
  font-size:48px;
  margin:0 0 10px;
  line-height:1.1;
}

.hero p{
  color:var(--muted);
  line-height:1.6;
}

.pill-row{
  margin-bottom:14px;
}

.pill{
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
}

.cta-row{
  display:flex;
  gap:10px;
  margin-top:15px;
  flex-wrap:wrap;
}

.btn{
  padding:12px 18px;
  border-radius:14px;
  background:linear-gradient(135deg, #ec4899, #8b5cf6, #3b82f6);
  color:#fff;
  text-decoration:none;
  font-weight:700;
  box-shadow:0 10px 30px rgba(139,92,246,.4);
  transition:all .2s ease;
}

.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 15px 40px rgba(139,92,246,.6);
}

.btn.ghost{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.15);
  box-shadow:none;
}

.hero-card{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  border:1px solid rgba(255,255,255,.08);
  border-radius:22px;
  padding:24px;
  box-shadow:var(--shadow);
}

.hero-card h3{
  margin-top:0;
  margin-bottom:14px;
}

.hero-card ul{
  margin:0;
  padding-left:18px;
}

.hero-card li{
  margin-bottom:10px;
  color:var(--muted);
  line-height:1.5;
}

/* GENERALES */
.section{
  padding:60px 0;
}

.section h2{
  margin-top:0;
  margin-bottom:10px;
  font-size:clamp(1.8rem, 4vw, 2.5rem);
}

.lead{
  color:var(--muted);
  line-height:1.7;
  max-width:760px;
  margin-bottom:28px;
}

/* SERVICES */
.services-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:16px;
}

.service-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.18);
}

.service-card h3{
  margin-top:0;
  margin-bottom:10px;
}

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

.service-meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:16px;
  flex-wrap:wrap;
}

.price{
  font-weight:800;
  color:#fff;
}

.tag{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  background:rgba(139,92,246,.12);
  color:#c4b5fd;
  border:1px solid rgba(139,92,246,.2);
}

/* PORTFOLIO */
.portfolio-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}

.portfolio-card{
  background:var(--card);
  border-radius:16px;
  overflow:hidden;
  border:1px solid var(--line);
}

.portfolio-card img{
  height:220px;
  width:100%;
  object-fit:cover;
}

.portfolio-card .cap{
  padding:14px;
}

.portfolio-card .cap h3{
  margin:0 0 8px;
}

.portfolio-card .cap p{
  margin:0;
  color:var(--muted);
  line-height:1.6;
}

/* PROYECTOS DESTACADOS */
.featured-projects{
  padding:90px 20px;
  background:
    radial-gradient(circle at 20% 20%, rgba(139,92,246,.25), transparent 40%),
    radial-gradient(circle at 80% 40%, rgba(59,130,246,.2), transparent 40%),
    #05070d;
}

.featured-projects-container{
  max-width:1200px;
  margin:auto;
}

.featured-projects-header{
  text-align:center;
  max-width:760px;
  margin:0 auto 42px;
}

.featured-tag{
  display:inline-block;
  padding:8px 16px;
  margin-bottom:14px;
  border-radius:999px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  color:#d4c1a3;
  font-size:13px;
  font-weight:700;
}

.featured-projects-header h2{
  margin:0 0 14px;
  font-size:clamp(2rem, 4vw, 3rem);
  line-height:1.1;
}

.featured-projects-header p{
  margin:0;
  color:var(--muted);
  line-height:1.7;
}

/* CARRUSEL */
.projects-slider{
  position:relative;
}

.projects-track-wrapper{
  overflow:hidden;
  width:100%;
}

.projects-track{
  display:flex;
  gap:24px;
  transition:transform .45s ease;
}

/* CARD */
.project-card{
  min-width:calc((100% - 48px) / 3);
  max-width:calc((100% - 48px) / 3);
  flex:0 0 calc((100% - 48px) / 3);
  border-radius:26px;
  padding:14px;
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
  border:1px solid rgba(255,255,255,.09);
  box-shadow:0 16px 40px rgba(0,0,0,.28);
  transition:transform .3s ease, box-shadow .3s ease;
}

.project-card:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 50px rgba(0,0,0,.4);
}

.project-card-inner{
  background:#10131a;
  border-radius:20px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.06);
}

/* IMAGEN */
.project-image-wrap{
  aspect-ratio:1 / 1;
  background:#0d1016;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:14px;
}

.project-card img{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:12px;
  background:transparent;
  cursor:zoom-in;
}

/* TEXTO */
.project-card-content{
  padding:18px;
}

.project-card-content h3{
  margin:0 0 10px;
  font-size:1.08rem;
  color:#fff;
  line-height:1.3;
}

.project-card-content p{
  margin:0;
  color:rgba(255,255,255,.75);
  line-height:1.6;
  font-size:.95rem;
}

/* BOTONES */
.project-btn{
  position:absolute;
  top:42%;
  transform:translateY(-50%);
  width:46px;
  height:46px;
  border-radius:50%;
  border:none;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
  cursor:pointer;
  font-size:22px;
  z-index:5;
  transition:.2s ease;
}

.project-btn.prev{
  left:-8px;
}

.project-btn.next{
  right:-8px;
}

.project-btn:hover{
  background:#d4c1a3;
  color:#111;
}

/* DOTS */
.project-dots{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:26px;
}

.project-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:rgba(255,255,255,.22);
  border:none;
  cursor:pointer;
}

.project-dot.active{
  background:#8b5cf6;
  transform:scale(1.12);
}

/* TESTIMONIOS */
.testimonials-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:18px;
}

.testimonial-card{
  position:relative;
  background:linear-gradient(180deg, rgba(139,92,246,.10), rgba(59,130,246,.06));
  border:1px solid rgba(139,92,246,.22);
  border-radius:20px;
  padding:24px;
  box-shadow:var(--shadow);
}

.testimonial-card::before{
  content:"“";
  position:absolute;
  top:8px;
  left:16px;
  font-size:52px;
  line-height:1;
  color:rgba(139,92,246,.28);
  font-weight:800;
}

.testimonial-card p{
  margin:18px 0 14px;
  color:var(--text);
  line-height:1.7;
  font-size:1rem;
}

.testimonial-card span{
  display:block;
  color:#c4b5fd;
  font-weight:700;
}

/* FAQ */
.faq{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.faq-item{
  border:1px solid var(--line);
  border-radius:16px;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  transition:border-color .25s ease, transform .25s ease;
}

.faq-item.active{
  border-color:rgba(139,92,246,.45);
}

.faq-question{
  width:100%;
  text-align:left;
  padding:18px 20px;
  font-size:16px;
  font-weight:700;
  background:none;
  border:none;
  color:var(--text);
  cursor:pointer;
}

.faq-answer{
  max-height:0;
  overflow:hidden;
  transition:max-height .3s ease;
  padding:0 20px;
}

.faq-answer p{
  margin:0;
  padding:0 0 18px;
  color:var(--muted);
  line-height:1.6;
}

.faq-item.active .faq-answer{
  max-height:220px;
}

/* POPUP IMÁGENES */
.popup{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.95);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:99999;
}

.popup.hidden{
  display:none;
}

.popup img{
  max-width:90vw;
  max-height:85vh;
  width:auto;
  height:auto;
  object-fit:contain;
  border-radius:16px;
}

.popup-close{
  position:absolute;
  top:20px;
  right:30px;
  font-size:32px;
  color:#fff;
  cursor:pointer;
}

/* CONTACT */
.contact-box{
  background:var(--card);
  padding:20px;
  border-radius:16px;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:20px;
  border:1px solid var(--line);
}

.contact-box p{
  color:var(--muted);
  line-height:1.6;
}

.contact-actions{
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:flex-start;
  justify-content:center;
}

/* FOOTER */
footer{
  text-align:center;
  padding:30px;
  color:var(--muted);
}

/* WHATSAPP */
.wa-float{
  position:fixed;
  right:20px;
  bottom:20px;
  width:55px;
  height:55px;
  background:#25D366;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow);
  z-index:1000;
}

.wa-float svg{
  width:28px;
  height:28px;
  fill:#fff;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* TABLET */
@media (max-width:991px){
  .hero-box{
    grid-template-columns:1fr;
  }

  .project-card{
    min-width:calc((100% - 24px) / 2);
    max-width:calc((100% - 24px) / 2);
    flex:0 0 calc((100% - 24px) / 2);
  }
}

/* MÓVIL */
@media (max-width:640px){
  .nav{
    justify-content:center;
  }

  .menu{
    justify-content:center;
    flex-wrap:wrap;
  }

  .hero{
    padding:50px 0;
  }

  .hero h1{
    font-size:34px;
  }

  .featured-projects{
    padding:70px 16px;
  }

  .projects-slider{
    position:relative;
  }

  .projects-track-wrapper{
    width:100%;
    overflow:hidden;
  }

  .projects-track{
    gap:0;
  }

  .project-card{
    min-width:100%;
    max-width:100%;
    flex:0 0 100%;
    padding:0;
    border-radius:20px;
  }

  .project-card:hover{
    transform:none;
  }

  .project-image-wrap{
    padding:10px;
  }

  .project-card-content{
    padding:16px;
  }

  .project-card-content h3{
    font-size:1.05rem;
    line-height:1.3;
    word-break:break-word;
  }

  .project-card-content p{
    font-size:.92rem;
    line-height:1.5;
    word-break:break-word;
  }

  .project-btn{
    width:42px;
    height:42px;
    font-size:18px;
    top:40%;
  }

  .project-btn.prev{
    left:-4px;
  }

  .project-btn.next{
    right:-4px;
  }

  .contact-actions{
    width:100%;
  }

  .contact-actions .btn{
    width:100%;
    text-align:center;
  }

  .wa-float{
    width:52px;
    height:52px;
    right:16px;
    bottom:16px;
  }
}

.hero-logo{
  width:75px;
  height:75px;
  border-radius:50%;
  object-fit:cover;
  margin:0; /* ← importante */
  display:block;
}

.hero-title{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.portfolio-card img{
  cursor: zoom-in;
}

.gallery-btn{
  margin-top:14px;
  padding:10px 18px;
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,#ec4899,#8b5cf6,#3b82f6);
  color:#fff;
  font-weight:800;
  font-size:14px;
  cursor:pointer;
  box-shadow:0 10px 25px rgba(139,92,246,.35);
  transition:all .2s ease;
}

.gallery-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 35px rgba(139,92,246,.55);
}

.gallery-btn::after{
  content:" →";
}

.gallery-btn{
  margin-top:14px;
  padding:10px 18px;
  border:0;
  border-radius:999px;
  background:linear-gradient(135deg,#ec4899,#8b5cf6,#3b82f6);
  color:#fff;
  font-weight:800;
  font-size:14px;
  cursor:pointer;
  box-shadow:0 10px 25px rgba(139,92,246,.35);
  transition:all .2s ease;
}

.gallery-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 35px rgba(139,92,246,.55);
}

.gallery-btn::after{
  content:" →";
}

/* ===== POPUP GALERÍA ===== */
.gallery-popup{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.92);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:99999;
}

.gallery-popup.hidden{
  display:none;
}

.gallery-box{
  position:relative;
  background:#11131a;
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  padding:22px;
  width:min(950px, 95vw);
  max-height:90vh;
  overflow:auto;
}

.gallery-close{
  position:absolute;
  top:10px;
  right:16px;
  font-size:32px;
  color:#fff;
  cursor:pointer;
}

.gallery-content{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:16px;
  margin-top:20px;
}

.gallery-content img,
.gallery-content video{
  width:100%;
  border-radius:14px;
}

#videoPlayer{
  max-width:90vw;
  max-height:85vh;
  border-radius:16px;
}
