/* =====================================
   STYLE BASE – SERVICIO TÉCNICO
   Versión Final Estable
===================================== */

:root {
  /* Colores base */
  --bg: #0b1220;
  --surface: #0f1a30;
  --surface-2: #132042;
  --surface-3: #2E448A;

  /* Texto */
  --text: #e9eefc;
  --muted: #b7c3e6;
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;

  /* Marca */
  --primary: #36c2ff;
  --secondary: #7c5cff;

  /* Estados */
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Extras */
  --border: rgba(255,255,255,0.12);
  --radius: 16px;

  --surface-dark: #132042;
  --surface-mid:  #1B2A57;
  --surface-light:#EEF2FF;

  --accent-primary: #38B6FF;
  --accent-warning: #F5C542;

  --text-dark:  #132042;
  --text-mid:   #1B2A57;
  --text-body:  #4B5563;
  --text-light: #EAEAF0;
}

/* ===============================
   GLOBAL
=============================== */

html, body {
  font-size: 62.5%;
  box-sizing: border-box;
  min-height: 100%;
  margin: 0;
  padding: 0;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.6rem;
  position: relative;
}

/* Fondo degradado fijo */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to top, var(--surface), var(--surface-3));
  background-attachment: fixed;
}

/* ===============================
   TIPOGRAFÍA
=============================== */

h1 { font-size: 3.8rem; }
h2 { font-size: 2.8rem; }
h3 { font-size: 1.8rem; }

h1, h2, h3 {
  text-align: center;
}

.titulo {
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 3.8rem;
  font-weight: 900;
  color: var(--text-primary);
}

.titulo span {
  display: block;
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-warning);
}

.reseña {
  text-align: center;
  font-weight: 800;
  color: var(--accent-primary);
}

/* ===============================
   CONTENEDOR
=============================== */

.contenedor {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===============================
   BOTONES
=============================== */

.boton {
  background-color: var(--primary);
  color: var(--text);
  padding: 1rem 3rem;
  margin-top: 3rem;
  font-size: 2rem;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  border-radius: .7rem;
  text-align: center;
  border: none;
  display: inline-block;
  transition: transform .2s ease;
}

.boton:hover {
  cursor: pointer;
  transform: translateY(-2px);
}

/* ===============================
   HEADER
=============================== */

header {
  position: relative;
  z-index: 10;
  padding: 2rem 0;
}

/* ===============================
   NAV
=============================== */

.nav-bg {
  background-color: var(--bg);
}

.navegacion-principal {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .navegacion-principal {
    flex-direction: row;
    justify-content: space-between;
  }
}

.navegacion-principal a {
  display: block;
  text-align: center;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 2rem;
  padding: 1rem;
  transition: background .2s ease;
}

.navegacion-principal a:hover {
  background-color: var(--surface-2);
  color: var(--accent-warning);
}

.navegacion-principal a.activo {
  background-color: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 1rem;
  color: var(--accent-warning);
}

/* ===============================
   HERO BASE
=============================== */

.hero1 {
  background-image: url(../img/hero1.webp);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 410px;
  position: relative;
  margin-bottom: 2rem;
}

.hero1::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgb(19 32 66 / 65%);
}

.contenido-hero1 {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contenido-hero1 h2,
.contenido-hero1 p {
  color: var(--text);
}

/* ===============================
   SERVICIOS BASE
=============================== */

.servicios {
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .servicios {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.servicio {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform .2s ease;
}

.servicio:hover {
  transform: translateY(-2px);
}

.servicio h3 {
  color: var(--surface-mid);
}

.servicio p {
  line-height: 1.8;
  color: var(--text-body);
}

.servicio .iconos {
  height: 15rem;
  width: 15rem;
  background-color: var(--accent-warning);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.iconos .icono-img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* ===============================
   SOMBRA TARJETAS
=============================== */

.sombra {
  box-shadow: 0px 5px 15px rgba(112,112,112,0.48);
  background-color: var(--surface-light);
  padding: 2rem;
  border-radius: 1rem;
}

/* ===============================
   FOOTER
=============================== */

.footer {
  text-align: center;
  padding: 2rem 0;
  color: var(--text-secondary);
  font-size: 1.4rem;
}

/* ===============================
   WHATSAPP FLOAT
=============================== */

.whatsapp-float {
  position: fixed;
  right: 28px;
  bottom: 32px;
  z-index: 9999;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 45px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,0.20);
  transition: transform .25s ease, box-shadow .25s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 22px 55px rgba(0,0,0,.45);
}

.whatsapp-icon {
  width: 60px;
  height: 60px;
}

/* ===============================
   RESPONSIVE
=============================== */

@media (max-width: 768px) {
  .hero1 {
    height: auto;
    min-height: 360px;
    padding: 3.5rem 0 4rem;
  }
}

/* ===============================
   QR WHATSAPP - ESCANEABLE (FIX)
================================ */

.whatsapp-qr{
  position: fixed;
  left: 24px;
  bottom: 28px;
  z-index: 9998;

  /* IMPORTANTE: evita transform para que el QR no se "suavice" */
  opacity: 0;
  transition: opacity .35s ease;

  background: rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);

  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 18px 45px rgba(0,0,0,.25);
}

.whatsapp-qr.visible{
  opacity: 1;
}

.qr-wrapper{
  position: relative;
  width: 140px;
  height: 140px;
}

/* CLAVE: sin bordes redondeados en la imagen del QR */
.qr-img{
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
  padding: 10px;

  border-radius: 10px; /* puedes dejarlo bajo, NO 16 */
  object-fit: contain;

  /* “crisp” para que no se vea borroso */
  image-rendering: crisp-edges;
  image-rendering: pixelated;

  /* Asegura que no le afecten filtros */
  filter: none !important;
  transform: none !important;
}

/* LOGO MÁS PEQUEÑO (para no matar el QR) */
.qr-logo{
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: 28px;   /* antes 42px → muy grande */
  height: 28px;

  background: #fff;
  padding: 3px;
  border-radius: 8px;
  object-fit: contain;

  border: 1px solid rgba(0,0,0,.08);
}

/* Ocultar en móvil */
@media (max-width: 900px){
  .whatsapp-qr{ display: none; }
}
