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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.5;
}

/* Logo */
.logo {
  position: absolute;
  top: 20px;
  left: 40px;
  height: 50px;
  width: auto;
  z-index: 10;
}

/* Header */
.header {
  background-color: #002164;
  color: white;
  padding: 12px 0;
  text-align: left;
  margin-top: 80px;
}

.header h1 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-left: 40px;
}

.year-range {
  font-size: 14px;
  font-weight: 400;
  opacity: 0.8;
}

/* Main container */
.main {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Search section */
.search-section {
  margin-bottom: 40px;
  width: 100%;
  max-width: 840px;
}

.vin-input-container {
  display: flex;
  gap: 0;
  width: 100%;
}

#vin {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid #d1d5db;
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 16px;
  outline: none;
  background: white;
}

#vin:focus {
  border-color: #002164;
}

.search-button {
  background-color: #002164;
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 0 8px 8px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}

.search-button:hover {
  background-color: #003087;
}

/* Result section */
.result-section {
  width: 100%;
  max-width: 840px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.content-container {
  display: flex;
  gap: 40px;
  width: 100%;
  justify-content: center;
  align-items: flex-start;
}

.vehicle-info {
  flex: 1;
  max-width: 420px;
}

.info-row {
  display: flex;
  align-items: baseline;
  margin-bottom: 20px;
  font-size: 18px;
}

.label {
  font-weight: 600;
  color: #002164;
  min-width: 140px;
  margin-right: 20px;
}

.value {
  color: #333;
}

.reference-link {
  color: #002164;
  text-decoration: underline;
  font-size: 12px;
  word-break: break-all;
}

.reference-link:hover {
  color: #003087;
}

.reference-row {
  margin-top: 20px;
}

.reference-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  font-weight: 600;
}

.reference-link {
  color: #002164;
  text-decoration: underline;
  font-size: 12px;
  word-break: break-all;
  display: block;
}

.reference-label {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

/* Content box */
.content-box {
  background: white;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  width: 320px;
  position: relative;
}

.content-title {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.percentage {
  font-size: 64px;
  font-weight: 700;
  color: #002164;
  line-height: 1;
  margin-bottom: 16px;
}

.aplica {
  background-color: #16a34a;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  display: none;
}

.no-aplica {
  background-color: #dc2626;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  display: none;
}

.no-disponible {
  background-color: #6b7280;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  display: none;
}

.info-message {
  margin-top: 12px;
  padding: 8px 12px;
  background-color: #f3f4f6;
  border-radius: 6px;
  font-size: 11px;
  color: #374151;
  line-height: 1.3;
  text-align: center;
  max-width: 100%;
  word-wrap: break-word;
}

.info-message a {
  color: #002164;
  text-decoration: underline;
  word-break: break-all;
}

.info-message a:hover {
  color: #003087;
}

/* NHTSA section */
.nhtsa-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.nhtsa-credit {
  font-size: 10px;
  color: #666;
  text-align: center;
  margin-bottom: 4px;
}

.nhtsa-logo {
  height: 50px;
  width: auto;
  opacity: 0.8;
  background-color: #0075b7;
  padding: 6px 8px 4px 8px;
  border-radius: 4px;
}

/* Actions */
.actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.action-button {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.print-button {
  background: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}

.print-button:hover {
  background: #e5e7eb;
}

.clear-button {
  background: white;
  color: #dc2626;
  border-color: #dc2626;
}

.clear-button:hover {
  background: #dc2626;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .logo {
    left: 20px;
    height: 40px;
    top: 15px;
  }
  
  .header {
    margin-top: 70px;
    padding: 8px 0;
  }
  
  .header h1 {
    font-size: 20px;
    margin-left: 20px;
  }
  
  .year-range {
    font-size: 14px;
  }
  
  .main {
    padding: 20px 15px;
  }
  
  .content-container {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }
  
  .vehicle-info {
    max-width: 100%;
  }
  
  .content-box {
    min-width: auto;
    width: 100%;
    max-width: 320px;
  }
  
  .info-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .label {
    min-width: auto;
    margin-right: 0;
  }
  
  .actions {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  
  .action-button {
    width: 200px;
  }
}
