/* ───────────── CABECERA FIJA TORQIUM ───────────── */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

.cabecera-torqium {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 8000;
  background: rgba(2, 5, 14, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 60, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 72px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* LOGO */
.cabecera-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.cabecera-logo img {
  height: 56px;
  width: auto;
}

.cabecera-logo-texto {
  display: none;
}

/* NAVEGACIÓN */
.cabecera-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cabecera-nav a {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #ccc;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 20px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cabecera-nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.07);
}

.cabecera-nav a.btn-contacto-cab {
  background: linear-gradient(90deg, #003cff, #0055ff);
  color: white;
  padding: 8px 18px;
  box-shadow: 0 2px 12px rgba(0, 60, 255, 0.35);
}

.cabecera-nav a.btn-contacto-cab:hover {
  background: linear-gradient(90deg, #0033dd, #0044ee);
  box-shadow: 0 4px 18px rgba(0, 60, 255, 0.55);
  transform: translateY(-1px);
}

/* COMPENSAR ALTURA DE CABECERA EN EL CONTENIDO */
.con-cabecera {
  padding-top: 72px;
}

/* ───────────── MENÚ HAMBURGUESA MÓVIL ───────────── */
.cabecera-hamburguesa {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  -webkit-tap-highlight-color: transparent;
}

.cabecera-hamburguesa span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Menú móvil desplegable */
.cabecera-menu-movil {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: rgba(0, 8, 20, 0.97);
  border-bottom: 1px solid rgba(0, 60, 255, 0.2);
  flex-direction: column;
  padding: 16px 24px 20px;
  gap: 4px;
  z-index: 7999;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.cabecera-menu-movil.abierto {
  display: flex;
}

.cabecera-menu-movil a {
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #ccc;
  text-decoration: none;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s ease;
}

.cabecera-menu-movil a:last-child {
  border-bottom: none;
  margin-top: 8px;
  background: linear-gradient(90deg, #003cff, #0055ff);
  color: white;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
}

.cabecera-menu-movil a:hover {
  color: #ffd60a;
}

/* ───────────── RESPONSIVE ───────────── */
@media screen and (max-width: 767px) {
  .cabecera-torqium {
    padding: 0 18px;
    height: 64px;
  }

  .cabecera-logo img {
    height: 46px;
  }

  .cabecera-nav {
    display: none;
  }

  .cabecera-hamburguesa {
    display: flex;
  }

  /* Corregido: la cabecera mide 64px en móvil, no 72px */
  .con-cabecera {
    padding-top: 64px;
  }
}

@media screen and (max-width: 900px) and (orientation: landscape) {
  .cabecera-torqium {
    height: 58px;
    padding: 0 20px;
  }

  .cabecera-logo img {
    height: 42px;
  }

  .cabecera-nav a {
    font-size: 0.75rem;
    padding: 6px 8px;
  }

  .con-cabecera {
    padding-top: 58px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  .cabecera-torqium {
    padding: 0 24px;
  }

  /* Con 5 enlaces reducimos tamaño para evitar solapamiento */
  .cabecera-nav a {
    font-size: 0.78rem;
    padding: 6px 9px;
  }

  .cabecera-nav a.btn-contacto-cab {
    padding: 7px 14px;
  }
}

/* PC grande: asegurar que los 5 enlaces tienen espacio */
@media screen and (min-width: 1024px) and (max-width: 1280px) {
  .cabecera-nav a {
    font-size: 0.82rem;
    padding: 7px 11px;
  }
}

/* ───────────── BOTÓN LLAMAR MÓVIL ───────────── */
.btn-llamar-movil {
  display: none;
}

@media screen and (max-width: 767px) and (orientation: portrait) {
  .btn-llamar-movil {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    transform: none;
    background: linear-gradient(90deg, #003cff, #0055ff);
    color: white;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 15px 32px;
    border-radius: 40px;
    box-shadow: 0 4px 20px rgba(0, 60, 255, 0.5);
    z-index: 8500;
    letter-spacing: 0.03em;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
  }

  .btn-llamar-movil:active {
    box-shadow: 0 2px 12px rgba(0, 60, 255, 0.4);
    opacity: 0.92;
  }

  .btn-llamar-movil svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    fill: white;
    flex-shrink: 0;
    display: block;
  }

  /* Padding inferior en páginas con cabecera para que el botón fijo no tape el contenido */
  .detalle-servicio,
  .pantalla-proyectos,
  .sobre-contenido {
    padding-bottom: 90px !important;
  }

  /* WhatsApp se gestiona desde whatsapp.css */
}

@media screen and (max-width: 900px) and (orientation: landscape) {
  .btn-llamar-movil {
    display: none;
  }
}
