/* ============================================
   LineStore — estilos base + tema
   ============================================ */
:root{
  --ink:#F2F3F6;
  --ink-soft:#AEB3BF;
  --paper:#0A0D13;
  --paper-deep:#12151E;
  --surface:#1A1F2B;
  --orange:#FF4500;
  --orange-deep:#FF7A45;
  --teal:#2DD4BF;
  --line: rgba(255,255,255,0.12);
  --shadow: 0 14px 34px rgba(0,0,0,0.55);
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; }

body{
  font-family:'Poppins', sans-serif;
  color: var(--ink-soft);
  background: var(--paper);
  line-height:1.6;
  overflow-x:hidden;
}

h1,h2,h3{
  font-family:'Space Grotesk', 'Poppins', sans-serif;
  color: var(--ink);
}

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

/* ============================================
   NAV
   ============================================ */
header{
  position:sticky;
  top:0;
  z-index:100;
  background: rgba(10,13,19,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s ease, border-color .35s ease, background .35s ease;
}
header.scrolled{
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
  border-bottom-color: var(--line);
}

nav{
  display:flex;
  align-items:center;
  max-width:1200px;
  margin:0 auto;
  padding: 0.9rem 1.6rem;
}

.logo{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:1.5rem;
  font-weight:700;
  letter-spacing:0.02em;
  color: var(--ink);
}

.logo-ring{
  position:relative;
  width:52px; height:52px;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.logo-ring::before{
  content:'';
  position:absolute; inset:-3px;
  border-radius:50%;
  background: conic-gradient(from 0deg, var(--orange), transparent 30%, var(--teal), transparent 70%, var(--orange));
  animation: spin 6s linear infinite;
}
#logo-principal{
  position:relative;
  width:44px; height:44px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid var(--paper);
  z-index:1;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

.nav-links{
  display:flex;
  list-style:none;
  gap:2.2rem;
  margin-left:auto;
  align-items:center;
}
.nav-links a{
  position:relative;
  text-decoration:none;
  font-weight:500;
  font-size:0.95rem;
  text-transform:uppercase;
  letter-spacing:0.05em;
  color: var(--ink-soft);
  padding: 6px 2px;
}
.nav-links a::after{
  content:'';
  position:absolute; left:0; bottom:0;
  width:0; height:2px;
  background: var(--orange);
  transition: width .3s ease;
}
.nav-links a:hover{ color: var(--ink); }
.nav-links a:hover::after{ width:100%; }

/* ============================================
   HERO — imagen con movimiento (Ken Burns)
   ============================================ */
#hero{
  position:relative;
  min-height:92vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
  padding: 0 1.2rem;
  color:#fff;
}
#hero .bg{
  position:absolute; inset:0;
  background-image: linear-gradient(180deg, rgba(15,16,20,0.55), rgba(15,16,20,0.72)), url("img/Portada3.png");
  background-size: cover;
  background-position:center;
  animation: kenburns 22s ease-in-out infinite alternate;
  z-index:0;
}
@keyframes kenburns{
  0%{ transform: scale(1) translate(0,0); }
  100%{ transform: scale(1.12) translate(-1.5%, -1%); }
}

.hero-eyebrow{
  position:relative; z-index:1;
  display:inline-flex; align-items:center; gap:10px;
  font-size:0.78rem;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color: #ffd8c2;
  margin-bottom:1.4rem;
  opacity:0;
  animation: rise .8s ease .1s forwards;
}
.hero-eyebrow::before{
  content:''; width:26px; height:1px; background: var(--orange); display:inline-block;
}

#hero h1{
  position:relative; z-index:1;
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  font-weight:700;
  line-height:1.08;
  max-width:820px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
  opacity:0;
  animation: rise .8s ease .25s forwards;
}

#hero p{
  position:relative; z-index:1;
  font-size:1.15rem;
  color:#eee7de;
  margin: 1.2rem 0 2.2rem;
  font-style:normal;
  opacity:0;
  animation: rise .8s ease .4s forwards;
}

@keyframes rise{
  from{ opacity:0; transform: translateY(18px); }
  to{ opacity:1; transform: translateY(0); }
}

.cta-batton{
  position:relative; z-index:1;
  background: var(--orange);
  color:#fff;
  border:none;
  font-family:'Poppins', sans-serif;
  font-weight:600;
  letter-spacing:0.02em;
  padding: 1.05rem 2.6rem;
  border-radius:50px;
  cursor:pointer;
  box-shadow: 0 10px 26px rgba(255,69,0,0.38);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
  opacity:0;
  animation: rise .8s ease .55s forwards;
}
.cta-batton:hover{
  background: var(--orange-deep);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(255,69,0,0.48);
}

.scroll-cue{
  position:absolute; bottom:26px; left:50%; transform:translateX(-50%);
  z-index:1;
  width:22px; height:36px;
  border:2px solid rgba(255,255,255,0.55);
  border-radius:14px;
}
.scroll-cue::before{
  content:'';
  position:absolute; top:6px; left:50%;
  width:4px; height:8px;
  background:#fff;
  border-radius:2px;
  transform:translateX(-50%);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue{
  0%{ opacity:1; top:6px; }
  60%{ opacity:0; top:18px; }
  100%{ opacity:0; top:6px; }
}

/* ============================================
   PRODUCTOS
   ============================================ */
#Productos{
  padding: 5.5rem 1.6rem;
  max-width:1200px;
  margin:0 auto;
}
.section-tag{
  display:flex; align-items:center; gap:10px;
  justify-content:center;
  font-size:0.78rem;
  letter-spacing:0.16em;
  text-transform:uppercase;
  color: var(--teal);
  margin-bottom:0.8rem;
}
.section-tag::before, .section-tag::after{
  content:''; width:30px; height:1px; background: var(--line);
}
#Productos h2{
  text-align:center;
  font-size:2.1rem;
  margin-bottom:3rem;
}

.Productos-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(300px, 1fr));
  gap:2rem;
}

.Productos-card{
  background: var(--paper-deep);
  border-radius:14px;
  border:1px solid var(--line);
  overflow:hidden;
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
  transition: transform .4s ease, box-shadow .4s ease;
  opacity:0;
  transform: translateY(26px);
}
.Productos-card.in-view{
  animation: card-in .7s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes card-in{
  to{ opacity:1; transform:translateY(0); }
}
.Productos-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 22px 44px rgba(0,0,0,0.55);
}

.card-media{
  position:relative;
  overflow:hidden;
  height:280px;
  background: var(--paper);
}
.card-media img{
  width:100%; height:100%;
  object-fit:cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.Productos-card:hover .card-media img{
  transform: scale(1.1) rotate(0.5deg);
}
.card-media::after{
  content:'';
  position:absolute; inset:0;
  background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .8s ease;
}
.Productos-card:hover .card-media::after{
  transform: translateX(120%);
}

.card-body{
  padding: 1.4rem 1.4rem 1.6rem;
  display:flex;
  flex-direction:column;
  flex-grow:1;
}
.Productos-card h3{
  font-size:1.25rem;
  margin-bottom:0.3rem;
}
.precio{
  color: var(--orange-deep);
  font-weight:700;
  font-size:1.1rem;
}
.badge-descuento{
  display:inline-block;
  background: rgba(45,212,191,0.14);
  color:#2DD4BF;
  border:1px solid #2DD4BF;
  font-size:0.72rem;
  font-weight:600;
  padding:3px 9px;
  border-radius:999px;
  margin-bottom:0.6rem;
}

.precio-stock{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:1rem;
}
.precio-stock .precio{ margin-bottom:0; }
.stock-info{
  font-size:0.78rem;
  font-weight:600;
  letter-spacing:0.02em;
  padding:3px 9px;
  border-radius:999px;
}
.stock-info.ok{ color:#2DD4BF; border:1px solid #2DD4BF; }
.stock-info.bajo{ color:#FF7A45; border:1px solid #FF7A45; }
.stock-info.agotado{ color:#8a8f99; border:1px solid #8a8f99; }

.Productos-card.sold-out-card{
  opacity:0.55;
}
.Productos-card.sold-out-card .card-media img{
  filter: grayscale(0.6);
}
.Productos-card.sold-out-card .comprar-link button{
  background: #2a2f3a;
  color:#8a8f99;
  cursor:not-allowed;
}
.Productos-card.sold-out-card .comprar-link button:hover{
  background: #2a2f3a;
  transform:none;
}

.toggle-descripcion{
  margin-bottom:0.8rem;
  padding:.65rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border:1px solid var(--line);
  border-radius:8px;
  cursor:pointer;
  width:100%;
  font-family:'Poppins', sans-serif;
  font-size:0.85rem;
  font-weight:500;
  display:flex; align-items:center; justify-content:space-between;
  transition: background-color .25s ease;
}
.toggle-descripcion:hover{ background: #232838; }
.toggle-descripcion .chev{
  transition: transform .3s ease;
  font-size:0.75rem;
}
.toggle-descripcion.active .chev{ transform: rotate(180deg); }

.descripcion-oculta{
  max-height:0;
  overflow:hidden;
  transition: max-height .4s ease;
}
.descripcion-oculta.mostrar{
  max-height:320px;
}
.descripcion-larga{
  font-size:0.86rem;
  line-height:1.55;
  color:#9BA0AC;
  padding-bottom:1rem;
}

.Productos-card > a{
  text-decoration:none;
  display:block;
  margin-top:auto;
}
.Productos-card button:not(.toggle-descripcion){
  width:100%;
  padding:.85rem 1rem;
  background: var(--orange);
  color:#fff;
  border:none;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
  letter-spacing:0.03em;
  transition: background-color .25s ease, transform .2s ease;
}
.Productos-card button:not(.toggle-descripcion):hover{
  background: var(--orange-deep);
  transform: translateY(-2px);
}

/* ============================================
   CONTACTO / FORM (compartido con pedido.html)
   ============================================ */
#Contacto{
  background: var(--paper-deep);
  padding: 4.5rem 1.6rem;
  text-align:center;
}
#Contacto h2{ margin-bottom: 2rem; font-size:1.9rem; }

#contactanos{
  padding: 5rem 1.6rem;
  max-width:1200px;
  margin:0 auto;
}
.contacto-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:1.6rem;
}
@media (max-width:720px){
  .contacto-grid{ grid-template-columns:1fr; }
}
.contacto-card{
  background: var(--paper-deep);
  border:1px solid var(--line);
  border-radius:14px;
  padding:2rem;
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
}
.contacto-card h3{
  font-size:1.15rem;
  margin-bottom:0.6rem;
}
.contacto-card > p{
  color: var(--ink-soft);
  font-size:0.92rem;
  margin-bottom:1.4rem;
}
.direccion-texto{
  color: var(--ink-soft);
  font-size:0.92rem;
  line-height:1.6;
  margin-bottom:0.5rem !important;
}
.horario-texto{
  color: var(--ink-soft);
  font-size:0.85rem;
  margin-bottom:1.3rem !important;
}
.link-mapa{
  display:inline-block;
  font-size:0.9rem;
  font-weight:600;
  color: var(--teal);
  text-decoration:none;
  border:1px solid var(--teal);
  padding:0.65rem 1.3rem;
  border-radius:50px;
  transition: all .2s ease;
}
.link-mapa:hover{
  background: var(--teal);
  color:#fff;
}

form{
  max-width:560px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:1rem;
  background: var(--surface);
  padding:2rem;
  border-radius:14px;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
}
form label{ text-align:left; font-weight:600; color: var(--ink); font-size:0.9rem; }
input, textarea{
  padding:.85rem;
  border:1px solid var(--line);
  border-radius:8px;
  font-family:'Poppins', sans-serif;
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
input::placeholder, textarea::placeholder{ color:#767C89; }

input[type="file"]{
  background: var(--paper);
  color: var(--ink-soft);
  font-size:0.85rem;
  padding:0.7rem;
}
input[type="file"]::file-selector-button{
  background: var(--orange);
  color:#fff;
  border:none;
  padding:0.5rem 0.9rem;
  border-radius:6px;
  cursor:pointer;
  font-family:'Poppins', sans-serif;
  font-weight:600;
  margin-right:0.8rem;
  transition: background-color .2s ease;
}
input[type="file"]::file-selector-button:hover{ background: var(--orange-deep); }

.metodo-envio{
  display:flex;
  gap:10px;
  margin-bottom:0.4rem;
}
.metodo-btn{
  flex:1;
  padding:0.75rem;
  border-radius:8px;
  border:1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  font-family:'Poppins', sans-serif;
  font-weight:600;
  font-size:0.9rem;
  cursor:pointer;
  transition: all .2s ease;
}
.metodo-btn.activo{
  background: var(--orange);
  border-color: var(--orange);
  color:#fff;
}
.metodo-btn:not(.activo):hover{
  border-color: var(--orange);
  color: var(--ink);
}
  text-align:left;
  font-size:0.85rem;
  color: var(--ink-soft);
  background: var(--paper);
  border:1px solid var(--line);
  border-radius:8px;
  padding:0.8rem 1rem;
  margin-top:-0.2rem;
}
input:focus, textarea:focus{
  outline:none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,69,0,0.14);
}
textarea{ height:130px; resize:vertical; }
form button{
  background: var(--orange);
  color:#fff;
  border:none;
  padding:1rem;
  border-radius:8px;
  cursor:pointer;
  font-weight:600;
  transition: background-color .25s ease, transform .2s ease;
}
form button:hover{ background: var(--orange-deep); transform: translateY(-2px); }

/* ============================================
   FOOTER
   ============================================ */
footer{
  background: #06080C;
  color:#c9cbd1;
  text-align:center;
  padding:1.6rem;
  font-size:0.85rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media screen and (max-width: 640px){
  nav{ flex-wrap:wrap; gap:0.8rem; }
  .nav-links{ width:100%; justify-content:center; gap:1.4rem; margin-left:0; }
}
