/* ==========================================================================
   TIREPRO — capa premium · Projects & Marketing
   ========================================================================== */

:root {
  --tp-red:   #ED1D26;
  --tp-black: #0A0A0A;
  --tp-panel: #111111;
  --tp-card:  #1A1A1A;
  --tp-line:  #1C1C1C;
  --tp-ease:  cubic-bezier(.22,.61,.36,1);
}

/* ---------- Scrollbar de lectura ---------- */
.tp-scrollbar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 9999;
  background: linear-gradient(90deg, var(--tp-red), #ff5a60);
  box-shadow: 0 0 12px rgba(237,29,38,.6);
  transition: width .08s linear; pointer-events: none;
}

/* ---------- Nav: fondo al desplazar ---------- */
body.tp-scrolled #tp-nav {
  background: rgba(0,0,0,.95) !important;
  box-shadow: 0 4px 30px rgba(0,0,0,.6);
  backdrop-filter: blur(10px);
}

/* ---------- Reveal al entrar en pantalla ---------- */
.tp-reveal { opacity: 0; transform: translateY(26px);
  transition: opacity .7s var(--tp-ease), transform .7s var(--tp-ease); }
.tp-reveal.tp-in { opacity: 1; transform: none; }

/* ---------- Botón volver arriba ---------- */
.tp-top {
  position: fixed; bottom: 28px; right: 24px; width: 44px; height: 44px;
  background: var(--tp-red); color: #fff; border: none; cursor: pointer;
  font-size: 20px; z-index: 8888;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .3s, transform .3s, background .2s;
  display: flex; align-items: center; justify-content: center;
}
.tp-top.tp-show { opacity: 1; transform: none; pointer-events: auto; }
.tp-top:hover   { background: #c01019; }

/* ---------- Cards de servicio: hover ---------- */
.tp-srv-card {
  transition: transform .35s var(--tp-ease), box-shadow .35s var(--tp-ease),
              border-color .3s;
}
.tp-srv-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 44px rgba(0,0,0,.6);
  border-top-color: var(--tp-red) !important;
}

/* ---------- Fotos: zoom + overlay ---------- */
.tp-foto-item { position: relative; overflow: hidden; cursor: pointer; }
.tp-foto-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .45s var(--tp-ease);
}
.tp-foto-item:hover img { transform: scale(1.06); }
.tp-foto-overlay {
  position: absolute; inset: 0;
  background: rgba(237,29,38,0); transition: background .35s; pointer-events: none;
}
.tp-foto-item:hover .tp-foto-overlay { background: rgba(237,29,38,.28); }
.tp-foto-lupa {
  position: absolute; inset: 0; display: flex;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.tp-foto-item:hover .tp-foto-lupa { opacity: 1; }

/* ---------- Lightbox ---------- */
#tp-lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.97); z-index: 99999;
  align-items: center; justify-content: center;
}
#tp-lightbox.open { display: flex; }
#tp-lb-img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
#tp-lb-close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: 2px solid rgba(255,255,255,.25); color: #fff;
  font-size: 28px; width: 48px; height: 48px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .2s, color .2s;
}
#tp-lb-close:hover { border-color: var(--tp-red); color: var(--tp-red); }

/* ---------- Brillo en botones ---------- */
.tp-btn-solid, .tp-btn-ghost, .tp-submit {
  position: relative; overflow: hidden; isolation: isolate;
}
.tp-btn-solid::after, .tp-btn-ghost::after, .tp-submit::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg,
    rgba(255,255,255,0), rgba(255,255,255,.12), rgba(255,255,255,0));
  transform: translateX(-100%); transition: transform .45s var(--tp-ease);
}
.tp-btn-solid:hover::after, .tp-btn-ghost:hover::after, .tp-submit:hover::after {
  transform: translateX(100%);
}

/* ---------- Focus accesible ---------- */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--tp-red); outline-offset: 3px;
}

/* ---------- Bloquear scroll cuando nav móvil está abierto ---------- */
body.tp-nav-open { overflow: hidden; }
