:root {
  --green: #2F6B4F;
  --orange: #F47A20;
  --cream: #F4EFE6;
  --dark: #333;
  --white: #ffffff;
}
html {
  scroll-behavior: smooth;
}
/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* BODY */
body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
}
/*TIPOGRAFIAS*/
h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--green);
  font-size: 1.4rem;
  margin-bottom: 2px;
}
/* CONTENEDOR GLOBAL */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}
.txt-h3 {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 10px;
}
.destacat p {
  margin-bottom: 25px;
  line-height: 1.8;
}
/* HEADER */
.top-header {
  text-align: center;
  padding: 20px 0;
}
.top-header img {
  display: block;
  margin: auto;
  max-width: 100%;
  height: auto;
  max-height: 180px;
}
.claim {
  font-weight: 300;
  color: var(--orange);
}
.fa-instagram {
  color: #E4405F;
}

.fa-facebook {
  color: #1877F2;
}
/* NAVBAR */
.navbar {
  background: var(--green);
  position: relative;
}
.nav-menu {
  flex-wrap: wrap;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 14px;
}
.nav-menu.active {
  display: flex;
}
.menu-toggle {
  border: none;
  background: transparent;
  appearance: none;
  display: none;
  font-size: 23px;
  color: white;
  padding: 12px 20px;
  cursor: pointer;
  text-align: right;
}
.nav-menu li {
  margin: 0 18px;
}
.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 5px;
  transition: 0.2s;
}
.nav-menu a.active,
.nav-menu a:hover {
  border-bottom: 3px solid var(--orange);
}
/*CABECERA*/
.cabecera-pagina {
  text-align: center;
  padding: 40px 20px 20px;
}
.cabecera-pagina h1 {
  font-family: 'Poppins', sans-serif;
  color: var(--green);
  font-size: 2.4rem;
}
/* HERO */
.hero {
  background: url('../img/bg.jpg') center/cover no-repeat;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding-left: 8%;
  color: var(--white);
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}
.hero-content {
  position: relative;
  max-width: 600px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.45);
  padding: 10px;
}
.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  margin-bottom: 15px;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 25px;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-interna {
  justify-content: center;
  text-align: center;
  padding-left: 0;
  min-height: 250px;
}
.seccions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 50px 0;
}

.seccio {
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.seccio h3 {
  margin-bottom: 8px;
}

.seccio p {
  margin: 0;
  line-height: 1.7;
}
/* BOTONES */
.btn {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}
.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: #d96514;
}
.btn-secondary {
  background: var(--green);
  color: var(--white);
}
.btn-secondary:hover {
  background: #24563f;
}
.btn-whatsapp {
  background: #25D366;
  color: white;
}
.btn-whatsapp:hover {
  background: #1ebd5a;
}

.cta-aparador {
  text-align: center;
  margin-top: 50px;
  padding: 20px;
}

.cta-text {
  font-family: 'Nunito', sans-serif;
  color: #555;
  font-size: 1rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.cta-text.petit {
  margin-top: 35px;
}

.btn-whatsapp,
.btn-ubicacio,
.btn-volver {

  display: inline-block;
  padding: 14px 26px;
  margin: 10px 8px;
  border-radius: 14px;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: 0.25s;
  border: none;
  cursor: pointer;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
}

.btn-ubicacio {
  background: var(--green);
  color: white;
}

.btn-ubicacio:hover {
  transform: translateY(-2px);
}

.btn-contacte {
  display: inline-block;
  padding: 12px 20px;
  margin-top: 10px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  background: #444;
  color: white;
  transition: 0.3s;
}

.btn-contacte:hover {
  opacity: 0.9;
}

.contacte-card{
  max-width: 700px;
  margin: 40px auto;
  background: white;
  padding: 35px;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contacte-text{
  text-align: center;
  font-size: 1.05rem;
  margin-bottom: 25px;
  color: #444;
  line-height: 1.7;
}

.btn-whatsapp-contacte{
  display: block;
  width: fit-content;
  margin: 0 auto 25px auto;
  background: #25D366;
  color: white;
  padding: 14px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}

.btn-whatsapp-contacte:hover{
  transform: translateY(-2px);
}

.separator{
  text-align: center;
  margin: 20px 0;
  color: #888;
  font-weight: 600;
}

.formulari-contacte{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.camp-form{
  display: flex;
  flex-direction: column;
}

.camp-form label{
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

.camp-form input,
.camp-form textarea{
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #ddd;
  font-size: 1rem;
  font-family: inherit;
  transition: 0.3s;
}

.camp-form input:focus,
.camp-form textarea:focus{
  outline: none;
  border-color: #c59d5f;
  box-shadow: 0 0 0 4px rgba(197,157,95,0.15);
}

.btn-enviar{
  background: #222;
  color: white;
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.btn-enviar:hover{
  transform: translateY(-2px);
  opacity: 0.95;
}

.item-actions{
  margin-top: 12px;
}

.btn-share{

  width: 100%;
  border: none;

  background: var(--green);
  color: white;

  padding: 9px 12px;

  border-radius: 12px;

  cursor: pointer;

  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;

  transition: 0.25s;
}

.btn-share:hover{
  background: #24563f;
  transform: translateY(-2px);
}

.btn-share:active{
  transform: scale(0.97);
}

/* FEATURES */
.features {
  display: flex;
  justify-content: center;
  gap: 40px;
  padding: 60px 10%;
  text-align: center;
}
.feature {
  max-width: 300px;
}
.feature h3 {
  margin-bottom: 10px;
}
/* PRODUCTS */
.products {
  text-align: center;
  padding: 60px 10%;
}
.products h2 {
  font-family: 'Poppins', sans-serif;
  color: var(--green);
  margin-bottom: 35px;
}
.product-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 35px;
}
.product {
  background: var(--white);
  padding: 18px;
  border-radius: 12px;
  width: 250px;
  transition: 0.25s;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}
.product img {
  transition: transform 0.4s;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}
.product:hover img {
  transform: scale(1.05);
}
/*Bambi mapa*/
.bambi-mapa {
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    text-align: center;
}
.bambi-mapa h3 {
    color: var(--green);
    margin-bottom: 0.5em;
}
.bambi-mapa p, .bambi-mapa ul {
    color: var(--text);
    margin: 0 0 1em 0;
}
.bambi-mapa ul {
    list-style: none;
    padding: 0;
    font-weight: 600;
}
.bambi-mapa iframe {
    width: 100%;
    height: 450px;
    border-radius: 8px;
}
/* Aparador dinámico */
.selector-marcas,
#selector-temporada {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  min-height: 120px;
}
.boton-marca {
  width: 180px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff; /* opcional pero recomendado */
  border-radius: 12px;
  overflow: hidden;
}

.boton-marca img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.boton-marca:hover,
.boton-temporada:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.boton-temporada {
  padding: 8px 16px;
  font-weight: 400;
  font-size: 20px;
  color: var(--white);
  border-radius: 8px;
  border: 2px solid var(--green);
  background: var(--orange);
  cursor: pointer;
  transition: 0.3s;
}
.grid-aparador {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
  gap: 25px;
  justify-items: center;
}
.grid-aparador img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.4s ease;
}
.grid-aparador img:hover {
  transform: scale(1.05);
}
.item {
  background: #fff;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  width: 100%;
  max-width: 220px;
}
.item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: transform 0.3s;
}
.item:hover img {
  transform: scale(1.04);
}
.btn-volver {
  display: block;
  margin: 30px auto 0;
  padding: 10px 25px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
}
.btn-volver:hover {
  background: #24563f;
}
/* VISIT */
.visit {
  background: var(--green);
  color: var(--white);
  text-align: center;
  padding: 60px 10%;
}
.visit h2 {
  margin-bottom: 15px;
}

/* BLOG */
.article-img{
  width: 100%;
  max-width: 900px;
  height: auto;
  display: block;
  margin: 0 auto 30px;
  border-radius: 18px;
  object-fit: cover;
}

.grid-blog{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:30px;
  margin-top:50px;
}

.card-blog img,
.blog-article img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 18px;
}

.card-blog:hover{
  transform:translateY(-6px);
}

.blog-content{
  padding:25px;
}

.blog-tag{
  display:inline-block;
  background:#f3efe7;
  color:#7b5d3d;
  padding:6px 14px;
  border-radius:999px;
  font-size:0.8rem;
  font-weight:700;
  margin-bottom:15px;
}

.blog-content h2{
  font-size:1.3rem;
  margin-bottom:15px;
}

.blog-content p{
  color:#666;
  line-height:1.7;
  margin-bottom:25px;
}

.btn-blog{
  display:inline-block;
  padding:12px 22px;
  border-radius:14px;
  text-decoration:none;
  background:#222;
  color:#fff;
  font-weight:700;
  transition:0.3s;
}

.btn-blog:hover{
  opacity:0.85;
}

.cta-blog{
  margin-top:80px;
  text-align:center;
  background:#f8f5ef;
  padding:50px 30px;
  border-radius:28px;
}

.cta-blog h2{
  margin-bottom:15px;
}

.cta-blog p{
  max-width:600px;
  margin:0 auto 30px;
  color:#666;
}

.cta-blog-buttons{
  display:flex;
  justify-content:center;
  gap:15px;
  flex-wrap:wrap;
}

.btn-secundari{
  display:inline-block;
  padding:14px 24px;
  border-radius:16px;
  text-decoration:none;
  background:#fff;
  color:#222;
  font-weight:700;
  border:1px solid #ddd;
}

/* FOOTER */
footer {
  background: #e8dfd2;
  text-align: center;
  padding: 25px;
  padding-bottom: 90px;
}
.footer-links {
  margin-top: 10px;
}
.footer-links a {
  margin: 0 10px;
  text-decoration: none;
  color: var(--green);
  font-weight: 600;
}
.footer-links a:hover {
  color: var(--orange);
}
footer p a[href^="tel"] {
    color: #2F6B4F;
    font-weight: 700;
    text-decoration: none;
}

footer p a[href^="tel"]:hover {
    text-decoration: underline;
}
.brands {
  text-align: center;
  padding: 60px 10%;
}
.brands h2 {
  color: var(--green);
  margin-bottom: 30px;
  font-family: 'Poppins',sans-serif;
}
.brand-logos {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.brand-logos img {
  height: 50px;
  opacity: 0.7;
  transition: 0.3s;
}
.brand-logos img:hover {
  opacity: 1;
  transform: scale(1.05);
}
.whatsapp-float {
  animation: whatsappPulse 2s infinite;
  transition: 0.3s all ease;
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #25D366;
  color: white;
  font-size: 26px;
  width: 55px;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 999;
}
@keyframes whatsappPulse {
  
  0% {
    box-shadow: 0 0 0 0 rgba(37,211,102,0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37,211,102,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37,211,102,0);
  }
}
.whatsapp-float:hover {
  background: #1ebd5a;
  transform: scale(1.08);
  position: fixed;
  right: 20px;
  bottom: 30px;
  z-index: 1000;
}
.seo-local {
  padding: 60px 10%;
  background: #fff;
  text-align: center;
}
.seo-local h2 {
  color: var(--green);
  margin-bottom: 20px;
  font-family: 'Poppins',sans-serif;
}
.seo-local p {
  max-width: 800px;
  margin: auto;
  margin-bottom: 15px;
}
.section {
  padding-top: 60px;
  padding-bottom: 60px;
  scroll-margin-top: 80px;
}
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #ffffff;
  display: none;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  object-fit: cover;
  z-index: 9999;
  touch-action: none;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  user-select: none;
  transition: transform 0.2s ease;
  pointer-events: auto;
  touch-action: none;
}

.lightbox img.zoom {
  max-width: auto;
  max-height: auto;
  width: 100%;
  height: 100%;
  will-change: transform; /* 🔥 suavidad real */
  object-fit: cover;
}

.lightbox-slider {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 90%;
  height: 80%;
  overflow: hidden;
}

.lightbox-slider .img {
  position: relative; /* 🔥 clave */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.img.actual {
  transform: translateX(0);
}

.img.siguiente {
  transform: translateX(100%);
}

.lightbox-indicador {
  position: absolute;
  bottom: 15px;
  color: white;
  font-size: 14px;
  background: rgba(0,0,0,0.5);
  padding: 5px 10px;
  border-radius: 10px;
}
@keyframes zoomLightbox {
  from {
    transform: scale(0.85);
  }
  to {
    transform: scale(1);
  }
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  color: black;
  z-index: 10000;
  cursor: pointer;
}

.camp-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.camp-check input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

.camp-check label {
  margin: 0;
}

.camp-check a {
  color: var(--color-principal);
  font-weight: 600;
  text-decoration: underline;
}
/* MOBILE */
@media (max-width:768px) {

  .seccions {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .container {
    max-width: 95%;
    padding: 10px;
  }
  .selector-marcas, #selector-temporada {
    flex-direction: column;
    gap: 15px;
    align-items: center;
    /* asegura que se vean centrados */
  }
  .boton-marca, .boton-temporada {
    width: 70%;
    /* o auto si quieres que se adapten al contenido */
    display: flex;
    justify-content: center;
  }
  .top-header img {
    max-height: 100px;
  }
  .navbar {
    background: var(--green);
    padding: 0;
  }
  .menu-toggle {
    display: block;
    width: auto;
    padding: 5px 10px;
    text-align: right;
  }
  .nav-menu {
    display: none;
    flex-direction: column;
    text-align: center;
    width: 100%;
    background: var(--green);
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu li {
    margin: 12px 0;
  }
  .nav-menu a {
    display: block;
    padding: 12px 0;
  }
  .hero {
    padding: 60px 20px;
    min-height: auto;
    text-align: center;
  }
  .features {
    flex-direction: column;
    align-items: center;
  }
  .product-grid {
    flex-direction: column;
    align-items: center;
  }
  .hero h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 15px;
  }
}