/* ========================================
   .CO DOMAIN WHOIS - REGISTRY.CO INSPIRED DESIGN
   ======================================== */

/* ========================================
   CSS VARIABLES - REGISTRY.CO COLOR PALETTE
   ======================================== */
:root {
  /* Primary Colors - Registry.co inspired */
  --primary-blue: #0077ff;
  --primary-blue-hover: #0066dd;
  --primary-blue-light: #3399ff;
  --secondary-orange: #ff6600;
  --secondary-orange-hover: #e55a00;
  
  /* Neutral Colors - Registry.co style */
  --white: #ffffff;
  --gray-50: #f9f9f9;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-500: #737373;
  --gray-600: #525252;
  --gray-700: #404040;
  --gray-800: #262626;
  --gray-900: #171717;
  
  /* Text Colors */
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f9f9f9;
  --bg-hero: #ffffff;
  
  /* Status Colors */
  --success-color: #10b981;
  --error-color: #ef4444;
  --warning-color: #f59e0b;
  --info-color: #3b82f6;
  
  /* Spacing Scale */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  
  /* Shadow Scale */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
}

/* ========================================
   BASE STYLES - REGISTRY.CO INSPIRED
   ======================================== */

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  letter-spacing: -0.01em; /* Registry.co style tight letter spacing */
}

/* Typography - Registry.co inspired */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--text-4xl);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.7;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-blue-hover);
}

/* ========================================
   LAYOUT SYSTEM - REGISTRY.CO INSPIRED
   ======================================== */

/* Container system - Registry.co style with generous spacing */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
}

/* Layout básico */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-1 {
  flex: 1;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.text-center {
  text-align: center;
}

/* Fondos */
.bg-white {
  background-color: #ffffff;
}

.bg-main-gradient {
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
  min-height: calc(100vh - 140px);
}

.bg-footer-custom {
  background-color: var(--footer-bg);
}

/* Tipografía */
.text-5xl {
  font-size: 3rem;
  line-height: 1.1;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 1.2;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 1.3;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 1.4;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.5;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.6;
}

.text-base {
  font-size: 1rem;
  line-height: 1.6;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Pesos de fuente */
.font-light {
  font-weight: 300;
}

.font-normal {
  font-weight: 400;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

/* Colores de texto */
.text-gray-900 {
  color: var(--text-primary);
}

.text-gray-700 {
  color: var(--text-primary);
}

.text-gray-600 {
  color: #6B7280;
}

.text-white {
  color: #ffffff;
}

.text-blue-600 {
  color: var(--primary-blue);
}

/* Spacing */
.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-auto {
  margin-top: auto;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-x-3 > * + * {
  margin-left: 0.75rem;
}

/* Anchos máximos */
.max-w-4xl {
  max-width: 56rem;
}

.max-w-7xl {
  max-width: 70rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Borders y sombras */
.border-b {
  border-bottom-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-gray-200 {
  border-color: var(--gray-200);
}

.border-gray-100 {
  border-color: var(--gray-100);
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.rounded-lg {
  border-radius: 0.5rem;
}

.rounded {
  border-radius: 0.375rem;
}

/* ========================================
   BUTTON SYSTEM - REGISTRY.CO INSPIRED
   ======================================== */

/* Primary Button - Registry.co style */
.btn-primary-large,
.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  font-size: var(--text-lg);
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  border-radius: var(--radius-lg);
  color: var(--white);
  background-color: var(--primary-blue);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  min-height: 56px;
}

.btn-primary-large:hover,
.submit-btn:hover {
  background-color: var(--primary-blue-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-primary-large:active,
.submit-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Secondary Button - Orange accent */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  font-size: var(--text-lg);
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  border-radius: var(--radius-lg);
  color: var(--white);
  background-color: var(--secondary-orange);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  min-height: 56px;
}

.btn-secondary:hover {
  background-color: var(--secondary-orange-hover);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

/* Outline Button */
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md) var(--spacing-xl);
  border: 2px solid var(--primary-blue);
  font-size: var(--text-lg);
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  border-radius: var(--radius-lg);
  color: var(--primary-blue);
  background-color: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  min-height: 56px;
}

.btn-outline:hover {
  background-color: var(--primary-blue);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  color: #ffffff;
  background-color: var(--primary-blue);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-primary:hover {
  background-color: var(--primary-blue-hover);
}

/* Formularios */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background-color: #ffffff;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Mensajes */
.success-message {
  padding: 1rem;
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 0.5rem;
  color: #166534;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* ========================================
   ALERT MESSAGES - REGISTRY.CO STYLE
   ======================================== */

.error-message {
  padding: var(--spacing-lg);
  background-color: #fef2f2;
  border: 2px solid #fecaca;
  border-radius: var(--radius-lg);
  color: var(--error-color);
  font-size: var(--text-base);
  font-weight: 500;
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.rate-limit-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-xl);
  background-color: #fef3cd;
  border: 2px solid #f6d55c;
  border-radius: var(--radius-lg);
  color: #b45309;
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-md);
}

.alert-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: inherit;
}

.alert-content h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: inherit;
}

.alert-content p {
  font-size: var(--text-base);
  line-height: 1.6;
  color: inherit;
}

.no-results-message {
  text-align: center;
  padding: var(--spacing-2xl);
  background-color: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-100);
}

.no-results-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--spacing-md);
  color: var(--text-muted);
}

.no-results-message h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.no-results-message p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

/* Logos */
.logo-header {
  width: 70px !important;
  height: auto;
  margin-right: 0.75rem;
}

.logo-footer {
  height: 2rem;
  width: auto;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-600);
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  color: var(--gray-900);
}

/* Utilidades */
.hidden {
  display: none !important;
}

.w-full {
  width: 100%;
}

.h-10 {
  height: 2.5rem;
}

.h-8 {
  height: 2rem;
}

.leading-relaxed {
  line-height: 1.625;
}

/* Campo de validación */
.field-validation-error {
  color: var(--error-color);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* ========================================
   RESULT PAGES - REGISTRY.CO STYLE
   ======================================== */

/* Result card - Registry.co clean white sections */
.result-card {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  padding: var(--spacing-2xl);
  margin: var(--spacing-xl) auto;
  max-width: 900px;
}

.result-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-xl);
  border-bottom: 2px solid var(--gray-100);
}

.result-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--gray-100);
  transition: background-color 0.2s ease;
}

.result-item:hover {
  background-color: var(--gray-50);
  margin: 0 calc(-1 * var(--spacing-lg));
  padding-left: var(--spacing-lg);
  padding-right: var(--spacing-lg);
  border-radius: var(--radius-md);
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--text-primary);
  min-width: 200px;
  margin-right: var(--spacing-lg);
  margin-bottom: var(--spacing-xs);
  letter-spacing: -0.01em;
}

.result-value {
  color: var(--text-secondary);
  flex: 1;
  font-size: var(--text-base);
  line-height: 1.6;
  word-break: break-word;
}

.result-actions {
  text-align: center;
  margin-top: var(--spacing-2xl);
  padding-top: var(--spacing-xl);
  border-top: 2px solid var(--gray-100);
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .text-4xl, .text-5xl {
    font-size: 2rem;
    line-height: 1.2;
  }
  
  .text-xl {
    font-size: 1.125rem;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .btn-primary-large {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    min-width: unset;
  }
  
  .py-20 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
  
  .modal-content {
    width: 95%;
    margin: 1rem;
  }
  
  .result-item {
    flex-direction: column;
  }
  
  .result-label {
    min-width: unset;
    margin-bottom: 0.25rem;
  }
}

/* Prevención del body scroll cuando modal está abierto */
.modal-open {
  overflow: hidden;
}

/* ===== NUEVO DISEÑO DEL FORMULARIO WHOIS ===== */

/* ========================================
   WHOIS FORM - REGISTRY.CO HERO STYLE
   ======================================== */

/* Hero container - Registry.co clean style with white background */
.whois-container {
  width: 100%;
  min-height: calc(100vh - 140px);
  align-items: center;
  justify-content: center;
  padding: var(--spacing-2xl) 0;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.whois-content {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

/* Hero header - Registry.co style large titles */
.whois-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  padding: 0 var(--spacing-md);
}

.whois-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.whois-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Form wrapper - Registry.co clean card style */
.whois-form-wrapper {
  background-color: var(--white);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-100);
  padding: var(--spacing-2xl);
  max-width: 700px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
}

@media (max-width: 768px) {
  .whois-title {
    font-size: var(--text-4xl);
  }
  
  .whois-subtitle {
    font-size: var(--text-lg);
  }
  
  .whois-form-wrapper {
    padding: var(--spacing-lg);
    margin: 0 var(--spacing-md);
  }
}

/* Formulario */
.whois-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ========================================
   FORM FIELDS - REGISTRY.CO STYLE
   ======================================== */

/* Form field container */
.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--spacing-lg);
}

.field-label {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Input wrapper */
.input-wrapper {
  position: relative;
}

/* Registry.co style inputs */
.search-input,
.domain-input {
  width: 100%;
  padding: var(--spacing-md) var(--spacing-lg);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: var(--text-lg);
  font-family: inherit;
  color: var(--text-primary);
  background-color: var(--white);
  transition: all 0.2s ease;
  outline: none;
  font-weight: 400;
  min-height: 56px;
  line-height: 1.5;
}

.search-input:focus,
.domain-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.1);
  transform: translateY(-1px);
}

.search-input::placeholder,
.domain-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.search-input:disabled,
.domain-input:disabled {
  background-color: var(--gray-50);
  cursor: not-allowed;
  opacity: 0.6;
}

/* Botón de envío */
.submit-btn {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-hover) 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(30, 64, 175, 0.2);
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px -3px rgba(30, 64, 175, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.btn-text {
  position: relative;
  z-index: 1;
}

/* Mensaje de error mejorado */
.error-alert {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1rem;
  color: #dc2626;
  font-size: 0.925rem;
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.error-alert::before {
  content: "⚠️";
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .whois-container {
    padding: 1rem 0;
    min-height: calc(100vh - 120px);
  }
  
  
  
  .whois-title {
    font-size: 2rem;
  }
  
  .whois-subtitle {
    font-size: 1rem;
  }
  
  .whois-form-wrapper {
    padding: 1.5rem;    
  }
  
  .whois-header {
    margin-bottom: 2rem;
  }
}

@media (max-width: 480px) {
  .whois-title {
    font-size: 1.75rem;
  }
  
  .whois-form-wrapper {
    padding: 1.25rem;
  }
  
  .domain-input {
    padding: 0.875rem 1rem;
    font-size: 0.925rem;
  }
  
  .submit-btn {
    padding: 0.875rem 1.5rem;
    font-size: 0.925rem;
  }
}

/* ========================================
   TAB NAVIGATION - REGISTRY.CO STYLE
   ======================================== */

/* Tab container - Registry.co clean style */
.search-tabs {
  display: flex;
  background-color: var(--gray-50);
  border-radius: var(--radius-xl);
  padding: 6px;
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
}

/* Tab buttons - Registry.co inspired */
.tab-button {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-md) var(--spacing-lg);
  border: none;
  background: transparent;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: 500;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  letter-spacing: -0.01em;
}

.tab-button:hover {
  color: var(--primary-blue);
  background-color: rgba(0, 119, 255, 0.05);
}

.tab-button:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.tab-button.active {
  background-color: var(--white);
  color: var(--primary-blue);
  box-shadow: var(--shadow-md);
  font-weight: 600;
}

/* Tab icons */
.tab-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Tab content */
.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Input de búsqueda unificado */
.search-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--text-primary);
  background-color: #ffffff;
  transition: all 0.2s ease-in-out;
  outline: none;
  font-weight: 400;
}

.search-input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.08);
}

.search-input:disabled {
  background-color: #f8fafc;
  color: #9ca3af;
  cursor: not-allowed;
}

.search-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

/* Input hints - Registry.co subtle style */
.input-hint {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-xs);
  margin-top: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background-color: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.hint-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--primary-blue);
}

/* Responsive para tabs */
@media (max-width: 768px) {
  .search-tabs {
    margin-bottom: 1.5rem;
  }
  
  .tab-button {
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.625rem 0.5rem;
    font-size: 0.8rem;
  }
  
  .tab-icon {
    width: 16px;
    height: 16px;
  }
  
  .input-hint {
    font-size: 0.8rem;
    padding: 0.625rem;
  }
}

@media (max-width: 480px) {
  .tab-button {
    padding: 0.5rem 0.375rem;
    font-size: 0.75rem;
  }
  
  .tab-icon {
    width: 14px;
    height: 14px;
  }
  
  .search-input {
    padding: 0.875rem 1rem;
    font-size: 0.925rem;
  }
  
  .input-hint {
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
  }
}

/* ===== ESTILOS PARA RESULTADOS MEJORADOS ===== */

/* Header de resultados */
.result-header {
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

/* Sección de datos de resultados */
.result-data {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.result-section {
  background-color: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
}

.result-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-section-title::before {
  content: '📋';
  font-size: 1rem;
}

.result-grid {
  display: grid;
  gap: 0.75rem;
}

.result-item {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  padding: 0.75rem;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s ease;
}

.result-item:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.result-label {
  font-weight: 600;
  color: var(--text-primary);
  min-width: 140px;
  margin-right: 1rem;
  font-size: 0.925rem;
}

.result-value {
  color: var(--text-primary);
  flex: 1;
  font-size: 0.925rem;
  line-height: 1.4;
}

/* Badges y estados */
.status-badge, .role-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-blue);
  color: white;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  margin: 0.125rem;
}

.role-badge {
  background-color: #059669;
}

.dnssec-status.enabled {
  color: #059669;
  font-weight: 600;
}

.dnssec-status.disabled {
  color: #dc2626;
  font-weight: 600;
}

/* Nameservers */
.nameserver-list {
  display: grid;
  gap: 0.5rem;
}

.nameserver-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.nameserver-icon {
  font-size: 1.125rem;
}

.nameserver-name {
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.925rem;
  color: var(--primary-blue);
  font-weight: 500;
}

/* IP Addresses */
.ip-section {
  margin-bottom: 1.5rem;
}

.ip-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--primary-blue);
}

.ip-list {
  display: grid;
  gap: 0.5rem;
}

.ip-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.ip-icon {
  font-size: 1rem;
}

.ip-address {
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 0.9rem;
  color: var(--text-primary);
  flex: 1;
}

.ip-type {
  padding: 0.25rem 0.5rem;
  background-color: #f3f4f6;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
}

/* Notificación de privacidad */
.privacy-notice {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background-color: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 12px;
  margin-top: 1.5rem;
}

.privacy-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #d97706;
}

.privacy-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 0.5rem;
}

.privacy-content p {
  font-size: 0.925rem;
  color: #92400e;
  line-height: 1.5;
  margin: 0;
}

/* Mensaje de sin resultados */
.no-results-message {
  text-align: center;
  padding: 3rem 2rem;
  background-color: #f8fafc;
  border-radius: 12px;
  border: 2px dashed #cbd5e1;
}

.no-results-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  color: #94a3b8;
}

.no-results-message h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.no-results-message p {
  color: #6b7280;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Alerta de rate limit */
.rate-limit-alert {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  margin-bottom: 2rem;
}

.alert-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #dc2626;
}

.alert-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #dc2626;
  margin-bottom: 0.5rem;
}

.alert-content p {
  font-size: 0.925rem;
  color: #7f1d1d;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.retry-info {
  font-weight: 600;
  color: #991b1b;
}

.countdown-timer {
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #fecaca;
  text-align: center;
}

.countdown-text {
  font-family: 'Monaco', 'Consolas', monospace;
  font-size: 1.125rem;
  font-weight: 600;
  color: #dc2626;
}

.retry-ready {
  font-size: 1rem;
  font-weight: 600;
  color: #059669;
}

/* Acciones de resultado */
.result-actions {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 2px solid #f1f5f9;
}

/* Responsive para resultados */
@media (max-width: 768px) {
  .result-section {
    padding: 1rem;
  }
  
  .result-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .result-label {
    min-width: unset;
    margin-right: 0;
    margin-bottom: 0.25rem;
  }
  
  .privacy-notice, .rate-limit-alert {
    flex-direction: column;
    text-align: center;
  }
  
  .privacy-icon, .alert-icon {
    margin: 0 auto;
  }
  
  .no-results-message {
    padding: 2rem 1rem;
  }
}

/* Contact Information Styles */
.contact-section {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.contact-section:last-child {
  margin-bottom: 0;
}

.contact-type-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: 0.5rem;
}

.contact-grid {
  display: grid;
  gap: 0.5rem;
}

.contact-item {
  display: flex;
  align-items: start;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-label {
  font-weight: 500;
  color: var(--gray-700);
  min-width: 120px;
  margin-right: 1rem;
  font-size: 0.875rem;
}

.contact-value {
  color: var(--text-primary);
  flex: 1;
  font-size: 0.875rem;
  line-height: 1.4;
}

.contact-email, .contact-phone {
  color: var(--primary-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-email:hover, .contact-phone:hover {
  color: var(--primary-blue-hover);
  text-decoration: underline;
}

/* ========================================
   RESPONSIVE DESIGN - REGISTRY.CO BREAKPOINTS
   ======================================== */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .whois-form-wrapper {
    padding: var(--spacing-xl);
  }
}

@media (max-width: 768px) {
  /* Typography scaling */
  .whois-title {
    font-size: var(--text-4xl);
  }
  
  .whois-subtitle {
    font-size: var(--text-lg);
  }
  
  /* Form responsive */
  .whois-form-wrapper {
    padding: var(--spacing-lg);
    margin: 0 var(--spacing-md);
  }
  
  /* Tabs responsive */
  .search-tabs {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .tab-button {
    justify-content: flex-start;
    padding: var(--spacing-sm) var(--spacing-md);
  }
  
  /* Button responsive */
  .btn-primary-large,
  .submit-btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: var(--text-base);
  }
  
  /* Result responsive */
  .result-card {
    padding: var(--spacing-lg);
    margin: var(--spacing-md);
  }
  
  .result-item {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .result-label {
    min-width: auto;
    margin-right: 0;
    font-weight: 600;
  }
  
  /* Contact items responsive */
  .contact-item {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .contact-label {
    min-width: auto;
    margin-right: 0;
    font-weight: 600;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .whois-container {
    padding: var(--spacing-xl) 0;
  }
  
  .whois-title {
    font-size: var(--text-3xl);
    line-height: 1.1;
  }
  
  .whois-subtitle {
    font-size: var(--text-base);
  }
  
  .whois-form-wrapper {
    padding: var(--spacing-md);
    margin: 0 var(--spacing-sm);
    border-radius: var(--radius-lg);
  }
  
  .result-card {
    padding: var(--spacing-md);
    margin: var(--spacing-sm);
    border-radius: var(--radius-lg);
  }
  
  .search-input,
  .domain-input {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* ========================================
   UTILITY CLASSES - REGISTRY.CO COMPATIBLE
   ======================================== */

/* Accessibility helpers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Animation utilities */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
}

.animate-fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

/* Loading states */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Button loading state */
.submit-btn.loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
  background-color: var(--primary-600) !important;
}

.submit-btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  margin: auto;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.submit-btn.loading .btn-text {
  opacity: 0;
}

/* Print styles */
@media print {
  .result-card {
    box-shadow: none;
    border: 1px solid var(--gray-300);
  }
  
  .btn-primary-large,
  .submit-btn {
    display: none;
  }
}

/* ========================================
   UTILIDADES DE DISEÑO - PDF MOCKUPS
   ======================================== */

/* Tipografías consistentes */
.heading-1 {
  font-size: 1.875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

@media (min-width: 768px) {
  .heading-1 {
    font-size: 1.875rem;
  }
}

.heading-2 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .heading-2 {
    font-size: 1.875rem;
  }
}

.heading-3 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .heading-3 {
    font-size: 1.5rem;
  }
}

.body {
  font-size: 1rem;
  line-height: 1.625;
}

.body-sm {
  font-size: 0.875rem;
  line-height: 1.625;
}

/* Botones consistentes */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  min-height: 40px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background-color: #000000;
  color: #ffffff;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(107, 114, 128, 0.5);
}

.btn-secondary {
  background-color: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-secondary:hover {
  background-color: #f9fafb;
}

.btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}

/* Inputs consistentes */
.input {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.5rem 0.75rem;
  min-height: 40px;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

/* Cards consistentes */
.card {
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 1rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
}

@media (min-width: 768px) {
  .card {
    padding: 1.5rem;
  }
}

/* Secciones consistentes */
.section {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

.section-tight {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (min-width: 768px) {
  .section-tight {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

/* Utilidades de texto */
.muted {
  color: #6b7280;
}

/* Utilidades de layout */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.text-center {
  text-align: center;
}

.grid {
  display: grid;
}

.gap-4 {
  gap: 1rem;
}

.gap-8 {
  gap: 2rem;
}

.flex {
  display: flex;
}

.flex-1 {
  flex: 1 1 0%;
}

.justify-center {
  justify-content: center;
}

.items-center {
  align-items: center;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.block {
  display: block;
}

.hidden {
  display: none;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}


.w-32 {
  width: 8rem;
}

.h-32 {
  height: 8rem;
}

.text-gray-700 {
  color: #374151;
}

.text-gray-900 {
  color: #111827;
}

.font-medium {
  font-weight: 500;
}

.bg-white {
  background-color: #ffffff;
}

/* Responsive utilities */
@media (min-width: 768px) {
  .md\\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .md\\:order-1 {
    order: 1;
  }
  
  .md\\:order-2 {
    order: 2;
  }
  
  .md\\:w-48 {
    width: 12rem;
  }
  
  .md\\:h-48 {
    height: 12rem;
  }
}

.order-1 {
  order: 1;
}

.order-2 {
  order: 2;
}

/* Estilos para tablas de resultados */
.result-table {
  border-collapse: separate;
  border-spacing: 0;
}

.table-header {
  text-align: left;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  background-color: #f9fafb;
}

.table-label {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  width: 30%;
}

.table-value {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: #111827;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background-color: #dbeafe;
  color: #1d4ed8;
}

.divide-y > * + * {
  border-top: 1px solid #f3f4f6;
}

.border-b {
  border-bottom: 1px solid;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.border-gray-100 {
  border-color: #f3f4f6;
}

.overflow-x-auto {
  overflow-x: auto;
}

.w-full {
  width: 100%;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 {
  gap: 0.5rem;
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.min-h-screen {
  min-height: 100vh;
}

.text-green-600 {
  color: #059669;
}

.text-red-600 {
  color: #dc2626;
}

.text-blue-600 {
  color: #2563eb;
}

.text-blue-700 {
  color: #1d4ed8;
}

.text-blue-800 {
  color: #1e40af;
}

.bg-blue-100 {
  background-color: #dbeafe;
}

.hover\\:text-blue-700:hover {
  color: #1d4ed8;
}

.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.inline-flex {
  display: inline-flex;
}

.rounded-full {
  border-radius: 9999px;
}

.text-xs {
  font-size: 0.75rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.mr-2 {
  margin-right: 0.5rem;
}

.ml-2 {
  margin-left: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.rounded-lg {
  border-radius: 0.5rem;
}

.capitalize {
  text-transform: capitalize;
}

.font-mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

.break-all {
  word-break: break-all;
}

/* Colores adicionales para los pills de contacto */
.bg-green-100 {
  background-color: #dcfce7;
}

.text-green-800 {
  color: #166534;
}

.bg-purple-100 {
  background-color: #f3e8ff;
}

.text-purple-800 {
  color: #6b21a8;
}

.bg-red-100 {
  background-color: #fee2e2;
}

.text-red-800 {
  color: #991b1b;
}

.bg-gray-100 {
  background-color: #f3f4f6;
}

.text-gray-800 {
  color: #1f2937;
}

.text-gray-500 {
  color: #6b7280;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mt-1 {
  margin-top: 0.25rem;
}