/* ========================================
   Well-Views — Custom Styles
   Complementary to Tailwind CSS utilities
   ======================================== */

/* ---------- Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ---------- Navbar ---------- */
.navbar {
  padding-top: 24px;
  padding-bottom: 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: padding 400ms cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Estado rolado (compacto) */
.navbar[data-scrolled="true"] {
  padding-top: 10px;
  padding-bottom: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* ---------- CTA Button hover glow ---------- */
.cta-button {
  box-shadow: 0 0 0 0 rgba(255, 246, 0, 0);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
  box-shadow: 0 0 20px 4px rgba(255, 246, 0, 0.35);
}

/* ---------- Hero Section ---------- */
.hero-section img {
  transition: transform 8s ease-out;
}

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

/* ---------- Scroll Indicator pulse ---------- */
.scroll-indicator {
  transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
  opacity: 0.8;
}

/* ---------- Responsive fine-tuning ---------- */
@media (max-width: 480px) {
  .hero-section {
    min-height: 70vh;
  }
}

/* ---------- Modals ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(1, 8, 25, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background: #010819;
  border: 2px solid #FFF600;
  border-radius: 12px;
  max-width: 90%;
  width: 500px;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(255, 246, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  z-index: 1;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #F0F0F0;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
  color: #FFF600;
  background: rgba(255, 246, 0, 0.1);
}

.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #FFF600;
  margin-bottom: 16px;
  margin-right: 32px;
}

.modal-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: #DADADA;
}

@media (max-width: 640px) {
  .modal-content {
    padding: 24px;
    max-width: 95%;
  }
  
  .modal-title {
    font-size: 24px;
  }
  
  .modal-text {
    font-size: 14px;
  }
}
