/* ============================================================
   MULTISERVICIOS GLOBALES - PÁGINA EN CONSTRUCCIÓN
   Diseño moderno con animaciones y colores corporativos
   ============================================================ */

/* ===================== VARIABLES ===================== */
:root {
  /* Colores corporativos */
  --color-primary: #0057b8;
  --color-primary-dark: #004a97;
  --color-accent: #ff4500;
  --color-dark: #0f172a;
  --color-light: #fffafb;
  --color-gray: #7a7e83;
  --color-gray-light: #e2e8f0;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  --gradient-hero: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0, 87, 184, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 87, 184, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 87, 184, 0.16);
  --shadow-xl: 0 12px 48px rgba(0, 87, 184, 0.2);
  
  /* Espaciado */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Animación */
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Tipografía */
  --font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===================== RESET Y BASE ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family);
  background: var(--gradient-hero);
  color: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

/* ===================== PARTÍCULAS DE FONDO ===================== */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.3;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-light);
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100vh) translateX(50px);
    opacity: 0;
  }
}

/* ===================== CONTENEDOR PRINCIPAL ===================== */
.container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg);
  text-align: center;
}

/* ===================== LOGO Y MARCA ===================== */
.logo-container {
  margin-bottom: var(--spacing-xl);
  animation: fadeInDown 1s ease-out;
}

.logo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  animation: pulse 3s ease-in-out infinite;
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.1) rotate(5deg);
}

.logo svg {
  width: 48px;
  height: 48px;
  color: white;
}

.brand-name {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-light);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================== CONTENIDO PRINCIPAL ===================== */
.content {
  max-width: 900px;
  animation: fadeInUp 1s ease-out 0.3s backwards;
}

.title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--spacing-xl);
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* ===================== ANIMACIÓN DE CONSTRUCCIÓN ===================== */
.construction-animation {
  margin: calc(var(--spacing-xl) * 1.5) auto;
  max-width: 500px;
}

.crane {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto var(--spacing-lg);
  animation: sway 4s ease-in-out infinite;
}

.crane-arm {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 80px;
  height: 6px;
  background: var(--gradient-accent);
  border-radius: 3px;
  transform-origin: left center;
  transform: translateX(-50%) rotate(-30deg);
  box-shadow: var(--shadow-md);
}

.crane-cable {
  position: absolute;
  top: 20px;
  left: 50%;
  width: 2px;
  height: 60px;
  background: rgba(255, 255, 255, 0.6);
  transform: translateX(-50%);
  animation: cableMove 3s ease-in-out infinite;
}

.crane-hook {
  position: absolute;
  top: 80px;
  left: 50%;
  width: 40px;
  height: 40px;
  background: var(--gradient-accent);
  border-radius: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  animation: hookSwing 3s ease-in-out infinite;
}

.crane-hook svg {
  width: 24px;
  height: 24px;
  color: white;
}

@keyframes sway {
  0%, 100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

@keyframes cableMove {
  0%, 100% {
    height: 60px;
  }
  50% {
    height: 50px;
  }
}

@keyframes hookSwing {
  0%, 100% {
    transform: translateX(-50%) rotate(0deg);
  }
  50% {
    transform: translateX(-50%) rotate(10deg);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: var(--shadow-xl);
  }
  50% {
    box-shadow: 0 12px 48px rgba(255, 69, 0, 0.4);
  }
}

/* ===================== BARRA DE PROGRESO ===================== */
.progress-container {
  margin-top: var(--spacing-lg);
}

.progress-bar {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: var(--gradient-accent);
  border-radius: 20px;
  transition: width 0.3s ease-out;
  box-shadow: 0 2px 8px rgba(255, 69, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

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

.progress-text {
  margin-top: var(--spacing-sm);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-light);
}

#percentage {
  color: var(--color-accent);
  font-weight: 700;
}

/* ===================== FORMULARIO DE NOTIFICACIÓN ===================== */
.notify-section {
  margin: calc(var(--spacing-xl) * 1.5) auto;
  max-width: 500px;
  animation: fadeInUp 1s ease-out 0.8s backwards;
}

.notify-section h3 {
  font-size: 1.375rem;
  font-weight: 500;
  margin-bottom: var(--spacing-lg);
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.01em;
}

.notify-form {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.notify-form input {
  flex: 1;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-family: var(--font-family);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: var(--color-light);
  transition: all var(--transition);
  outline: none;
}

.notify-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.notify-form input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(255, 69, 0, 0.1);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-family);
  background: var(--gradient-accent);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn-primary svg {
  width: 20px;
  height: 20px;
}

.notify-success {
  display: none;
  padding: 1rem;
  background: rgba(34, 197, 94, 0.2);
  border: 2px solid rgba(34, 197, 94, 0.4);
  border-radius: 12px;
  color: #86efac;
  font-weight: 500;
  animation: slideInUp 0.5s ease-out;
}

.notify-success.show {
  display: block;
}

/* ===================== FOOTER ===================== */
.footer {
  margin-top: calc(var(--spacing-xl) * 1.5);
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  animation: fadeIn 1s ease-out 1s backwards;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.social-links a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--color-light);
  transition: all var(--transition);
}

.social-links a:hover {
  background: var(--gradient-accent);
  border-color: var(--color-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.social-links a svg {
  width: 24px;
  height: 24px;
}

.copyright {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* ===================== ANIMACIONES ===================== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

/* ===================== RESPONSIVE ===================== */

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  :root {
    --spacing-xl: 2.5rem;
  }

  .container {
    padding: var(--spacing-lg) var(--spacing-md);
  }

  .logo {
    width: 72px;
    height: 72px;
  }

  .logo svg {
    width: 42px;
    height: 42px;
  }

  .brand-name {
    font-size: 1.75rem;
  }

  .title {
    font-size: 2.75rem;
  }

  .subtitle {
    font-size: 1.125rem;
    max-width: 550px;
  }

  .crane {
    width: 100px;
    height: 100px;
  }

  .crane-arm {
    width: 70px;
  }

  .crane-hook {
    width: 36px;
    height: 36px;
  }

  .crane-hook svg {
    width: 20px;
    height: 20px;
  }

  .progress-text {
    font-size: 1.125rem;
  }

  .notify-section {
    max-width: 480px;
  }

  .notify-section h3 {
    font-size: 1.25rem;
  }

  .social-links a {
    width: 44px;
    height: 44px;
  }

  .social-links a svg {
    width: 22px;
    height: 22px;
  }
}

/* Mobile (menos de 768px) */
@media (max-width: 767px) {
  :root {
    --spacing-sm: 0.75rem;
    --spacing-md: 1.25rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
  }

  html {
    font-size: 15px;
  }

  .container {
    padding: var(--spacing-md);
    min-height: 100vh;
    justify-content: flex-start;
    padding-top: 2rem;
  }

  .logo-container {
    margin-bottom: var(--spacing-lg);
  }

  .logo {
    width: 64px;
    height: 64px;
    margin-bottom: var(--spacing-sm);
  }

  .logo svg {
    width: 36px;
    height: 36px;
  }

  .brand-name {
    font-size: 1.5rem;
  }

  .content {
    max-width: 100%;
  }

  .title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
  }

  .subtitle {
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
    max-width: 100%;
    line-height: 1.6;
  }

  .subtitle br {
    display: none;
  }

  .construction-animation {
    margin: var(--spacing-lg) auto;
  }

  .crane {
    width: 90px;
    height: 90px;
    margin-bottom: var(--spacing-md);
  }

  .crane-arm {
    width: 60px;
    height: 5px;
  }

  .crane-cable {
    height: 50px;
  }

  .crane-hook {
    width: 32px;
    height: 32px;
    top: 70px;
  }

  .crane-hook svg {
    width: 18px;
    height: 18px;
  }

  .progress-bar {
    height: 10px;
  }

  .progress-text {
    font-size: 1rem;
    margin-top: var(--spacing-xs);
  }

  .notify-section {
    margin: var(--spacing-lg) auto;
    max-width: 100%;
  }

  .notify-section h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
  }

  .notify-form {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .notify-form input {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.25rem;
    font-size: 0.9375rem;
  }

  /* Prevenir zoom en iOS al hacer focus en inputs */
  .notify-form input,
  .notify-form button {
    font-size: 16px;
  }

  .footer {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
  }

  .social-links {
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
  }

  .social-links a {
    width: 42px;
    height: 42px;
  }

  .social-links a svg {
    width: 20px;
    height: 20px;
  }

  .copyright {
    font-size: 0.8125rem;
  }
}

/* Mobile pequeño (menos de 400px) */
@media (max-width: 399px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: var(--spacing-sm);
  }

  .logo {
    width: 56px;
    height: 56px;
  }

  .logo svg {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .title {
    font-size: 1.75rem;
  }

  .subtitle {
    font-size: 0.9375rem;
  }

  .crane {
    width: 80px;
    height: 80px;
  }

  .crane-arm {
    width: 50px;
    height: 4px;
  }

  .crane-hook {
    width: 28px;
    height: 28px;
    top: 60px;
  }

  .crane-hook svg {
    width: 16px;
    height: 16px;
  }

  .notify-form input,
  .btn-primary {
    font-size: 0.875rem;
    padding: 0.75rem 1rem;
  }

  /* Mejorar área táctil en móviles */
  .btn-primary,
  .social-links a {
    min-height: 44px;
    min-width: 44px;
  }

  .notify-form input {
    min-height: 44px;
  }

  .social-links a {
    width: 38px;
    height: 38px;
  }

  .social-links a svg {
    width: 18px;
    height: 18px;
  }
}

/* Laptop y Desktop grande (1024px+) */
@media (min-width: 1024px) {
  .container {
    padding: var(--spacing-xl);
  }

  .content {
    max-width: 850px;
  }

  .notify-form input:focus {
    transform: translateY(-2px);
  }

  .social-links a:hover {
    transform: translateY(-6px) scale(1.05);
  }
}

/* Orientación horizontal en móviles */
@media (max-height: 600px) and (orientation: landscape) {
  .container {
    padding: var(--spacing-sm) var(--spacing-md);
    padding-top: 1rem;
  }

  .logo-container {
    margin-bottom: var(--spacing-md);
  }

  .logo {
    width: 48px;
    height: 48px;
  }

  .logo svg {
    width: 28px;
    height: 28px;
  }

  .brand-name {
    font-size: 1.125rem;
  }

  .title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
  }

  .subtitle {
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
  }

  .construction-animation {
    margin: var(--spacing-md) auto;
  }

  .crane {
    width: 60px;
    height: 60px;
    margin-bottom: var(--spacing-sm);
  }

  .crane-arm {
    width: 40px;
    height: 4px;
  }

  .crane-hook {
    width: 24px;
    height: 24px;
    top: 50px;
  }

  .crane-hook svg {
    width: 14px;
    height: 14px;
  }

  .cable {
    height: 40px;
  }

  .progress-bar {
    height: 8px;
  }

  .progress-text {
    font-size: 0.875rem;
  }

  .notify-section {
    margin: var(--spacing-md) auto;
  }

  .notify-section h3 {
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
  }

  .notify-form input,
  .btn-primary {
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
  }

  .footer {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-sm);
  }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
