/* /css/vayavaya.css */

:root {
  --vaya-primary: #d26d47;
  --vaya-light: #e8e6db;
  --vaya-dark: #2a2a2a;
  --font-main: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--vaya-light);
  color: var(--vaya-dark);
  overflow-x: hidden;
}

/* HEADER */
.vaya-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  background: transparent;
}

.vaya-header.scrolled {
  background: var(--vaya-light);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  padding: 15px 40px;
}

.vaya-logo img {
  height: 45px;
  width: auto;
  transition: all 0.3s ease;
  /* Filter to make the SVG white when the header is transparent */
  filter: brightness(0) invert(1);
}

.vaya-header.scrolled .vaya-logo img {
  /* Apply the exact orange color using the SVG filter */
  filter: url('#orange-filter');
}

.vaya-nav {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.3s ease;
}

.vaya-header.scrolled .nav-link {
  color: var(--vaya-dark);
}

.nav-link:hover {
  color: var(--vaya-primary);
}

.vaya-header.scrolled .nav-link:hover {
  color: var(--vaya-primary);
}

.btn-back-num {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 8px 24px;
  border-radius: 50px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.vaya-header.scrolled .btn-back-num {
  color: var(--vaya-dark);
  border-color: rgba(42, 42, 42, 0.2);
}

.btn-back-num:hover {
  background-color: var(--vaya-primary);
  color: #ffffff !important;
  border-color: var(--vaya-primary);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  width: 30px;
  height: 20px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
  background: transparent;
  border: none;
}

.mobile-toggle span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.vaya-header.scrolled .mobile-toggle span {
  background: var(--vaya-dark);
}

.mobile-toggle span:nth-child(1) { top: 0px; }
.mobile-toggle span:nth-child(2) { top: 9px; }
.mobile-toggle span:nth-child(3) { top: 18px; }

.mobile-toggle.active span:nth-child(1) { top: 9px; transform: rotate(135deg); background: #ffffff; }
.mobile-toggle.active span:nth-child(2) { opacity: 0; left: -20px; }
.mobile-toggle.active span:nth-child(3) { top: 9px; transform: rotate(-135deg); background: #ffffff; }

/* HERO SECTION */
.vaya-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden; /* Para que el parallax no se salga */
}

/* Capa de fondo para el Parallax */
.hero-bg {
  position: absolute;
  top: -10%; /* Espacio extra arriba/abajo para el movimiento */
  left: 0;
  width: 100%;
  height: 120%; /* Más alto que el contenedor para que no se corte al bajar */
  background-image: url('/images/vayavaya/con5.webp'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1.5s ease-out;
}

.hero-logo {
  max-width: 450px;
  width: 90%;
  margin-bottom: 25px;
  /* Drop shadow to make it pop against the background */
  filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.3));
}

.hero-location {
  color: var(--vaya-light);
  font-family: var(--font-main);
  font-size: 1.1rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Menu Overlay CSS */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(15px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.mobile-nav-link {
  color: #ffffff;
  text-decoration: none;
  font-family: var(--font-main);
  font-size: 2rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: all 0.4s ease;
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
}

.mobile-nav-overlay.active .mobile-nav-link {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-overlay.active .mobile-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-nav-overlay.active .mobile-nav-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-nav-overlay.active .mobile-nav-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-nav-overlay.active .mobile-nav-link:nth-child(4) { transition-delay: 0.4s; }
.mobile-nav-overlay.active .mobile-nav-link:nth-child(5) { transition-delay: 0.5s; }

.mobile-nav-link:hover {
  color: var(--vaya-primary);
}

/* Responsive */
@media (max-width: 992px) {
  .vaya-nav, .desktop-nav {
    display: none !important;
  }
  
  .mobile-toggle {
    display: block !important;
    z-index: 1000;
  }
  
  .hero-logo {
    max-width: 280px;
    margin-bottom: 20px;
  }
  
  .hero-location {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
  }
  
  .vaya-header {
    padding: 15px 20px;
  }
}

/* CONCEPTO SECTION */
.vaya-split-section {
  display: flex;
  min-height: 100vh;
  background-color: var(--vaya-light);
}

.split-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10%;
}

.split-text-wrap {
  max-width: 600px;
}

.split-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 2.3rem; /* Reducido de 3rem para mejor lectura */
  color: var(--vaya-primary);
  line-height: 1.3;
  margin-bottom: 30px;
}

.split-desc {
  font-family: var(--font-main);
  font-size: 1.1rem; /* Ligeramente ajustado */
  color: #666666;
  line-height: 1.6;
  margin-bottom: 25px;
  font-weight: 300;
}

.split-image {
  flex: 1;
  position: relative;
}

.split-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 992px) {
  .vaya-split-section {
    flex-direction: column;
  }
  
  .split-image {
    min-height: 40vh;
  }
  
  .split-content {
    padding: 60px 20px;
    text-align: center;
  }
  
  .split-title {
    font-size: 1.8rem;
  }
  
  .split-desc {
    font-size: 1.05rem;
  }
}

/* ACTIVIDADES SECTION */
.vaya-actividades {
  position: relative;
  padding: 120px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: url('/images/vayavaya/con1.webp'); 
  background-size: cover;
  background-position: center;
  background-attachment: fixed; 
  color: #ffffff;
}

.actividades-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 25, 30, 0.65); /* Overlay oscuro para legibilidad */
  z-index: 1;
}

.actividades-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.actividades-title {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 500;
  font-style: italic;
  text-align: center;
  margin-bottom: 60px;
  line-height: 1.3;
  color: #ffffff;
}

.actividades-grid {
  display: grid;
  /* Grid responsivo que se adapta a 3 columnas en desktop, 2 en tablet, 1 en móvil */
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px 40px;
}

.actividad-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 300;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.actividad-item::before {
  content: '•';
  color: var(--vaya-primary);
  font-size: 1.8rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .vaya-actividades {
    padding: 80px 20px;
  }
  
  .actividades-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }
  
  .actividades-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .actividad-item {
    font-size: 1.05rem;
  }
}

/* DISEÑO SECTION */
.vaya-diseno-section {
  display: flex;
  min-height: 100vh;
  background-color: var(--vaya-light);
  align-items: center;
  padding: 80px 10%;
  gap: 50px;
}

.diseno-text-col {
  flex: 1;
  max-width: 500px;
}

.diseno-subtitle {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 20px;
}

.diseno-subtitle::after {
  content: '';
  display: block;
  height: 1px;
  background-color: currentColor; /* Mismo color que el texto */
  flex: 1;
  max-width: 200px;
}

.diseno-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-style: italic;
  font-size: 2.1rem;
  color: var(--vaya-primary);
  line-height: 1.2;
  margin-bottom: 30px;
}

.diseno-desc {
  font-family: var(--font-main);
  font-size: 1.15rem;
  color: #555555;
  line-height: 1.6;
  margin-bottom: 25px;
  font-weight: 300;
}

.diseno-desc strong {
  font-weight: 600;
  color: #333333;
}

.diseno-img-col {
  flex: 1.5;
  display: flex;
  justify-content: center;
}

.diseno-img-col img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 992px) {
  .vaya-diseno-section {
    flex-direction: column;
    padding: 60px 20px;
    text-align: center;
  }
  
  .diseno-subtitle {
    justify-content: center;
  }
  
  .diseno-subtitle::after {
    display: none;
  }
  
  .diseno-title {
    font-size: 2rem;
  }
  
  .diseno-img-col {
    width: 100%;
  }
}

/* GALERIA SECTION */
.vaya-galeria-section {
  background-color: var(--vaya-primary);
  padding: 100px 5%;
}

.galeria-container {
  max-width: 1400px;
  margin: 0 auto;
}

.galeria-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: var(--vaya-light);
  text-align: center;
  margin-bottom: 60px;
  font-weight: 500;
  font-style: italic;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-auto-rows: 250px;
  gap: 15px;
}

/* Grid dinámico para estilo premium (algunas fotos más grandes que otras) */
.gal-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

/* Hacemos que la foto 1, 4 y 8 ocupen el doble de espacio (si hay suficiente pantalla) */
@media (min-width: 769px) {
  .gal-item:nth-child(1),
  .gal-item:nth-child(4),
  .gal-item:nth-child(8) {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gal-item:hover img {
  transform: scale(1.05); /* Efecto zoom al pasar el mouse */
}

@media (max-width: 768px) {
  .vaya-galeria-section {
    padding: 60px 10px;
  }
  
  .galeria-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }
  
  .galeria-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  
  .gal-item:nth-child(1),
  .gal-item:nth-child(4),
  .gal-item:nth-child(8) {
    grid-column: auto;
    grid-row: auto;
  }
}

/* ESPACIOS SECTION */
.vaya-espacios-section {
  display: flex;
  min-height: 100vh;
  background-color: var(--vaya-light);
  align-items: center;
  padding: 80px 10%;
  gap: 60px;
}

.espacios-text-col {
  flex: 1;
  max-width: 500px;
}

.espacios-title {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--vaya-primary);
  line-height: 1.2;
  margin-bottom: 40px;
}

.espacios-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.espacios-list li {
  font-family: var(--font-main);
  font-size: 1.15rem;
  color: #555555;
  margin-bottom: 15px;
  position: relative;
  padding-left: 20px;
}

.espacios-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #555555;
  font-weight: bold;
}

.espacios-img-col {
  flex: 1.2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.esp-img-1 {
  grid-column: 1 / 3;
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.esp-img-2, .esp-img-3 {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

@media (max-width: 992px) {
  .vaya-espacios-section {
    flex-direction: column;
    padding: 60px 20px;
  }
  .espacios-text-col {
    text-align: center;
  }
  .espacios-list {
    text-align: left;
    display: inline-block;
  }
  .espacios-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .espacios-img-col {
    width: 100%;
    grid-template-columns: 1fr;
  }
  .esp-img-1 {
    grid-column: 1;
  }
  .esp-img-1, .esp-img-2, .esp-img-3 {
    height: 200px;
  }
}

/* LIGHTBOX */
.vaya-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

.vaya-lightbox.active {
  display: flex;
}

.vaya-lightbox img {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 5px 30px rgba(0,0,0,0.6);
  border-radius: 4px;
  animation: fade-in 0.3s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

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

.lightbox-close:hover {
  color: var(--vaya-primary);
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #fff;
  font-size: 60px;
  cursor: pointer;
  padding: 20px;
  transition: color 0.3s;
}

.lightbox-prev {
  left: 30px;
}

.lightbox-next {
  right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  color: var(--vaya-primary);
}

.gal-item {
  cursor: pointer;
}

/* FOOTER SECTION */
.vaya-footer {
  background-color: var(--vaya-dark);
  padding: 100px 20px 40px;
  color: #ffffff;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  height: 100px; /* Tamaño grande para que sea el foco */
  width: auto;
  margin-bottom: 25px;
}

.footer-developed {
  font-family: var(--font-main);
  font-size: 1.15rem;
  letter-spacing: 1.5px;
  color: #aaaaaa;
  text-transform: uppercase;
  margin-bottom: 50px;
}

.footer-developed strong {
  color: var(--vaya-primary);
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #dddddd;
  text-decoration: none;
  font-family: var(--font-main);
  font-size: 1.05rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--vaya-primary);
}

.footer-copy {
  font-family: var(--font-main);
  font-size: 0.9rem;
  color: #666666;
}

@media (max-width: 768px) {
  .footer-logo {
    height: 80px;
  }
  .footer-developed {
    font-size: 1rem;
  }
  .footer-links {
    gap: 15px;
    flex-direction: column;
  }
}

/* Teléfonos Pequeños (iPhone, etc) */
@media (max-width: 576px) {
  .split-title { font-size: 1.5rem !important; margin-bottom: 20px; }
  .split-desc { font-size: 1rem !important; }
  
  .actividades-title { font-size: 1.6rem !important; margin-bottom: 30px; }
  .actividad-item { font-size: 0.95rem !important; }
  
  .diseno-title { font-size: 1.6rem !important; }
  .diseno-desc { font-size: 1rem !important; }
  
  .espacios-title { font-size: 1.6rem !important; margin-bottom: 25px; }
  .espacios-list li { font-size: 1rem !important; }
  
  .galeria-title { font-size: 1.8rem !important; margin-bottom: 25px; }
}

/* INVENTARIO SECTION */
.vaya-inventario-section {
  padding: 80px 20px;
  background-color: var(--vaya-light);
}
.inventario-title {
  text-align: center;
  color: var(--vaya-primary);
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 500;
  font-style: italic;
  margin-bottom: 40px;
}
.inventario-map-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  /* box-shadow: 0 10px 30px rgba(0,0,0,0.1); Removido por el usuario */
  overflow: hidden;
}
.inventario-map-container img {
  width: 100%;
  display: block;
  mix-blend-mode: multiply; /* Hace que el fondo de la imagen se funda con el de la web */
}
.inv-box {
  position: absolute;
  transition: all 0.3s ease;
  cursor: pointer;
}
.inv-box:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  z-index: 10;
}
.inv-box.status-NoDisponible {
  background-color: rgba(207, 107, 82, 0.75);
}
.inv-box.status-NoDisponible:hover {
  background-color: rgba(207, 107, 82, 0.9);
}
.inv-box.status-Apartada {
  background-color: rgba(214, 167, 90, 0.75);
}
.inv-box.status-Apartada:hover {
  background-color: rgba(214, 167, 90, 0.9);
}

/* LEYENDA INVENTARIO */
.inventario-leyenda {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 50px;
  flex-wrap: wrap;
}
.leyenda-item {
  display: flex;
  align-items: center;
  gap: 15px;
}
.leyenda-color {
  display: inline-block;
  width: 25px;
  height: 25px;
  border-radius: 2px;
}
.leyenda-color.no-disponible {
  background-color: rgba(207, 107, 82, 0.85); /* Naranja/Terracota */
}
.leyenda-color.apartada {
  background-color: rgba(214, 167, 90, 0.85); /* Amarillo/Mostaza */
}
.leyenda-texto {
  font-family: var(--font-main);
  font-size: 1.1rem;
  color: #555;
  font-weight: 500;
  letter-spacing: 0.5px;
}
@media (max-width: 768px) {
  .inventario-leyenda {
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
  }
}

/* TABLA INVENTARIO */
.inventario-table-wrapper {
  max-width: 1050px;
  margin: 60px auto 0;
  overflow-x: auto;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border-radius: 8px;
  background: #fff;
}
.inventario-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-main);
  background: #fff;
  font-size: 0.85rem;
  text-align: center;
  min-width: 800px;
}
.inventario-table th {
  background-color: #fbf6f2;
  color: #c06342;
  font-weight: 600;
  padding: 10px 8px;
  border: 1px solid #f2ece6;
  white-space: nowrap;
}
.inventario-table td {
  padding: 8px 8px;
  border: 1px solid #f2ece6;
  color: #555;
}
.inventario-table tbody tr {
  transition: background-color 0.2s ease;
}
.inventario-table .row-vendido td {
  background-color: #eba586; /* Naranja claro */
  color: #fff;
}
.inventario-table .row-vendido:hover td {
  background-color: #e09776; /* Hover ligeramente más oscuro */
}
.inventario-table .row-disponible td {
  background-color: #fff;
}
.inventario-table .row-disponible:hover td {
  background-color: #fbf2ee; /* Hover naranja muy sutil */
}
.inventario-table td.col-piso {
  background-color: #a85a3a !important; /* Marrón oscuro */
  color: #fff !important;
  font-weight: 600;
  font-size: 0.95rem;
  vertical-align: middle;
  border: 1px solid #ebd2c5;
}

/* Ocultar tabla estática en versión móvil */
@media (max-width: 768px) {
  .inventario-table-wrapper {
    display: none;
  }
}
