/* =========================================================================
   HASBUN STORE — ESTILOS
   ========================================================================= */

:root{
  --bg-black: #050506;
  --bg-black-soft: #0b0b0e;
  --red: #e0301e;
  --red-bright: #ff4d3d;
  --red-deep: #4a0d08;
  --white: #f5f5f6;
  --grey-300: #c9c9cf;
  --grey-500: #8a8a92;
  --card-white: #fbfbfa;
  --ink: #141416;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-pill: 999px;
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --container: 1240px;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin: 0;
  /* background: var(--bg-black); */
  background: url("./ba.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-body);
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

button{ font-family: inherit; cursor: pointer; }

/* ---------- utilidades ---------- */
.section-title{
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .5px;
  font-size: clamp(28px, 4vw, 42px);
  text-align: center;
  color: var(--white);
  margin: 0 0 48px;
  text-transform: none;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .5px;
  font-size: 16px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  border: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover{ transform: translateY(-2px); }

.btn-ghost{
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-ghost:hover{
  background: var(--white);
  color: var(--ink);
}

.btn-solid{
  background: linear-gradient(180deg, #ff8a7a 0%, #f0554a 100%);
  color: #1a0e0c;
  box-shadow: 0 8px 20px rgba(224,48,30,.35);
}
.btn-solid:hover{
  box-shadow: 0 10px 26px rgba(224,48,30,.5);
}

.btn-outline-dark{
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  padding: 11px 22px;
}
.btn-outline-dark:hover{
  background: var(--ink);
  color: var(--card-white);
}

/* ============================ HEADER ============================ */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5,5,6,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.header-inner{
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  gap: 24px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.brand-name{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: .5px;
  white-space: nowrap;
}

.main-nav{
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.main-nav a{
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .8px;
  color: var(--grey-300);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s ease;
}
.main-nav a:hover{ color: var(--white); }

.main-nav .chevron{
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.header-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.icon-btn{
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.icon-btn:hover{
  background: rgba(224,48,30,.18);
  border-color: var(--red);
}

.cart-badge{
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-black);
}
.cart-badge:empty{ display: none; }

/* ============================ HERO ============================ */
.hero{
  position: relative;
  min-height: calc(100vh - 71px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 90px 24px 60px;
  overflow: hidden;
  background: url("./HERO.png") center center;
  background-size: cover;
}

.starfield{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content{
  position: relative;
  z-index: 2;
  max-width: 1000px;
  text-align: center;
}

.hero-title{
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  font-size: clamp(34px, 6.2vw, 84px);
  margin: 0 0 24px;
  text-transform: uppercase;
}

.hero-title-white{ color: var(--white); }
.hero-title-red{ color: var(--red-bright); }

.hero-subtitle{
  font-size: clamp(14px, 1.6vw, 19px);
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--grey-300);
  text-transform: uppercase;
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.5;
}

.hero-visual{
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  margin-top: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 340px;
}

.hero-watermark{
  position: absolute;
  bottom: -6%;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: clamp(70px, 15vw, 220px);
  color: rgba(224,48,30,.28);
  letter-spacing: 4px;
  white-space: nowrap;
  z-index: 0;
  user-select: none;
  pointer-events: none;
  display: none;
}

.hero-floats{
  margin-top: 40px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(-40px, -2vw, 10px);
  width: 100%;
}

.hero-float{
  flex: 0 1 300px;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,.55));
  animation: float 6s ease-in-out infinite;
}
.hero-float img{ width: 100%; height: auto; }

.hero-float[data-pos="left"]{
  margin-right: 5%;
  /* transform: rotate(-2deg); */
  animation-delay: .3s;
}
.hero-float[data-pos="center"]{
  flex-basis: 340px;
  z-index: 3;
  animation-delay: 0s;
}
.hero-float[data-pos="right"]{
  margin-left: 5%;
  /* transform: rotate(2deg); */
  animation-delay: .6s;
}

@keyframes float{
  0%, 100%{ transform: translateY(0) rotate(var(--r, 0deg)); }
  50%{ transform: translateY(-14px) rotate(var(--r, 0deg)); }
}

.hero-cta{
  position: relative;
  z-index: 3;
  margin-top: 28px;
}

/* ============================ ANUNCIOS / CARRUSEL ============================ */
#imagen_starwar{
  position: absolute;
  bottom: 0px;
  z-index: 10;
  left: -20px;
}
.announcements{
  position: relative;
  padding: 90px 24px 100px;
  /* background: var(--bg-black); */
}

.carousel{
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
}

.carousel-track{
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 640px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card-white);
  box-shadow: 0 30px 70px rgba(0,0,0,.5);
}

.carousel-slide{
  position: absolute;
  inset: 0;
  display: flex;
  /* align-items: flex-end; */
  justify-content: center;
  padding: 48px 40px;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-color: var(--card-white);
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
}
.carousel-slide.is-active{
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.carousel-slide::before{
  content: "";
  position: absolute;
  inset: 0;
}

.carousel-copy{

  position: relative;
  z-index: 1;
  max-width: 620px;
}

.carousel-copy h3{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 3vw, 34px);
  color: var(--ink);
  margin: 0 0 14px;
  letter-spacing: .3px;
}

.carousel-copy p{
  font-size: 15px;
  line-height: 1.6;
  color: #3b3b3f;
  margin: 0 0 26px;
}

.carousel-controls{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}

.carousel-dots{
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.25);
  transition: all .25s ease;
}
.carousel-dot.is-active{
  width: 32px;
  border-radius: var(--radius-pill);
  background: var(--white);
}

.carousel-play{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.carousel-play:hover{ background: rgba(255,255,255,.2); }

/* figura decorativa opcional */
.carousel-decor{
  position: absolute;
  left: -60px;
  bottom: -30px;
  max-height: 110%;
  z-index: 1;
  pointer-events: none;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.5));
}
.carousel-copy a{
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

/* ============================ CATEGORÍAS ============================ */
.categories{
  padding: 20px 24px 110px;
  /* background: var(--bg-black); */
}

.categories-grid{
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.category-card{
  position: relative;
  background: var(--card-white);
  border-radius: var(--radius-lg);
  padding: 40px 32px 0;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.category-card.is-wide{
  grid-column: 1 / -1;
}

.category-card h3{
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: .3px;
}

.category-card p{
  font-size: 15px;
  color: #4a4a4e;
  margin: 0 0 20px;
  max-width: 440px;
}

.category-card .btn-outline-dark{
  margin-bottom: 26px;
}

.category-media{
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.category-media img{
  width: 100%;
  max-width: 600px;
  height: auto;
  object-fit: contain;
  object-position: bottom;
  margin-bottom: 10px;
}

/* ============================ FOOTER ============================ */
.site-footer{
  padding: 30px 24px 40px;
  text-align: center;
  background: var(--bg-black);
  border-top: 1px solid rgba(255,255,255,.06);
  color: var(--grey-500);
  font-size: 13px;
}

/* ============================ RESPONSIVE ============================ */
@media (max-width: 1600px){
  .announcements #imagen_starwar{
    display: none;
  }

}
@media (max-width: 900px){
  .categories-grid{ grid-template-columns: 1fr; }
  .category-card.is-wide{ grid-column: auto; }
  .main-nav{ display: none; }
  .hero-floats{ gap: -20px; }
  .hero-float[data-pos="left"],
  .hero-float[data-pos="right"]{ flex-basis: 180px; margin: 0 -12%; }
  .hero-float[data-pos="center"]{ flex-basis: 220px; }
}

@media (max-width: 640px){
  .hero{ justify-content: space-around; padding-top: 110px; }
  .carousel-slide{ padding: 28px 20px; }
  .header-inner{ padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce){
  .hero-float{ animation: none; }
  html{ scroll-behavior: auto; }
}


/* =========================================
   SECCIÃ“N: HABLEMOS DE TU EQUIPO (NETAMENTE PROPIO)
   ========================================= */
.hablemos-section {
    /* background-color: #000; */
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.hablemos-container {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.hablemos-info h2 {
    font-size: 3em;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--text-color);
    text-transform: uppercase;
}

.hablemos-info h2 span {
    color: var(--primary-color);
}

.hablemos-info > p {
    color: #a7a7a7;
    font-size: 1.05em;
    margin-bottom: 35px;
    line-height: 1.6;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 35px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-item .icon-box {
    width: 45px;
    height: 45px;
    background: var(--background-color-2);
    border: 1px solid #333;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4em;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text strong {
    color: var(--text-color);
    font-size: 0.9em;
    margin-bottom: 2px;
}

.contact-text span {
    color: #a7a7a7;
    font-size: 0.9em;
}

/* Ajustes interactivos del mapa */
.map-link-wrapper {
    display: block;
    text-decoration: none;
    width: 100%;
}

.map-container {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #444;
    filter: grayscale(100%) sepia(100%) hue-rotate(320deg) saturate(320%) brightness(0.45) contrast(1.2);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    pointer-events: none; /* Permite que el click traspase directamente al enlace <a> */
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-overlay span {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Efectos Hover del mapa */
.map-link-wrapper:hover .map-container {
    filter: grayscale(0%) sepia(0%) brightness(0.9);
    transform: translateY(-2px);
}

.map-link-wrapper:hover .map-overlay {
    opacity: 1;
}

/* Formulario Card */
.hablemos-form-wrapper {
    background: #000;
    border: 1px solid #333;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.6);
}

.hablemos-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.75em;
    font-weight: 700;
    color: #888;
    letter-spacing: 1px;
}

.form-group input, 
.form-group select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 8px;
    padding: 14px;
    color: var(--text-color);
    font-size: 0.95em;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group select option {
    background: var(--background-color-2);
    color: var(--text-color);
}

.form-group input:focus, 
.form-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(226, 29, 72, 0.2);
}

.btn-submit-whatsapp {
    background: #310000;
    color: var(--text-color);
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
}

.btn-submit-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgb(226, 29, 72);
}

/* =========================================
   PIE DE PÃGINA (FOOTER)
   ========================================= */
.main-footer {
    background-color: #000;
    border-top: 1px solid #252525;
    padding: 60px 20px 25px;
    color: #a7a7a7;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-weight: bold;
    font-size: 1.2em;
    margin-bottom: 15px;
}

.footer-logo img {
    height: 40px;
}

.footer-col p {
    line-height: 1.6;
    font-size: 0.95em;
}

.footer-col h4 {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 1.05em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #a7a7a7;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95em;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: var(--background-color);
    color: var(--text-color);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1em;
    transition: background 0.3s, color 0.3s;
    border: 1px solid #222;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid #252525;
    font-size: 0.85em;
    color: #666;
}

/* =========================================
   MEDIA QUERIES (RESPONSIVIDAD TOTAL)
   ========================================= */

/* Tablets e pantallas medianas */
@media (max-width: 992px) {
    .hablemos-container {
        grid-template-columns: 1fr; /* Cambia a una sola columna */
        gap: 50px;
    }

    .hablemos-info h2 {
        font-size: 2.6em;
    }
}

/* Celulares */
@media (max-width: 600px) {
    .hablemos-section {
        padding: 40px 15px;
    }

    .hablemos-info h2 {
        font-size: 2.2em;
    }

    .hablemos-form-wrapper {
        padding: 25px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr; /* Todo en una sola fila vertical */
        text-align: center;
        gap: 30px;
    }

    .footer-logo {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
}