:root {
  --bg: #F4F3F2;
  --text: #111;
  --accent: #000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* LOADER */
#ts-loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity .4s ease;
}

#ts-loader.hide {
  opacity: 0;
  pointer-events: none;
}

.ts-loader-logo {
  width: 120px;
  animation: loader-pulse 1.4s ease-in-out infinite;
}

@keyframes loader-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}


/* HEADER */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffffd9;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  border-bottom: 1px solid #ddd;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}


/* NEWS BAR */
.top-news-bar {
  background: #000;
  color: #fff;
  overflow: hidden;
  white-space: nowrap;
  font-size: 13px;
  padding: 6px 0;
}

.news-inner {
  display: inline-block;
  padding-left: 100%;
  animation: news-scroll 18s linear infinite;
}

@keyframes news-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}


/* HERO */
.hero {
  position: relative;
  height: 68vh;
  background-image: url("../assets/camisatwosouls.jpg");
  background-size: cover;
  background-position: center;
  background-color: #F4F3F2; /* mismo color del fondo */
  opacity: 0;
  transition: opacity .6s ease;
}
/* HERO invisible hasta que cargue la imagen */
.hero {
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s ease;
}

/* Se activa cuando ya cargó */
.hero.visible {
  opacity: 1;
  visibility: visible;
}
.hero.loaded {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.65));
}

.hero-content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  padding: 22vh 24px 0;
  color: #fff;
}

.hero-title {
  font-size: 40px;
  font-weight: 700;
}

.hero-sub {
  font-size: 16px;
}


/* SECTION */
.section-title {
  font-size: 26px;
  margin: 40px 0 20px;
}


/* GRID PRODUCTOS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 28px;
  padding: 0 40px;
}

.product-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid #e5e5e5;
}

.product-image-wrapper {
  height: 420px;
  background: #000;
  overflow: hidden;
  position: relative;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.product-image-wrapper:hover .product-image {
  transform: scale(1.04);
}

.product-hover-info {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  opacity: 0;
  transition: opacity .3s ease;
}

.product-image-wrapper:hover .product-hover-info {
  opacity: 1;
}


/* SOBRE */
.sobre-section {
  padding: 50px 40px;
}

.sobre-text {
  max-width: 640px;
}

.social-link {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icon {
  width: 26px;
}


/* PANEL LATERAL */
#panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
  display: none;
  z-index: 998;
}

#panel-overlay.show {
  display: block;
}

.product-panel {
  position: fixed;
  right: -460px;
  top: 0;
  width: 460px;
  height: 100vh;
  background: #fff;
  transition: right .35s ease;
  z-index: 999;
  overflow-y: auto;
  padding-bottom: 40px;
}

.product-panel.open {
  right: 0;
}

.product-panel-content img {
  width: 100%;
  border-radius: 8px;
}

.close-panel {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 18px;
}


/* FOOTER */
.footer {
  padding: 20px 40px;
  border-top: 1px solid #ddd;
  font-size: 14px;
  text-align: center;
}


/* MOBILE */
@media (max-width: 700px) {
  .products-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .header {
    padding: 12px 20px;
  }

  .product-panel {
    width: 100%;
  }
}
