/* ============================================================
   FUENTES — cuando subas la subcarpeta /fonts/ descomenta esto
   y sustituye system-ui por el nombre de tu fuente.
============================================================ */

@font-face{
  font-family:'Nunito';
  src:url('fonts/Nunito-VariableFont_wght.ttf') format('ttf');
  font-weight:400;
  font-display:swap;
}


:root{
  --gp-black:#111111;
  --gp-black-hover:#222222;
  --gp-white:#F7F7F4;
  --gp-white-text:#FFFFFF;
  --gp-gray:#666666;
  --gp-blue:#0077C8;
  --gp-yellow:#FFCC00;
  --gp-border-dark:rgba(34,34,34,0.08);
  --side-w:60px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:Nunito,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  background:var(--gp-white);
  color:var(--gp-black);
  font-size:16px;
  line-height:1.6;
}
a{color:var(--gp-blue);text-decoration:none;}
a:hover{color:var(--gp-black);text-decoration:underline;}
img{max-width:100%;display:block;}

/* ===================== HEADER ===================== */
header.site-header{
  background:var(--gp-black);
  padding:18px 24px;
  display:flex;
  align-items:center;
  justify-content:center;
  position:sticky;
  top:0;
  z-index:50;
}
header.site-header img{
  height:38px;
  width:auto;
  transition:height 0.2s ease;
}
@media (min-width:769px){
  header.site-header img{
    height:60px;
  }
}

.flag-bar-mobile{
  display:none;
  width:100%;
  height:6px;
}
.flag-bar-mobile span{flex:1;}
@media (max-width:768px){
  .flag-bar-mobile{display:flex;}
}

/* ===================== LAYOUT BANDERA (desktop) ===================== */
.banderas-layout{display:flex;width:100%;}
.bandera-left-white,.bandera-right-yellow{display:none;}
.bandera-left-blue,.bandera-right-blue{display:none;}
@media (min-width:769px){
  .bandera-left-white{display:block;width:var(--side-w);background:var(--gp-white);}
  .bandera-left-blue{display:block;width:var(--side-w);background:var(--gp-blue);opacity:.22;}
  .bandera-right-blue{display:block;width:var(--side-w);background:var(--gp-blue);opacity:.22;}
  .bandera-right-yellow{display:block;width:var(--side-w);background:var(--gp-yellow);opacity:.55;}
  .center-content{box-shadow:-1px 0 0 0 var(--gp-border-dark),1px 0 0 0 var(--gp-border-dark);}
}
.center-content{
  flex:1;
  max-width:1000px;
  margin:0 auto;
  background:var(--gp-white);
  min-width:0;
}

/* ===================== HERO ===================== */
.hero{
  position:relative;
  text-align:center;
  padding:64px 20px 56px;
  overflow:hidden;
}
.hero .teide-bg{
  position:absolute;
  bottom:0;left:0;right:0;
  height:140px;
  z-index:0;
  pointer-events:none;
}
.hero-inner{
  position:relative;
  z-index:1;
  max-width:680px;
  margin:0 auto;
}
@media (min-width:769px){
  .hero-inner{
    max-width:900px;
  }
}
.hero h1{
  font-size:clamp(1.6rem,4.2vw,2.4rem);
  font-weight:700;
  margin:0 0 10px;
  animation:fadeUp .7s ease both;
}
.hero h2{
  font-size:clamp(1.1rem,2.5vw,1.5rem);
  font-weight:400;
  color:var(--gp-gray);
  margin:0 0 24px;
  animation:fadeUp .7s ease 0.05s both;
}
.hero p{
  margin:0 0 16px;
  font-size:16px;
  color:var(--gp-black);
  animation:fadeUp .7s ease .1s both;
}
.hero strong{font-weight:600;}

.cta-btn{
  display:inline-block;
  margin-top:18px;
  background:var(--gp-black);
  color:var(--gp-white-text);
  padding:14px 32px;
  border-radius:8px;
  font-weight:600;
  font-size:16px;
  text-decoration:none;
  transition:background .15s ease,transform .15s ease;
  animation:fadeUp .7s ease .2s both;
}
.cta-btn:hover{background:var(--gp-black-hover);transform:translateY(-2px);text-decoration:none;color:var(--gp-white-text);}

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

/* ===================== PRODUCTOS ===================== */
.shop-teaser{padding:8px 20px 64px;}
.shop-teaser h2{
  text-align:center;
  font-size:clamp(1.2rem,3vw,1.6rem);
  font-weight:600;
  margin:0 0 32px;
}
.product-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
  max-width:900px;
  margin:0 auto;
}
@media (min-width:600px){
  .product-grid{grid-template-columns:repeat(4,1fr);}
}
.product-card{
  background:var(--gp-white-text);
  border-radius:10px;
  overflow:hidden;
  border:1px solid var(--gp-border-dark);
  text-decoration:none;
  color:var(--gp-black);
  display:block;
  transition:transform .2s ease,box-shadow .2s ease;
}
.product-card:hover{
  transform:translateY(-6px);
  box-shadow:0 12px 24px rgba(17,17,17,0.12);
  text-decoration:none;
}
.product-img-wrap{
  width:100%;
  aspect-ratio:3/4;
  overflow:hidden;
  background:var(--gp-white);
}
.product-img-wrap img{
  width:100%;height:100%;
  object-fit:cover;
  transition:transform .3s ease;
}
.product-card:hover .product-img-wrap img{transform:scale(1.06);}
.product-name{
  padding:10px 12px 14px;
  font-size:13.5px;
  font-weight:600;
  color:var(--gp-black);
  line-height:1.3;
}

/* ===================== PÁGINAS DE TEXTO (cookies, legales) ===================== */
.page-content{padding:48px 20px 64px;max-width:760px;margin:0 auto;}
.page-content h1{font-size:clamp(1.5rem,3.6vw,2rem);margin:0 0 18px;}
.page-content h2{font-size:1.2rem;margin:32px 0 14px;}
.page-content p{margin:0 0 14px;}

.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:18px 0;}
.cookie-table{width:100%;border-collapse:collapse;font-size:13.5px;min-width:560px;}
.cookie-table th{
  background:var(--gp-black);color:var(--gp-white-text);
  text-align:left;padding:10px 12px;font-weight:600;
}
.cookie-table td{padding:10px 12px;border-bottom:1px solid var(--gp-border-dark);}
.cookie-table tr:nth-child(even) td{background:rgba(0,0,0,0.02);}

.manage-row{
  display:flex;justify-content:space-between;align-items:center;
  padding:10px 0;font-size:14px;
  border-bottom:1px solid var(--gp-border-dark);
}
.status-text{font-size:13px;color:var(--gp-gray);}

/* ===================== FOOTER ===================== */
footer.site-footer{
  background:var(--gp-black);
  color:var(--gp-gray);
  padding:40px 20px 28px;
  font-size:14px;
}
.footer-inner{max-width:900px;margin:0 auto;text-align:center;}
footer.site-footer a{color:var(--gp-blue);}
footer.site-footer a:hover{color:var(--gp-yellow);}
.footer-contact{margin-bottom:18px;color:var(--gp-gray);}
.footer-policies{margin-bottom:20px;}
.footer-policies a{margin:0 6px;}
.footer-policies .sep{color:var(--gp-gray);}
.footer-social{
  display:flex;
  justify-content:center;
  gap:16px;
  margin-bottom:20px;
}
.footer-social a{
  width:36px;height:36px;
  border-radius:50%;
  background:var(--gp-blue);
  display:flex;align-items:center;justify-content:center;
  transition:background .15s ease;
}
.footer-social a:hover{background:#0066A8;}
.footer-social svg{width:18px;height:18px;fill:var(--gp-white-text);}
.footer-copy{color:var(--gp-gray);font-size:13px;}

/* ===================== COOKIE BANNER ===================== */
#cookie-banner{
  position:fixed;
  left:0;right:0;bottom:0;
  background:var(--gp-black);
  color:var(--gp-white-text);
  padding:20px;
  z-index:999;
  display:none;
  box-shadow:0 -4px 18px rgba(0,0,0,.25);
  animation:slideUp .4s ease both;
}
@keyframes slideUp{from{transform:translateY(100%);}to{transform:translateY(0);}}
.cookie-inner{
  max-width:900px;margin:0 auto;
  display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;
}
.cookie-text{flex:1 1 320px;font-size:13.5px;color:var(--gp-white);line-height:1.5;}
.cookie-text a{color:var(--gp-yellow);}
.cookie-actions{display:flex;flex-wrap:wrap;gap:10px;}
.cookie-actions button{
  border:none;cursor:pointer;border-radius:6px;
  padding:10px 18px;font-size:13.5px;font-weight:600;
  transition:background .15s ease;
}
.btn-accept{background:var(--gp-yellow);color:var(--gp-black);}
.btn-accept:hover{background:#E6B800;}
.btn-reject{background:transparent;color:var(--gp-white-text);border:1px solid var(--gp-gray);}
.btn-reject:hover{border-color:var(--gp-white-text);}
.btn-custom{background:var(--gp-blue);color:var(--gp-white-text);}
.btn-custom:hover{background:#0066A8;}

#cookie-panel{
  display:none;
  max-width:900px;margin:14px auto 0;
  border-top:1px solid var(--gp-black-hover);
  padding-top:14px;
}
.cookie-row{
  display:flex;justify-content:space-between;align-items:center;
  padding:8px 0;font-size:13.5px;color:var(--gp-white);
  border-bottom:1px solid var(--gp-black-hover);
}
.switch{position:relative;width:42px;height:22px;flex:0 0 auto;}
.switch input{opacity:0;width:0;height:0;}
.slider{
  position:absolute;inset:0;background:var(--gp-gray);border-radius:22px;cursor:pointer;transition:.2s;
}
.slider:before{
  content:'';position:absolute;width:16px;height:16px;left:3px;top:3px;
  background:var(--gp-white-text);border-radius:50%;transition:.2s;
}
.switch input:checked + .slider{background:var(--gp-blue);}
.switch input:checked + .slider:before{transform:translateX(20px);}
.switch input:disabled + .slider{opacity:.5;cursor:not-allowed;}
#cookie-panel-save{margin-top:12px;}

@media (max-width:520px){
  .cookie-inner{flex-direction:column;align-items:stretch;}
  .cookie-actions{justify-content:stretch;}
  .cookie-actions button{flex:1;}
}