:root{
  --bg:#fff; --text:#111; --muted:#585858; --stroke:#EAEAEA;
  --radius:16px; --shadow:0 2px 16px rgba(0,0,0,.06);
}

*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;background:var(--bg);color:var(--text);
  font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif;line-height:1.4}

/* HERO */
.hero{
  position:relative;
  background:url("../img/banner-arqfree.png") center/cover no-repeat;
  min-height:42vh; 
  display:flex; 
  align-items:center; 
  justify-content:center; 
  padding:6rem 1rem 5rem;
  text-align:center;
}
.hero::before{
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 0;
}
.hero__title{
  position:relative; 
  margin:0; 
  color:#fff; 
  text-align:center;
  font-size:clamp(24px,5.5vw,48px); 
  font-weight:700; 
  letter-spacing:.3px;
  z-index:1;
  padding:1rem 2rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* RESPONSIVE HERO */
@media (max-width:768px){
  .hero{
    min-height:35vh;
    padding:4rem 1rem 3rem;
  }
  .hero__title{
    padding:1rem 1.5rem;
    font-size:clamp(20px,6vw,32px);
    letter-spacing:.2px;
  }
}

@media (max-width:480px){
  .hero{
    min-height:30vh;
    padding:3rem 1rem 2rem;
  }
  .hero__title{
    padding:0.8rem 1rem;
    font-size:clamp(18px,6.5vw,28px);
  }
}

/* TABS */
.tabs{
  width:min(1200px,92%); margin:1rem auto 1.25rem; background:#fff;
  padding:.5rem; border:1px solid var(--stroke); border-radius:calc(var(--radius) + 4px);
  display:flex; gap:.5rem; box-shadow:var(--shadow);
}
.tab{
  flex:1 1 0; background:#fff; border:1px solid var(--stroke);
  border-radius:12px; padding:.9rem .75rem; font-weight:600; cursor:pointer;
  transition:transform .08s ease, background .2s ease, border-color .2s ease;
  text-align:center;
  font-size:14px;
}
.tab:hover{transform:translateY(-1px); border-color:#d9d9d9}
.tab.is-active{background:#95c11f; color:#fff; border-color:#95c11f}

/* RESPONSIVE TABS */
@media (max-width:768px){
  .tabs{
    flex-direction:column;
    gap:8px;
    padding:12px;
  }
  .tab{
    padding:16px 12px;
    font-size:16px;
    font-weight:500;
  }
}

@media (max-width:480px){
  .tab{
    padding:14px 10px;
    font-size:14px;
  }
}

/* FILTRO POR PAÍS */
.country-filter{
  width:min(1200px,92%); 
  margin:1rem auto; 
  display:flex; 
  align-items:center; 
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}
.country-filter__label{
  font-weight:600; 
  color:var(--text);
  font-size:14px;
  white-space:nowrap;
}
.country-filter__select{
  padding:8px 12px; 
  border:1px solid var(--stroke); 
  border-radius:8px; 
  background:#fff; 
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  transition:border-color .2s ease;
  min-width:150px;
}
.country-filter__select:hover{
  border-color:#95c11f;
}
.country-filter__select:focus{
  outline:none; 
  border-color:#95c11f; 
  box-shadow:0 0 0 3px rgba(149,193,31,.1);
}

/* RESPONSIVE FILTROS */
@media (max-width:768px){
  .country-filter{
    flex-direction:column;
    gap:16px;
    padding:0 1rem;
  }
  .country-filter__label{
    font-size:16px;
    text-align:center;
  }
  .country-filter__select{
    width:100%;
    max-width:280px;
    padding:12px 16px;
    font-size:16px;
  }
}

/* GRID */
.catalogo{
  width:min(1200px,92%); margin:.5rem auto 3rem; display:grid;
  grid-template-columns:repeat(10,1fr); gap:16px;
}
@media (max-width:1024px){ .catalogo{grid-template-columns:repeat(8,1fr); } .card{grid-column:span 4} }
@media (max-width:768px){ .catalogo{grid-template-columns:1fr; gap:20px} }
@media (max-width:640px){ .catalogo{grid-template-columns:repeat(4,1fr)} }
@media (max-width:480px){ .catalogo{grid-template-columns:1fr; gap:20px} }

/* CARD */
.card{
  grid-column:span 2; background:#fff; border:1px solid var(--stroke);
  border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
  display:flex; flex-direction:column;
}
@media (max-width:1024px){ .card{grid-column:span 4} }
@media (max-width:768px){ .card{grid-column:span 1; max-width:350px; margin:0 auto} }
@media (max-width:640px){ .card{grid-column:span 4} }
@media (max-width:480px){ .card{grid-column:span 1; max-width:350px; margin:0 auto} }

/* CARRUSEL MÓVIL */
.carousel-controls{
  display:none;
  justify-content:space-between;
  align-items:center;
  margin:1rem 0;
  padding:0 1rem;
  grid-column:1 / -1;
}

.carousel-btn{
  background:#95c11f;
  border:none;
  border-radius:50%;
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  cursor:pointer;
  transition:all .2s ease;
  box-shadow:0 2px 8px rgba(149,193,31,.3);
}

.carousel-btn:hover{
  background:#7ba01a;
  transform:scale(1.05);
}

.carousel-btn:disabled{
  background:#ccc;
  cursor:not-allowed;
  transform:scale(1);
  box-shadow:none;
}

.carousel-counter{
  font-size:14px;
  font-weight:600;
  color:var(--text);
  background:#fff;
  padding:8px 16px;
  border-radius:20px;
  border:1px solid var(--stroke);
  box-shadow:0 2px 4px rgba(0,0,0,.1);
}

/* CARRUSEL ACTIVO EN MÓVIL Y TABLET */
@media (max-width:768px){
  .catalogo.carousel-mode{
    overflow:hidden;
    position:relative;
  }
  
  .carousel-controls{
    display:flex;
    order:-1;
  }
  
  .catalogo.carousel-mode .card{
    display:none !important;
    animation:slideIn .3s ease;
    margin:0 auto;
  }
  
  .catalogo.carousel-mode .card.active{
    display:flex !important;
  }
}

@keyframes slideIn {
  from { 
    opacity:0; 
    transform:translateX(20px); 
  }
  to { 
    opacity:1; 
    transform:translateX(0); 
  }
}

.card__media{ 
  aspect-ratio:4/5; 
  background:#f7f7f7; 
  position:relative; 
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
.card__media img, .card__media video{ 
  width:100%; 
  height:100%; 
  object-fit:contain; 
  display:block;
}

.card__body{ padding:12px 14px 16px }
.card__title{ margin:2px 0 4px; font-size:16px }
.card__meta{ margin:0; color:var(--muted); font-size:14px }

/* FOOTER */
.footer{
  background: linear-gradient(135deg, #95c11f 0%, #7ba01a 50%, #669016 100%);
  margin-top:4rem;
  padding:2rem 1rem;
  text-align:center;
}
.footer__content{
  width:min(1200px,92%);
  margin:0 auto;
}
.footer__text{
  margin:0 0 8px;
  color:#fff;
  font-size:18px;
  font-weight:600;
  letter-spacing:0.5px;
}
.footer__copyright{
  margin:0;
  color:#fff;
  font-size:14px;
  opacity:0.9;
}

/* RESPONSIVE FOOTER */
@media (max-width:768px){
  .footer{
    padding:1.5rem 1rem;
    margin-top:3rem;
  }
  .footer__text{
    font-size:16px;
    margin-bottom:6px;
  }
  .footer__copyright{
    font-size:13px;
  }
}

@media (max-width:480px){
  .footer{
    padding:1.2rem 1rem;
  }
  .footer__text{
    font-size:14px;
    line-height:1.3;
  }
  .footer__copyright{
    font-size:12px;
  }
}
