/* Inigo Films · Rubin Observatory Documentary Landing Page */
:root {
  --color-accent: #FB3783;
  --color-accent-hover: #e02873;
  --color-text-main: #1A1A1A;
  --color-text-muted: #767676;
  --color-bg-white: #FFFFFF;
  --color-bg-overlay: rgba(11, 14, 20, 0.55);
  --color-border: #E4E4E7;
  --font-logo: 'Libre Baskerville', serif;
  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --slide-fade-duration: 0.5s; /* Duración del fundido suave entre fotos */
  --transition-speed: 0.35s;
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  background: var(--color-bg-white);
  color: var(--color-text-main);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   SCREEN 1: THE DOOR (Logo centered on white)
   ========================================================================== */
#screen-door {
  position: fixed;
  inset: 0;
  background: var(--color-bg-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 50;
  cursor: pointer;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.6s;
}

#screen-door.hidden {
  opacity: 0;
  transform: scale(1.04);
  visibility: hidden;
  pointer-events: none;
}

.door-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  max-width: 90vw;
  width: 640px;
  text-align: center;
}

.door-logo {
  width: 100%;
  height: auto;
  max-height: 220px;
  transition: transform 0.4s ease;
}
.nav-logo{
  width: 200px;
  height: auto;
  max-height: 220px;
}
.door-card:hover .door-logo {
  transform: scale(1.02);
}

.door-hint {
  margin-top: 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  opacity: 0;
  animation: fadeInHint 1.2s ease forwards 2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.door-hint-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulseDot 1.8s infinite;
}

@keyframes fadeInHint {
  to { opacity: 0.85; }
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.6); opacity: 1; }
}

/* ==========================================================================
   SCREEN 2: SLIDESHOW + THE RUBIN PROJECT
   ========================================================================== */
#screen-slideshow {
  position: fixed;
  inset: 0;
  background: #000000;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Fullscreen Background Slides */
.slides-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  background: #000000;
}

.slide-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  pointer-events: none;
}

/* Semi-transparent dark vignette for text readability */
.slides-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(11, 14, 20, 0.45) 0%, rgba(11, 14, 20, 0.78) 100%);
  z-index: 2;
  pointer-events: none;
}

/* Top Navigation Bar */
.top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  padding: 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.brand-back-btn {
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-logo);
  font-size: 19px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: opacity 0.2s;
}

.brand-back-btn:hover {
  opacity: 0.85;
}

.brand-back-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  margin-top: -6px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Main Centered Content */
.center-content {
  position: relative;
  z-index: 5;
  text-align: center;
  padding: 0 24px;
  max-width: 960px;
  color: #FFFFFF;
}

.project-title-link {
  display: inline-block;
  text-decoration: none;
  color: #FFFFFF;
  cursor: pointer;
  border-radius: 8px;
  padding: 12px 18px;
  transition: transform 0.25s ease, background 0.25s ease;
}

.project-title-link:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.08);
}

.project-eyebrow {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.project-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  margin-bottom: 14px;
}

.project-subtitle {
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.play-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  border-radius: 50%;
  font-size: 11px;
  color: #FFFFFF;
  margin-right: 4px;
}

/* Actions Row (Sign Up & Contact) */
.action-buttons {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
}

.btn-primary {
  background: var(--color-accent);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(251, 55, 131, 0.35);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

/* Bottom Controls */
.bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  padding: 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

.control-btn {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.control-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.location-tag {
  text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* ==========================================================================
   MODALS: VIDEO, SIGN UP & QUESTIONS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.modal-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 36px;
  width: 100%;
  max-width: 540px;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  transform: translateY(16px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.modal-close-btn:hover {
  color: var(--color-text-main);
  background: var(--color-border);
}

/* Video Lightbox */
.modal-video-card {
  max-width: 1080px;
  width: 90vw;
  background: #000000;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.modal-video-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.7);
  color: #FFFFFF;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Form Styles */
.form-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text-main);
}

.form-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text-main);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text-main);
  background: #FAFAFA;
  transition: border-color 0.15s;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-accent);
  background: #FFFFFF;
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.channel-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.channel-option {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 10px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  background: #FAFAFA;
}

.channel-option.active {
  border-color: var(--color-accent);
  background: rgba(251, 55, 131, 0.08);
  color: var(--color-accent);
}

.direct-email-box {
  margin-top: 20px;
  padding: 14px;
  background: #F4F4F6;
  border-radius: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}

.direct-email-box a {
  color: var(--color-text-main);
  font-weight: 700;
  text-decoration: none;
}

.direct-email-box a:hover {
  color: var(--color-accent);
}

.form-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--color-text-main);
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.form-submit-btn:hover {
  background: var(--color-accent);
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.form-status.success {
  display: block;
  color: #0d8a43;
}

.form-status.error {
  display: block;
  color: #c92a2a;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile & Tablets)
   ========================================================================== */
@media (max-width: 768px) {
  .project-title {
    font-size: 32px;
  }
  .project-subtitle {
    font-size: 17px;
  }
  .action-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .top-bar, .bottom-bar {
    padding: 0 20px;
  }
  .door-card {
    padding: 20px;
  }
  .modal-card {
    padding: 24px;
  }
}
