:root{
--accent:#9ed39c; /* verde natural más luminoso */
--accent-dark:#6fbf6e; /* verde profundo */
--muted:#b0b0b0;
--bg:#0d0d0e; /* fondo carbón moderno */
--card:#1a1a1c; /* tarjetas oscuras */
}


*{box-sizing:border-box;}


body{
font-family:Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
margin:0;
color:#e8e8e8;
background:var(--bg);
-webkit-font-smoothing:antialiased;
opacity:0;
transform:translateY(6px);
transition:opacity .45s ease, transform .45s ease;
}
body.loaded{
opacity:1;
transform:none;
}


.container{
max-width:1100px;
margin:0 auto;
padding:24px;
}




/* HEADER */


.site-header{
position: relative;
z-index: 1000;
background:rgba(0,0,0,0.55);
backdrop-filter:blur(6px);
border-bottom:1px solid #222;
}
.header-inner{
display:flex;
align-items:center;
justify-content:space-between;
}
.brand h1{
font-size:20px;
margin:0;
color:#fff;
letter-spacing:1px;
}
.nav{
display:flex;
gap:20px;
}
.nav a{
color:#ececec;
text-decoration:none;
transition:color .3s;
}
.nav a:hover{
color:var(--accent);
}
.menu-toggle{
display:none;
background:none;
border:0;
font-size:26px;
color:#fff;
}

/* HERO */


.hero{
position:relative;
height:72vh;
display:flex;
align-items:center;
color:#fff;
overflow:hidden;
}
/*.hero-bg{
position:absolute;
inset:0;
background-size:cover;
background-position:center;
filter:brightness(1.05);
transform:scale(1.04);
transition:transform 8s ease;
}*/
.hero-bg{
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  filter:brightness(1.05);
  transform:scale(1.08);
  will-change: transform;
  animation: heroMove 16s ease-in-out infinite alternate;
}

/* .hero:hover .hero-bg{
transform:scale(1.08);
}*/
/* Opcional: al pasar el mouse, acelera o aumenta un poco */
/*.hero:hover .hero-bg{
  animation-duration: 9s;
}*/
.overlay{
position:absolute;
inset:0;
background:linear-gradient(180deg, rgba(0,0,0,0.20), rgba(0,0,0,0.45));
}
.hero-content{
position:relative;
padding:48px;
}
.hero-title{
font-size:clamp(28px, 4vw, 46px);
margin:0 0 10px;
font-weight:700;
text-shadow:0 2px 8px rgba(0,0,0,0.6);
}
.hero-sub{
margin:0 0 18px;
color:#d7f3d0;
}
.hero-actions .btn{
margin-right:10px;
}

@keyframes heroMove{
  0%   { transform: scale(1.08) translate3d(0, 0, 0); }
  100% { transform: scale(1.22) translate3d(-3%, -2%, 0); }
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce){
  .hero-bg{ animation:none; transform:none; }
}

/* BOTONES */


.btn{
display:inline-block;
padding:12px 20px;
border-radius:10px;
text-decoration:none;
border:0;
font-weight:600;
cursor:pointer;
transition:background .3s, transform .2s;
}
.btn.primary{
background:var(--accent);
color:#0d0d0e;
}
.btn.primary:hover{
background:var(--accent-dark);
transform:translateY(-2px);
}
.btn.ghost{
background:transparent;
color:#fff;
border:1px solid rgba(255,255,255,0.25);
}
.btn.ghost:hover{
border-color:var(--accent);
color:var(--accent);
transform:translateY(-2px);
}

/* LAYOUTS */


.grid-2{
display:grid;
grid-template-columns:1fr 360px;
gap:20px;
align-items:start;
}
.grid-3{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:18px;
}
.card{
background:var(--card);
padding:20px;
border-radius:12px;
border:1px solid #2a2a2d;
box-shadow:0 8px 24px rgba(0,0,0,0.45);
color:#f3f3f3;
}
.bullets{
padding-left:18px;
}


/* FEATURES */


.features .feature{
background:var(--card);
padding:20px;
border-radius:10px;
border:1px solid #2a2a2d;
box-shadow:0 6px 20px rgba(0,0,0,0.35);
}

/* SLIDER */


.slider-section{
padding:40px 0 60px;
background:#141415;
color:#f1f1f1;
}
.hero-slider{
max-width:1100px;
margin:0 auto;
border-radius:14px;
overflow:hidden;
box-shadow:0 12px 34px rgba(0,0,0,0.55);
}
.hero-slider .swiper-slide img{
width:100%;
height:420px;
object-fit:cover;
filter:brightness(0.92);
}
.swiper-button-prev,
.swiper-button-next{
color:#fff;
text-shadow:0 2px 5px rgba(0,0,0,0.7);
}
.swiper-pagination-bullet{
background:#888;
}
.swiper-pagination-bullet-active{
background:#fff;
}


/* GALERÍA */


.gallery-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
gap:12px;
}
.gallery-item{
position:relative;
border-radius:10px;
overflow:hidden;
min-height:180px;
background:#0e0e0e;
border:1px solid #2a2a2a;
}
.gallery-item img{
width:100%;
height:100%;
object-fit:cover;
transform:scale(1.02);
transition:transform .6s, filter .4s;
}
.gallery-item:hover img{
transform:scale(1.08);
filter:brightness(1.15);
}



/* GALERÍA - adaptada a sitio oscuro */
.gallery.container {
  padding-top: 40px;
  padding-bottom: 40px;
}

.section-title {
  margin: 0 0 14px;
  font-size: 28px;
  color: #fff;
}

/* Swiper base */
.myGallery {
  width: 100%;
  padding-bottom: 14px; /* espacio para scrollbar */
}

/* Tarjetas */
.myGallery .swiper-slide {
  border-radius: 14px;
  overflow: hidden;
  cursor: zoom-in;
  background: #0f0f0f;
  box-shadow: 0 14px 30px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.06);
}

.myGallery .swiper-slide img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform .25s ease;
}

.myGallery .swiper-slide:hover img {
  transform: scale(1.06);
}

/* Flechas (oscuro pro) */
.myGallery .swiper-button-next,
.myGallery .swiper-button-prev {
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}

.myGallery .swiper-button-next:after,
.myGallery .swiper-button-prev:after {
  font-size: 16px;
  font-weight: 700;
}

/* Scrollbar más oscuro (como pediste) */
.myGallery .swiper-scrollbar {
  background: rgba(255,255,255,.10);
  height: 8px;
  border-radius: 999px;
}

.myGallery .swiper-scrollbar-drag {
  background: rgba(255,255,255,.32);
  border-radius: 999px;
}

/* Responsive */
@media (max-width: 900px) {
  .myGallery .swiper-slide img { height: 200px; }
}

@media (max-width: 700px) {
  .myGallery .swiper-slide img { height: 180px; }
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.90);
  z-index: 9999;
  padding: 20px;
}

.lightbox.open { display: flex; }

.lightbox-figure {
  margin: 0;
  max-width: min(1200px, 95vw);
  max-height: 90vh;
  position: relative;
}

.lightbox img {
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 14px;
  background: #0f0f0f;
  box-shadow: 0 20px 60px rgba(0,0,0,.7);
  cursor: zoom-out;
}

.lightbox-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.lightbox-close:hover { background: rgba(0,0,0,.75); }




/* Lightbox */
.lb{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.85);
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:9999;
}
.lb.open{ display:flex; }
.lb-img{
  max-width:min(1100px, 96vw);
  max-height:90vh;
  border-radius:14px;
  box-shadow:0 18px 60px rgba(0,0,0,0.7);
}
.lb-close{
  position:absolute;
  top:16px;
  right:16px;
  height:44px;
  width:44px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(20,20,20,0.6);
  color:#fff;
  font-size:28px;
  cursor:pointer;
}



/* CONTACTO */

#contacto {
  margin-top: -50px; /* sube la sección */
}
.contact-form label{
display:block;
margin-bottom:10px;
color:#d6d6d6;
}
.contact-form input,
.contact-form textarea{
width:100%;
padding:10px;
border:1px solid #3b3b3b;
background:#121212;
color:#fff;
border-radius:8px;
font-family:inherit;
}
.form-result{
margin-top:10px;
font-size:14px;
color:var(--accent);
}

/* MAPA */

#ubicacion {
  margin-top: -50px; /* sube la sección */
}

.map-section{
padding:60px 24px;
background:#0f0f0f;
color:#eee;
}
#map{
width:100%;
height:420px;
border-radius:12px;
box-shadow:0 4px 18px rgba(0,0,0,0.45);
}


/* FOOTER */


.site-footer{
padding:20px 0;
background:#0c0c0d;
border-top:1px solid #1c1c1f;
color:#aaa;
text-align:center;
}


/*@media(max-width:900px){
.grid-2{ grid-template-columns:1fr; }
.nav{ display:none; }
.menu-toggle{ display:block; }
}*/

/* Menú móvil */
/*.menu-toggle{
  display:none;
}*/

@media (max-width: 860px){
  .menu-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
  }

  header .nav{
    position:absolute;
    top:100%;
    right:16px;
    left:16px;

    display:none;            /* cerrado */
    flex-direction:column;
    padding:14px;
    border-radius:14px;
    background:rgba(10,10,10,0.92);
    border:1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    z-index:2000;
  }

  header .nav.is-open{
    display:flex;            /* abierto */
  }

  header .nav a{
    padding:10px 12px;
    border-radius:10px;
  }
}


/* BUFANDA */
.cinta-navidad{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120px;
  z-index: 99999;
  pointer-events: none;
}

/* Wrapper centrado según ancho real de la imagen */
.cinta-wrapper{
  position: relative;        /* 👈 referencia del botón */
  width: fit-content;
  height: 100%;
  margin: 0 auto;            /* centra la imagen */
}

.cinta-wrapper img{
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Botón cerca del inicio de la imagen */
.cinta-cerrar{
  pointer-events: auto;
  position: absolute;
  top: 12px;
  left: 16px;                /* 👈 relativo a la imagen */
  background: rgba(0,0,0,0.4);
  border: none;
  color: rgba(150,150,150,0.75);  /* 👈 un poco más clara */
  text-shadow: 0 1px 1px rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 16px;
}

/* BUFANDA PARA MOVIL*/
@media (max-width: 768px){
  .cinta-navidad{
    height: 50px;              /* 👈 reduce la franja */
  }

  .cinta-wrapper img{
    height: 50px;              /* controla tamaño real */
    max-width: 100%;
    object-fit: contain;
  }

  .cinta-cerrar{
    top: 6px;
    left: 8px;
    padding: 4px 8px;
    font-size: 14px;
  }
}
/* MOBILE: apilar columnas y ordenar secciones */
@media (max-width: 768px) {

  /* Regla general para grids 2 columnas: que bajen a 1 columna */
  .grid-2{
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
  }

  /* PROYECTO: primero "Datos rápidos", luego "Sobre la parcela" */
  .intro .grid-2 > div{
    order: 1;
  }
  .intro .grid-2 > aside{
    order: 2;
  }


  /* CONTACTO: primero info, luego formulario (para que no quede angosto) */

  .contact .grid-2 > .contact-info{
    order: 1;
  }
  .contact .grid-2 > form{
    order: 2;
    width: 100%;
  }


  /* Un poco de aire entre secciones */
  .intro, .contact{
    padding-top: 18px;
    padding-bottom: 18px;
  }
}



/* Aviso Destacado */
.aviso-destacado{
  padding-top: 28px;
  padding-bottom: 28px;
}

.aviso-logo-wrapper{
  margin: 10px 0 18px;
}

.aviso-logo{
  height: 36px;
  width: auto;
}

/* Subir sección Aviso Destacado */
#aviso-destacado{
  margin-top: -35px; /* equivale aprox. a subir 2 líneas */
}

/* Links en blanco */
.aviso-link{
  display: inline-block;
  margin-top: 4px;
  color: #fff;
  text-decoration: underline;
}

.aviso-link:hover{
  opacity: 0.85;
}

/* Video YouTube */
.aviso-video{
  margin-top: 35px;
}

.youtube-thumb{
  position: relative;
  display: block;
  margin-top: 10px;
  max-width: 340px;
}

.youtube-thumb img{
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}

.play-button{
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #fff;
  background: rgba(0,0,0,0.35);
  border-radius: 8px;
  pointer-events: none;
}

/* Aviso Riverside */
.aviso-item{	
  margin-top: 30px;
  margin-bottom: 18px;
}

.aviso-link-row{
  margin-top: 25px; /* baja el link bajo el título */
}

.aviso-link{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: underline;
}

.aviso-link:hover{
  opacity: 0.85;
}

.aviso-icon-web{
  width: 18px;
  height: 18px;
  fill: currentColor;
  opacity: 0.9;
}



/* Mobile */
@media (max-width: 640px){
  .youtube-thumb{
    max-width: 100%;
  }
}
