:root{
  --sand:#f6efe4;
  --accent:#ad966d;
  --accent-2:#caa86a;
  --muted:#7a7a7a;
  --max-width:1280px;
}
*{box-sizing:border-box;}
html,body{height:100%;}
body{
  margin:0;
  font-family:"EB Garamond", serif;
  color:#222;
  background: var(--sand);
  font-size: 1.15rem;
  line-height: 1.7;
}
a{color:var(--accent); text-decoration:none;}
a:hover{text-decoration:underline;}
.container{max-width:var(--max-width);margin:0 auto;padding:0 20px;}

.top-strip{background:linear-gradient(90deg,#c3b28f,#d4c3a8);height:12px;width:100%;}

.pre-footer-strip{
  background: #ad966d;
  width:100%;
  padding: 2.5rem 20px;
  display:flex;
  align-items:center;
  justify-content:center;
  color: white;
}

.pre-footer-container{
  max-width:var(--max-width);
  width:100%;
  font-family:"Roboto",sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.pre-footer-left h3 {
  font-family:"Cinzel",serif;
  font-size:1.8rem;
  margin: 0 0 1.5rem 0;
  text-align: left;
}

.pre-footer-left p {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

.pre-footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
    padding-top: 0.5rem;
}

.pre-footer-right p {
    margin: 0;
    font-size: 1.1rem;
}

.btn-whatsapp{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background:#25D366;
  color:white;
  font-weight:700;
  padding:8px 14px;
  border-radius:50px;
  text-decoration:none;
  font-family:"Roboto",sans-serif;
  font-size:1rem;
  transition:0.3s;
}
.btn-whatsapp i{
  font-size:1.2rem;
}
.btn-whatsapp:hover{
  background:#1ebe57;
  color:white;
}

.cta-row{margin-top:1rem;display:flex;gap:12px;justify-content:center;flex-wrap:wrap;}
.btn{display:inline-block;padding:10px 16px;border-radius:10px;font-weight:600;cursor:pointer;font-family: "Roboto", sans-serif;}
.btn.primary{background:linear-gradient(90deg,#c3b28f,#ad966d);color:white;}

header {
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.6));
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(4px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;}

/* ESTA ES LA SECCIÓN CORREGIDA */
.brand {
  flex-shrink: 0; /* <-- ESTA ES LA LÍNEA QUE ARREGLA TODO */
}

.brand .title{
  font-family: "Cinzel", serif;
  font-size:1.4rem;
  font-weight:700;
  color: var(--accent);
}
.brand .subtitle{
  font-size:0.85rem;
  color:var(--muted);
  text-align:center;
  line-height:1.4;
  font-family: "Roboto", sans-serif;
}

nav.mainnav{
  display:flex;
  gap:12px;
  font-weight:600;
  align-items:center;
  white-space:nowrap;
  font-family: "Roboto", sans-serif;
}
nav.mainnav a{
  padding:8px 10px;
  border-radius:8px;
  display:inline-flex;
  align-items:center;
}
.lang-switch{
  margin-left:10px;
  display:flex;
  gap:12px;
  align-items:center;
  font-size:0.95rem;
  font-family: "Roboto", sans-serif;
}
.nav-toggle{display:none;background:transparent;border:0;font-size:1.1rem;color:var(--accent);cursor:pointer;}

.hero{
  height:58vh;
  min-height:380px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:2rem 0;
  position:relative;
  overflow:hidden;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.08));
  z-index: 1;
}

.hero-gallery {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 0;
}

.slide.active {
  opacity: 1;
}

.hero .inner{
  position:relative;
  z-index:2;
  color:white;
  max-width:980px;
  padding:0 18px;
}
.hero h1{font-family:"Cinzel",serif;font-size:clamp(1.6rem,4vw,2.6rem);margin-bottom:0.6rem;text-shadow:0 6px 20px rgba(0,0,0,0.35);}
.hero p.lead{font-size:clamp(1rem,2.2vw,1.15rem);opacity:0.94;margin:0 auto;max-width:820px;text-shadow:0 6px 18px rgba(0,0,0,0.25); font-family: "Roboto", sans-serif;}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 8px;
  z-index: 10;
  font-size: 1.5rem;
  transition: background 0.3s;
}
.hero-nav:hover { background: rgba(0,0,0,0.6); }
.hero-nav.prev { left: 20px; }
.hero-nav.next { right: 20px; }

main{
  background:white;
  padding-top:1.2rem;
  padding-bottom: 3rem;
}

main .container > p:not(.section-title) {
    font-size: 1.25rem;
    line-height: 1.75;
}

.section-title {
  font-family: 'IcoMoon', serif;
  font-size: 48px;
  color: var(--accent);
  margin-bottom: 1rem;
}
main h2{color:var(--accent);font-family:"Cinzel",serif;margin-bottom:1rem;}

.testimonials-heading{ margin-bottom:0.35rem; }

.testimonials-carousel { margin-top:0.35rem; position: relative; padding:0.6rem 0; }

footer{
  background:white;
  color:#999;
  font-size:0.85rem;
  text-align:center;
  padding:28px 0;
  font-family: "Roboto", sans-serif;
}
footer .container{
  max-width:var(--max-width);
  margin:0 auto;
  padding:0 20px;
}

.carousel-container {position: relative; width: 100%; padding: 0 2rem;}
.carousel-track-wrapper {overflow: hidden; width: 100%;}
.carousel-track {display: flex; transition: transform 0.6s ease;}

.testimonial {
  position: relative;
  min-width:100%;
  box-sizing:border-box;
  padding:1.6rem 2rem 1.6rem 2.5rem;
  font-style: italic;
  background:#fff;
  display:flex;
  flex-direction:column;
  justify-content:center;
  box-shadow:0 4px 12px rgba(0,0,0,0.08);
  border-radius:6px;
}

.testimonial::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-2);
  border-radius: 2px;
}

.testimonial p {
  margin:0 0 0.6rem 0;
  line-height:1.5;
  text-align:justify;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial .who {
  display:block;
  text-align:left;
  margin-top:0.5rem;
  font-weight:700;
  color:var(--muted);
  font-style:normal;
  font-size:0.95rem;
  font-family: "Roboto", sans-serif;
}

.carousel-btn {position:absolute; top:50%; transform:translateY(-50%); background:rgba(0,0,0,0.35); color:#fff; border:none; padding:0.5rem 0.8rem; cursor:pointer; border-radius:50%; z-index:10; font-size:1.2rem;}
.carousel-btn:hover {background:rgba(0,0,0,0.6);}
.carousel-btn.prev {left:-40px;}
.carousel-btn.next {right:-40px;}

.page-natural-park .hero-nav,
.page-inside .hero-nav,
.page-the-area .hero-nav,
.page-outside .hero-nav,
.page-andalusia .hero-nav {
    display: none;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    margin-top: 3rem;
}

.photo-grid a {
    display: block;
    line-height: 0;
}

.photo-grid img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  object-fit: contain;
}

.close-lightbox {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-lightbox:hover {
  color: #bbb;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  padding: 0.8rem 1.2rem;
  cursor: pointer;
  border-radius: 8px;
  z-index: 1001;
  font-size: 2rem;
  transition: background 0.3s;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.lightbox-nav:hover {
  background: rgba(0,0,0,0.6);
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

.prices-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.prices-table th, .prices-table td {
  border: 1px solid #e0d9cd;
  padding: 12px 15px;
  text-align: left;
}

.prices-table th {
  background-color: var(--sand);
  font-family: "Roboto", sans-serif;
  font-weight: 700;
  color: var(--accent);
}

.prices-table tr:nth-child(even) {
  background-color: #fdfbf7;
}

.booking-conditions h3 {
  font-family: "Cinzel", serif;
  color: var(--accent);
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.booking-conditions p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

@media(max-width:1000px){
  nav.mainnav{flex-wrap:wrap;}
  .lang-switch{margin-left:0;margin-top:8px;}
}
@media(max-width:800px){
  .nav-toggle{
    display:inline-block;
  }
  nav.mainnav{
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(5px);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-top: 1px solid rgba(0,0,0,0.05);
  }
  nav.mainnav.is-active {
    display: flex;
  }
  nav.mainnav a {
    padding: 12px 20px;
    width: 100%;
    text-align: center;
  }
  .lang-switch {
    margin-left: 0;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.1);
    width: 80%;
    justify-content: center;
  }
}

@media (max-width: 900px) {
    .photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .photo-grid img {
        height: 300px;
    }
}

@media(max-width:600px){
  .carousel-btn.prev{left:5px;}
  .carousel-btn.next{right:5px;}

  .pre-footer-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
  }
  .pre-footer-left h3, .pre-footer-left p {
      text-align: center;
  }
  .pre-footer-right {
      align-items: center;
  }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
    .photo-grid img {
        height: 280px;
    }
}

#hero-image-the-area {
  background-position: 30% 50%;
}