/* ==========================================================================
   COMPAÑÍA YEPEZ — LANDING PAGE MINIMALISTA "EN CONSTRUCCIÓN"
   Esquema Invertido:
     - Fondo: Blanco Puro / Off-White (#FFFFFF, #FAFAFA)
     - Estructuras y Líneas: Negro Arquitectónico (#0F172A / #111827)
     - Colores Institucionales Yepez:
         * Azul Corporativo: #00427F
         * Naranja Construcción: #E74915
   ========================================================================== */

:root {
  --color-bg: #FFFFFF;
  --color-bg-subtle: #F8FAFC;
  --color-line: #0F172A;
  --color-line-light: #E2E8F0;
  
  --color-yepez-blue: #00427F;
  --color-yepez-orange: #E74915;
  --color-yepez-orange-hover: #D03D0D;

  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-full: 9999px;

  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100vh;
  background-color: var(--color-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Main Container Layout */
.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
  padding: 32px 36px 24px;
}

/* ==========================================================================
   Entrance Motion Effects
   ========================================================================== */
.top-nav {
  animation: motionFadeDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.header-group {
  animation: motionFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.illustration-container {
  animation: motionFadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.countdown-section {
  animation: motionFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.35s both;
}

.quick-notify-box {
  animation: motionFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}

.bottom-footer {
  animation: motionFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

@keyframes motionFadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes motionFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Top Navigation (Logo on Top-Left)
   ========================================================================== */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
}

.logo-wrapper {
  display: flex;
  align-items: center;
}

.company-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

.company-logo:hover {
  transform: scale(1.03);
}

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

.nav-btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #FFFFFF;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.25);
  transition: all var(--transition-fast);
}

.nav-btn-whatsapp:hover {
  background: #1fa851;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 211, 102, 0.4);
}

/* ==========================================================================
   Main Stage (Hero & Center Alignment)
   ========================================================================== */
.main-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 0 36px;
}

.header-group {
  max-width: 780px;
  margin-bottom: 24px;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-yepez-orange);
  background: rgba(231, 73, 21, 0.08);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-yepez-orange);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.35); }
}

.main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--color-line);
  margin-bottom: 14px;
}

.main-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 400;
}

.main-subtitle strong {
  color: var(--color-yepez-blue);
  font-weight: 600;
}

/* ==========================================================================
   Architectural Vector Skyline Illustration & Motion
   ========================================================================== */
.illustration-container {
  width: 100%;
  max-width: 980px;
  margin: 10px auto 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Floating interactive speech bubble */
.interactive-speech-bubble {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid var(--color-line-light);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.interactive-speech-bubble i {
  color: var(--color-yepez-orange);
  font-size: 0.9rem;
}

.interactive-speech-bubble:hover {
  background: var(--color-bg-subtle);
  border-color: var(--color-yepez-orange);
  color: var(--color-line);
  transform: translateY(-1px);
}

.city-skyline-svg {
  width: 100%;
  height: auto;
  max-height: 320px;
  overflow: visible;
  filter: drop-shadow(0 10px 25px rgba(15, 23, 42, 0.03));
}

/* --------------------------------------------------------------------------
   Crane Motion Physics (Trolley Traverse & Pendulum Sway)
   -------------------------------------------------------------------------- */
.crane-trolley-system {
  animation: craneTrolleyTraverse 14s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  cursor: grab;
}

.crane-trolley-system:active {
  cursor: grabbing;
}

@keyframes craneTrolleyTraverse {
  0% {
    transform: translateX(0px);
  }
  30% {
    transform: translateX(45px);
  }
  60% {
    transform: translateX(20px);
  }
  100% {
    transform: translateX(70px);
  }
}

.crane-hook-assembly {
  transform-origin: 427px 83px;
  animation: craneHookPhysics 14s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite alternate;
  transition: transform 0.3s ease;
}

@keyframes craneHookPhysics {
  0% {
    transform: rotate(0deg) translateY(0px);
  }
  15% {
    transform: rotate(-2.5deg) translateY(-2px);
  }
  30% {
    transform: rotate(1.8deg) translateY(3px);
  }
  45% {
    transform: rotate(-1.5deg) translateY(-1px);
  }
  75% {
    transform: rotate(2.2deg) translateY(2px);
  }
  100% {
    transform: rotate(-1deg) translateY(0px);
  }
}

/* User Click Celebration on Crane Hook */
.crane-lift-active {
  animation: hoistBeamAction 1.4s ease-in-out forwards !important;
}

@keyframes hoistBeamAction {
  0% { transform: translateY(0px) rotate(0deg); }
  40% { transform: translateY(-24px) rotate(-3deg); }
  70% { transform: translateY(-20px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* --------------------------------------------------------------------------
   Interactive Building Windows & Elements
   -------------------------------------------------------------------------- */
.city-skyline-svg rect[fill="#F8FAFC"],
.city-skyline-svg path[fill="#F8FAFC"] {
  transition: fill 0.25s ease, filter 0.25s ease;
  cursor: pointer;
}

.city-skyline-svg rect[fill="#F8FAFC"]:hover,
.city-skyline-svg path[fill="#F8FAFC"]:hover,
.window-active-glow {
  fill: var(--color-yepez-orange) !important;
  filter: drop-shadow(0 0 5px rgba(231, 73, 21, 0.75));
}

.arch-element {
  transition: transform var(--transition-smooth);
}

.arch-element:hover {
  cursor: pointer;
}

/* ==========================================================================
   Countdown Section (Minimalist & Crisp)
   ========================================================================== */
.countdown-section {
  margin-bottom: 28px;
}

.countdown-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: #FFFFFF;
  border: 1px solid var(--color-line-light);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.countdown-display:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 58px;
}

.countdown-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
  color: var(--color-line);
  letter-spacing: -0.02em;
  transition: transform 0.15s ease-out;
}

.countdown-number.tick-animate {
  transform: scale(1.12);
  color: var(--color-yepez-orange);
}

.countdown-number.accent-orange {
  color: var(--color-yepez-orange);
}

.countdown-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 4px;
}

.countdown-sep {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-line-light);
  line-height: 1;
  margin-bottom: 12px;
}

.countdown-caption {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-weight: 500;
}

/* ==========================================================================
   Quick Lead Form ("Notifícame")
   ========================================================================== */
.quick-notify-box {
  width: 100%;
  max-width: 480px;
  margin-bottom: 10px;
}

.notify-form {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 4px;
  transition: all var(--transition-fast);
}

.notify-form:focus-within {
  box-shadow: 0 0 0 3px rgba(231, 73, 21, 0.2);
  border-color: var(--color-yepez-orange);
}

.notify-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text-primary);
  outline: none;
}

.notify-form input::placeholder {
  color: var(--text-muted);
}

.notify-form button {
  background: var(--color-line);
  color: #FFFFFF;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.notify-form button:hover {
  background: var(--color-yepez-orange);
}

.notify-toast {
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.notify-toast.success {
  background: #DCFCE7;
  color: #166534;
}

.notify-toast.error {
  background: #FEE2E2;
  color: #991B1B;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   Footer & Quick Direct Contact Channels
   ========================================================================== */
.bottom-footer {
  border-top: 1px solid var(--color-line-light);
  padding-top: 24px;
  text-align: center;
}

.contact-strip-minimal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.contact-link:hover {
  color: var(--color-yepez-orange);
}

.contact-link.whatsapp-highlight {
  color: #16A34A;
}

.contact-link.whatsapp-highlight:hover {
  color: #15803D;
}

.dot-divider {
  color: var(--color-line-light);
  font-size: 0.85rem;
}

.copyright-bar p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Waterproofing & Hydrophobic Rain Effects (Animaciones de Impermeabilización)
   ========================================================================== */
.falling-raindrops .rain-drop {
  animation: rainDropFall 2s linear infinite;
  opacity: 0;
}

.drop-1 { animation-delay: 0.1s; }
.drop-2 { animation-delay: 0.5s; }
.drop-3 { animation-delay: 0.9s; }
.drop-4 { animation-delay: 0.3s; }
.drop-5 { animation-delay: 0.7s; }
.drop-6 { animation-delay: 1.1s; }

@keyframes rainDropFall {
  0% {
    transform: translate(0, -25px);
    opacity: 0;
  }
  20% {
    opacity: 0.9;
  }
  80% {
    opacity: 0.9;
  }
  100% {
    transform: translate(-10px, 40px);
    opacity: 0;
  }
}

.splash-ring {
  transform-origin: center;
  animation: splashRipple 2s ease-out infinite;
}

.splash-1 { animation-delay: 0.6s; }
.splash-2 { animation-delay: 1.2s; }

@keyframes splashRipple {
  0% {
    opacity: 0;
    transform: scale(0.6);
  }
  30% {
    opacity: 1;
    transform: scale(1.15);
  }
  70% {
    opacity: 0.4;
    transform: scale(1.4);
  }
  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

.rolling-droplet {
  animation: dropletBeadRoll 4s ease-in-out infinite alternate;
}

@keyframes dropletBeadRoll {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(12px) scale(1.1); fill: var(--color-yepez-orange); }
  100% { transform: translateY(28px) scale(0.9); fill: var(--color-yepez-blue); }
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 768px) {
  .page-container {
    padding: 20px 20px 18px;
  }

  .top-nav {
    justify-content: center;
    text-align: center;
  }

  .logo-wrapper {
    width: 100%;
    justify-content: center;
  }

  .main-stage {
    padding: 16px 0;
  }

  .main-title {
    font-size: 2.2rem;
  }

  .countdown-display {
    gap: 8px;
    padding: 10px 16px;
  }

  .countdown-unit {
    min-width: 44px;
  }

  .countdown-number {
    font-size: 1.6rem;
  }

  .countdown-sep {
    font-size: 1.3rem;
  }

  .notify-form {
    flex-direction: column;
    padding: 6px;
    gap: 8px;
  }

  .notify-form input {
    width: 100%;
    text-align: center;
  }

  .notify-form button {
    width: 100%;
    justify-content: center;
  }

  .contact-strip-minimal {
    flex-direction: column;
    gap: 10px;
  }

  .dot-divider {
    display: none;
  }
}
