:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e0;
    --text-muted: #a0aec0;
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --neumorphism-light: rgba(255, 255, 255, 0.1);
    --neumorphism-dark: rgba(0, 0, 0, 0.3);
    --shadow-light: rgba(255, 255, 255, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.4);
    --card-bg: rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
    align-items: center;
    justify-content: center;}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.15) 0%, transparent 50%),
        url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 1;
}

.container {
    background: var(--card-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 25px 45px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 var(--shadow-light),
        inset 0 -1px 0 var(--shadow-dark);
    padding: 3rem;
    width: 100%;
    max-width: 500px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--neumorphism-light) 0%, transparent 50%, var(--neumorphism-dark) 100%);
    border-radius: 30px;
    opacity: 0.6;
    pointer-events: none;
}

.container:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 35px 60px rgba(0, 0, 0, 0.4),
        inset 0 2px 0 var(--shadow-light),
        inset 0 -2px 0 var(--shadow-dark);
}

h1 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 800;
    font-size: 2.2rem;
    text-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.service {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    margin-bottom: 1.2rem;
    border: 1px solid var(--glass-border);
    box-shadow: 
        0 8px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 var(--shadow-light),
        inset 0 -1px 0 var(--shadow-dark);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
    position: relative;
    overflow: hidden;
}

.service::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--neumorphism-light) 0%, transparent 50%, var(--neumorphism-dark) 100%);
    border-radius: 20px;
    opacity: 0.4;
    pointer-events: none;
}

.service:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 15px 25px rgba(0, 0, 0, 0.3),
        inset 0 2px 0 var(--shadow-light),
        inset 0 -2px 0 var(--shadow-dark);
}

.service-name {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.status {
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 25px;
    opacity: 0.3;
    pointer-events: none;
}

.status.checking {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border-color: rgba(255, 193, 7, 0.25);
    box-shadow: 
        0 4px 8px rgba(255, 193, 7, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.status.checking::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 193, 7, 0.1));
}

.status.available {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
    border-color: rgba(40, 167, 69, 0.25);
    box-shadow: 
        0 4px 8px rgba(40, 167, 69, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.status.available::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(40, 167, 69, 0.1));
}

.status.unavailable {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.25);
    box-shadow: 
        0 4px 8px rgba(220, 53, 69, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.status.unavailable::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(220, 53, 69, 0.1));
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: currentColor;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

footer {
    background: var(--glass-bg);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    color: var(--text-primary);
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    box-shadow: 
        0 -8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 var(--shadow-light);
    position: relative;
    z-index: 10;
    border-radius: 12px;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--neumorphism-light) 0%, transparent 50%, var(--neumorphism-dark) 100%);
    opacity: 0.4;
    pointer-events: none;
}

footer a {
    color: var(--text-primary);
    text-decoration: none;
    margin: 0 20px;
    font-weight: 600;
    position: relative;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

footer a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -6px;
    left: 0;
    background: linear-gradient(90deg, #7c3aed, #3b82f6);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

footer a:hover {
    text-decoration: none;
    opacity: 0.9;
    transform: translateY(-2px);
}

footer a:hover::after {
    width: 100%;
}

.logo {
    position: absolute;
    top: 2rem;
    left: 2rem;
    max-width: 140px;
    filter: 
        drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4))
        drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2))
        brightness(1.1)
        contrast(1.1);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    z-index: 100;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.logo:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

@media (max-width: 768px) {
    .container {
        padding: 2rem;
        margin: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .logo {
        max-width: 120px;
        padding: 0.6rem;
    }
}

@media (max-width: 600px) {
    .logo {
        position: static;
        display: block;
        margin: 1.5rem auto 0;
        max-width: 140px;
    }
    
    .main-content {
        padding: 1rem;
        padding-top: 0;
    }
    
    .service {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.2rem;
    }
    
    .status {
        width: 100%;
        min-width: auto;
    }
    
    .container {
        padding: 1.5rem;
    }
}

/* Animaciones adicionales */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.container {
    animation: float 6s ease-in-out infinite;
}

/* Efectos de entrada */
.service {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
}

.service:nth-child(1) { animation-delay: 0.1s; }
.service:nth-child(2) { animation-delay: 0.2s; }
.service:nth-child(3) { animation-delay: 0.3s; }
.service:nth-child(4) { animation-delay: 0.4s; }
.service:nth-child(5) { animation-delay: 0.5s; }
.service:nth-child(6) { animation-delay: 0.6s; }
.service:nth-child(7) { animation-delay: 0.7s; }
.service:nth-child(8) { animation-delay: 0.8s; }
.service:nth-child(9) { animation-delay: 0.9s; }
.service:nth-child(10) { animation-delay: 1.0s; }

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
#resultado {
    margin-top: 30px;
    padding: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
  }

  #resultado.show {
    opacity: 1;
    transform: translateY(0);
  }

  .resultado-content {
    text-align: center;
    color: white;
    line-height: 1.6;
  }

  .ip-info {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .ip-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    font-size: 14px;
  }

  .ip-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
  }

  .ip-value {
    color: white;
    font-weight: 600;
  }

  .loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  .status-success {
    color: #4ade80;
    font-weight: 600;
  }

  .status-error {
    color: #f87171;
    font-weight: 600;
  }

  .info-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

  .info-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    font-size: 15px;
  }

  .info-content p {
    margin-bottom: 16px;
  }

  .info-content strong {
    color: white;
    font-weight: 600;
  }

  .feature-list {
    margin: 20px 0;
  }

  .feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
  }

  .feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
  }

  .feature-icon {
    font-size: 18px;
    margin-right: 12px;
    margin-top: 2px;
    flex-shrink: 0;
  }

  .feature-text {
    flex: 1;
  }

  @media (max-width: 480px) {
    .container, .info-section {
      padding: 30px 20px;
      margin: 10px;
    }
    
    h1 {
      font-size: 1.5rem;
    }

    .info-title {
      font-size: 1.3rem;
    }

    .info-content {
      font-size: 14px;
    }
  }
  .info-section {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
      0 6px 24px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.15);
    padding: 30px;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 2;
    animation: slideIn 0.8s ease-out 0.2s both;
  }
  .input-group {
    position: relative;
    margin-bottom: 30px;
  }

  input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: white;
    backdrop-filter: blur(10px);
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 
      inset 0 2px 4px rgba(0, 0, 0, 0.1),
      0 1px 0 rgba(255, 255, 255, 0.1);
  }

  input::placeholder {
    color: rgba(255, 255, 255, 0.6);
  }

  input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 
      inset 0 2px 4px rgba(0, 0, 0, 0.1),
      0 0 0 3px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
  }

  .btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    color: white;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 
      0 4px 15px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
  }

  .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
  }

  .btn:hover::before {
    left: 100%;
  }

  .btn:hover {
    transform: translateY(-3px);
    box-shadow: 
      0 8px 25px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.2);
  }

  .btn:active {
    transform: translateY(-1px);
  }

  .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
  }
  .header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 12px;
  }

  .logo {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  .nav-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
  }

  .nav-button {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    text-align: center;
  }

  .nav-button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
  }

  .nav-button.active {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
  }



  .content {
    padding: 50px 30px;
    text-align: center;
    color: white;
  }

  @media (max-width: 768px) {
    .header {
      padding: 15px 20px;
      flex-direction: column;
      gap: 15px;
    }
    
    .nav-switcher {
      width: 100%;
      justify-content: center;
    }
    
    .nav-button {
      flex: 1;
    }
  }