/* ==========================================================================
   BRICSO CREATIVO - Sitio en Construcción
   Design System: Dark Industrial & High-End Creative Agency
   Colors: Charcoal / Textured Dark Gray + Radiant Orange + Pure White
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #0a0c0f;
  --bg-secondary: #111419;
  --bg-card: rgba(19, 23, 29, 0.72);
  --bg-card-hover: rgba(28, 33, 42, 0.85);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --border-orange: rgba(255, 94, 20, 0.4);
  
  /* Orange Brand Accents */
  --orange-primary: #ff5e14;
  --orange-bright: #ff7a1a;
  --orange-light: #ffa15c;
  --orange-glow: rgba(255, 94, 20, 0.35);
  --orange-subtle-bg: rgba(255, 94, 20, 0.1);
  
  /* Typography Colors */
  --text-pure: #ffffff;
  --text-muted: #e1e4ea;
  --text-dim: #949ca8;
  --text-dark: #626a79;
  
  /* Typography Fonts */
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'Space Grotesk', monospace, sans-serif;
  
  /* Transitions & Shadows */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 25px var(--orange-glow);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  /* Disable text selection and drag by default across the UI */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-muted);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Allow text input interaction for forms */
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* ==========================================================================
   Ambient Background & Texture Canvas
   ========================================================================== */
.background-canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

#ambient-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Noise Texture Overlay */
.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Subtle Geometric Grid Overlay */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 85%);
}

/* Atmospheric Glow Orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.22;
  will-change: transform;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  top: -10%;
  left: 15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--orange-bright), transparent 70%);
}

.orb-2 {
  bottom: 5%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #d44200, transparent 70%);
  animation-duration: 22s;
  animation-delay: -5s;
}

.orb-3 {
  top: 40%;
  right: 25%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.3), transparent 70%);
  animation-duration: 15s;
  animation-delay: -8s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(-30px, 50px) scale(0.95); }
}

/* ==========================================================================
   Page Layout & Wrapper
   ========================================================================== */
.page-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: space-between;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
  animation: fadeInDown 0.8s ease-out;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}

.logo-symbol {
  position: relative;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #1c212a, #111419);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
}

.brand-logo:hover .logo-symbol {
  border-color: var(--orange-primary);
  transform: rotate(6deg) scale(1.05);
  box-shadow: 0 0 20px var(--orange-glow);
}

.symbol-cube {
  width: 18px;
  height: 18px;
  border: 2px solid var(--orange-bright);
  border-radius: 4px;
  transform: rotate(45deg);
  transition: var(--transition-fast);
}

.symbol-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--text-pure);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-pure);
}

.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--orange-bright);
  text-transform: uppercase;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(22, 27, 34, 0.85);
  border: 1px solid rgba(255, 94, 20, 0.3);
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--orange-bright);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange-bright);
  opacity: 0.5;
  animation: pulseAnim 2s infinite ease-out;
}

@keyframes pulseAnim {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.status-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-pure);
}

/* ==========================================================================
   Main Content Area
   ========================================================================== */
.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 2rem auto;
  max-width: 820px;
  animation: fadeInUp 0.9s ease-out;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange-subtle-bg);
  border: 1px solid var(--border-orange);
  color: var(--orange-light);
  padding: 0.4rem 1.1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-pure);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 15%, var(--orange-bright) 70%, #ff9e42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-dim);
  max-width: 680px;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-description strong {
  color: var(--text-pure);
  font-weight: 600;
}

/* ==========================================================================
   Countdown Section
   ========================================================================== */
.countdown-section {
  width: 100%;
  margin-bottom: 2.5rem;
}

.countdown-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.countdown-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.5rem 1.75rem;
  min-width: 120px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.countdown-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-orange);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.countdown-value {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1;
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}

.countdown-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--orange-light);
  position: relative;
  z-index: 1;
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--orange-bright), transparent);
  opacity: 0.7;
}

.countdown-divider {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange-bright);
  opacity: 0.6;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Progress Meter
   ========================================================================== */
.progress-box {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.5rem 1.8rem;
  backdrop-filter: blur(16px);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-card);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}

.progress-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-pure);
  font-weight: 600;
  font-size: 0.95rem;
}

.progress-info i {
  color: var(--orange-bright);
}

.progress-percentage {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--orange-bright);
}

.progress-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff4500, var(--orange-bright), #ffa34d);
  border-radius: 9999px;
  position: relative;
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 12px var(--orange-glow);
}

.progress-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: glareMove 2.5s infinite linear;
}

@keyframes glareMove {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.milestones-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-family: var(--font-mono);
}

.milestone {
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.milestone.completed {
  color: var(--text-dim);
}

.milestone.completed i {
  color: #10b981;
}

.milestone.active {
  color: var(--orange-bright);
  font-weight: 600;
}

/* ==========================================================================
   Subscription / Notify Form
   ========================================================================== */
.notify-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(25, 30, 38, 0.8) 0%, rgba(16, 19, 24, 0.8) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.2rem 2rem;
  backdrop-filter: blur(16px);
  margin-bottom: 3rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.notify-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 30%;
  width: 40%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange-bright), transparent);
}

.notify-header {
  margin-bottom: 1.5rem;
}

.notify-header h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--text-pure);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.notify-header p {
  font-size: 0.92rem;
  color: var(--text-dim);
}

.subscribe-form {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(10, 12, 16, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.4rem 0.4rem 0.4rem 1.1rem;
  transition: var(--transition-fast);
}

.input-group:focus-within {
  border-color: var(--orange-bright);
  box-shadow: 0 0 15px var(--orange-glow);
}

.input-icon {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-right: 0.75rem;
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-pure);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.6rem 0;
}

.input-group input::placeholder {
  color: var(--text-dark);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange-bright), var(--orange-primary));
  color: var(--text-pure);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: var(--transition-fast);
  box-shadow: 0 4px 14px rgba(255, 94, 20, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff8a33, #ff5e14);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 94, 20, 0.6);
}

.btn-primary:active {
  transform: translateY(0);
}

.form-feedback {
  margin-top: 0.8rem;
  font-size: 0.85rem;
  min-height: 20px;
  transition: var(--transition-fast);
}

.form-feedback.success {
  color: #10b981;
}

.form-feedback.error {
  color: #ef4444;
}

/* ==========================================================================
   Services Teaser Cards
   ========================================================================== */
.services-teaser {
  width: 100%;
}

.teaser-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.25rem;
}

.teaser-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem 1.3rem;
  text-align: left;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.teaser-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 94, 20, 0.35);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.teaser-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--orange-subtle-bg);
  border: 1px solid rgba(255, 94, 20, 0.25);
  color: var(--orange-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
  transition: var(--transition-fast);
}

.teaser-card:hover .teaser-icon {
  background: var(--orange-bright);
  color: var(--text-pure);
  box-shadow: 0 0 15px var(--orange-glow);
}

.teaser-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 0.4rem;
}

.teaser-card p {
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 2.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-dim);
  animation: fadeInUp 1s ease-out;
}

.footer-copyright {
  width: 100%;
  letter-spacing: 0.03em;
}

.footer-copyright strong {
  color: var(--text-pure);
  font-weight: 600;
}

/* ==========================================================================
   Toast Notification
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: #14181f;
  border: 1px solid var(--border-orange);
  border-left: 4px solid var(--orange-bright);
  color: var(--text-pure);
  padding: 1rem 1.4rem;
  border-radius: 10px;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  animation: slideToastIn 0.35s ease-out forwards;
}

.toast.toast-security {
  border-color: rgba(255, 94, 20, 0.6);
  border-left-color: #ff3b30;
  background: linear-gradient(135deg, #1c1417, #13171d);
}

.toast.toast-security i {
  color: #ff5e14;
}

.toast i {
  color: var(--orange-bright);
  font-size: 1.1rem;
}

@keyframes slideToastIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 768px) {
  .page-wrapper {
    padding: 1.25rem 1rem 2rem;
  }

  .header {
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    text-align: center;
  }

  .countdown-card {
    min-width: 76px;
    padding: 1.1rem 0.9rem;
  }

  .countdown-divider {
    font-size: 1.5rem;
  }

  .input-group {
    flex-direction: column;
    padding: 0.6rem;
    background: rgba(14, 18, 23, 0.9);
  }

  .input-group input {
    width: 100%;
    padding: 0.6rem 0.5rem;
    text-align: center;
  }

  .input-icon {
    display: none;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 0.4rem;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.2rem;
  }

  .milestones-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
}
