:root{
  /* Paleta basada en tu logo (tech dark) */
  --primary: #10F6F5;
  --primary-2: #22A4A3;
  --on-primary: #001213;

  --bg: #000101;
  --surface: #0B1117;
  --text: #F3F3F3;
  --muted: rgba(243,243,243,.72);
  --border: rgba(243,243,243,.12);

  --radius: 16px;
  --shadow: 0 18px 40px rgba(0,0,0,.55);
  --glass: rgba(0,0,0,.55);

  --font-sans: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --text-base: 1rem;
  --h1: clamp(2rem, 3vw + 1rem, 3.1rem);
  --h2: clamp(1.5rem, 2vw + 1rem, 2.2rem);
  --h3: 1.25rem;

  --max: 1100px;
}

*{ box-sizing: border-box; }

html{
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

.project__thumb-img{
  width: 100%;
  height: 150px;        /* ajusta si quieres más alto */
  object-fit: cover;    /* recorta sin deformar */
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  margin-bottom: 12px;
}


body{
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  background: radial-gradient(900px 600px at 70% -10%, rgba(16,246,245,.10), transparent 60%), var(--bg);
  color: var(--text);
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

main{
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px;
}

h1, h2, h3{
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
}
h1{ font-size: var(--h1); font-weight: 800; }
h2{ font-size: var(--h2); font-weight: 800; color: var(--primary); }
h3{ font-size: var(--h3); font-weight: 700; }

.muted{ color: var(--muted); font-weight: 600; }
.section__text{ color: var(--muted); font-weight: 600; }

/* ===== Loader ===== */
.loader{
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  background: rgba(0,0,0,.55);
  z-index: 9999;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.loader.is-active{
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity .2s ease;
}
.loader__spinner{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 5px solid rgba(255,255,255,.25);
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}
.loader__text{
  margin: 0;
  color: var(--text);
  font-weight: 800;
}
@keyframes spin{ to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){
  .loader__spinner{ animation: none; }
}

/* ===== NAV ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  max-width: var(--max);
  margin: 0 auto;
  padding: 12px 16px;

  background: var(--glass);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.brand{
  font-weight: 900;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.nav__menu{
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.nav__link{
  display: inline-flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
}
.nav__link:hover{
  background: rgba(16,246,245,.10);
  border-color: rgba(16,246,245,.20);
}

.nav__link--cta{
  background: var(--primary);
  color: var(--on-primary);
}
.nav__link--cta:hover{
  background: var(--primary-2);
  border-color: transparent;
}

.nav__toggle{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}
.nav__icon{
  width: 18px;
  height: 2px;
  background: var(--text);
  display: inline-block;
  position: relative;
}
.nav__icon::before,
.nav__icon::after{
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
}
.nav__icon::before{ top: -6px; }
.nav__icon::after{ top: 6px; }

@media (max-width: 768px){
  .nav__toggle{ display: inline-flex; align-items: center; justify-content: center; }

  .nav__menu{
    position: absolute;
    right: 16px;
    top: 60px;
    width: min(92vw, 360px);

    display: none;
    flex-direction: column;
    gap: 6px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 10px;
  }

  .nav__menu.is-open{ display: flex; }

  .nav__link{
    width: 100%;
    justify-content: center;
  }
}

/* ===== Redes sociales fixed izquierda ===== */
.social-media{
  position: fixed;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;

  display: flex;
  flex-direction: column;
  gap: 12px;

  padding: 10px;
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.social__link{
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--primary);

  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.social__link:hover{
  transform: translateY(-1px);
  background: rgba(16,246,245,.10);
  border-color: rgba(16,246,245,.20);
}
.social__link:active{ transform: translateY(0); }
.social__link:focus-visible{
  outline: 3px solid rgba(16,246,245,.25);
  outline-offset: 2px;
}
.social__link i{ font-size: 1.25rem; line-height: 1; }

@media (max-width: 768px){
  .social-media{ display: none; }
}

/* ===== Hero ===== */
.hero{
  max-width: var(--max);
  margin: 16px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  text-align: center;
}

.hero__logo{
  width: min(220px, 70vw);
  margin: 0 auto 12px;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0,0,0,.45);
}

.hero p{
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.hero__actions{
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* ===== Secciones base ===== */
main section{
  margin: 18px 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,.30);
  text-align: center;
}

/* ===== Botones ===== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn--primary{
  background: var(--primary);
  color: var(--on-primary);
}
.btn--primary:hover{ background: var(--primary-2); }

.btn--ghost{
  color: var(--primary);
  background: transparent;
  border-color: rgba(16,246,245,.25);
}
.btn--ghost:hover{ background: rgba(16,246,245,.10); }

/* ===== Especialidades ===== */
.wrapper{
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
}

.box{
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  text-align: left;
}
.box:hover{
  transform: translateY(-2px);
  border-color: rgba(16,246,245,.25);
  box-shadow: 0 16px 36px rgba(0,0,0,.45);
}

/* ===== Portafolio ===== */
.portfolio__subtitle{
  margin: 0 auto 16px;
  max-width: 70ch;
  color: var(--muted);
  font-weight: 600;
}

.portfolio__grid{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
}

.project{
  text-align: left;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  padding: 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.project:hover{
  transform: translateY(-2px);
  border-color: rgba(16,246,245,.25);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

.project__thumb{
  height: 150px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(16,246,245,.18), rgba(16,246,245,.04));
  margin-bottom: 12px;
}

.project__title{
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--text);
}

.project__desc{
  margin: 0 0 12px;
  color: var(--muted);
  font-weight: 600;
}

.project__tags{
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
}
.project__tags li{
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(16,246,245,.10);
  border: 1px solid rgba(16,246,245,.18);
  padding: 6px 10px;
  border-radius: 999px;
}

.project__actions{
  display: flex;
  gap: 10px;
}

/* ===== Horarios ===== */
.hours__status{
  margin: 0 0 8px;
  font-weight: 900;
}
.hours__note{
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}
.hours__status.is-open{ color: #22c55e; }
.hours__status.is-closed{ color: #ef4444; }

/* ===== Formulario ===== */
#contactForm{
  max-width: 520px;
  margin: 12px auto 0;
  display: grid;
  gap: 12px;
}

#contactForm input,
#contactForm textarea{
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  outline: none;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder{
  color: rgba(243,243,243,.55);
}

#contactForm textarea{
  min-height: 140px;
  resize: vertical;
}

#contactForm input:focus,
#contactForm textarea:focus{
  border-color: rgba(16,246,245,.35);
  box-shadow: 0 0 0 4px rgba(16,246,245,.12);
}

#contactForm button{
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--primary);
  color: var(--on-primary);
  cursor: pointer;
  font-weight: 900;
}
#contactForm button:hover{ background: var(--primary-2); }
#contactForm button[disabled]{
  opacity: .7;
  cursor: not-allowed;
}

#formMsg{
  margin: 0;
  font-weight: 800;
}
#formMsg.is-error{ color: #ef4444; }
#formMsg.is-success{ color: #22c55e; }

/* Honeypot oculto */
.hp{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ===== Productos digitales ===== */
.products{
  text-align: center;
}

.products__subtitle{
  margin: 0 auto 16px;
  max-width: 70ch;
  color: var(--muted);
  font-weight: 600;
}

.products__grid{
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
}

.product{
  text-align: left;
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.product:hover{
  transform: translateY(-2px);
  border-color: rgba(16,246,245,.25);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

.product__icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;

  color: var(--primary);
  background: rgba(16,246,245,.10);
  border: 1px solid rgba(16,246,245,.18);
}

.product__icon i{
  font-size: 1.25rem;
  line-height: 1;
}

.product__title{
  margin: 0 0 6px;
  font-weight: 900;
  color: var(--text);
}

.product__desc{
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.products__cta{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px){
  .products__grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px){
  .products__grid{
    grid-template-columns: 1fr;
  }
}


/* ===== Footer ===== */
.footer{
  max-width: var(--max);
  margin: 18px auto 0;
  padding: 18px 16px;
  display: flex;
  align-items: center;
 
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer p{ margin: 0; color: var(--text); }
.footer__link{ color: var(--primary); font-weight: 900; }
.social{ display: flex; gap: 12px; align-items: center; }

/* ===== WhatsApp flotante (izquierda inferior) ===== */
.wa-float{
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;

  width: 56px;
  height: 56px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #25D366;
  color: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,.45);

  text-decoration: none;
  transition: transform .15s ease, filter .15s ease;
}
.wa-float:hover{
  transform: translateY(-2px);
  filter: brightness(1.05);
}
.wa-float i{ font-size: 1.7rem; line-height: 1; }

/* ===== Botón flotante Contacto (derecha inferior) ===== */
.contact-float{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;

  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid rgba(16,246,245,.18);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 900;

  box-shadow: 0 14px 30px rgba(0,0,0,.45);
  cursor: pointer;

  transition: transform .15s ease, background .15s ease;
}
.contact-float:hover{
  transform: translateY(-2px);
  background: var(--primary-2);
}

#contacto.is-highlight{
  box-shadow: 0 0 0 6px rgba(16,246,245,.12), 0 18px 40px rgba(0,0,0,.45);
  border-color: rgba(16,246,245,.25);
}


/* ===== FAQ ===== */
.faq{
  text-align: center;
}

.faq__subtitle{
  margin: 0 auto 16px;
  max-width: 70ch;
  color: var(--muted);
  font-weight: 600;
}

.faq__list{
  display: grid;
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.faq__item{
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255,255,255,.02);
  box-shadow: 0 12px 28px rgba(0,0,0,.30);
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.faq__item:hover{
  transform: translateY(-1px);
  border-color: rgba(16,246,245,.20);
  box-shadow: 0 18px 40px rgba(0,0,0,.40);
}


/* ===== Servicios ===== */
.services__wrap{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-top: 12px;
  align-items: start;
}

.services__grid{
  display: grid;
  gap: 12px;
}

.service-card{
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.service-card:hover{
  transform: translateY(-2px);
  border-color: rgba(16,246,245,.25);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

.service-card h3{
  margin: 0 0 8px;
  font-weight: 900;
}

.service-card p{
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.services__cta{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* Facebook */
.services__fb{
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  box-shadow: 0 12px 28px rgba(0,0,0,.30);
}

.services__fb-title{
  margin: 0 0 10px;
  font-weight: 900;
}

.fb-embed{
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
}

.fb-embed iframe{
  width: 100%;
  max-width: 100%;
  display: block;
}

.services__fb-link{
  display: inline-block;
  margin-top: 10px;
  color: var(--primary);
  font-weight: 900;
  text-decoration: none;
}

.services__fb-link:hover{
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1024px){
  .services__wrap{
    grid-template-columns: 1fr;
  }
}


/* Oculta el marcador por defecto y lo reemplazamos por un "+" */
.faq__item summary{
  list-style: none;
}
.faq__item summary::-webkit-details-marker{
  display: none;
}

.faq__question{
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 900;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq__question::after{
  content: "+";
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: rgba(16,246,245,.10);
  border: 1px solid rgba(16,246,245,.18);
  font-weight: 900;
  flex-shrink: 0;
  transition: transform .2s ease;
}

.faq__item[open] .faq__question::after{
  content: "–";
}

.faq__answer{
  padding: 0 16px 14px;
  color: var(--muted);
  font-weight: 600;
}

.faq__answer p{
  margin: 0;
}

.faq__cta{
  margin-top: 14px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ===== Responsive ===== */
@media (max-width: 1024px){
  .portfolio__grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px){
  main{ padding: 12px; }
  .wrapper{ grid-template-columns: 1fr; }
  .portfolio__grid{ grid-template-columns: 1fr; }
  .footer{ justify-content: center; text-align: center; }

  .wa-float{
    width: 52px;
    height: 52px;
    left: 12px;
    bottom: 12px;
  }
  .contact-float{
    right: 12px;
    bottom: 12px;
    padding: 11px 14px;
  }
}
