/* valera-palo.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #FDFBFA;
  --sand: #F2EBE1;
  --warm-gray: #4A4540;
  --dark: #121110;
  --accent: #b18645;
  --accent-light: #D4B891;
  --text: #2D2A26;
  --white: #ffffff;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* NAV - Consistent with housing-malaga */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 251, 250, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand);
  padding: 0 5%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  width: 130px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  color: var(--warm-gray);
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--dark);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-burger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-burger.open span:nth-child(2) {
  opacity: 0;
}

.nav-burger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

.nav-links.nav-open {
  display: flex !important;
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--white);
  padding: 40px;
  gap: 20px;
  border-bottom: 1px solid var(--sand);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* HERO */
.hero {
  position: relative;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
  background-image: url('VALERA/piscina1.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: brightness(0.85);
  animation: slowZoom 20s infinite alternate ease-in-out;
}

@keyframes slowZoom {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(18, 17, 16, 0.45) 0%, rgba(18, 17, 16, 0.4) 40%, rgba(18, 17, 16, 0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 0 20px;
  max-width: 900px;
}

.hero-tag {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.hero-tag::before,
.hero-tag::after {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent-light);
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-title em {
  font-style: italic;
  color: var(--accent-light);
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero {
  padding: 14px 16px;
  /* Más alto, menos largo */
  border-radius: 4px;
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-brand {
  background: var(--accent);
  color: var(--white);
  border: 1px solid var(--accent);
}

.btn-brand:hover {
  background: transparent;
  color: var(--white);
}

.btn-outline {
  border: 1px solid var(--white);
  color: var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

section {
  padding: 100px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-tag {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-tag::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sand);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 32px;
}

.flex-grid {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.content-block {
  flex: 1;
}

.image-block {
  flex: 1.2;
}

.text-p {
  font-size: 16px;
  color: var(--warm-gray);
  margin-bottom: 24px;
  font-weight: 300;
  line-height: 1.9;
}

/* UNIFURNISHED EXPLANATION */
.features-list {
  list-style: none;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 4px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--sand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.5;
}

.feature-text h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.feature-text p {
  font-size: 13px;
  color: var(--warm-gray);
}

/* IMAGES */
.split-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.img-wrap {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.img-wrap:hover img {
  transform: scale(1.03);
}

/* AREA SECTION - MAP focus */
.area-section {
  background: var(--sand);
}

.map-container {
  width: 100%;
  height: 500px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(176, 141, 87, 0.2);
  margin-top: 40px;
  position: relative;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(0.2) contrast(1.1);
}

.map-card {
  position: absolute;
  top: 60px;
  left: 30px;
  background: var(--white);
  padding: 24px;
  border-radius: 4px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.1);
  max-width: 350px;
  z-index: 5;
}

.map-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 5px;
}


.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 250px;
  gap: 20px;
  margin-top: 50px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--sand);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease, filter 0.5s ease;
  filter: brightness(0.95);
}

.gallery-item img.plan-img {
  object-fit: contain;
  background: #fdfdfd;
  padding: 10px;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 17, 16, 0.7) 0%, rgba(18, 17, 16, 0) 50%);
  display: flex;
  align-items: flex-end;
  padding: 30px;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-overlay span {
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-style: italic;
  letter-spacing: 1px;
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.gallery-item:hover {
  transform: scale(1.08) translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1.05);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
  transform: translateY(0);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

/* LIGHTBOX STYLES */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(18, 17, 16, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  padding: 40px;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox.active .lightbox-content-wrapper {
  transform: scale(1);
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 20px;
  color: var(--white);
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-style: italic;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--white);
  font-size: 40px;
  font-weight: 200;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
  line-height: 1;
  z-index: 2001;
}

.lightbox-close:hover {
  color: var(--accent-light);
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .lightbox {
    padding: 20px;
  }

  .lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 30px;
  }

  .lightbox-caption {
    font-size: 18px;
  }
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }

  .gallery-item.large,
  .gallery-item.tall {
    grid-column: span 1;
    grid-row: span 1;
  }
}

/* FOOTER */
footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 5% 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--accent);
}

.footer-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  max-width: 350px;
  line-height: 1.6;
  font-weight: 400;
}

.footer-col h5 {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--accent-light);
  transform: translateX(5px);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  justify-content: space-between;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .flex-grid {
    flex-direction: column-reverse;
    gap: 40px;
  }

  .image-block,
  .content-block {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  nav {
    height: 70px;
  }

  .nav-links {
    display: none;
  }

  .nav-burger {
    display: flex;
  }

  .section-tag::after {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item.large,
  .gallery-item.tall {
    grid-column: auto;
    grid-row: auto;
    height: 300px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}