@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600&display=swap');

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Manrope',sans-serif;
}

body{
  background:#f8fafc;
  color:#1e293b;
  font-size:13px;
}

.container{
  max-width:1200px;
  margin:auto;
  padding:0 24px;
}

/* HEADER */

.header{
  background:#ffffff;
  border-bottom:1px solid #e5e7eb;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:95px;
  gap:30px;
}

/* LOGO MÁS GRANDE */

.logo{
  height:95px;
}

/* BUSCADOR MÁS FINO */

.search-area{
  flex:1;
  display:flex;
  max-width:480px;
}

.search-area input{
  flex:1;
  padding:8px 12px;
  border:1px solid #e2e8f0;
  border-radius:8px 0 0 8px;
  font-size:13px;
}

.search-area button{
  padding:8px 12px;
  border:1px solid #e2e8f0;
  border-left:none;
  background:#ff6b00;
  color:white;
  border-radius:0 8px 8px 0;
  cursor:pointer;
  font-size:12px;
}

/* NAV BUTTONS MÁS CHICOS */

.nav-area{
  display:flex;
  gap:16px;
  align-items:center;
}

.nav-area a{
  text-decoration:none;
  font-size:12px;
  font-weight:500;
  transition:.2s ease;
}

.btn-primary{
  background:#ff6b00;
  color:white;
  padding:5px 12px;
  border-radius:8px;
}

.btn-primary:hover{
  background:#ff8126;
}

.btn-outline{
  border:1px solid #e5e7eb;
  color:#1e293b;
  padding:5px 10px;
  border-radius:8px;
}

.btn-outline:hover{
  background:#f1f5f9;
}

.btn-link{
  color:#64748b;
}

.btn-link:hover{
  color:#1e293b;
}

/* SLIDER */

.swiper-slide{
  height:360px;
  background-size:cover;
  background-position:center;
}

/* CATEGORÍAS SOLO TEXTO */

.categories{
  padding:60px 0;
  text-align:center;
}

.categories-grid{
  margin-top:25px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px;
}

.category{
  background:#ffffff;
  border:1px solid #e5e7eb;
  padding:8px 18px;
  border-radius:20px;
  font-size:12px;
  cursor:pointer;
  transition:.2s ease;
}

.category:hover{
  background:#ff6b00;
  color:white;
  border-color:#ff6b00;
}

/* PRODUCTOS MÁS FINOS */

.products{
  padding-bottom:80px;
}

.products-grid{
  margin-top:25px;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
  gap:20px;
}

.product-card{
  background:white;
  border-radius:12px;
  overflow:hidden;
  border:1px solid #f1f5f9;
  transition:.2s ease;
}

.product-card:hover{
  box-shadow:0 8px 18px rgba(0,0,0,.05);
}

.product-card img{
  width:100%;
  height:160px;
  object-fit:cover;
}

.product-info{
  padding:12px;
}

.product-info h3{
  font-size:13px;
  font-weight:500;
}

.price{
  color:#ff6b00;
  font-weight:600;
  margin:5px 0;
  font-size:13px;
}

.product-actions{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.btn-view{
  background:#111;
  color:white;
  padding:4px 10px;
  border-radius:8px;
  font-size:11px;
  text-decoration:none;
}

.btn-whatsapp{
  background:#25d366;
  color:white;
  padding:4px 8px;
  border-radius:50%;
  text-decoration:none;
  font-size:11px;
}

/* RESPONSIVE */

@media(max-width:992px){
  .header-inner{
    flex-wrap:wrap;
    height:auto;
    padding:20px 0;
  }

  .logo{
    height:75px;
  }

  .search-area{
    width:100%;
  }

  .nav-area{
    width:100%;
    justify-content:center;
  }
}

@media(max-width:600px){
  .logo{
    height:65px;
  }

  .swiper-slide{
    height:240px;
  }

  .products-grid{
    grid-template-columns:repeat(2,1fr);
  }
}
.categories-grid{
  margin-top:25px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px;
}

.category{
  background:#ffffff;
  border:1px solid #e5e7eb;
  padding:10px 20px;
  border-radius:30px;
  font-size:12px;
  font-weight:500;
  cursor:pointer;
  transition:.2s ease;
  display:flex;
  align-items:center;
  justify-content:center;
}

.category:hover{
  background:#ff6b00;
  color:white;
  border-color:#ff6b00;
}

/* ===== BUSCADOR FIX PREMIUM ===== */

.search-area{
  flex:1;
  display:flex;
  max-width:480px;
  position:relative;
}

.search-area input{
  width:100%;
  padding:9px 36px 9px 14px;
  border:1px solid #dbe1e8;
  border-radius:25px;
  font-size:13px;
  background:#ffffff;
  outline:none;
  transition:.2s ease;
}

.search-area input:focus{
  border-color:#ff6b00;
}

.search-area button{
  position:absolute;
  right:4px;
  top:50%;
  transform:translateY(-50%);
  background:#ff6b00;
  border:none;
  width:30px;
  height:30px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.search-area button i{
  font-size:14px;
  color:white;
}

/* Responsive buscador */

@media(max-width:992px){
  .search-area{
    max-width:100%;
  }
}


/* ===== FIX ICONO BUSCADOR DEFINITIVO ===== */

.search-area button{
  position:absolute;
  right:5px;
  top:50%;
  transform:translateY(-50%);
  background:#ff6b00;
  border:none;
  width:28px;
  height:28px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.search-area button svg{
  display:block;
}


/* ===== FIX BUSCADOR DEFINITIVO ===== */

.search-area{
  position:relative;
}

.search-area input{
  padding-right:40px; /* espacio para la lupa */
  border:1px solid #d0d7de;
  border-radius:25px;
  font-size:13px;
  height:34px;
}

.search-area button{
  position:absolute;
  right:4px;
  top:50%;
  transform:translateY(-50%);
  width:26px;
  height:26px;
  border-radius:50%;
  background:#ff6b00;
  border:none;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:10; /* CLAVE */
  cursor:pointer;
}

.search-area button svg{
  width:14px;
  height:14px;
  stroke:#ffffff;
  fill:none;
}


.search-area button{
  position:absolute;
  right:4px;
  top:50%;
  transform:translateY(-50%);
  width:28px;
  height:28px;
  border-radius:50%;
  background:#ff6b00;
  border:none;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:5;
}

.search-area button svg{
  display:block;
}


/* ===== AGRANDAR LUPA ===== */

.search-area button{
  width:34px;
  height:34px;
}

.search-area button svg{
  width:18px;
  height:18px;
  stroke-width:2.5;
}


/* ===== HEADER NARANJA DEGRADADO PREMIUM ===== */

.header{
  background: linear-gradient(135deg,#d35400,#ff6b00);
  border-bottom:none;
}

.header-inner{
  height:95px;
}

.logo{
  height:95px;
}

.nav-area a{
  color:white;
}

.btn-outline{
  border:1px solid rgba(255,255,255,0.6);
  color:white;
}

.btn-outline:hover{
  background:rgba(255,255,255,0.15);
}

.btn-link{
  color:rgba(255,255,255,0.85);
}

.btn-link:hover{
  color:white;
}

.search-area input{
  border:none;
}

.search-area input:focus{
  outline:none;
}


/* ===== BUSCADOR SIN CIRCULO ===== */

.search-area input{
  border-radius:25px;
  padding:9px 32px 9px 14px;
  border:none;
}

.search-area button{
  background:none;
  width:auto;
  height:auto;
  right:10px;
}

.search-area button svg{
  width:16px;
  height:16px;
  stroke:white;
}


/* ===== BOTONES SOBRE HEADER NARANJA ===== */

.btn-primary{
  background:white;
  color:#d35400;
  padding:6px 16px;
  border-radius:8px;
  font-weight:600;
}

.btn-primary:hover{
  background:#fff5ee;
}

.btn-outline{
  background:transparent;
  border:1px solid white;
  color:white;
  padding:5px 14px;
  border-radius:8px;
}

.btn-outline:hover{
  background:rgba(255,255,255,0.15);
}

.btn-link{
  color:white;
}

.btn-link:hover{
  text-decoration:underline;
}


/* ===== BOTONES PREMIUM SOBRE HEADER NARANJA ===== */

.btn-primary{
  background:#1f2937;
  color:white;
  padding:6px 16px;
  border-radius:8px;
  font-weight:600;
}

.btn-primary:hover{
  background:#111827;
}

.btn-outline{
  background:rgba(255,255,255,0.2);
  border:1px solid rgba(255,255,255,0.4);
  color:white;
  padding:5px 14px;
  border-radius:8px;
}

.btn-outline:hover{
  background:rgba(255,255,255,0.35);
}

.btn-link{
  color:white;
  opacity:0.9;
}

.btn-link:hover{
  opacity:1;
  text-decoration:underline;
}


/* ===== BOTONES PREMIUM SOBRE HEADER NARANJA ===== */

.btn-primary{
  background:#1f2937;
  color:white;
  padding:6px 16px;
  border-radius:8px;
  font-weight:600;
}

.btn-primary:hover{
  background:#111827;
}

.btn-outline{
  background:rgba(255,255,255,0.2);
  border:1px solid rgba(255,255,255,0.4);
  color:white;
  padding:5px 14px;
  border-radius:8px;
}

.btn-outline:hover{
  background:rgba(255,255,255,0.35);
}

.btn-link{
  color:white;
  opacity:0.9;
}

.btn-link:hover{
  opacity:1;
  text-decoration:underline;
}


/* ===== HEADER BOTONES LIMPIOS DEFINITIVOS ===== */

.nav-area{
  display:flex;
  gap:22px;
  align-items:center;
}

.nav-area a{
  font-size:13px;
  font-weight:500;
  text-decoration:none;
  padding:6px 10px;
  transition:all .2s ease;
}

/* PUBLICAR */

.btn-primary{
  background:#1f2937;
  color:white;
  padding:6px 16px;
  border-radius:8px;
}

.btn-primary:hover{
  background:#111827;
}

/* INGRESAR Y AYUDA */

.btn-outline,
.btn-link{
  background:none;
  color:white;
}

.btn-outline:hover,
.btn-link:hover{
  opacity:0.75;
}


/* ===== HERO PREMIUM ===== */

.hero-slide{
  position:relative;
  height:520px;
  background-size:cover;
  background-position:center;
  display:flex;
  align-items:center;
  justify-content:center;
}

.hero-slide::before{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.45);
}

.hero-content{
  position:relative;
  text-align:center;
  color:white;
  max-width:700px;
  padding:20px;
}

.hero-content h2{
  font-size:32px;
  font-weight:600;
  margin-bottom:12px;
}

.hero-content p{
  font-size:16px;
  margin-bottom:20px;
}

.hero-btn{
  background:white;
  color:#d35400;
  padding:10px 22px;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
}

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

/* RESPONSIVE HERO */

@media(max-width:992px){
  .hero-slide{
    height:420px;
  }

  .hero-content h2{
    font-size:24px;
  }

  .hero-content p{
    font-size:14px;
  }
}

@media(max-width:600px){
  .hero-slide{
    height:320px;
  }

  .hero-content h2{
    font-size:20px;
  }

  .hero-content p{
    font-size:13px;
  }
}


/* ===== HERO MÁS IMPACTANTE ===== */

.hero-slide{
  height:650px;   /* antes 520px */
}

@media(max-width:992px){
  .hero-slide{
    height:500px;
  }
}

@media(max-width:600px){
  .hero-slide{
    height:380px;
  }
}


/* ===== HERO FULL RESPONSIVE REAL ===== */

.hero-slide{
  height:75vh;
  min-height:450px;
}

@media(max-width:992px){
  .hero-slide{
    height:60vh;
    min-height:380px;
  }
}

@media(max-width:600px){
  .hero-slide{
    height:50vh;
    min-height:300px;
  }
}


/* ===== HERO PROPORCION MARKETPLACE ===== */

.hero-slide{
  height:55vh;
  min-height:380px;
}

@media(max-width:992px){
  .hero-slide{
    height:45vh;
    min-height:320px;
  }
}

@media(max-width:600px){
  .hero-slide{
    height:35vh;
    min-height:240px;
  }
}


/* ===== CARDS PROFESIONALES ===== */

.products-grid{
  margin-top:30px;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
  gap:28px;
}

.product-card{
  background:white;
  border-radius:16px;
  overflow:hidden;
  border:1px solid #f1f5f9;
  display:flex;
  flex-direction:column;
  transition:.25s ease;
}

.product-card:hover{
  box-shadow:0 12px 25px rgba(0,0,0,.08);
}

.product-card img{
  width:100%;
  height:200px;
  object-fit:cover;
}

.product-info{
  padding:16px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.product-info h3{
  font-size:14px;
  font-weight:600;
  margin-bottom:6px;
}

.product-info .desc{
  font-size:12px;
  color:#64748b;
  margin-bottom:8px;
  line-height:1.4;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.price{
  color:#d35400;
  font-weight:700;
  font-size:14px;
  margin-bottom:12px;
}

.product-actions{
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.btn-view{
  background:#1f2937;
  color:white;
  padding:6px 14px;
  border-radius:8px;
  font-size:12px;
  text-decoration:none;
}

.btn-view:hover{
  background:#111827;
}

.btn-whatsapp{
  background:#25d366;
  color:white;
  padding:6px 10px;
  border-radius:50%;
  text-decoration:none;
  font-size:12px;
}

/* ===== RESPONSIVE CARDS ===== */

@media(max-width:600px){
  .products-grid{
    grid-template-columns:repeat(2,1fr);
    gap:18px;
  }

  .product-card img{
    height:160px;
  }

  .product-info h3{
    font-size:13px;
  }

  .product-info .desc{
    font-size:11px;
  }
}


.btn-whatsapp{
  background:#25d366;
  width:34px;
  height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
}

.btn-whatsapp svg{
  width:16px;
  height:16px;
}


/* ===== ESTILO MARKETPLACE TIPO MERCADOLIBRE ===== */

.product-card{
  background:white;
  border-radius:8px;
  border:1px solid #e5e7eb;
  display:flex;
  flex-direction:column;
  transition:.2s ease;
}

.product-card:hover{
  box-shadow:0 6px 15px rgba(0,0,0,.07);
}

.product-card img{
  width:100%;
  height:220px;
  object-fit:cover;
}

.product-info{
  padding:14px;
  display:flex;
  flex-direction:column;
  flex:1;
}

.price{
  font-size:18px;
  font-weight:700;
  color:#111;
  margin-bottom:6px;
}

.product-info h3{
  font-size:14px;
  font-weight:500;
  margin-bottom:6px;
  color:#333;
}

.product-info .desc{
  font-size:12px;
  color:#666;
  margin-bottom:10px;
}

.product-actions{
  margin-top:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding-top:10px;
  border-top:1px solid #f1f5f9;
}

.btn-view{
  background:#3483fa;
  color:white;
  padding:6px 14px;
  border-radius:4px;
  font-size:12px;
  text-decoration:none;
}

.btn-view:hover{
  background:#2968c8;
}

/* RESPONSIVE */

@media(max-width:600px){
  .products-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .product-card img{
    height:170px;
  }

  .price{
    font-size:16px;
  }
}


.btn-whatsapp{
  background:#25d366;
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  font-size:18px;
  color:white;
}


.btn-whatsapp{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#25d366;
  font-size:18px;
  color:white;
  transition:all .2s ease;
}

.btn-whatsapp:hover{
  transform:scale(1.08);
  background:#1ebe5d;
}


/* ===== WHATSAPP BOTON CORRECTO ===== */

.product-actions .btn-whatsapp{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#25d366;
  font-size:0; /* ocultamos emoji viejo */
  position:relative;
}

.product-actions .btn-whatsapp::before{
  content:"";
  width:18px;
  height:18px;
  background:url('https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg') no-repeat center;
  background-size:contain;
  display:block;
}

.product-actions .btn-whatsapp:hover{
  transform:scale(1.08);
  background:#1ebe5d;
}


/* ===== WHATSAPP BOTON CORRECTO ===== */

.product-actions .btn-whatsapp{
  width:38px;
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#25d366;
  font-size:0; /* ocultamos emoji viejo */
  position:relative;
}

.product-actions .btn-whatsapp::before{
  content:"";
  width:18px;
  height:18px;
  background:url('https://upload.wikimedia.org/wikipedia/commons/6/6b/WhatsApp.svg') no-repeat center;
  background-size:contain;
  display:block;
}

.product-actions .btn-whatsapp:hover{
  transform:scale(1.08);
  background:#1ebe5d;
}


/* ===== FIX BOTONES HEADER ===== */

.header-actions a{
  border-radius:8px !important;
}


/* ===== HEADER PREMIUM ===== */

.header-actions{
  display:flex;
  gap:14px;
  align-items:center;
}

.header-actions a{
  padding:8px 16px;
  font-size:14px;
  font-weight:500;
  text-decoration:none;
  border-radius:8px;
  transition:all .2s ease;
}

/* Publicar destacado */
.header-actions a.publicar{
  background:#ffffff;
  color:#d35400;
  border:1px solid rgba(255,255,255,0.3);
}

.header-actions a.publicar:hover{
  background:#ffe6d6;
}

/* Ingresar estilo outline */
.header-actions a.ingresar{
  background:transparent;
  color:white;
  border:1px solid rgba(255,255,255,0.5);
}

.header-actions a.ingresar:hover{
  background:rgba(255,255,255,0.15);
}

/* Ayuda simple */
.header-actions a.ayuda{
  color:white;
  opacity:.85;
}

.header-actions a.ayuda:hover{
  opacity:1;
}

/* Responsive */
@media(max-width:768px){
  .header-actions a{
    padding:6px 10px;
    font-size:13px;
  }
}


/* ===== UBICACION EN CARD ===== */

.product-info .location{
  font-size:12px;
  color:#64748b;
  margin-bottom:10px;
  display:flex;
  align-items:center;
  gap:6px;
}

.product-info .location i{
  font-size:13px;
  color:#ff6b00;
}

@media(max-width:600px){
  .product-info .location{
    font-size:11px;
  }
}


/* ===== BOTON VER MAS ===== */

.ver-mas-container{
  text-align:center;
  margin-top:40px;
}

.ver-mas-btn{
  display:inline-block;
  padding:10px 28px;
  background:#1f2937;
  color:white;
  text-decoration:none;
  font-size:14px;
  border-radius:8px;
  transition:all .2s ease;
}

.ver-mas-btn:hover{
  background:#111827;
  transform:translateY(-2px);
}

@media(max-width:600px){
  .ver-mas-btn{
    padding:9px 20px;
    font-size:13px;
  }
}


/* ===== BOTON VER MAS ===== */

.ver-mas-container{
  text-align:center;
  margin-top:40px;
}

.ver-mas-btn{
  display:inline-block;
  padding:10px 28px;
  background:#1f2937;
  color:white;
  text-decoration:none;
  font-size:14px;
  border-radius:8px;
  transition:all .2s ease;
}

.ver-mas-btn:hover{
  background:#111827;
  transform:translateY(-2px);
}

@media(max-width:600px){
  .ver-mas-btn{
    padding:9px 20px;
    font-size:13px;
  }
}

