/* ======================
RESET
====================== */

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

/* ======================
BASE
====================== */

body {
  font-family: 'Inter', sans-serif;
  background: #f8f9f7;
  color: #111;
  line-height: 1.6;
  padding-top: 80px;
  padding-bottom: 70px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ======================
CONTAINER GLOBAL
====================== */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;

}

/* ======================
HEADER PRO
====================== */

.main-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #2E5E3E;
  border-top: 4px solid #8BC34A;
  z-index: 1000;
}

.header-container {
  max-width: 1100px;
  margin: auto;
  padding: 14px 20px;

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  color: #fff;
  font-size: 18px;
}

/* NAV */

.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: #d1e7d6;
  font-size: 14px;
}

.main-nav a:hover {
  color: #fff;
}

/* TOGGLE */

.menu-toggle {
  display: none;
  font-size: 26px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}

/* ======================
MOBILE MENU
====================== */

@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;

    background: #2E5E3E;
    display: none;
    flex-direction: column;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav a {
    padding: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
}

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

.hero {
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 34px;
  color: #2E5E3E;
  margin-bottom: 10px;
}

.hero p {
  color: #666;
  margin-bottom: 20px;
}

.btn {
  background: #2E5E3E;
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  display: inline-block;
}

/* ======================
GRID
====================== */

.grid {
  display: grid;
  gap: 20px;
  justify-content: center;
}

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

@media (min-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* ======================
CARD PRO
====================== */

.card {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  transition: 0.3s;
}

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

.card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.card-content {
  padding: 12px;
  background: #2E5E3E;
}

.card-content h3 {
  color: #fff;
  font-size: 15px;
}

.card-content p {
  color: #d1e7d6;
  font-size: 13px;
}

/* ======================
FOOTER
====================== */

.site-footer {
  background: #2E5E3E;
  color: #fff;
  margin-top: 60px;
  border-bottom: 4px solid #8BC34A;
}

.footer-container {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
  text-align: center;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #facc15;
  color: #000;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: bold;
}

.card {
  position: relative;
}

/* ======================
FICHA
====================== */

.ficha-hero img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.ficha {
  padding: 20px 0;
}

.ficha h1 {
  color: #2E5E3E;
  font-size: 26px;
  margin-bottom: 10px;
}

.ficha-desc {
  color: #555;
  margin-bottom: 20px;
}

/* CTA */
.ficha-cta {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

/* INFO */
.ficha-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  margin-bottom: 25px;
}

/* GALERÍA */
.ficha-galeria {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ficha-galeria img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

/* CTA PRO */
.ficha-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}

.btn {
  background: #2E5E3E;
  color: #fff;
  padding: 12px 18px;
  border-radius: 30px;
  font-size: 14px;
  text-align: center;
  flex: 1;
}

/* WhatsApp */
.btn-whatsapp {
  background: #25D366;
}

/* Llamar */
.btn-call {
  background: #111;
}

.trust {
  margin: 20px 0;
  font-size: 13px;
  color: #666;
  text-align: center;
}

.cta-btn span {
  font-size: 11px;
}

.cta-btn.call { background: #2E5E3E; }
.cta-btn.whatsapp { background: #25D366; }
.cta-btn.map { background: #111; }
.cta-negocio { text-align: center; }  

/* evitar que tape contenido */
body {
  padding-bottom: 70px;
}

.ficha-info{
  display:grid;
  gap:15px;
  margin:25px 0;
}

.info-item{
  background:#f5f5f5;
  padding:14px;
  border-radius:12px;
  font-size:14px;
}

.info-item a{
  color:#2E5E3E;
  text-decoration:none;
  font-weight:500;
}

.info-item a:hover{
  text-decoration:underline;
}

/* ======================
BLOG
====================== */

.blog{
  padding:40px 0;
}

.blog-grid{
  display:grid;
  gap:20px;
}

@media(min-width:768px){
  .blog-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(min-width:1024px){
  .blog-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

.blog-card{
  display:block;
  border-radius:16px;
  overflow:hidden;
  background:#fff;
  text-decoration:none;
  color:#111;
  transition:0.25s;
}

.blog-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.blog-card img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
}

.blog-content{
  padding:14px;
}

.blog-content h2{
  font-size:16px;
  margin-bottom:6px;
  color:#2E5E3E;
}

.blog-date{
  font-size:12px;
  color:#888;
}

.blog-post{
  padding:40px 0;
}

.post-hero img{
  width:100%;
  border-radius:16px;
  margin-bottom:20px;
}

.post-content{
  max-width:800px;
  margin:auto;
}

.post-content h1{
  font-size:28px;
  color:#2E5E3E;
  margin-bottom:10px;
}

.post-intro{
  color:#555;
  margin-bottom:20px;
}

.post-content h2{
  margin-top:30px;
  color:#2E5E3E;
}

.post-content p{
  line-height:1.7;
}

.post-cta{
  margin-top:40px;
  padding:30px;
  background:#f5f5f5;
  border-radius:16px;
  text-align:center;
}

.post-related{
  margin-top:40px;
}

.gallery-intro{
  text-align:center;
  max-width:700px;
  margin:10px auto 30px;
  color:#555;
}

.logo img{
  height:40px;
  width:auto;
  display:block;
}

.header-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.header-container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

@media (max-width:768px){
  .logo img{
    height:32px;
  }
}

.galeria-grid{
  column-count: 4;
  column-gap: 16px;
}

.galeria-card{
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  cursor: pointer;
}

.galeria-card img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  transition: 0.4s;
}

.galeria-card:hover img{
  transform: scale(1.05);
}

.galeria-overlay{
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  padding:15px;
  background:linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color:#fff;
  opacity:0;
  transition:0.3s;
}

.galeria-card:hover .galeria-overlay{
  opacity:1;
}

.btn-load{
  display: block;
  margin: 40px auto;
  padding: 14px 32px;

  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;

  color: #fff;
  background: linear-gradient(135deg, #2E5E3E, #3f7d57);

  border: none;
  border-radius: 30px;
  cursor: pointer;

  box-shadow: 0 8px 20px rgba(0,0,0,0.12);

  transition: all 0.3s ease;
}

.btn-load:hover{
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,0.18);
  background: linear-gradient(135deg, #254c32, #2E5E3E);
}

.btn-load:active{
  transform: scale(0.97);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-load::after{
  content:"";
  position:absolute;
  top:0;
  left:-75%;
  width:50%;
  height:100%;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.2),
    rgba(255,255,255,0.6),
    rgba(255,255,255,0.2)
  );
  transform: skewX(-20deg);
}

.btn-load:hover::after{
  left:130%;
  transition: 0.6s;
}

.btn-load{
  position: relative;
  overflow: hidden;
}

@media (max-width:768px){
  .btn-load{
    width: 90%;
    font-size: 14px;
  }
}

.contact-section{
  padding: 60px 20px;
  background: #f8fafc;
}

.contact-box{
  max-width: 600px;
  margin: auto;
  background: #fff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  text-align: center;
}

.contact-box h1{
  font-size: 28px;
  color: #2E5E3E;
  margin-bottom: 10px;
}

.contact-subtitle{
  color: #555;
  margin-bottom: 30px;
}

/* INFO COMERCIO */
.contact-comercio-info{
  background: #eaf3ed;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* FORM */
.contact-form{
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-size: 14px;
  transition: 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color: #2E5E3E;
  outline: none;
}

/* BOTÓN */
.btn-full{
  width: 100%;
  padding: 14px;
}

/* MENSAJES */
.form-success{
  background: #d1fae5;
  color: #065f46;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.form-error{
  background: #fee2e2;
  color: #7f1d1d;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.btn-back{
  display:inline-block;
  margin:15px 0;
  font-size:14px;
  color:#2E5E3E;
  text-decoration:none;
  font-weight:600;
}

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

.btn-top:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #254c32, #2E5E3E);
}
.btn-top:active{
  transform: scale(0.96);
}

@media (max-width:768px){
  .btn-top{
    right: 15px;
    bottom: 15px;
    padding: 8px 14px;
    font-size: 13px;
  }
}

.btn-top{
  position: fixed;
  right: 20px;
  bottom: 20px;

  padding: 10px 18px;

  border-radius: 30px;
  border: none;

  background: linear-gradient(135deg, #2E5E3E, #3f7d57);
  color: #fff;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  display: none;
  z-index: 999;

  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}

.lightbox{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0,0,0,0.9);

  display: none;
  align-items: center;
  justify-content: center;

  z-index: 9999; /* 🔥 CLAVE */
}

.lightbox-img{
  max-width: 90%;
  max-height: 85vh;
  border-radius: 10px;
}

.cerrar{
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
}