/* NAVBAR */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  padding: 1.5rem 0; transition: padding 0.3s, transform 0.3s;
  background: var(--color-white); color: var(--color-black);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.navbar.scrolled { padding: 1rem 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 100%; width: 100%; padding: 0 10%; }
.nav-brand img { height: 25px; transition: filter 0.3s; filter: brightness(0); } /* Black logo */
.nav-links { display: flex; gap: 2.5rem; list-style: none; align-items: center; margin: 0; }
.nav-links a { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; color: var(--color-black); font-weight: 500; }
.icon-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--color-black); transition: color 0.3s; }

/* HERO SLIDER */
.hero-slider .splide { visibility: visible !important; }
.hero-slider .splide__track { height: 100vh; }
.hero-slider .splide__list { height: 100%; }
.hero-slider .splide__slide { position: relative; width: 100%; min-width: 100%; height: 100vh; display: flex; align-items: center; overflow: hidden; }
.slide-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: 0; }
.slide-bg::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%), linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 40%); }
@media (min-width: 1025px) {
  .slide-bg::after {
    background: linear-gradient(to right, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.46) 36%, rgba(0,0,0,0.08) 72%, transparent 100%);
  }
}
.slide-content { position: relative; z-index: 1; margin-left: 10%; color: var(--color-white); }
.slide-content h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 2rem; line-height: 1.1; font-weight: 400; letter-spacing: -1px; }
.desktop-break { display: inline; }
.btn-link { color: var(--color-white); text-transform: uppercase; letter-spacing: 1px; border-bottom: 1px solid currentColor; font-size: 0.9rem; transition: opacity 0.3s; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-link:hover { opacity: 0.6; text-decoration: none; }
/* SOCIALS */
.social-bar { padding: 2rem 0; border-bottom: 1px solid #ddd; }
.social-icons { display: flex; gap: 2rem; font-size: 1.5rem; color: var(--color-text); }

/* SLIDER COMPONENTS */
.section-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; }
.section-header h2 { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 300; letter-spacing: -1px; }
.custom-arrows { display: flex; gap: 1rem; }
.custom-arrows button { background: none; border: 1px solid #ddd; border-radius: 50%; width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 1.2rem; transition: 0.3s; color: var(--color-black); }
.custom-arrows button:hover { background: var(--color-black); color: var(--color-white); border-color: var(--color-black); }

/* PRODUCTS / NEWS CARDS */
.card-product { display: block; }
.card-product img { width: 100%; height: 350px; object-fit: cover; margin-bottom: 1rem; }
.card-product span { font-size: 1.2rem; font-family: var(--font-sans); font-weight: 400; letter-spacing: -0.5px; }

.card-news .date { font-size: 0.8rem; letter-spacing: 1px; color: var(--color-text); display: block; margin-bottom: 1rem; text-transform: uppercase; }
.card-news img { width: 100%; height: 450px; object-fit: cover; margin-bottom: 1rem; }
.card-news h3 { font-size: 1.5rem; }

/* OFFSET OVERLAYS */
.relative { position: relative; }
.content-overlay-right { margin-left: -100px; position: relative; z-index: 10; }

/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 1rem 0; border: none; border-bottom: 1px solid #ccc; background: transparent; font-family: var(--font-sans); font-size: 1rem; outline: none; transition: border-color 0.3s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--color-black); }
.btn-submit { margin-top: 1rem; padding: 0; background: transparent; color: var(--color-black); border: none; text-transform: uppercase; letter-spacing: 1px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1rem; border-bottom: 1px solid currentColor; transition: opacity 0.3s; }
.btn-submit:hover { opacity: 0.6; }

/* FOOTER */
.footer { padding: 4rem 0; border-top: 1px solid #ddd; }
.footer h3 { font-family: var(--font-sans); font-weight: 500; font-size: 1rem; margin-bottom: 1.5rem; text-transform: uppercase; letter-spacing: 1px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links a { color: var(--color-text); font-size: 0.95rem; }
.footer-logo { max-width: 150px; filter: brightness(0); } /* Black logo */

@media (max-width: 992px) {
  .nav-center, .nav-right .nav-links { display: none; } /* Simplified mobile nav */
  .grid-50 { grid-template-columns: 1fr; gap: 2rem; }
  .content-overlay-right { margin-left: 0; padding: 2rem 0; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .grid-4 { grid-template-columns: 1fr; }
  .heading-large { font-size: 2.5rem; }
}

/* MODAL */
.modal-overlay {
  display: none;
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content {
  background: var(--color-white);
  padding: 4rem; max-width: 600px; width: 100%;
  box-shadow: 0 40px 80px rgba(0,0,0,0.1);
  position: relative;
  max-height: 90vh; overflow-y: auto;
  transform: translateY(20px); transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content { transform: translateY(0); }
.modal-close {
  position: absolute; top: 2rem; right: 2rem;
  background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--color-black);
}
.modal-content-large {
  max-width: 1040px;
  padding: 3rem;
}
.modal-content-large .modal-splide {
  margin-bottom: 2.5rem;
}
.modal-content-large .modal-splide img {
  width: 100%;
  height: min(48vh, 520px);
  object-fit: cover;
}
.sauna-modal-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f4f4f4;
}
.sauna-modal-media .splide__track,
.sauna-modal-media .splide__list,
.sauna-modal-media .splide__slide {
  height: 100%;
}
.sauna-modal-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}
.modal-product-header {
  max-width: 760px;
  margin-bottom: 2rem;
}
.modal-product-header h4 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  margin: 1rem 0;
  color: var(--color-black);
}
.modal-rich-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}
.modal-rich-grid h5 {
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: var(--color-black);
}
.modal-rich-grid p,
.modal-rich-grid li {
  color: #555;
  font-size: 0.98rem;
  line-height: 1.7;
  font-weight: 300;
}
.modal-rich-grid p {
  margin-bottom: 1rem;
}
.modal-rich-grid ul {
  margin-left: 1.1rem;
}
.modal-rich-grid li {
  margin-bottom: 0.65rem;
}

/* PRODUCT SLIDER */
.product-slide-card { cursor: pointer; display: block; }
.product-slide-card img { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; margin-bottom: 1.5rem; background: #eee; }
.product-slide-card > div:first-child {
  position: relative;
  width: 100% !important;
  aspect-ratio: 1 / 1;
  height: auto !important;
  margin-bottom: 0 !important;
  background: #f4f4f4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  overflow: hidden;
}
.product-slide-card > div:first-child img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  margin-bottom: 0;
}
.product-slide-card h4 {
  display: block;
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 400;
  color: var(--color-black);
  border-bottom: none;
  transition: opacity 0.3s;
  opacity: 1 !important;
  transform: none !important;
}
.product-slide-card:hover h4 { opacity: 0.65; }
.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 0.8rem;
  border-radius: 0;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.product-badge-inline {
  position: static;
}

/* SIDE DRAWER (BLOG) */
.drawer-overlay {
  display: none;
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  justify-content: flex-end;
  opacity: 0; transition: opacity 0.4s ease;
}
.drawer-overlay.active { display: flex; opacity: 1; }
.drawer-content {
  width: 50vw; height: 100vh;
  background: var(--color-white);
  padding: 4rem 6rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.05);
  position: relative;
}
.drawer-overlay.active .drawer-content {
  transform: translateX(0);
}
@media (max-width: 992px) {
  .drawer-content { width: 70vw; padding: 3rem; }
  .obras-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
  .obras-text { position: static !important; }
  .modal-rich-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .drawer-content { width: 100vw; padding: 2rem; }
  .modal-content { width: 90vw; padding: 2rem; }
  .modal-content-large { padding: 2rem; }
  .slider-arrows { justify-content: space-between; position: absolute; width: 100%; top: 50%; transform: translateY(-50%); padding: 0 1rem; }
  .desktop-break { display: none; }
}

#obras-splide .splide__pagination__page {
  background: transparent;
  border: 1px solid var(--color-black);
  border-radius: 0;
  width: 10px;
  height: 10px;
  margin: 0;
  opacity: 1;
}
#obras-splide .splide__pagination__page.is-active {
  background: var(--color-black);
  transform: none;
}
#obras-splide .splide__pagination {
  display: none !important;
}

/* Obras Realizadas Carousel Image Custom Sizing */
.obra-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 4px;
}
@media (max-width: 992px) {
  .obra-card img {
    height: 440px;
  }
}
@media (max-width: 768px) {
  .obra-card img {
    height: 360px;
  }
}
